This is usually due to some jars that need to be moved to tomcat/common/lib or conflict with tomcat jars You can try replacing the common-dbcp and common-pool jars with xwiki jars and also move the mysql jar to common/lib Also remove these jars from xwiki/lib if you put them in common/lib Ludovic Bikash Agarwalla a écrit :
Hi, I followed the instructions below for setting up wiki on eclipse. I am using J2sdk1.4.2, eclipse 3, on Fedora Core 3. However I get the following error after the last step:
500 Servlet Exception
java.lang.NoSuchMethodError: org.apache.commons.dbcp.BasicDataSourceFactory.createDataSource(Ljava/util/Properties;)Ljavax/sql/DataSource; at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:188) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054) at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124) at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:250) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:562) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:552) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:586) at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:978) at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:973) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:409) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:389) at com.xpn.xwiki.XWiki.<init>(XWiki.java:335) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:129) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:194) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:90) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:341) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:467) at com.caucho.util.ThreadPool.run(ThreadPool.java:408) at java.lang.Thread.run(Thread.java:534)
Any suggestions on what may be wrong ?
Thanks in advance. Bikash
On 6/7/05, Cameron Braid <[email protected]> wrote:
[Cameron Braid] I managed to get xwiki running locally within eclipse by doing this :
1) move (or copy) web.xml from src/main/web.xml into src/main/web/WEB-INF/web.xml (so that src/main/web is an exploded war) 2) setup an eclipse user library called 'resin-3.0.12' with all libs from resin/lib 3) setup a resin configuration file for resin resin-3.0.12 (GPL) in the project root : see attached resin.conf 4) setup an eclipse launch target with his configuration : * main class : com.caucho.server.resin.Resin * arguments : -conf ${project_loc}/resin.conf * vm args : -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Dbase=${project_loc} * classpath : restore defaults then add the resin user library to the bootstrap classpath 5) create a mysql database on localhost called xwiki username = xwiki, password=xwiki 6) import the database dump (if you want some sample data / blogs etc..) 7) run the launch target 8) open http://localhost:8080/xwiki/bin/view/Main/WebHome
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic