Hi

We have two web application under webapps folder, WebApp1 and webApp2. There is 
separate context entry for each of them. Each of them connects to its own App Server 
through Java RMI. The difference is WebApp1 connects to its APP server over SSL(i.e 
secure rmi call) and the other one non SSL(i.e normal rmi call).
We have html link from web page of WebApp1 to WebApp2 login page. We use the same 
cookie name in both the application, which allows one time login to any of the two 
application and the other one logs in automatically when we go there.
For ssl communication we have used jssl and related packages.
Now, if we use WebApp2 alone there is no issue working with it. However if I login to 
WebApp1 and then click the link to go to WebApp2 it gives the following error. Cause 
of the error as you can see below is 'jssl.impl.PrematureEOFException: EOF reading 
record'

java.rmi.ConnectIOException: error during JRMP connection establishment; nested 
exception is:
      jssl.impl.PrematureEOFException: EOF reading record
java.rmi.ConnectIOException: error during JRMP connection establishment; nested 
exception is:
      jssl.impl.PrematureEOFException: EOF reading record
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
            .....................................................
      at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
      at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
      at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
      at java.lang.Thread.run(Thread.java:534)
Caused by: jssl.impl.PrematureEOFException: EOF reading record
      at jssl.internal.RecordInput.readSSLCiphertext(RecordInput.java:188)
      at jssl.internal.RecordInput.readSSLCompressed(RecordInput.java:128)
      at jssl.internal.RecordInput.receive(RecordInput.java:110)
      at jssl.internal.SSLClientProtocol.stateReceive(SSLClientProtocol.java:349)
      at jssl.internal.SSLClientProtocol.stateMachine(SSLClientProtocol.java:319)
      at jssl.internal.SSLClientProtocol.stateStep(SSLClientProtocol.java:143)
      at jssl.internal.SSLClientProtocol.authenticate(SSLClientProtocol.java:131)
      at jssl.internal.SSLProtocol.verifyStatus(SSLProtocol.java:181)
      at jssl.internal.SSLProtocol.getOutputStream(SSLProtocol.java:110)
      at jssl.JSSL.getOutputStream(JSSL.java:193)
      at jssl.JSSLSocket.getOutputStream(JSSLSocket.java:226)
      at sun.rmi.transport.tcp.TCPConnection.getOutputStream(TCPConnection.java:66)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:189)

The same web application is working on JRUN over IIS. Now that we are migrating the 
web part to to tomcat, we have this issue.

Where am I going wrong? Please advise

Thanks and Regards
Ishwara



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to