aspose file tools*
The moose likes BEA/Weblogic and the fly likes Error while connecting to webservice. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Error while connecting to webservice." Watch "Error while connecting to webservice." New topic
Author

Error while connecting to webservice.

Akhil Pratap Singh
Greenhorn

Joined: Feb 11, 2014
Posts: 7
My application needs to connect to a webservice to do some task. This thing was working fine when running this application on Tomcat server. But since i deployed this application on weblogic server 12.1.2.0.0 running on jdk 1.7.0_15, I am getting following error :
<Jun 2, 2014 3:00:57 PM IST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Oracle\Middleware3\Oracle_Home\user_projects\domains\wl_server\security\DemoIdentity.jks.>
<Jun 2, 2014 3:00:59 PM IST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~3\ORACLE~1\wlserver\server\lib\DemoTrust.jks.>
<Jun 2, 2014 3:00:59 PM IST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~3\ORACLE~1\ORACLE~1\jdk\jre\lib\security\cacerts.>
<Jun 2, 2014 3:01:05 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@197099475[app:com.oracle_codesign_war_2.3.0.0 module:codesign-2.3.0.0 path:null spec-version:3.0]] Servlet failed with an Exception
javax.xml.ws.WebServiceException: java.io.IOException: Connection closed, EOF detected
at com.sun.xml.ws.transport.http.client.HttpClientTransport.readResponseCodeAndMessage(HttpClientTransport.java:210)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:239)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:230)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:143)
at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:110)
Truncated. see log file for complete stacktrace
Caused By: java.io.IOException: Connection closed, EOF detected
at weblogic.socket.JSSEFilterImpl.handleUnwrapResults(JSSEFilterImpl.java:637)
at weblogic.socket.JSSEFilterImpl.unwrapAndHandleResults(JSSEFilterImpljava:515)
at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:96)
at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:75)
at weblogic.socket.JSSEFilterImpl.write(JSSEFilterImpl.java:448)
Truncated. see log file for complete stacktrace

This application did not require any certificate, while connecting to webservice, when running on Tomcat Server. Although it does require certificate when connecting through web browser.
Can anybody tell me why this error is coming and please suggest the remedy for the same.
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 176

If it is running in Tomcat correctly, then in WLS needs to use the same certifcated from Tomcat.
In the log we can see that Demo JKS is being used:



Probably you need to modify WLS config, or your code to load the proper keystore at runtime.

http://devwebcl.blogspot.com/
MdFaisal Khan
Greenhorn

Joined: Mar 02, 2011
Posts: 16
or you can pass the keystore from java options.. enable SSL and Webservices debug on Weblogic server and share the logs.

Thanks,
Faisal
http://www.weblogic-wonders.com
C Bell
Greenhorn

Joined: Jun 29, 2009
Posts: 7
I had this same issue. It requires you to specify "-Dweblogic.security.SSL.protocolVersion=SSL3" in your start-up script to define your SSL protocol.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while connecting to webservice.