[
https://jira.jboss.org/jira/browse/JBSEAM-3564?page=com.atlassian.jira.pl...
]
Stan Silvert reassigned JBSEAM-3564:
------------------------------------
Assignee: Carlo de Wolf (was: Stan Silvert)
Carlo, can you look at this or suggest who should be looking at it?
It looks like the problem is in Ejb3Deployment.java. In the first line of the
registerDeployment() method, it calls this.getName(). But getName() just returns the
simple name instead of using the longer path which would uniquely identify the jar. So
you end up with a name collision when you try to deploy jboss-seam.jar in the second
deployment.
protected void registerDeployment() throws Exception
{
String on = "jboss.j2ee:jar=" + this.getName() +
",service=EJB3";
if (metaData != null && metaData.getEnterpriseBeans() != null &&
metaData.getEnterpriseBeans().getEjbJarMetaData() != null)
{
String jmxName = metaData.getEnterpriseBeans().getEjbJarMetaData().getJmxName();
if (jmxName != null && jmxName.trim().length() > 0)
on = jmxName;
}
objectName = new ObjectName(on);
mbeanServer.registerMBean(this, objectName);
}
Two Seam examples cannot run at the same time on AS5
----------------------------------------------------
Key: JBSEAM-3564
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3564
Project: Seam
Issue Type: Bug
Components: EJB3
Affects Versions: 2.0.3.CR1, 2.1.0.CR1
Environment: JDK6
AS 5.0.0.CR2
Reporter: Jozef Hartinger
Assignee: Carlo de Wolf
Attachments: 2examplesAtTheSameTime.txt
It is not possible to run AS5 with two seam examples deployed at the same time. I am
getting "org.jboss.deployers.spi.DeploymentException: Error deploying jboss-seam.jar:
jboss.j2ee:jar=jboss-seam.jar,service=EJB3 already registered." when the second one
is being deployed. Both the examples work fine when deployed alone.
--
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