[
https://jira.jboss.org/jira/browse/JBIDE-2933?page=com.atlassian.jira.plu...
]
Vladimir Ralev commented on JBIDE-2933:
---------------------------------------
Here is some log from the App Server when initializing my component:
09:18:59,632 INFO [ServletContextListener] Welcome to Seam 2.0.3.CR1
09:19:02,031 INFO [Initialization] Namespace:
http://jboss.com/products/seam/async,
package: org.jboss.seam.async, prefix: org.jboss.seam.async
09:19:02,032 INFO [Initialization] Namespace:
http://jboss.com/products/seam/framework,
package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
09:19:02,032 INFO [Initialization] Namespace:
http://jboss.com/products/seam/theme,
package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
09:19:02,032 INFO [Initialization] Namespace:
http://jboss.com/products/seam/bpm,
package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
09:19:02,032 INFO [Initialization] Namespace:
http://jboss.com/products/seam/mail,
package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
09:19:02,032 INFO [Initialization] Namespace:
http://jboss.com/products/seam/security,
package: org.jboss.seam.security, prefix: org.jboss.seam.security
09:19:02,032 INFO [Initialization] Namespace:
http://jboss.com/products/seam/web,
package: org.jboss.seam.web, prefix: org.jboss.seam.web
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/captcha,
package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/navigation,
package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/core,
package: org.jboss.seam.core, prefix: org.jboss.seam.core
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/international, package: org.jboss.seam.international,
prefix: org.jboss.seam.international
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/pdf,
package: org.jboss.seam.pdf, prefix:
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/jms,
package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/remoting,
package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/transaction,
package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/drools,
package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
09:19:02,033 INFO [Initialization] Namespace:
http://jboss.com/products/seam/spring,
package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
09:19:02,034 INFO [Initialization] Namespace:
http://jboss.com/products/seam/persistence,
package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
09:19:02,035 INFO [Initialization] reading /WEB-INF/components.xml
09:19:02,162 INFO [Initialization] reading
jar:file:/home/vralev/mss6/server/default/tmp/deploy/tmp7316test.war-exp.war/WEB-INF/lib/jboss-seam.jar!/META-INF/components.xml
09:19:02,165 INFO [Initialization] reading
jar:file:/home/vralev/mss6/server/default/tmp/deploy/tmp7316test.war-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/components.xml
09:19:02,167 INFO [Initialization] reading
jar:file:/home/vralev/mss6/server/default/tmp/deploy/tmp7316test.war-exp.war/WEB-INF/lib/jboss-seam-ioc.jar!/META-INF/components.xml
09:19:02,169 INFO [Initialization] reading
jar:file:/home/vralev/mss6/server/default/tmp/deploy/tmp7316test.war-exp.war/WEB-INF/lib/jboss-seam-remoting.jar!/META-INF/components.xml
09:19:02,183 INFO [Initialization] reading properties from: /seam.properties
09:19:02,186 INFO [Initialization] reading properties from: /jndi.properties
09:19:02,190 INFO [Initialization] initializing Seam
09:19:02,322 INFO [Initialization] two components with same name, higher precedence wins:
org.jboss.seam.web.isUserInRole
09:19:02,342 INFO [Initialization] two components with same name, higher precedence wins:
org.jboss.seam.core.manager
09:19:02,345 INFO [Initialization] two components with same name, higher precedence wins:
org.jboss.seam.web.userPrincipal
09:19:02,352 INFO [Initialization] two components with same name, higher precedence wins:
org.jboss.seam.core.resourceLoader
09:19:02,361 INFO [Initialization] two components with same name, higher precedence wins:
SeamFOrm
09:19:02,362 ERROR [[/test]] Exception sending context initialized event to listener
instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Two components with the same name and precedence -
component name: SeamFOrm, component classes: org.domain.test.session.SeamFOrm,
org.domain.test.session.SeamFOrm
at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:489)
at
org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:755)
at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:702)
at org.jboss.seam.init.Initialization.init(Initialization.java:575)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
And to clarify, here are the steps:
1. Create some Seam 2.0 project (tried two versions of Seam 2.0 - CR1 and some other)
2. Do File -> Export -> WAR File
3. Take this WAR and deploy it in JB AS 4.2.2.GA (not the built-in EAP)
You are not able to reproduce it?
Exporting a WAR from a Seam 2.x project produces
duplicate/conflicting components
---------------------------------------------------------------------------------
Key: JBIDE-2933
URL:
https://jira.jboss.org/jira/browse/JBIDE-2933
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Reporter: Vladimir Ralev
Priority: Critical
Fix For: 3.0.0.beta1
I have JBDS 1.1.0.GA, not sure which JB tools version it corresponds to and not sure it
it's still a valid bug.
When I export a Seam 2.0 (TP) project as a WAR, the project classes are duplicated in the
WEB-ING/classes and WEB-INF/dev directories, thus Seam is trying to load the components
twice. Since it's loading the same components with the same precedence and with the
same names, it's an error.
--
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