Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - Problem installing jUDDI

 
Thread Tools Search this Thread
Old 02-21-2006, 09:21 AM   #1
Default Problem installing jUDDI


Hello,

I'm just trying to install jUDDI within our Tomcat server, but I can't
get the database connection working. I'm getting the following error
message on "happyjuddi.jsp":

- DB connection was not aquired. (Cannot create JDBC driver of class ''
for connect URL 'null')
- SELECT COUNT(*) FROM PUBLISHER failed (null)

I checked Google and found various solution proposals for this problem
(like re-installation of the JDBC driver, manipulation of the
juddi.properties), but none of them worked.

I'm especially confused because jUDDI obviously can't even find the
JDBC driver class, but other JSPs at the same Tomcat use Database
connections without any problem.

Anyone of you got an idea? Thanks a lot in advance.

CU, Patrick



patrick.holz@uni-koeln.de
  Reply With Quote
Old 02-21-2006, 04:02 PM   #2
Daniel Rohe
 
Posts: n/a
Default Re: Problem installing jUDDI
schrieb:
> Hello,
>
> I'm just trying to install jUDDI within our Tomcat server, but I can't
> get the database connection working. I'm getting the following error
> message on "happyjuddi.jsp":
>
> - DB connection was not aquired. (Cannot create JDBC driver of class ''
> for connect URL 'null')
> - SELECT COUNT(*) FROM PUBLISHER failed (null)
>
> I checked Google and found various solution proposals for this problem
> (like re-installation of the JDBC driver, manipulation of the
> juddi.properties), but none of them worked.
>
> I'm especially confused because jUDDI obviously can't even find the
> JDBC driver class, but other JSPs at the same Tomcat use Database
> connections without any problem.
>
> Anyone of you got an idea? Thanks a lot in advance.
>
> CU, Patrick
>


Could you post some more information:

Which JDBC driver?
Where have you copied the driver common/lib, shared/lib, WEB-INF/lib?
Which Tomcat version?

Kind regards,
Daniel


Daniel Rohe
  Reply With Quote
Old 02-22-2006, 09:03 AM   #3
patrick.holz@uni-koeln.de
 
Posts: n/a
Default Re: Problem installing jUDDI
Hi,

thanks for your answer. I'm using Tomcat 5.5.9 and the JDBC driver from
"mysql-connector-java-3.0.1-beta-bin.jar". This file is placed at
{Tomcat_Home}/common/lib/. The server.xml says within "<ResourceParams
name="jdbc/juddiDB">":

<value>jdbc:mysql://localhost/juddi</value>
<value>com.mysql.jdbc.Driver</value>

CU, Patrick



patrick.holz@uni-koeln.de
  Reply With Quote
Old 02-22-2006, 03:24 PM   #4
Daniel Rohe
 
Posts: n/a
Default Re: Problem installing jUDDI
schrieb:
> Hi,
>
> thanks for your answer. I'm using Tomcat 5.5.9 and the JDBC driver from
> "mysql-connector-java-3.0.1-beta-bin.jar". This file is placed at
> {Tomcat_Home}/common/lib/. The server.xml says within "<ResourceParams
> name="jdbc/juddiDB">":
>
> <value>jdbc:mysql://localhost/juddi</value>
> <value>com.mysql.jdbc.Driver</value>
>
> CU, Patrick
>


The problem is the link from jUDDI to the tomcat 5.0 description. In
Tomcat 5.5 was a change in the resource configuration so the following
XML snippet should help you. Replace your Resource and ResourceParams
snippet with the following snippet.

<Resource name="jdbc/juddiDB" auth="Container"
type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000"
username="juddiuser" password="******"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true" />

BTW don't put the web app configuration into the server.xml file.
Instead create a new XML file under (Tomcat_Home)/conf/localhost with
the name of the web app as filename and in this file configure the
Context. Something like

<Context docBase="..." antiResourceLocking="true" antiJARLocking="true">
<Resource ... />
</Context>

Kind regards,
Daniel


Daniel Rohe
  Reply With Quote
Old 02-22-2006, 04:11 PM   #5
patrick.holz@uni-koeln.de
 
Posts: n/a
Default Re: Problem installing jUDDI
Wow, thanks a lot, now it's working. I was almost desperated about
this, you saved me a lot of guesswork.

CU, Patrick



patrick.holz@uni-koeln.de
  Reply With Quote
Old 03-13-2006, 11:15 PM   #6
france.nguyen22@gmail.com
 
Posts: n/a
Default Re: Problem installing jUDDI
This did not work for me, I still get the error:
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)

I am using Tomcat 5.0, and mySQL 5.

I've done all the steps previous to this and I still get this error. I
made a juddi.xml that contains:
<Context docBase="juddi" antiResourceLocking="true"
antiJARLocking="true">
<Resource name="jdbc/juddiDB" auth="Container"
type="javax.sql.DataSource" maxActive="100" maxIdle="30"
maxWait="10000"
username="juddi" password="juddi"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true"
/>
</Context>
and placed it in: C:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\Catalina\localhost

Please help, I have been at this point for a week now.

wrote:
> Wow, thanks a lot, now it's working. I was almost desperated about
> this, you saved me a lot of guesswork.
>
> CU, Patrick




france.nguyen22@gmail.com
  Reply With Quote
Old 08-08-2006, 10:01 AM   #7
karanvij
Junior Member
 
Join Date: Jul 2006
Posts: 2
Default Problem in using jUDDI
Hi,
I hv seen this review..
Im also working on UDDI...
My jUDDI is installed.
But now I dont know, how exactly I hv to publish my web service on this juddi..
Im also not able to create client API's for Publish/Inquire/Admin on juddi.
Can you plz help me
Thanks
Karan Vij


karanvij
karanvij is offline   Reply With Quote
Old 08-21-2006, 01:44 PM   #8
karanvij
Junior Member
 
Join Date: Jul 2006
Posts: 2
Default Problem in juddi
Hi, I hv installed juddi, but when i run Happy juddi i got some error of SAX.ParserFactory.class found at unknown location..

Even then i tried with uddi4j to run some application for inauiry and publish..
But I got errors in java program while running(Not while compiling)
Can u help me plz?


karanvij
karanvij is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with installing Office 97 dennychapman@hotmail.com General Help Related Topics 0 02-28-2008 06:11 AM
problem after installing UBER ICON manojgj Hardware 0 02-14-2008 07:27 AM
Problem installing ArcGIS 9 Chaila Sikasula MCTS 1 05-15-2007 07:09 AM
Problem with installing New OS On old hardware Raymond A+ Certification 0 12-29-2003 05:00 AM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46