List Info

Thread: Re: Re: Re: Error while running SaveBusinessExample from uddi4j samples.




Re: Re: Re: Error while running SaveBusinessExample from uddi4j samples.
user name
2007-07-23 15:53:39
Then i don't know. I had similar problem before, but  i solve it by using tomcat 5.5, J2SE development kit 5 update 12, and MySQL for database.
go to the following link and try following its direction, that is what i did. i skip the Eclipse part.
Good luck


On Mon, 23 Jul 2007 15:57:28 -0300 juddi-userws.apache.org wrote:
Yes, is everything alright with the database and the juddi.

On 7/23/07, BO CHEN WU <psu.edu">bow5003psu.edu&gt; wrote:
did you install mySQL for the database?


On Mon, 23 Jul 2007 12:51:52 -0300 juddi-userws.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">juddi-userws.apache.org wrote:
Thanks for replying, but my tomcat is : apache-tomcat-5.5.23,
is there any problem? Thanks!
On 7/23/07, BO CHEN WU < bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu&gt; wrote:
make sure you have the right version of tomcat, juddi doesn't work for tomcat 6.


On Mon, 23 Jul 2007 11:25:53 -0300 juddi-userws.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">juddi-userws.apache.org wrote:
Hello! Can Anyone help me?
I'm having a trouble wjile running SaveBusinessExample, my juddihappy.jsp has no error an my configuration files are the following:

samples.prop
-------------------------------------------------------------------------------------------------
inquiryURL = http://localhost:8080/juddi/inquiry
publishURL = http://localhost:8080/juddi/publish
userid =juddi&nbsp; &nbsp;
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
---------------------------------------------------------------------------------------------

juddi-users.xml
--------------------------------------------------------------------------------------------
<?xml version=&quot;1.0&quot; encoding="UTF-8"?&gt;
<juddi-users>&nbsp;
  <user userid=&quot;juddi&quot; password="juddi" />
</juddi-users>
-------------------------------------------------------------------------------------------

juddi.properties
-------------------------------------------------------------------------------------------
juddi.operatorName = jUDDI.org
juddi.i18n.languageCode = pt
juddi.i18n.countryCode = BR
juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
juddi.operatorEmailAddress = pronemarkyahoo.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pronemarkyahoo.com.br
juddi.maxNameLength=255
juddi.maxNameElementsAllowed=5
juddi.maxBusinessEntitiesPerUser=25
juddi.maxBusinessServicesPerBusiness=20
juddi.maxBindingTemplatesPerService=10
juddi.maxTModelsPerUser=100
juddi.maxRowsLimit=10
juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
juddi.dataSource=java:comp/env/jdbc/juddiDB
juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
juddi.validator=org.apache.juddi.validator.DefaultValidator
juddi.proxy.adminURL = http://localhost:8080/juddi/admin
juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
juddi.proxy.publishURL = http://localhost:8080/juddi/publish
juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
-----------------------------------------------------------------------------------------------------

and the exception I'm getting is:

*********** Running SaveBusinessExample ***********
Configuration properties set: {org.uddi4j.TransportClassName=org.uddi4j.transport.ApacheAxisTransport, org.uddi4j.logEnabled=true }

Get authtoken

Request message:
&lt;uddiv2:get_authToken cred=";" generic=&quot;2.0&quot; userID="juddi " xmlns:uddiv2="urn:uddi-org:api_v2";/>

Response message:
<authToken generic=&quot;2.0&quot; operator=&quot;jUDDI.org" xmlns=";"><authInfo>authToken:14D63220-3924-11DC-A525-A4B741105F6B</authInfo&gt;</authToken>
java.lang.NullPointerException
 &nbsp; &nbsp; &nbsp;  at org.uddi4j.UDDIException.isValidElement(UDDIException.java:111)
 &nbsp; &nbsp;   ; at org.uddi4j.UDDIElement.<init>(UDDIElement.java:38)
&nbsp; &nbsp; &nbsp; &nbsp; at org.uddi4j.response.AuthToken.<init&gt;(AuthToken.java :85)
 &nbsp; &nbsp; &nbsp;  at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
 &nbsp; &nbsp; &nbsp;  at org.SaveBusinessExample.run(SaveBusinessExample.java:54)
&nbsp; &nbsp; &nbsp; &nbsp; at org.SaveBusinessExample.main(SaveBusinessExample.java:34)

Thanks!


Thank You For Your Time.





Bo Chen Wu
Computer Engineering & Mathematic
Pennsylvania State University
bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu
(646)-861-9905



Thank You For Your Time.





Bo Chen Wu
Computer Engineering & Mathematic
Pennsylvania State University
bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu
(646)-861-9905



Thank You For Your Time.





Bo Chen Wu
Computer Engineering & Mathematic
Pennsylvania State University
bow5003psu.edu
(646)-861-9905
Re: Re: Re: Error while running SaveBusinessExample from uddi4j samples.
user name
2007-07-24 07:46:18
Thanks!

On 7/23/07, BO CHEN WU < bow5003psu.edu">bow5003psu.edu&gt; wrote:
Then i don't know. I had similar problem before, but  i solve it by using tomcat 5.5, J2SE development kit 5 update 12, and MySQL for database.
go to the following link and try following its direction, that is what i did. i skip the Eclipse part.
Good luck



On Mon, 23 Jul 2007 15:57:28 -0300 juddi-userws.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">juddi-userws.apache.org wrote:
Yes, is everything alright with the database and the juddi.

On 7/23/07, BO CHEN WU < bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> bow5003psu.edu&gt; wrote:
did you install mySQL for the database?


On Mon, 23 Jul 2007 12:51:52 -0300 juddi-userws.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">juddi-userws.apache.org wrote:
Thanks for replying, but my tomcat is : apache-tomcat-5.5.23,
is there any problem? Thanks!
On 7/23/07, BO CHEN WU < bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu&gt; wrote:
make sure you have the right version of tomcat, juddi doesn't work for tomcat 6.


On Mon, 23 Jul 2007 11:25:53 -0300 juddi-userws.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">juddi-userws.apache.org wrote:
Hello! Can Anyone help me?
I'm having a trouble wjile running SaveBusinessExample, my juddihappy.jsp has no error an my configuration files are the following:

samples.prop
-------------------------------------------------------------------------------------------------
inquiryURL = http://localhost:8080/juddi/inquiry
publishURL = http://localhost:8080/juddi/publish
userid =juddi&nbsp; &nbsp;
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
---------------------------------------------------------------------------------------------

juddi-users.xml
--------------------------------------------------------------------------------------------
<?xml version=&quot;1.0&quot; encoding="UTF-8"?&gt;
<juddi-users&gt; 
  <user userid=&quot;juddi&quot; password="juddi" />
</juddi-users>
-------------------------------------------------------------------------------------------

juddi.properties
-------------------------------------------------------------------------------------------
juddi.operatorName = jUDDI.org
juddi.i18n.languageCode = pt
juddi.i18n.countryCode = BR
juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
juddi.operatorEmailAddress = pronemarkyahoo.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pronemarkyahoo.com.br
juddi.maxNameLength=255
juddi.maxNameElementsAllowed=5
juddi.maxBusinessEntitiesPerUser=25
juddi.maxBusinessServicesPerBusiness=20
juddi.maxBindingTemplatesPerService=10
juddi.maxTModelsPerUser=100
juddi.maxRowsLimit=10
juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
juddi.dataSource=java:comp/env/jdbc/juddiDB
juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
juddi.validator=org.apache.juddi.validator.DefaultValidator
juddi.proxy.adminURL = http://localhost:8080/juddi/admin
juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
juddi.proxy.publishURL = http://localhost:8080/juddi/publish
juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
-----------------------------------------------------------------------------------------------------

and the exception I'm getting is:

*********** Running SaveBusinessExample ***********
Configuration properties set: {org.uddi4j.TransportClassName=org.uddi4j.transport.ApacheAxisTransport, org.uddi4j.logEnabled=true }

Get authtoken

Request message:
&lt;uddiv2:get_authToken cred=";" generic=&quot;2.0&quot; userID="juddi " xmlns:uddiv2="urn:uddi-org:api_v2";/>

Response message:
<authToken generic=&quot;2.0&quot; operator=&quot;jUDDI.org" xmlns=";"><authInfo>authToken:14D63220-3924-11DC-A525-A4B741105F6B</authInfo&gt;</authToken>
java.lang.NullPointerException
&nbsp;   ; &nbsp;  at org.uddi4j.UDDIException.isValidElement(UDDIException.java:111)
 &nbsp; &nbsp;   ; at org.uddi4j.UDDIElement.<init>(UDDIElement.java:38)
&nbsp; &nbsp; &nbsp; &nbsp; at org.uddi4j.response.AuthToken.<init&gt;(AuthToken.java :85)
 &nbsp; &nbsp;   ; at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
 &nbsp; &nbsp; &nbsp;  at org.SaveBusinessExample.run(SaveBusinessExample.java:54)
&nbsp; &nbsp; &nbsp; &nbsp; at org.SaveBusinessExample.main(SaveBusinessExample.java:34)

Thanks!


Thank You For Your Time.





Bo Chen Wu
Computer Engineering & Mathematic
Pennsylvania State University
bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu
(646)-861-9905



Thank You For Your Time.





Bo Chen Wu
Computer Engineering & Mathematic
Pennsylvania State University
bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu
(646)-861-9905



Thank You For Your Time.





Bo Chen Wu
Computer Engineering & Mathematic
Pennsylvania State University
bow5003psu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bow5003psu.edu
(646)-861-9905

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )