portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh patel (JIRA)" <jetspeed-...@jakarta.apache.org>
Subject [jira] Commented: (JS2-189) SQLException thrown while trying to get Connection from Datasource (java:comp/env/jdbc/jetspeed)
Date Tue, 01 Feb 2005 23:15:18 GMT
     [ http://issues.apache.org/jira/browse/JS2-189?page=comments#action_58456 ]
     
Rajesh patel commented on JS2-189:
----------------------------------

I got this too using mysql, tomcat 5.5.4, java 1.4.2_06-b03

> SQLException thrown while trying to get Connection from Datasource (java:comp/env/jdbc/jetspeed)
> ------------------------------------------------------------------------------------------------
>
>          Key: JS2-189
>          URL: http://issues.apache.org/jira/browse/JS2-189
>      Project: Jetspeed 2
>         Type: Bug
>   Components: Deployment
>  Environment: Tomcat 5.5 
>     Reporter: Greg Mirabito

>
> After a successful maven build and deploy to Tomcat 5.5, I startup tomcat and get the
following error in the log: It looks like the jndi info for jdbc cannot be found.  I checked
the jetspeed.xml file and it looks right.
> I know in tomcat5.5 the preferred method for setting a JNDI context for a webapp is to
use a context.xml file in the META-INF directory of the webapp. I tried this and still no
luck. 
> [org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR: SQLException
thrown while trying to get Connection from Datasource (java:comp/env/jdbc/jetspeed)
> Cannot create JDBC driver of class '' for connect URL 'null'
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ''
for connect URL 'null'
> 	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
> 	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> 	at org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectionFromDataSource(ConnectionFactoryAbstractImpl.java:204)
> 	at org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnection(ConnectionFactoryAbstractImpl.java:112)
> 	at org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:105)
> 	at org.springframework.orm.ojb.PersistenceBrokerTransactionManager.doBegin(PersistenceBrokerTransactionManager.java:187)
> 	at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:269)
> 	at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:201)
> 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
> 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
> 	at $Proxy7.createNode(Unknown Source)
> 	at org.apache.jetspeed.prefs.impl.PreferencesImpl.<init>(PreferencesImpl.java:96)
> 	at org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactoryImpl.java:64)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1087)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1061)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:287)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:205)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:236)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:284)
> 	at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:114)
> 	at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:96)
> 	at org.apache.jetspeed.components.SpringComponentManager.<init>(SpringComponentManager.java:44)
> 	at org.apache.jetspeed.engine.SpringEngine.initComponents(SpringEngine.java:108)
> 	at org.apache.jetspeed.engine.AbstractEngine.init(AbstractEngine.java:138)
> 	at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:64)
> 	at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:135)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
> Caused by: java.sql.SQLException: No suitable driver
> 	at java.sql.DriverManager.getDriver(Unknown Source)
> 	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
> 	... 58 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message