wood burning stoves 2.0*
The moose likes Tomcat and the fly likes JUDDI Data sorce validation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JUDDI Data sorce validation error" Watch "JUDDI Data sorce validation error" New topic
Author

JUDDI Data sorce validation error

chaitanya palli
Greenhorn

Joined: Feb 19, 2010
Posts: 13
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


Spread Smiles
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

This is actually a Tomcat question, specifically on how to configure a datasource within Tomcat so that an application can access it. Moving.


JBoss In Action
 
wood burning stoves
 
subject: JUDDI Data sorce validation error
 
Similar Threads
default character set seems not work in my jboss environment
Tomcat only accepting http and not https on port 8443
HibernateException Could not instantiate dialect class for MySQLDialect
Tomcat Java2 Security Issue: modifyThread and modifyThreadGroup
Tomcat not resolving external repository