-
1. Re: JSF libraries on JBossAS 7.0.1 classpath
ssilvert Aug 26, 2011 9:17 AM (in response to rjbaty)AS7 only puts JSF on the WAR's classpath. IMO, it doesn't belong on the EAR's classpath because JSF relies on the servlet API which is not available at the EAR level.
I'm not sure why your manifest change worked, but it's good to know!
Stan
-
2. Re: JSF libraries on JBossAS 7.0.1 classpath
rjbaty Aug 26, 2011 10:04 AM (in response to ssilvert)Stan,
Yeah that makes sense to me and I was thinking because the Spring
org.springframework.web.jsf.el.SpringBeanFacesELResolver
class is loaded from the EAR level and it was looking for a JSF class that was the original reason this issue occurred. However, I am not sure why the WAR MANIFEST.MF change of
Dependencies: javax.faces.api services
fixes this. I was thinking I would have to add that Dependency to the EAR MANIFEST.MF file right?
Robert
-
3. Re: JSF libraries on JBossAS 7.0.1 classpath
ssilvert Aug 26, 2011 10:08 AM (in response to rjbaty)Robert Baty wrote:
I was thinking I would have to add that Dependency to the EAR MANIFEST.MF file right?
I think the same as you. But I'm not sure how that manifest part works under the covers. I suspect that adding it to the EAR instead would also work.
Stan
-
4. Re: JSF libraries on JBossAS 7.0.1 classpath
deibys Apr 3, 2013 12:55 PM (in response to ssilvert)Hello guys,
I am having an issue similar to the one you had, so I guess it is better to continue this post.
I am trying to deploy an ear project. One of the jar I add to the lib folder is dependent on JSF libraries.
When I deploy the ear , I get the following exception:
Caused by: java.lang.ClassNotFoundException: javax.faces.validator.Validator from [Module "deployment.Perfil-Ear.ear:main" from Service Module Loader]
I guess it is OK, because from the ear classpath there is no JSF libraries. When I add to the ear´s lib folder an implementation of the JSF mojarra, the deployment is OK.
The issue It is that I dont want to package an jar implementation of JSF into my ear, instead I want to load the JSF libs already contained in JBOSS AS 7
I have tried to change my ear MANIFEST.MF file with different combinations but no-one has worked.
I Have used:
Manifest-Version: 1.0
Dependencies: javax.faces.api services
Manifest-Version: 1.0
Dependencies: javax.faces.api export
Manifest-Version: 1.0
Dependencies: javax.faces.api