this is an extract from document we made to resolve this issues 
hope it helps 


Purpose Run Jetspeed on Clustering configuration and make sure it is working, but some 
technical problems was found and solved  
Affected Components     Jetspeed-1.4-b3, turbine-2.2    
Solution Criteria       
1. Check that all turbine & Jetspeed objects inserted into session scope are 
serializable 
On the way most of the calls to deprecated APIs like (Session.getValue(), 
Session.putValue(), Session.removeValue() are replaced with the correspondent 


\java\org\apache\turbine\modules\actions\AccessController.java
\ java\org\apache\turbine\services\rundata\DefaultTurbineRunData.java
 java\org\apache\turbine\Turbine.java
\java\org\apache\turbine\modules\actions\LogoutUser.java
\java\org\apache\turbine\services\rundata\DefaultTurbineRunData.java
\java\org\apache\turbine\services\velocity\TurbineVelocityService.java
\java\org\apache\jetspeed\services\statemanager\JetspeedHttpStateManagerService.java 
"Make class StateEntry Serializable        "


-----Original Message-----
From: Garrett James [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:17 PM
To: [EMAIL PROTECTED]
Subject: Jetspeed and Serializable configuration


I am using Jetspeed 1.4 in conjunction with an Oracle9iAS Application Server
and need to have it setup as part of a cluster of app servers.  One of the
requirements for Oracle9iAs is that all objects stored/retrieved from the
HttpSession must be Serializable.  When I attempt to use Jetspeed in a
clustered environment I get error messages back from the app server stating
that the Session Objects in Jetspeed are not Serializable.  Here is the
stack trace I receive:

[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/html/Home.vm: Invocation of method 'setMode' in  class
org.apache.jetspeed.services.rundata.DefaultJetspeedRunData threw exception
class java.lang.IllegalArgumentException : Only java.io.Serializable,
javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound to a
session in a distributable web-application, not:
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
[EMAIL PROTECTED] (class
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
ateEntry)
[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/ShowError: Unable to find resource 'screens/ShowError'
[29 Jan 2004 07:36:59 ERROR] -
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'screens/ShowError'
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
ceManagerImpl.java:501)
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
eManagerImpl.java:384)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:814)
        at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:355)
        at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:482)
        at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)

Has anyone encountered this before?  Is there any workaround in Jetspeed to
make this work.  Would using the JSP implementation work instead of using
Velocity?  Any help you could give is greatly appreciated.

Thanks

Jim Garrett


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


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

Reply via email to