[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2799) Overridden components with @Install(value = false) ignores precedence.
Pete Muir (JIRA)
jira-events at lists.jboss.org
Mon Jul 28 12:35:45 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-2799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir closed JBSEAM-2799.
-----------------------------
Resolution: Cannot Reproduce Bug
> Overridden components with @Install(value = false) ignores precedence.
> ----------------------------------------------------------------------
>
> Key: JBSEAM-2799
> URL: https://jira.jboss.org/jira/browse/JBSEAM-2799
> Project: Seam
> Issue Type: Bug
> Components: Core
> Reporter: Shane Bryzak
> Assignee: Shane Bryzak
> Priority: Critical
> Fix For: 2.1.0.BETA1
>
>
> An easy way to reproduce this - take the JpaIdentityStore as an example:
> @Name("org.jboss.seam.security.management.jpaIdentityStore")
> @Install(precedence=Install.BUILT_IN, value = false)
> @Scope(APPLICATION)
> @BypassInterceptors
> public class JpaIdentityStore implements IdentityStore, Serializable
> Overriding it with a component with a higher precedence fails:
> @Name("org.jboss.seam.security.management.jpaIdentityStore")
> @Install(precedence = Install.APPLICATION)
> @Scope(APPLICATION)
> @BypassInterceptors
> public class CustomJpaIdentityStore extends JpaIdentityStore
> With the following stack trace:
> java.lang.IllegalStateException: Two components with the same name and precedence: org.jboss.seam.security.management.jpaIdentityStore
> at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:484)
> 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:567)
> at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
--
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