[jboss-jira] [JBoss JIRA] Updated: (JBXB-114) Reusing a model group

Scott M Stark (JIRA) jira-events at lists.jboss.org
Sat Oct 27 00:27:01 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBXB-114?page=all ]

Scott M Stark updated JBXB-114:
-------------------------------

    JBoss Forum Reference: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099525

> Reusing a model group
> ---------------------
>
>                 Key: JBXB-114
>                 URL: http://jira.jboss.com/jira/browse/JBXB-114
>             Project: JBoss XML Binding (JBossXB)
>          Issue Type: Feature Request
>            Reporter: Scott M Stark
>             Fix For: JBossXB-2.0.0.CR5
>
>
> We have an issue with mapping legacy schemas onto the jboss_5_0.xsd environment model group. The jboss_4_2.dtd specifies elements that are in the environment model group, but there are elements like security-identity interleaved with this:
> <!ELEMENT session (ejb-name , jndi-name? , local-jndi-name?, call-by-value?,
>  exception-on-rollback?, timer-persistence?, configuration-name?, invoker-bindings?,
>  security-proxy? , ejb-ref* ,  ejb-local-ref* , service-ref*, security-identity? ,
>  resource-ref* , resource-env-ref*, message-destination-ref* , clustered? ,
>  cluster-config?, method-attributes?, depends*,
>  ior-security-config?, port-component*,  ejb-timeout-identity?)>
> See the org.jboss.test.metadata.ejb.JBoss42UnitTestCase.testExcludedMethods that parses a conforming jboss_4_2.dtd document, but fails to parse with:
> org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/home/svn/JBossHead/projects/metadata/trunk/target/eclipse-classes/org/jboss/test/metadata/ejb/JBoss42_testExcludedMethods.xml at 46,34
> 	at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:194)
> ...
> Caused by: java.lang.IllegalArgumentException: jndiEnvironmentRefsGroup already set
> 	at org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.setJndiEnvironmentRefsGroup(JBossEnterpriseBeanMetaData.java:265)
> 	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)
> 	at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
> 	at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
> 	at org.jboss.beans.info.plugins.AbstractPropertyInfo.set(AbstractPropertyInfo.java:182)
> 	at org.jboss.xb.spi.AbstractBeanAdapter.set(AbstractBeanAdapter.java:95)
> 	at org.jboss.xb.builder.runtime.PropertyHandler.handle(PropertyHandler.java:61)
> 	... 41 more

-- 
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

        



More information about the jboss-jira mailing list