[
http://jira.jboss.com/jira/browse/JBMETA-2?page=all ]
Scott M Stark resolved JBMETA-2.
--------------------------------
Resolution: Rejected
Turns out the jboss.xml is using a session element rather than an entity element as it
should:
<?xml version="1.0"?>
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<!-- The jboss.xml descriptor for the caller info tests -->
<jboss>
<security-domain>java:/jaas/caller-info-test</security-domain>
<enterprise-beans>
<session>
<ejb-name>SubjectSessionFacade</ejb-name>
<jndi-name>caller-info.SubjectSessionFacade</jndi-name>
</session>
<session>
<ejb-name>StatelessSessionCallee</ejb-name>
<jndi-name>caller-info.StatelessSessionCallee</jndi-name>
</session>
<session>
<ejb-name>StatefulSessionCallee</ejb-name>
<jndi-name>caller-info.StatefulSessionCallee</jndi-name>
</session>
<session>
<ejb-name>EntityCallee</ejb-name>
<jndi-name>caller-info.EntityCallee</jndi-name>
</session>
</enterprise-beans>
</jboss>
This just happens to work with the old metadata handling, even though the descriptor is
broken.
ClassCastException: org.jboss.metadata.ejb.spec.EntityBeanMetaData
------------------------------------------------------------------
Key: JBMETA-2
URL:
http://jira.jboss.com/jira/browse/JBMETA-2
Project: JBoss Metadata
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment:
org.jboss.test.metadata.ejb.EjbJar21UnitTestCase.testMultipleMerge()
Reporter: Scott M Stark
Assigned To: Scott M Stark
Fix For: 1.0.0.Beta5
A merge of an ejb2.1 descriptor with a 4.0 jboss descriptor with 2 session and 1 entity
beans is failing with:
java.lang.ClassCastException: org.jboss.metadata.ejb.spec.EntityBeanMetaData
at
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData.merge(JBossSessionBeanMetaData.java:820)
at
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeansMetaData.merge(JBossEnterpriseBeansMetaData.java:153)
at org.jboss.metadata.ejb.jboss.JBossMetaData.merge(JBossMetaData.java:722)
at
org.jboss.test.metadata.ejb.EjbJar21UnitTestCase.testMultipleMerge(EjbJar21UnitTestCase.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira