You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by 黎 斌 <li...@hotmail.com> on 2004/05/30 03:41:53 UTC

I have no progress over month!!!

Hi,
   All.
   A month ago I set up the juddi server,until now I can't visit it with 
uddi4j. :( 
   Help me!!!
   I run BusinessEntityExample.class with Configurator.class and 
samples.prop,then exeception happen:
___________________________________________________________________________________________

E:\lb\workfolder\uddi\entity02>java BusinessEntityExample

*********** Running BusinessEntityExample ***********

Get authtoken
TransportFactory: Using transport 
name:org.uddi4j.transport.ApacheAxisTransport

Request message:
<get_authToken cred="juddi" generic="2.0" userID="juddi " 
xmlns="urn:uddi-org:ap
i_v2"/>

Response message:
<Fault><faultstring/></Fault>

        at org.uddi4j.UDDIElement.<init>(Unknown Source)
        at org.uddi4j.response.AuthToken.<init>(Unknown Source)
        at org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)
        at BusinessEntityExample.run(BusinessEntityExample.java:76)
        at BusinessEntityExample.main(BusinessEntityExample.java:54)
--------------------------------------------------------------------------------------------

The juddi.log show:
_________________________________________________________________________________

2004-05-30 09:18:28,669 [http8080-Processor24] ERROR 
org.juddi.datastore.jdbc.JDBCDataStoreFactory - Exception occured while 
attempting to aquire a JDBC connection from the connection pool: Cannot 
create JDBC driver of class '' for connect URL 'null'

2004-05-30 09:18:28,669 [http8080-Processor24] ERROR 
org.juddi.function.GetAuthTokenFunction - java.lang.NullPointerException
_____________________________________________________________________________________



My juddi happy page showed as following,I can't find anything wrong:
____________________________________________________________________________________________

Happy jUDDI!

juddi.properties+Found in: 
D:\Tomcat\webapps\juddi\WEB-INF\classes\juddi.properties

jUDDI DataSource Check
+ Got a JNDI Context!
+ Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
+ Got a JDBC Connection!
+ SELECT COUNT(*) FROM PUBLISHER = 1

jUDDI Properties
juddi.adminEmailAddress: admin@juddi.org
juddi.adminURL: http://localhost:8080/juddi/admin
juddi.authFactory: org.juddi.auth.simple.SimpleAuthenticatorFactory
juddi.dataStoreFactory: org.juddi.datastore.jdbc.JDBCDataStoreFactory
juddi.inquiryURL: http://localhost:8080/juddi/inquiry
juddi.jdbcDriver: com.mysql.jdbc.Driver
juddi.jdbcPassword: juddi
juddi.jdbcURL: jdbc:mysql://localhost/juddi
juddi.jdbcUser: juddi
juddi.maxMessageSize: 2097152
juddi.maxNameElementsAllowed: 5
juddi.maxNameLength: 255
juddi.operatorName: jUDDI.org
juddi.operatorSiteURL: http://localhost:8080/juddi
juddi.publishURL: http://localhost:8080/juddi/publish
juddi.transportClass: org.juddi.transport.axis.AxisTransport
juddi.useConnectionPool: false
juddi.uuidgenFactory: org.juddi.uuidgen.jvm.JavaUUIDGenFactory
-------------------------------------------------------------------------------------------

The juddi database table "publisher" has a record ('juddi', 'Juddi user', 
'false').

My classpath is set as:
____________________________________________________________________________________________

.;D:\j2sdk1.4.2_04\jre\lib\rt.jar;D:\j2sdk1.4.2_04\lib\dt.jar;
D:\j2sdk1.4.2_04\lib\tools.jar;D:\MssqlJdbc\lib\msbase.jar;
D:\MssqlJdbc\lib\msutil.jar;D:\MssqlJdbc\lib\mssqlserver.jar;D:\lib\uddi4j.jar;

D:\lib\activation.jar;D:\lib\axis.jar;D:\lib\castor-0.9.3.9-xml.jar;
D:\lib\commons-logging.jar;D:\lib\dom.jar;D:\lib\jaas.jar;D:\lib\jaxp-api.jar;

D:\lib\jaxr-api.jar;D:\lib\jaxr-impl.jar;D:\lib\jaxrpc-api.jar;
D:\lib\jaxrpc-impl.jar;D:\lib\jaxrpc-sec.jar;D:\lib\jaxrpc-spi.jar;
D:\lib\jsse.jar;D:\lib\mail.jar;D:\lib\saaj-api.jar;D:\lib\saaj-impl.jar;
D:\lib\sax.jar;D:\lib\soap.jar;D:\lib\wsi-client.jar;D:\lib\xalan.jar;
D:\lib\xercesImpl.jar;D:\lib\xmlsec.jar;D:\lib\xsltc.jar;D:\lib\juddi.jar;
D:\lib\commons-discovery.jar;D:\lib\wsdl4j.jar;D:\lib\axis-ant.jar;D:\lib\jaxrpc.jar;

D:\lib\log4j-1.2.8.jar;D:\lib\saaj.jar;D:\lib\bsf.jar
--------------------------------------------------------------------------------------------



My samples.prop key values:
___________________________________________________________________________________________

inquiryURL = http://localhost:8080/juddi/inquiry  
publishURL = http://localhost:8080/juddi/publish
userid = juddi		
password = juddi
TransportClassName=org.uddi4j.transport.ApacheAxisTransport
logEnabled=true
handlerPackageName=com.sun.net.ssl.internal.www.protocol
securityClassName=com.sun.net.ssl.internal.ssl.Provider
businessName=Sample Business
serviceName=Sample Service
tmodelName=Sample TModel
sampleEntityName=S
assertionRelationship=peer-peer
--------------------------------------------------------------------------------------------


_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  


Re: I have no progress over month!!!

Posted by faisal khan <fa...@yahoo.co.uk>.
Hi,
 
I think i got the same error while configuring juddi so try making these changes in the juddi.properties file  comment the line
juddi.dataStoreFactory = java:comp/env/jdbc/juddiDB 
 

# The jUDDI DataStore module currently in 

# use. This is also the default jUDDI DataStore.

#juddi.dataStoreFactory = java:comp/env/jdbc/juddiDB 

juddi.dataStoreFactory = org.juddi.datastore.jdbc.JDBCDataStoreFactory
cheers
Faisal

Àè ±ó <li...@hotmail.com> wrote:
Hi,
All.
A month ago I set up the juddi server,until now I can't visit it with 
uddi4j. :( 
Help me!!!
I run BusinessEntityExample.class with Configurator.class and 
samples.prop,then exeception happen:
___________________________________________________________________________________________

E:\lb\workfolder\uddi\entity02>java BusinessEntityExample

*********** Running BusinessEntityExample ***********

Get authtoken
TransportFactory: Using transport 
name:org.uddi4j.transport.ApacheAxisTransport

Request message:
xmlns="urn:uddi-org:ap
i_v2"/>

Response message:


at org.uddi4j.UDDIElement.(Unknown Source)
at org.uddi4j.response.AuthToken.(Unknown Source)
at org.uddi4j.client.UDDIProxy.get_authToken(Unknown Source)
at BusinessEntityExample.run(BusinessEntityExample.java:76)
at BusinessEntityExample.main(BusinessEntityExample.java:54)
--------------------------------------------------------------------------------------------

The juddi.log show:
_________________________________________________________________________________

2004-05-30 09:18:28,669 [http8080-Processor24] ERROR 
org.juddi.datastore.jdbc.JDBCDataStoreFactory - Exception occured while 
attempting to aquire a JDBC connection from the connection pool: Cannot 
create JDBC driver of class '' for connect URL 'null'

2004-05-30 09:18:28,669 [http8080-Processor24] ERROR 
org.juddi.function.GetAuthTokenFunction - java.lang.NullPointerException
_____________________________________________________________________________________



My juddi happy page showed as following,I can't find anything wrong:
____________________________________________________________________________________________

Happy jUDDI!

juddi.properties+Found in: 
D:\Tomcat\webapps\juddi\WEB-INF\classes\juddi.properties

jUDDI DataSource Check
+ Got a JNDI Context!
+ Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
+ Got a JDBC Connection!
+ SELECT COUNT(*) FROM PUBLISHER = 1

jUDDI Properties
juddi.adminEmailAddress: admin@juddi.org
juddi.adminURL: http://localhost:8080/juddi/admin
juddi.authFactory: org.juddi.auth.simple.SimpleAuthenticatorFactory
juddi.dataStoreFactory: org.juddi.datastore.jdbc.JDBCDataStoreFactory
juddi.inquiryURL: http://localhost:8080/juddi/inquiry
juddi.jdbcDriver: com.mysql.jdbc.Driver
juddi.jdbcPassword: juddi
juddi.jdbcURL: jdbc:mysql://localhost/juddi
juddi.jdbcUser: juddi
juddi.maxMessageSize: 2097152
juddi.maxNameElementsAllowed: 5
juddi.maxNameLength: 255
juddi.operatorName: jUDDI.org
juddi.operatorSiteURL: http://localhost:8080/juddi
juddi.publishURL: http://localhost:8080/juddi/publish
juddi.transportClass: org.juddi.transport.axis.AxisTransport
juddi.useConnectionPool: false
juddi.uuidgenFactory: org.juddi.uuidgen.jvm.JavaUUIDGenFactory
-------------------------------------------------------------------------------------------

The juddi database table "publisher" has a record ('juddi', 'Juddi user', 
'false').

My classpath is set as:
____________________________________________________________________________________________

.;D:\j2sdk1.4.2_04\jre\lib\rt.jar;D:\j2sdk1.4.2_04\lib\dt.jar;
D:\j2sdk1.4.2_04\lib\tools.jar;D:\MssqlJdbc\lib\msbase.jar;
D:\MssqlJdbc\lib\msutil.jar;D:\MssqlJdbc\lib\mssqlserver.jar;D:\lib\uddi4j.jar;

D:\lib\activation.jar;D:\lib\axis.jar;D:\lib\castor-0.9.3.9-xml.jar;
D:\lib\commons-logging.jar;D:\lib\dom.jar;D:\lib\jaas.jar;D:\lib\jaxp-api.jar;

D:\lib\jaxr-api.jar;D:\lib\jaxr-impl.jar;D:\lib\jaxrpc-api.jar;
D:\lib\jaxrpc-impl.jar;D:\lib\jaxrpc-sec.jar;D:\lib\jaxrpc-spi.jar;
D:\lib\jsse.jar;D:\lib\mail.jar;D:\lib\saaj-api.jar;D:\lib\saaj-impl.jar;
D:\lib\sax.jar;D:\lib\soap.jar;D:\lib\wsi-client.jar;D:\lib\xalan.jar;
D:\lib\xercesImpl.jar;D:\lib\xmlsec.jar;D:\lib\xsltc.jar;D:\lib\juddi.jar;
D:\lib\commons-discovery.jar;D:\lib\wsdl4j.jar;D:\lib\axis-ant.jar;D:\lib\jaxrpc.jar;

D:\lib\log4j-1.2.8.jar;D:\lib\saaj.jar;D:\lib\bsf.jar
--------------------------------------------------------------------------------------------



My samples.prop key values:
___________________________________________________________________________________________

inquiryURL = http://localhost:8080/juddi/inquiry 
publishURL = http://localhost:8080/juddi/publish
userid = juddi 
password = juddi
TransportClassName=org.uddi4j.transport.ApacheAxisTransport
logEnabled=true
handlerPackageName=com.sun.net.ssl.internal.www.protocol
securityClassName=com.sun.net.ssl.internal.ssl.Provider
businessName=Sample Business
serviceName=Sample Service
tmodelName=Sample TModel
sampleEntityName=S
assertionRelationship=peer-peer
--------------------------------------------------------------------------------------------


_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/ 

		
---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now