I seem to remember getting this exception when I hadn’t installed my JDBC driver in the right place. 

 

Since you don’t actually provide the container you are using, nor what database you are trying to use, it’s hard to tell you how to fix it.  However, in general

 

1)       Make sure you have the right JDBC driver for your database

2)       Make sure you have placed the JDBC driver somewhere that your servlet container can find it

 

 

-Adrian

 

 


From: Duke Tantiprasut [mailto:duketantiprasut@gmail.com]
Sent: Friday, June 02, 2006 4:51 PM
To: xwiki-users@objectweb.org
Subject: [xwiki-users] startup exception

 

I'm getting the following exception. Any suggestion what I should be looking at:

2006-06-02 15:43:23 StandardWrapperValve[action]: Servlet.service() for servlet
action threw exception
java.lang.NoSuchMethodError : org.apache.commons.dbcp.BasicDataSourceFactory.crea
teDataSource(Ljava/util/Properties;)Ljavax/sql/DataSource;
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionPr
ovider.java:174)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFa
ctory.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.jav
...

Thanks
Duke