Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004573 [Resin] major always 05-25-11 05:06 06-20-11 14:37
Reporter cyttesen View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.20 Product Version 4.0.18
  Product Build
Summary 0004573: Unable to use JSF libraries from WEB-INF/lib - ClassNotFoundException: com.sun.faces.spi.DiscoverableInjectionProvider
Description 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
 
Steps To Reproduce
Additional Information
Attached Files  resin.log [^] (35,265 bytes) 05-25-11 05:06
 resin.xml [^] (1,645 bytes) 05-25-11 05:30

- Relationships

- Notes
(0005275)
cyttesen
05-25-11 06:26
edited on: 05-25-11 06:30

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
 

- Issue History
Date Modified Username Field Change
05-25-11 05:06 cyttesen New Issue
05-25-11 05:06 cyttesen File Added: resin.log
05-25-11 05:06 cyttesen Issue Monitored: cyttesen
05-25-11 05:30 cyttesen File Added: resin.xml
05-25-11 06:26 cyttesen Note Added: 0005275
05-25-11 06:26 cyttesen Note Edited: 0005275
05-25-11 06:30 cyttesen Note Edited: 0005275
06-20-11 14:37 ferg Note Added: 0005332
06-20-11 14:37 ferg Assigned To  => ferg
06-20-11 14:37 ferg Status new => closed
06-20-11 14:37 ferg Resolution open => fixed
06-20-11 14:37 ferg Fixed in Version  => 4.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
36 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker