Mantis - Resin
Viewing Issue Advanced Details
4573 major always 05-25-11 05:06 06-20-11 14:37
cyttesen  
ferg  
normal  
closed 4.0.18  
fixed  
none    
none 4.0.20  
0004573: Unable to use JSF libraries from WEB-INF/lib - ClassNotFoundException: com.sun.faces.spi.DiscoverableInjectionProvider
I want to use the JSF libraries provided as part of the webapp itself and not use the JSF libraries delivered as part of Resin (resin/lib/jsf*.jar).

I've tried to remove the jsf*.jar from resin/lib but my application then fails with:

java.lang.ClassNotFoundException: com.sun.faces.spi.DiscoverableInjectionProvider

The log lines after adding the code from http://wiki.caucho.com/ClassLoader [^] is attached to this report.

Why does Resin give me the ClassNotFound exception when looking at the log:

...
'EnvironmentClassLoader[web-app:production/webapp/default/ROOT]'
...
...businessconfiguration\WebContent\WEB-INF\lib\jsf-api.jar
...businessconfiguration\WebContent\WEB-INF\lib\jsf-impl.jar
...

is displayed just prior to throwing the exception.

Copying the JSF libraries from my webapp to resin/lib it works fine - but that is not an option as I have web applications using different JSF versions.

Regards,
Christian
 
 resin.log [^] (35,265 bytes) 05-25-11 05:06
 resin.xml [^] (1,645 bytes) 05-25-11 05:30

Notes
(0005275)
cyttesen   
05-25-11 06:26   
Forgot to mention that my application is using Rich faces 3.3.3 final.

JBoss seems to support a web.xml feature:
org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL

http://stackoverflow.com/questions/5815623/jsf-2-issues-in-application-servers [^]

(0005332)
ferg   
06-20-11 14:37   
env/00i2