• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Error deploying WAR with XFire in WAS 6.1

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi:

I'm deploying a application in Websphere 6.1, the application uses XFire to create connections to endpoints. Those endpoints have certificates that I previously imported on browsers.

My application has to verify connections to DB, and the Webservice, and has a listener that runs a TimerTask each minute.

I tested my application on Eclipse running it with Tomcat 6.0 and works fine. But if I deploy on Websphere, the connection to the endpoint to request for information doesn't work.

The log is:

22/04/09 17:14:11:982 COT] 00000080 SystemErr org.codehaus.xfire.fault.XFireFault: Couldn't send message.
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.client.Client.invoke(Client.java:336)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.client.XFireProxy.handleequest(XFireProxy.java:77)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at $Proxy54.notificacionOperacionesqstOp(Unknown Source)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at com.Service0002.Service0002Client.<init>(Service0002Client.java:173)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at com.util.Temporizador$1.run(Temporizador.java:79)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at java.util.TimerThread.mainLoop(Timer.java:527)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at java.util.TimerThread.run(Timer.java:477)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr Caused by: org.codehaus.xfire.XFireException: Couldn't send message.
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy54.notificacionOperacionesqstOp(Unknown Source)
at com.Service0002.Service0002Client.<init>(Service0002Client.java:173)
at com.util.Temporizador$1.run(Temporizador.java:79)
at java.util.TimerThread.mainLoop(Timer.java:527)
at java.util.TimerThread.run(Timer.java:477)
Caused by: java.net.SocketException
at java.lang.Throwable.<init>(Throwable.java:57)
at java.lang.Throwable.<init>(Throwable.java:68)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:4)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
... 13 more

[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
[22/04/09 17:14:11:982 COT] 00000080 SystemErr ... 11 more
[22/04/09 17:14:11:982 COT] 00000080 SystemErr Caused by: java.net.SocketException
at java.lang.Throwable.<init>(Throwable.java:57)
at java.lang.Throwable.<init>(Throwable.java:68)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:4)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy54.notificacionOperacionesqstOp(Unknown Source)
at com.Service0002.Service0002Client.<init>(Service0002Client.java:173)
at com.util.Temporizador$1.run(Temporizador.java:79)
at java.util.TimerThread.mainLoop(Timer.java:527)
at java.util.TimerThread.run(Timer.java:4

Can somebody help me, please???
 
Marshal
Posts: 27590
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To make a socket connection in Websphere, you must turn on Java 2 security in the configuration and include a policy file in your application which allows socket connections. Did you do that?
 
juan diego navarre
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A policy file in my app? My app contains a client of a webservice that uses SSL, that service uses a certificate for the connection with the endpoint, but you are saying me about the Java 2 configuration, where i do that? in security?
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic