You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by amidrunk <am...@hotmail.com> on 2007/02/17 18:40:30 UTC

Won't work

Hi,

I've been struggeling for a while now to get juddi to work, but it simply
won't. The validation works as expected, but juddi crashes on _every_
message sent to it. I've tested the following configurations:

* Windows XP + MySQL 5.0 + Apache Tomcat 5.5.20 + Java 1.5.0_09
* Windows XP + MySQL 4.1 + Apache Tomcat 5.5.20 + Java 1.5.0_09
* Windows XP + Firebird 2.0 + Apache Tomcat 5.5.20 + Java 1.5.0_09
* Windows Vista + MySQL 5.0 + Apache Tomcat 5.5.20 + Java 1.6.0-b105
(totally clean)

When validating, everything is ok. When I go to the console and invoke
"get_authToken" (or anything, for that matter) I get:

2007-02-17 18:26:08,764 [http-8080-Processor24] ERROR
org.apache.juddi.registry.
AbstractService  - com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl
cannot
 be cast to org.w3c.dom.Element
java.lang.ClassCastException:
com.sun.xml.internal.messaging.saaj.soap.impl.Text
Impl cannot be cast to org.w3c.dom.Element
        at
org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
:103)
....

And subsequently:
2007-02-17 18:26:08,787 [http-8080-Processor24] ERROR
org.apache.juddi.registry.
AbstractService  - A serious error has occured while assembling the SOAP
Fault.
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: No NamespaceURI, SOAP
req
uires faultcode content to be a QName
        at
com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(
FaultImpl.java:101)
        at
com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(
FaultImpl.java:89)
        at
org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
:317)

The message I'm sending is:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
      userID="jdoe" 
      cred=""/>
  </soapenv:Body>
</soapenv:Envelope>

The response is:
<?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Server</faultcode>
         <faultstring>Fault string, and possibly fault code, not
set</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The last setup I tested was from a newly installed computer, and I proceeded
like this:
* Installed MySQL 5.0 and setup the database using /juddi/sql/mysql/*.sql
* Installed Apache Tomcat 5.5 and inserted the following context:

<Context path="/juddi" docBase="E:\Tools\Java\JUDDI\webapp\juddi"
   debug="5" reloadable="true" crossContext="true">
   <Logger className="org.apache.catalina.logger.FileLogger" 
      prefix="localhost_juddiDB_log" suffix=".txt"timestamp="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>

How can I get around this?

Regards,
Anreas Nilsson
-- 
View this message in context: http://www.nabble.com/Won%27t-work-tf3245520.html#a9022055
Sent from the jUDDI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: Won't work

Posted by amidrunk <am...@hotmail.com>.
Wow, that actually did it... Just seconds before I gave up :)

Thanks a lot!

Regards,
Nille


faith wrote:
> 
> I've had the exact same problem when I tried to use juddi with java1.6,
> but everything was nice with java1.5.
> make sure your classpath points to java 1.5 
> 
> Hope this help
> 
> 
> 
> amidrunk wrote:
>> 
>> Hi,
>> 
>> I've been struggeling for a while now to get juddi to work, but it simply
>> won't. The validation works as expected, but juddi crashes on _every_
>> message sent to it. I've tested the following configurations:
>> 
>> * Windows XP + MySQL 5.0 + Apache Tomcat 5.5.20 + Java 1.5.0_09
>> * Windows XP + MySQL 4.1 + Apache Tomcat 5.5.20 + Java 1.5.0_09
>> * Windows XP + Firebird 2.0 + Apache Tomcat 5.5.20 + Java 1.5.0_09
>> * Windows Vista + MySQL 5.0 + Apache Tomcat 5.5.20 + Java 1.6.0-b105
>> (totally clean)
>> 
>> When validating, everything is ok. When I go to the console and invoke
>> "get_authToken" (or anything, for that matter) I get:
>> 
>> 2007-02-17 18:26:08,764 [http-8080-Processor24] ERROR
>> org.apache.juddi.registry.
>> AbstractService  - com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl
>> cannot
>>  be cast to org.w3c.dom.Element
>> java.lang.ClassCastException:
>> com.sun.xml.internal.messaging.saaj.soap.impl.Text
>> Impl cannot be cast to org.w3c.dom.Element
>>         at
>> org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
>> :103)
>> ....
>> 
>> And subsequently:
>> 2007-02-17 18:26:08,787 [http-8080-Processor24] ERROR
>> org.apache.juddi.registry.
>> AbstractService  - A serious error has occured while assembling the SOAP
>> Fault.
>> com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: No NamespaceURI,
>> SOAP req
>> uires faultcode content to be a QName
>>         at
>> com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(
>> FaultImpl.java:101)
>>         at
>> com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(
>> FaultImpl.java:89)
>>         at
>> org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
>> :317)
>> 
>> The message I'm sending is:
>> <?xml version="1.0" encoding="utf-8"?>
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>   <soapenv:Body>
>>     <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
>>       userID="jdoe" 
>>       cred=""/>
>>   </soapenv:Body>
>> </soapenv:Envelope>
>> 
>> The response is:
>> <?xml version="1.0" encoding="utf-8" ?>
>> <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
>>    <SOAP-ENV:Header/>
>>    <SOAP-ENV:Body>
>>       <SOAP-ENV:Fault>
>>          <faultcode>SOAP-ENV:Server</faultcode>
>>          <faultstring>Fault string, and possibly fault code, not
>> set</faultstring>
>>       </SOAP-ENV:Fault>
>>    </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>> 
>> The last setup I tested was from a newly installed computer, and I
>> proceeded like this:
>> * Installed MySQL 5.0 and setup the database using /juddi/sql/mysql/*.sql
>> * Installed Apache Tomcat 5.5 and inserted the following context:
>> 
>> <Context path="/juddi" docBase="E:\Tools\Java\JUDDI\webapp\juddi"
>>    debug="5" reloadable="true" crossContext="true">
>>    <Logger className="org.apache.catalina.logger.FileLogger" 
>>       prefix="localhost_juddiDB_log" suffix=".txt"timestamp="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>
>> 
>> How can I get around this?
>> 
>> Regards,
>> Anreas Nilsson
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Won%27t-work-tf3245520.html#a9024226
Sent from the jUDDI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: Won't work

Posted by faith <ci...@gmail.com>.
I've had the exact same problem when I tried to use juddi with java1.6, but
everything was nice with java1.5.
make sure your classpath points to java 1.5 

Hope this help



amidrunk wrote:
> 
> Hi,
> 
> I've been struggeling for a while now to get juddi to work, but it simply
> won't. The validation works as expected, but juddi crashes on _every_
> message sent to it. I've tested the following configurations:
> 
> * Windows XP + MySQL 5.0 + Apache Tomcat 5.5.20 + Java 1.5.0_09
> * Windows XP + MySQL 4.1 + Apache Tomcat 5.5.20 + Java 1.5.0_09
> * Windows XP + Firebird 2.0 + Apache Tomcat 5.5.20 + Java 1.5.0_09
> * Windows Vista + MySQL 5.0 + Apache Tomcat 5.5.20 + Java 1.6.0-b105
> (totally clean)
> 
> When validating, everything is ok. When I go to the console and invoke
> "get_authToken" (or anything, for that matter) I get:
> 
> 2007-02-17 18:26:08,764 [http-8080-Processor24] ERROR
> org.apache.juddi.registry.
> AbstractService  - com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl
> cannot
>  be cast to org.w3c.dom.Element
> java.lang.ClassCastException:
> com.sun.xml.internal.messaging.saaj.soap.impl.Text
> Impl cannot be cast to org.w3c.dom.Element
>         at
> org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
> :103)
> ....
> 
> And subsequently:
> 2007-02-17 18:26:08,787 [http-8080-Processor24] ERROR
> org.apache.juddi.registry.
> AbstractService  - A serious error has occured while assembling the SOAP
> Fault.
> com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: No NamespaceURI,
> SOAP req
> uires faultcode content to be a QName
>         at
> com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(
> FaultImpl.java:101)
>         at
> com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(
> FaultImpl.java:89)
>         at
> org.apache.juddi.registry.AbstractService.doPost(AbstractService.java
> :317)
> 
> The message I'm sending is:
> <?xml version="1.0" encoding="utf-8"?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Body>
>     <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
>       userID="jdoe" 
>       cred=""/>
>   </soapenv:Body>
> </soapenv:Envelope>
> 
> The response is:
> <?xml version="1.0" encoding="utf-8" ?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
>    <SOAP-ENV:Header/>
>    <SOAP-ENV:Body>
>       <SOAP-ENV:Fault>
>          <faultcode>SOAP-ENV:Server</faultcode>
>          <faultstring>Fault string, and possibly fault code, not
> set</faultstring>
>       </SOAP-ENV:Fault>
>    </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> The last setup I tested was from a newly installed computer, and I
> proceeded like this:
> * Installed MySQL 5.0 and setup the database using /juddi/sql/mysql/*.sql
> * Installed Apache Tomcat 5.5 and inserted the following context:
> 
> <Context path="/juddi" docBase="E:\Tools\Java\JUDDI\webapp\juddi"
>    debug="5" reloadable="true" crossContext="true">
>    <Logger className="org.apache.catalina.logger.FileLogger" 
>       prefix="localhost_juddiDB_log" suffix=".txt"timestamp="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>
> 
> How can I get around this?
> 
> Regards,
> Anreas Nilsson
> 

-- 
View this message in context: http://www.nabble.com/Won%27t-work-tf3245520.html#a9022507
Sent from the jUDDI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org