1

Web 服务 - 服务在 WAS v7 上。客户端在 JBoss v5 上。我们最近升级到了 JBossWS 3.3.1。从那时起,客户端无法与 WAS 上的服务进行通信。

没有对代码进行任何更改,我们得到以下异常

2012-01-19 14:42:15,317 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS]->error@419 (ajp-cwsappdev01%2F205.132.14.29-8109-1) 
SOAP request exception java.io.IOException: 
Error initializing socket factory SSL context: Can not find truststore url.

向客户端添加了以下代码行:

((BindingProvider) impl).getRequestContext().put(StubExt.PROPERTY_KEY_STORE, "/usr/local/jee/.../cacerts"));
((BindingProvider) impl).getRequestContext().put(StubExt.PROPERTY_KEY_STORE_PASSWORD, "*****"));
((BindingProvider) impl).getRequestContext().put(StubExt.PROPERTY_CHUNKED_ENCODING_SIZE, "0");

更改代码后,出现以下错误:

Caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - Not Found

有任何想法吗?我添加了分块编码属性,因为 WAS 不正确支持它。JBoss 和 WebSphere App Server 之间还有其他不兼容吗?

提前感谢您的帮助!

================== 我做了一些代码更改,现在收到以下消息。我使用 JBossWS-Native 3.3.1 和 JAX-WS 2.1 版本。有谁知道如何在 JBoss 中禁用分块编码?文件 standard-jaxws-client-config.xml 移动到 JBoss 的核心 JARS 之一中 - 更新它需要我“解压缩” - 编辑文件 - 并再次 jar。

2012-01-24 10:35:57,930 WARN  [org.jboss.ws.core.client.transport.NettyClient]->warn@352 (ajp-cwsappdev01%2F205.132.14.29-8109-4) Can't set chunk size from call properties, illegal value provided!
2012-01-24 10:35:58,001 ERROR [org.jboss.ws.core.CommonClient]->error@419 (ajp-cwsappdev01%2F205.132.14.29-8109-4) Exception caught while (preparing for) performing the invocation: 
java.io.IOException: Could not transmit message
at org.jboss.ws.core.client.transport.NettyClient.invokeInternal(NettyClient.java:229)
at org.jboss.ws.core.client.transport.NettyClient.invoke(NettyClient.java:121)
at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:150)
at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:69)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:369)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:181)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:161)
at $Proxy796.getCWSAccount(Unknown Source)
4

1 回答 1

0

原因:尽管客户端在端点 URL 中将端口指定为 8004;当请求到达服务时,它进入端口 443。我们将服务移动/“附加”到端口 443,并且 Web 服务器能够将其映射到正确的应用程序。将需要弄清楚端点从 8004 更改为 443 的原因/位置。

于 2012-01-30T21:59:15.527 回答