Session Replication on Sun Web Server 7.0 U1

Hi

Im having a problem with the latest build of Sun Web Server.

Its running on

- Solaris 10

- Web Server 7.0 u1.

- JDK 1.6.0_02

Following the standard example of reverse proxy and 4 cluster nodes with session replication

I get the following message regardless of the configuration settings provided.

[23/Jul/2007:11:30:51] fine ( 6151): WEB7010: Resource Manager has been successfully initialized.

[23/Jul/2007:11:30:51] finer ( 6151): initializeServerLogger: javax.enterprise.system.container.web.replication com.sun.webserver.logging.enterprise.system.container.web.replication.LogString s null

[23/Jul/2007:11:30:51] finer ( 6151): Logger init: Name=[javax.enterprise.system.container.web.replication], Level=[null], Parent=[javax.enterprise.system.container.web], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.container.web.repli cation.LogStrings]

[23/Jul/2007:11:30:51] finest ( 6151): ****** REPLICATION TRACE:replication.cipher used : AES/CBC/PKCS5Padding

[23/Jul/2007:11:30:53] fine ( 6151): REPL0002: Initializing Replication Service

[23/Jul/2007:11:30:53] failure ( 6151): CORE5071: An error occured during initialization

[23/Jul/2007:11:30:53] fine ( 6151): CORE5071: An error occured during initialization

com.sun.appserv.server.ServerLifecycleException: REPL0013: There were errors validating Session Replication configuration

at com.sun.web.replication.lifecycle.ServerLifecycleListener.onInitialization(Serv erLifecycleListener.java:309)

at com.sun.webserver.init.J2EERunner.init(J2EERunner.java:618)

at com.sun.webserver.init.J2EERunner.confPreInit(J2EERunner.java:209)

my config is:

wadm> get-session-replication-prop --config=mycfg

port=1099

enabled=true

encrypted=true

protocol=JRMP

cookie-name=SESSIONCOOKIE

startup-discovery-timeout=10

replica-discovery-max-hops=1

cipher=AES/CBC/PKCS5Padding

getAttribute-triggers-replication=false

key=LTM2ODIyOTMwMDA1NDgwNDcxNDI=

async=false

Any ideas?

[2163 byte] By [finbarroa] at [2007-11-27 11:24:07]
# 1

Dear finbarro,

How is the behaviour otherwise? What is the serverlog in INFO mode revealing.

b00m3ra at 2007-7-29 15:56:16 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Hi, it all works fine otherwise.

For the webapp, I am using a sample struts app with modified sun-web.xml to support the replicated session manager.

When I disable session replication the server starts up immediately.

Very odd.

finbarroa at 2007-7-29 15:56:16 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

Could you provide the whole error log in INFO log level, from the start of the server to the final message?

I think there is something missing in the logs that might shed clues on what might be wrong in the configuration

nseguraa at 2007-7-29 15:56:16 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

hold everything tracy jones.

It would help if each of the web server containers could actually resolve the ip address of each of the other named hosts in the cluster.

Genius on my part, sorry for the giant waste of time.

Log file wasnt amazingly helpful, but hey, we live and learn.

So , now , I have the web servers up and running, they connect, the works, but after a while, during what I suspect is the first replication attempt I get:

service-j2ee reports: REPL0070: Received Transport Exception [Error unmarshaling return header; nested exception is:

java.io.IOException: REPL0057: Illegal block size]

java.io.IOException: REPL0057: Illegal block size

at com.sun.web.replication.transport.rmi.encryption.LWSFCipherInputStream.read(LWS FCipherInputStream.java:92)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

at java.io.FilterInputStream.read(FilterInputStream.java:66)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:517)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790 )

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 885)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

at java.lang.Thread.run(Thread.java:619)

Update: when I turn encryption off, the message goes away, but now Im getting some very odd out of sequence errors when fetching static content!

Message was edited by:

finbarro

finbarroa at 2007-7-29 15:56:16 > top of Java-index,Web & Directory Servers,Web Servers...