Mantis - Resin
Viewing Issue Advanced Details
4676 minor always 07-21-11 03:12 07-22-11 16:52
cyttesen  
ferg  
normal  
closed  
fixed  
none    
none 4.0.21  
0004676: Reopening 0004573: Unable to use JSF libraries from WEB-INF/lib - ClassNotFoundException: com.sun.faces.spi.DiscoverableInjectio
I cannot get Resin 4.0.20 working with my own JSF library.

Resin lib:
activation.jar
activation.LICENSE
eclipselink.jar
javaee-16.jar
javamail-14.LICENSE
javamail-141.jar
jsf-api.jar
jsf-impl.jar
jsf.LICENSE
pro.jar
resin.jar
validation-api-1.0.0.GA.jar
webservices-api.jar
webservices-extra-api.jar
webservices.LICENSE
webutil.jar

WAR - WEB-INF/lib:
commons-beanutils-1.8.0.jar
commons-collections-3.2.1.jar
commons-digester-1.8.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

Scenario 1:
===========
Copying war archive to resin/webapps
Starting resin.

See log output resin_1.log
([11-07-21 11:27:06.105] {http://*:8080-1} [^] javax.servlet.ServletException: Illegal attempt to set ViewHandler after a response has been rendered.)


Scenario 2:
===========
Stopping resin
Removing resin lib jsf*.jar
Removing expanded war directory from webapps
Starting resin

See log output resin_2.log
([11-07-21 11:30:22.489] {main} java.lang.ClassNotFoundException: com.sun.faces.spi.DiscoverableInjectionProvider)


Scenario 3:
===========
Keeping expanded webapps/war-directory
Inserting in resin.xml <server-default>:
  <jvm-classpath>D:/download/resin-pro-4.0.20/webapps/mdc/WEB-INF/lib/jsf-api.jar</jvm-classpath>
  <jvm-classpath>D:/download/resin-pro-4.0.20/webapps/mdc/WEB-INF/lib/jsf-impl.jar</jvm-classpath>
Starting resin.

Application now runs fine.

Regards
Christian
 resin_logs.zip [^] (8,822 bytes) 07-21-11 03:12

Notes
(0005395)
ferg   
07-22-11 16:52   
META-INF/services/com.sun.faces.spi.injectionprovider also needs aliasing in WebApp