Mantis - Resin
Viewing Issue Advanced Details
5416 minor always 04-05-13 04:53 05-10-13 11:35
cyttesen  
ferg  
normal  
closed 4.0.35  
fixed  
none    
none 4.0.37  
0005416: JSF NoClassDefFoundError while loading com.caucho.server.webbeans.ConversationJsfViewHandler
Referencing: 0004746 Reopening 0004676: javax.servlet.ServletException: Illegal attempt to set ViewHandler after a response has been rendered.

Due to 0004746 we are currently deleting lib/javax.faces-2.1.15.jar as it causes all of our JSF web applications to fail during requests with:

{resin-port-8189-35}javax.servlet.ServletException: Illegal attempt to set ViewHandler after a response has been rendered.

After upgrading from 4.0.33 to 4.0.35 the following are logged (due to the removal of javax.faces-2.1.15.jar from resin/lib) for every JSF app:

[2013/04/05 10:52:31.172] {main}java.lang.NoClassDefFoundError: javax/faces/application/ViewHandlerWrapper
 while loading com.caucho.server.webbeans.ConversationJsfViewHandler (in SystemClassLoader[system,NEW])
[2013/04/05 10:52:31.173] {main}java.lang.NoClassDefFoundError: javax/faces/application/ViewHandlerWrapper
 while loading com.caucho.server.webbeans.ConversationJsfViewHandler in SystemClassLoader[system,NEW]
 which exists in jar:(/opt/dcp/IMS-WebServer/6.0.3.0/lib/resin.jar)/com/caucho/server/webbeans/ConversationJsfViewHandler.class
 check for missing dependencies

Including the javax.faces-2.1.15.jar file the lines are not logged but then our applications starts to fail according to 0004746 again.

I still don't understand ferg's note on 0004676: Updated mojarra implementation in distribution. This doesn't appear to be a Resin-specific issue. Instead it looks like a bundling issue.

Our JSF web applications are bundled with required libraries including its own JSF libraries. Jar files under WEB-INF/lib:
- commons-beanutils-1.8.0.jar
- commons-collections-3.2.1.jar
- commons-digester-1.8.jar
- commons-lang3-3.1.jar
- commons-logging-1.1.1.jar
* delegator.jar
* imsasclient.jar
* IMSBusinessComponentsClient.jar
- jbossall-client.jar
- jsf-api.jar
- jsf-facelets.jar
- jsf-impl.jar
- log4j.jar
* MdcBusinessClient.jar
- richfaces-api-3.3.3.Final.jar
- richfaces-impl-jsf2-3.3.3.Final.jar
- richfaces-ui-3.3.3.Final.jar

* private code

Resin 4.0.35 seems to work OK with the class loading errors being logged - however the lines make "noise" in the log files.

- I'm curious to know why ferg think its a bundling issue and not a Resin issue in 0004746
- Can I disable Resins JSF logic in a different way than removing the javax.faces-2.1.15.jar
- Any other ideas? - I would like to avoid removing the javax.faces-2.1.15.jar from the distribution

Regards,
Christian

Notes
(0006249)
ferg   
05-10-13 11:35   
Classloader logging is at incorrect level in this case. Should be "finer".