• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JUDDI Data sorce validation error

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jUDDI

I checked the WEB-INF/juddi-users.xml file and confirmed that the userid and
password in that file matches the ones in the conf/server.xml file too.

Can someone please give me a clue as to what's wrong? I've read various
posts and tried/checked everything that was mentioned but Tomcat doesn't
seem to want to connect to MySql - I am getting the following errors from
the happyjuddi.jsp page:

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)

Why is the class empty and the URL null in the "DB connection" error above?
Where is it looking?

Using the command line, I can get into MySql and do the query "SELECT
COUNT(*) FROM PUBLISHER" and the correct count does come back as expected so
I believe MySql is working.

My happyjuddi.jsp page is showing like this

Happy jUDDI!
jUDDI Version Information

jUDDI Version: 0.9rc4
Build Date: June 14, 2005 6:16:00 AM IST
UDDI Version: 2.0

jUDDI Dependencies: Class Files & Libraries

Looking for: org.apache.juddi.IRegistry
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\juddi.jar
Looking for: org.apache.axis.transport.http.AxisServlet
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\axis.jar
Looking for: org.apache.commons.discovery.Resource
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\commons-discovery-0.2.jar
Looking for: org.apache.commons.logging.Log
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\commons-logging-1.0.4.jar
Looking for: org.apache.log4j.Layout
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\log4j-1.2.8.jar
Looking for: javax.xml.soap.SOAPMessage
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\saaj.jar
Looking for: javax.xml.rpc.Service
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\jaxrpc.jar
Looking for: com.ibm.wsdl.factory.WSDLFactoryImpl
+Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\wsdl4j-1.5.1.jar
Looking for: javax.xml.parsers.SAXParserFactory
+Found in an unknown location

jUDDI Dependencies: Resource & Properties Files

Looking for: log4j.xml
+Found in: C:\Tomcat%206.0\webapps\juddi\WEB-INF\classes\log4j.xml

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)

System Properties

awt.toolkit: sun.awt.windows.WToolkit
catalina.base: C:\Tomcat 6.0[b]JUDDI Data sorce validation error

catalina.home: C:\Tomcat 6.0
catalina.useNaming: true
common.loader: ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
file.encoding: Cp1252
file.encoding.pkg: sun.io
file.separator: \
http.proxyHost:
http.proxyPort:
java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
java.awt.printerjob: sun.awt.windows.WPrinterJob
java.class.path: C:\Tomcat 6.0\bin\bootstrap.jar
java.class.version: 49.0
java.endorsed.dirs: C:\Tomcat 6.0\endorsed
java.ext.dirs: C:\Java\jre1.5.0_15\lib\ext
java.home: C:\Java\jre1.5.0_15
java.io.tmpdir: C:\Tomcat 6.0\temp
java.library.path: C:\Tomcat 6.0\bin;.;C:\Windows\system32;C:\Windows;C:\Java\jdk1.5.0_15\bin;C:\XEClient\bin;C:...;C:\Program Files (x86)\Common Files\Easysoft\Shared\;C:\axis2tutorial\axis2-1.5.1-bin\axis2-1.5.1\bin;
java.naming.factory.initial: org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs: org.apache.naming
java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version: 1.5.0_15-b04
java.specification.name: Java Platform API Specification
java.specification.vendor: Sun Microsystems Inc.
java.specification.version: 1.5
java.util.logging.config.file: C:\Tomcat 6.0\conf\logging.properties
java.util.logging.manager: org.apache.juli.ClassLoaderLogManager
java.vendor: Sun Microsystems Inc.
java.vendor.url: http://java.sun.com/
java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
java.version: 1.5.0_15
java.vm.info: mixed mode
java.vm.name: Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.vendor: Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor: Sun Microsystems Inc.
java.vm.version: 1.5.0_15-b04
line.separator:

os.arch: amd64
os.name: Windows Vista
os.version: 6.0
package.access: sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
package.definition: sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
path.separator: ;
server.loader:
shared.loader:
sun.arch.data.model: 64
sun.boot.class.path: C:\Java\jre1.5.0_15\lib\rt.jar;C:\Java\jre1.5.0_15\lib\i18n.jar;C:\Java\jre1.5.0_15\lib\sunrsasign.jar;C:\Java\jre1.5.0_15\lib\jsse.jar;C:\Java\jre1.5.0_15\lib\jce.jar;C:\Java\jre1.5.0_15\lib\charsets.jar;C:\Java\jre1.5.0_15\classes
sun.boot.library.path: C:\Java\jre1.5.0_15\bin
sun.cpu.endian: little
sun.cpu.isalist: amd64
sun.desktop: windows
sun.io.unicode.encoding: UnicodeLittle
sun.jnu.encoding: Cp1252
sun.management.compiler: HotSpot 64-Bit Server Compiler
sun.os.patch.level: Service Pack 1
tomcat.util.buf.StringCache.byte.enabled: true
user.country: US
user.dir: C:\Tomcat 6.0
user.home: C:\
user.language: en
user.name: HP-PC$
user.timezone: Asia/Calcutta
user.variant:

Platform: Apache Tomcat/6.0.24
[/b]Happy jUDDI! jUDDI Version Information jUDDI Version: 0.9rc4 Build Date: June 14, 2005 6:16:00 AM IST UDDI Version: 2.0 jUDDI Dependencies: Class Files & Libraries Looking for: org.apache.juddi.IRegistry +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\juddi.jar Looking for: org.apache.axis.transport.http.AxisServlet +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\axis.jar Looking for: org.apache.commons.discovery.Resource +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\commons-discovery-0.2.jar Looking for: org.apache.commons.logging.Log +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\commons-logging-1.0.4.jar Looking for: org.apache.log4j.Layout +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\log4j-1.2.8.jar Looking for: javax.xml.soap.SOAPMessage +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\saaj.jar Looking for: javax.xml.rpc.Service +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\jaxrpc.jar Looking for: com.ibm.wsdl.factory.WSDLFactoryImpl +Found in: C:\Tomcat 6.0\webapps\juddi\WEB-INF\lib\wsdl4j-1.5.1.jar Looking for: javax.xml.parsers.SAXParserFactory +Found in an unknown location jUDDI Dependencies: Resource & Properties Files Looking for: log4j.xml +Found in: C:\Tomcat%206.0\webapps\juddi\WEB-INF\classes\log4j.xml 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) System Properties awt.toolkit: sun.awt.windows.WToolkit catalina.base: C:\Tomcat 6.0[b]JUDDI Data sorce validation error catalina.home: C:\Tomcat 6.0 catalina.useNaming: true common.loader: ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar file.encoding: Cp1252 file.encoding.pkg: sun.io file.separator: \ http.proxyHost: http.proxyPort: java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment java.awt.printerjob: sun.awt.windows.WPrinterJob java.class.path: C:\Tomcat 6.0\bin\bootstrap.jar java.class.version: 49.0 java.endorsed.dirs: C:\Tomcat 6.0\endorsed java.ext.dirs: C:\Java\jre1.5.0_15\lib\ext java.home: C:\Java\jre1.5.0_15 java.io.tmpdir: C:\Tomcat 6.0\temp java.library.path: C:\Tomcat 6.0\bin;.;C:\Windows\system32;C:\Windows;C:\Java\jdk1.5.0_15\bin;C:\XEClient\bin;C:...;C:\Program Files (x86)\Common Files\Easysoft\Shared\;C:\axis2tutorial\axis2-1.5.1-bin\axis2-1.5.1\bin; java.naming.factory.initial: org.apache.naming.java.javaURLContextFactory java.naming.factory.url.pkgs: org.apache.naming java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version: 1.5.0_15-b04 java.specification.name: Java Platform API Specification java.specification.vendor: Sun Microsystems Inc. java.specification.version: 1.5 java.util.logging.config.file: C:\Tomcat 6.0\conf\logging.properties java.util.logging.manager: org.apache.juli.ClassLoaderLogManager java.vendor: Sun Microsystems Inc. java.vendor.url: http://java.sun.com/ java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi java.version: 1.5.0_15 java.vm.info: mixed mode java.vm.name: Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name: Java Virtual Machine Specification java.vm.specification.vendor: Sun Microsystems Inc. java.vm.specification.version: 1.0 java.vm.vendor: Sun Microsystems Inc. java.vm.version: 1.5.0_15-b04 line.separator: os.arch: amd64 os.name: Windows Vista os.version: 6.0 package.access: sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans. package.definition: sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. path.separator: ; server.loader: shared.loader: sun.arch.data.model: 64 sun.boot.class.path: C:\Java\jre1.5.0_15\lib\rt.jar;C:\Java\jre1.5.0_15\lib\i18n.jar;C:\Java\jre1.5.0_15\lib\sunrsasign.jar;C:\Java\jre1.5.0_15\lib\jsse.jar;C:\Java\jre1.5.0_15\lib\jce.jar;C:\Java\jre1.5.0_15\lib\charsets.jar;C:\Java\jre1.5.0_15\classes sun.boot.library.path: C:\Java\jre1.5.0_15\bin sun.cpu.endian: little sun.cpu.isalist: amd64 sun.desktop: windows sun.io.unicode.encoding: UnicodeLittle sun.jnu.encoding: Cp1252 sun.management.compiler: HotSpot 64-Bit Server Compiler sun.os.patch.level: Service Pack 1 tomcat.util.buf.StringCache.byte.enabled: true user.country: US user.dir: C:\Tomcat 6.0 user.home: C:\ user.language: en user.name: HP-PC$ user.timezone: Asia/Calcutta user.variant: Platform: Apache Tomcat/6.0.24[/b]

Thanks in advance
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is actually a Tomcat question, specifically on how to configure a datasource within Tomcat so that an application can access it. Moving.
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic