以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  还是uddi4j  juddi的问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=66539)


--  作者:bandaotiehe
--  发布时间:8/29/2008 9:46:00 AM

--  还是uddi4j  juddi的问题
大家好!
    我运行juddi自带的示例程序SaveBusinessExample的时候经常抱如下的错误。我的各种包已经很全了,而且数据库也能连上,http://localhost:8080/juddi/页面也没有红色能正常打开,用户名和密码也都正确,但是程序就是报错。看起来好像是返回的东西不能被正确的解码,有谁帮我分析下啊 ,已经困扰我好几天了!

    先谢谢大家了啊
*********** Running SaveBusinessExample ***********

Get authtoken
org.uddi4j.transport.TransportException: Unsupported response content type "text/html;charset=GB2312", must be: "text/xml". Response was:
<html><head><title>Apache Tomcat/5.0.27 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/publisher</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/juddi/publisher</u></p><p><b>description</b> <u>The requested resource (/juddi/publisher) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0.27</h3></body></html>
 at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:88)
 at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
 at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
 at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
 at com.dareway.SaveBusinessExample.run(SaveBusinessExample.java:75)
 at com.dareway.SaveBusinessExample.main(SaveBusinessExample.java:50)

Nested exception:
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html;charset=GB2312", must be: "text/xml". Response was:
<html><head><title>Apache Tomcat/5.0.27 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/publisher</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/juddi/publisher</u></p><p><b>description</b> <u>The requested resource (/juddi/publisher) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0.27</h3></body></html>]
 at org.apache.soap.rpc.Call.getEnvelopeString(Unknown Source)
 at org.apache.soap.messaging.Message.receiveEnvelope(Unknown Source)
 at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:79)
 at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
 at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
 at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
 at com.dareway.SaveBusinessExample.run(SaveBusinessExample.java:75)
 at com.dareway.SaveBusinessExample.main(SaveBusinessExample.java:50)


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms