cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graaf, Edgar de (fin)" <Edgar.de.Gr...@ordina.nl>
Subject <datasources> <j2ee ....... ?!
Date Fri, 01 Mar 2002 09:49:34 GMT
People,

I try to use <datasources> <j2ee ....... 
But what ever I do I keep on having the same problem. Please look at the
included exception. The only thing the Cocoon site says about the subject is
that it is as simple as filling <dbname>. Unfortunately nothing is simple.
Or is it?

Regards,

Edgar


I keep getting the following exception:
===========================
ERROR   (2002-03-01) 10:39.28:238   [core] (Unknown-URI)
Unknown-thread/LogKitLogger: Problem with JNDI lookup of datasource
javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
	at javax.naming.InitialContext.lookup(InitialContext.java:350)
	at
org.apache.avalon.excalibur.datasource.J2eeDataSource.configure(J2eeDataSour
ce.java:63)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:448)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(E
xcaliburComponentSelector.java:354)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(E
xcaliburComponentManager.java:167)
	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:271)
	at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
ERROR   (2002-03-01) 10:39.28:258   [core] (Unknown-URI)
Unknown-thread/ExcaliburComponentSelector: Could not set up Component for
hint: MyJ2eeConnection
org.apache.avalon.framework.configuration.ConfigurationException: Could not
use JNDI to find datasource
	at
org.apache.avalon.excalibur.datasource.J2eeDataSource.configure(J2eeDataSour
ce.java:72)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:448)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(E
xcaliburComponentSelector.java:354)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(E
xcaliburComponentManager.java:167)
	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:271)
	at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
	at javax.naming.InitialContext.lookup(InitialContext.java:350)
	at
org.apache.avalon.excalibur.datasource.J2eeDataSource.configure(J2eeDataSour
ce.java:63)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:448)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(E
xcaliburComponentSelector.java:354)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(E
xcaliburComponentManager.java:167)
	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:271)
	at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message