You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Sheikh Kashif <sh...@yahoo.com> on 2009/05/12 09:38:58 UTC

Configuring JUDDI 0.9rc2

 
I am using the JUddi 0.9rc2. While insatallation and configuration of JUddi 0.9rc2, I made follwing changes in "server.xml" file just above the </host> which is located at $CATALINA_HOME\conf\server.xml
 
<Context path="/juddi" docBase="juddi" debug="5" reloadable="true"
crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_juddiDB_log" suffix=".txt"
timestamp="true"/>
<!-- the Resource element will probably work better for you on Tomcat 5+ if
you simply use a Resource only tag with xml attributes
as opposed to the nested ResourceParams and parameter elements
-->
<Resource name="jdbc/juddiDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="juddi" password="123456"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true"/>
<!-- <Resource name="jdbc/juddi" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="juddi"
password="123456" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true"/>
 
After that when i restart Tomcat 5.0.3, I does not start.
Kindly help me how to solve this problem.

Before doing this change in "server.xml" happy juddi page shows followings
jUDDI DataSource Validation
+ Got a JNDI Context!
+ Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
- DB connection was not aquired. (Cannot create JDBC driver of class '' for connect URL 'null')
- SELECT COUNT(*) FROM PUBLISHER failed (null)
Kindly help me how to solve this problem.

Regards
Muhammad Kashif
 


      

Re: Configuring JUDDI 0.9rc2

Posted by Tom Cunningham <tc...@redhat.com>.
Muhammad,

Are you closing all the tags in the file?     The error seems to be 
saying that it doesn't know what the JDBC driver class or URL is - do 
you you close the <Context> tag below?



Sheikh Kashif wrote:
>  
> I am using the JUddi 0.9rc2. While insatallation and configuration of 
> JUddi 0.9rc2, I made follwing changes in "server.xml" file just above 
> the </host> which is located at $CATALINA_HOME\conf\server.xml
>  
> <Context path="/juddi" docBase="juddi" debug="5" reloadable="true"
> crossContext="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_juddiDB_log" suffix=".txt"
> timestamp="true"/>
> <!-- the Resource element will probably work better for you on Tomcat 
> 5+ if
> you simply use a Resource only tag with xml attributes
> as opposed to the nested ResourceParams and parameter elements
> -->
> <Resource name="jdbc/juddiDB" auth="Container" type="javax.sql.DataSource"
> maxActive="100" maxIdle="30" maxWait="10000" username="juddi" 
> password="123456"
> driverClassName="com.mysql.jdbc.Driver"
> url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true"/>
> <!-- <Resource name="jdbc/juddi" auth="Container" 
> type="javax.sql.DataSource"
> maxActive="100" maxIdle="30" maxWait="10000" username="juddi"
> password="123456" driverClassName="com.mysql.jdbc.Driver"
> url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true"/>
>  
> *After that when i restart Tomcat 5.0.3, I does not start.*
> *Kindly help me how to solve this problem.*
>
> Before doing this change in "server.xml" happy juddi page shows followings
> jUDDI DataSource Validation
> + Got a JNDI Context!
> + Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
> *- DB connection was not aquired. (Cannot create JDBC driver of class 
> '' for connect URL 'null')
> - SELECT COUNT(*) FROM PUBLISHER failed (null)*
> *Kindly help me how to solve this problem.*
>
> Regards
> *Muhammad Kashif
> * 
>
>