]
Pete Muir closed JBSEAM-3481.
-----------------------------
Resolution: Done
Duplicate check added
components.xml is read twice if the jboss-seam.jar is declared in
application.xml as well as in manifest classpath
------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-3481
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3481
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.0.BETA1
Reporter: Jay Balunas
Assignee: Pete Muir
Fix For: 2.1.0.GA
Attachments: jsf-api.jar, jsf-impl.jar
This issue was exposed while working on JBSEAM-3363, and using patched jsf jars from Ryan
Lubke which fixes the initial problem (see note below on using Ryan's patch).
We do not see the duplicate seam phase listener issue any longer, but we continue to see
this error.
08:50:53,573 ERROR [[/Stantest]] Exception sending context initialized event to listener
instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: duplicate factory for: org.jboss.seam.web.webSession
(duplicate is specified in components.xml)
at org.jboss.seam.core.Init.checkDuplicateFactoryExpressions(Init.java:222)
at org.jboss.seam.core.Init.checkDuplicateFactory(Init.java:215)
at org.jboss.seam.core.Init.addFactoryValueExpression(Init.java:278)
This is because we are reading in the components.xml file from the jboss-seam.jar twice
as this log shows:
2008-09-30 10:21:08,245 INFO [org.jboss.seam.init.Initialization] reading
/WEB-INF/components.xml
2008-09-30 10:21:08,396 INFO [org.jboss.seam.init.Initialization] reading
jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/deploy/Stantest.ear/jboss-seam.jar!/META-INF/components.xml
2008-09-30 10:21:08,400 INFO [org.jboss.seam.init.Initialization] reading
jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/tmp/deploy/tmp3645jboss-seam.jar!/META-INF/components.xml
To use Ryan's patch:
----------------------
Use the attached jsf jars in the jsf-libs directory, and update
JBOSS_HOME/server/default/deploy/jboss-web.deployer/conf/web.xml to include the following
context param:
<context-param>
<param-name>com.sun.faces.duplicateJARPattern</param-name>
<param-value>^tmp\d+(\S*\.jar)</param-value>
</context-param>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: