• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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???
 
Sheriff
Posts: 28326
96
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?
 
No, tomorrow we rule the world! With this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic