tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aurélien Allienne" <allie...@gmail.com>
Subject ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
Date Thu, 26 Apr 2007 10:40:19 GMT
Hi,

I want to deploy bedework calendar on my tomcat but I have this error :
 FATAL http-8080-Processor25
org.hibernate.connection.DatasourceConnectionProvider - Could not find
datasource: java:comp/env/jdbc/calDB
 javax.naming.NamingException: Could not create resource factory instance
[Root exception is java.lang.ClassNotFoundException:
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(
ResourceFactory.java:118)
        at javax.naming.spi.NamingManager.getObjectInstance(
NamingManager.java:304)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at org.apache.naming.SelectorContext.lookup(SelectorContext.java
:137)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at org.hibernate.connection.DatasourceConnectionProvider.configure(
DatasourceConnectionProvider.java:52)
        at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
ConnectionProviderFactory.java:124)
        at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
ConnectionProviderFactory.java:56)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(
SettingsFactory.java:366)
        at org.hibernate.cfg.SettingsFactory.buildSettings(
SettingsFactory.java:60)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java
:1881)
        at org.hibernate.cfg.Configuration.buildSessionFactory(
Configuration.java:1174)
        at org.bedework.calcore.hibernate.CalintfImpl.<clinit>(
CalintfImpl.java:212)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.bedework.calcorei.CalintfFactory.getIntf(CalintfFactory.java
:52)
        at org.bedework.calsvc.CalSvc.getCal(CalSvc.java:3500)
        at org.bedework.calsvc.CalSvc.open(CalSvc.java:467)
        at org.bedework.calsvc.CalSvc.init(CalSvc.java:335)
        at org.bedework.calsvci.CalSvcFactoryDefault.getSvc(
CalSvcFactoryDefault.java:96)
        at org.bedework.webcommon.BwAbstractAction.checkSvci(
BwAbstractAction.java:2438)
        at org.bedework.webcommon.BwAbstractAction.getState(
BwAbstractAction.java:2219)
        at org.bedework.webcommon.BwAbstractAction.performAction(
BwAbstractAction.java:192)
        at edu.rpi.sss.util.jsp.UtilAbstractAction.execute(
UtilAbstractAction.java:308)
        at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java
:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
        at org.bedework.webcommon.BwSvciFilter.doFilter(BwSvciFilter.java
:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:870)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException:
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(
ResourceFactory.java:114)
        ... 53 more
ERROR http-8080-Processor25 org.bedework.calcore.hibernate.CalintfImpl -
Failed to get session factory
 org.hibernate.HibernateException: Could not find datasource
        at org.hibernate.connection.DatasourceConnectionProvider.configure(
DatasourceConnectionProvider.java:56)
        at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
ConnectionProviderFactory.java:124)
        at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
ConnectionProviderFactory.java:56)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(
SettingsFactory.java:366)
        at org.hibernate.cfg.SettingsFactory.buildSettings(
SettingsFactory.java:60)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java
:1881)
        at org.hibernate.cfg.Configuration.buildSessionFactory(
Configuration.java:1174)
        at org.bedework.calcore.hibernate.CalintfImpl.<clinit>(
CalintfImpl.java:212)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.bedework.calcorei.CalintfFactory.getIntf(CalintfFactory.java
:52)
        at org.bedework.calsvc.CalSvc.getCal(CalSvc.java:3500)
        at org.bedework.calsvc.CalSvc.open(CalSvc.java:467)
        at org.bedework.calsvc.CalSvc.init(CalSvc.java:335)
        at org.bedework.calsvci.CalSvcFactoryDefault.getSvc(
CalSvcFactoryDefault.java:96)
        at org.bedework.webcommon.BwAbstractAction.checkSvci(
BwAbstractAction.java:2438)
        at org.bedework.webcommon.BwAbstractAction.getState(
BwAbstractAction.java:2219)
        at org.bedework.webcommon.BwAbstractAction.performAction(
BwAbstractAction.java:192)
        at edu.rpi.sss.util.jsp.UtilAbstractAction.execute(
UtilAbstractAction.java:308)
        at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java
:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
        at org.bedework.webcommon.BwSvciFilter.doFilter(BwSvciFilter.java
:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:870)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NamingException: Could not create resource factory
instance [Root exception is java.lang.ClassNotFoundException:
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
....
....

But the class org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory was in
naming-factory-dbcp.jar. When I make a  tar tf naming-factory-dbcp.jar, I
have :
...
org/apache/tomcat/dbcp/dbcp/AbandonedTrace.class
org/apache/tomcat/dbcp/dbcp/BasicDataSource.class
org/apache/tomcat/dbcp/dbcp/BasicDataSourceFactory.class
org/apache/tomcat/dbcp/dbcp/ConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/DataSourceConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/DbcpException.class
...

I don't understand where is the problem. Have you any idea?

Cordialy

Aurelien Allienne

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message