It looks like you do not have a datasource configured in the
juddi/META-INF/context.xml. Something like
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- -->
<Resource name="jdbc/JuddiDS" auth="Container"
type="javax.sql.DataSource" username="" password=""
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:juddi-derby-test-db;create=true"
maxActive="8"
/>
<!-- mysql
<Resource name="jdbc/JuddiDS" auth="Container"
type="javax.sql.DataSource" username="root" password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/juddiv3"
maxActive="8"
/>
-->
</Context>
Once you do you also have to make sure you add the driver jar, log4j.jar
and commons-discovery.jar.
<copy file="${basedir}/context.xml" todir="${webapps.dir}/juddi/META-INF"/>
<copy file="${dependency.mysql.jar}" todir="${common.lib.dir}"/>
<copy file="${dependency.log4j.jar}" todir="${common.lib.dir}"/>
<copy file="${dependency.derby.jar}" todir="${common.lib.dir}"/>
<copy file="${dependency.commons-discovery.jar}"
todir="${common.lib.dir}"/>
Cheers,
--Kurt
SARA1232007 wrote:
Hi,
the juddi.log under tomcat's log directory is as following:
2009-06-22 11:33:20,187 INFO [org.apache.juddi.registry.RegistryServlet] -
Loading jUDDI configuration.
2009-06-22 11:33:20,187 INFO [org.apache.juddi.registry.RegistryServlet] -
Resources loaded from: /WEB-INF/juddi.properties
2009-06-22 11:33:20,187 INFO [org.apache.juddi.registry.RegistryServlet] -
Initializing jUDDI components.
2009-06-22 11:33:20,453 INFO [org.apache.juddi.util.jdbc.ConnectionManager]
- Using JNDI to aquire a JDBC DataSource with name:
java:comp/env/jdbc/juddiDB
2009-06-22 11:33:20,453 ERROR [org.apache.juddi.registry.RegistryEngine] -
Could not create jUDDI database 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.juddi.util.jdbc.ConnectionManager.acquireConnection(ConnectionManager.java:56)
at
org.apache.juddi.registry.RegistryEngine.initializeDatabase(RegistryEngine.java:250)
at
org.apache.juddi.registry.RegistryEngine.init(RegistryEngine.java:196)
at
org.apache.juddi.registry.RegistryServlet.init(RegistryServlet.java:182)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
... 31 more
2009-06-22 11:33:59,218 INFO [org.apache.juddi.registry.RegistryServlet] -
jUDDI Stopping: Cleaning up existing resources.
Could anyone help me with this?
Urgently need help!
Thanks.
Sara