• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while connecting to webservice.

 
Akhil Pratap Singh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 259
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
MdFaisal Khan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic