[jboss-jira] [JBoss JIRA] Commented: (JBAS-8923) WAR with bundled Mojarra 2.1.0-b11

Stan Silvert (JIRA) jira-events at lists.jboss.org
Fri Mar 4 12:07:45 EST 2011


    [ https://issues.jboss.org/browse/JBAS-8923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586083#comment-12586083 ] 

Stan Silvert commented on JBAS-8923:
------------------------------------

You probably need to bundle jboss-faces.jar in your WEB-INF/lib and make these declarations in your web.xml:

   <!-- Regular expression to determine if two different URLs actually point -->
   <!-- to the same jar file.  This keeps faces-config files from being      -->
   <!-- read twice.                                                          -->
   <context-param>
     <param-name>com.sun.faces.duplicateJARPattern</param-name>
     <param-value>^tmp\d+(\S*\.jar)</param-value>
   </context-param>
    
   <!-- JBossInjectionProvider provides resource injection for managed beans. -->
   <!-- See JSF 1.2 spec section 5.4 for details.                             -->
   <context-param>
     <param-name>com.sun.faces.injectionProvider</param-name>
     <param-value>org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider</param-value>
   </context-param>
   
   <!-- ================== Common filter Configuration ==================== -->
   
	
   <!-- ================== Common Listener Configuration ==================== -->
   <!-- Configures JSF 2.0 -->
   <listener>
     <listener-class>org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener</listener-class>
   </listener>


I'm not sure though.  I haven't tried bundling Mojarra 2.1 before.

> WAR with bundled Mojarra 2.1.0-b11
> ----------------------------------
>
>                 Key: JBAS-8923
>                 URL: https://issues.jboss.org/browse/JBAS-8923
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JSF
>    Affects Versions: 6.0.0.Final
>         Environment: RichFaces 4.0.0.20110227-CR1 r.21967
> Mojarra 2.1.0-FCS
> JBoss AS 6.0.0.Final (default profile)
> OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
> http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tags/metamer-4.0.0.20110228-CR1
>            Reporter: Lukas Fryc
>            Assignee: Stan Silvert
>         Attachments: boot.log
>
>
> When new profile Mojarra-2.1 (with 2.1.0-b11 libs) is created and WAR without jsf-libs is deployed, application works fine.
> But when JSF is bundled into WAR (and use WAR_BUNDLES_JSF_IMPL param) and deployed onto default Mojarra-2.0 profile, it doesn't work with exception bellow.
> Shortened stacktrace:
> 17:42:14,288 ERROR [[/metamer]] Error configuring application listener of class com.sun.faces.application.ServletContextSensitiveSingletonStore: java.lang.InstantiationException: com.sun.faces.application.ServletContextSensitiveSingletonStore
> 	at java.lang.Class.newInstance0(Class.java:357) [:1.6.0_20]
> 	at java.lang.Class.newInstance(Class.java:325) [:1.6.0_20]
> 	at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:280) [:6.0.0.Final]
> 	at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264) [:6.0.0.Final]
> 	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3319) [:6.0.0.Final]
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.0.0.Final]
> 	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]
> 	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]
> 	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]
> 	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]
> 	at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_20]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_20]
> 	at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_20]
> 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
> 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
> 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
> 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
> 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
> 	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]
> ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list