« Return to Thread: Won't work
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
« Return to Thread: Won't work
| Free embeddable forum powered by Nabble | Forum Help |