[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3481) components.xml is read twice if the jboss-seam.jar is declared in application.xml as well as in manifest classpath
Jay Balunas (JIRA)
jira-events at lists.jboss.org
Thu Oct 2 10:19:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12432225#action_12432225 ]
Jay Balunas commented on JBSEAM-3481:
-------------------------------------
Pete, I tried you fix, and I am not seeing two reads of components.xml any more, but it appears that the jboss-seam.jar in the tmp dir is that one being read (see log below).
reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/tmp/deploy/tmp28239jboss-seam.jar!/META-INF/components.xml
>From looking at your code I would have thought this one would be skipped and the other - non temp jar would have been read. The other seam jars seem to be reading correctly.
2008-10-02 09:10:05,856 INFO [org.jboss.seam.init.Initialization] reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/deploy/Pete_test.ear/lib/jboss-seam-remoting.jar!/META-INF/components.xml
2008-10-02 09:10:05,857 INFO [org.jboss.seam.init.Initialization] reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/tmp/deploy/tmp28239jboss-seam.jar!/META-INF/components.xml
2008-10-02 09:10:05,860 INFO [org.jboss.seam.init.Initialization] reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/deploy/Pete_test.ear/Pete_test.war/WEB-INF/lib/jboss-seam-ioc.jar!/META-INF/components.xml
2008-10-02 09:10:05,862 INFO [org.jboss.seam.init.Initialization] reading jar:file:/jboss/apps/jboss-4.2.3.GA/server/default/deploy/Pete_test.ear/Pete_test.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list