5 Replies Latest reply on Sep 3, 2004 6:35 AM by Kacper Marczewski

    Bug in JBoss 4.0.0 RC1 jbosscmp-jdbc.xml parsing?

    Kacper Marczewski Newbie

      I get error while deploying EJB application. I 've got jbosscmp-jdbc.xml file with special config for one of the CMP entities, and <create-table>false</create-table> tag inside entity tag causes it. DTD for this XML says that <create-table> tag is allowed there, even error trace saying that entity tag definition is wrong, displays part of DTD wich points that <create-table> is allowed inside .
      Error disapears when I remove <create-table> or comment this one.
      I'm using http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd and JBoss 4.0.0 RC1

      Thanks in advance.

      Kacper Marczewski

        • 1. Re: Bug in JBoss 4.0.0 RC1 jbosscmp-jdbc.xml parsing?
          Kacper Marczewski Newbie

          The same refers to <type-mappings> tag inside <jbosscmp-jdbc>.

          Kacper Marczewski

          • 3. Re: Bug in JBoss 4.0.0 RC1 jbosscmp-jdbc.xml parsing?
            Kacper Marczewski Newbie

            Please, find the xml and trace below, and notice that I'm using <create-table> tag successfuly inside defaults tag.

            I changed defaults to _defaults_ and entities to _entities_ because those words inside <> are reserved in this post editor.

            Kacper Marczewski

            XML:
            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE jbosscmp-jdbc PUBLIC
            "-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN"
            "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd">
            <jbosscmp-jdbc>
            <_defaults_>
            java:/Oracle9iDS
            <datasource-mapping>Oracle9i</datasource-mapping>
            <create-table>false</create-table> <!-- this is OK -->
            <remove-table>false</remove-table>
            <read-only>false</read-only>
            <read-time-out>300000</read-time-out>
            <row-locking>false</row-locking>
            <pk-constraint>true</pk-constraint>
            <fk-constraint>false</fk-constraint>
            <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
            <read-ahead>
            on-load
            <page-size>1000</page-size>
            <eager-load-group>*</eager-load-group>
            </read-ahead>
            <list-cache-max>1000</list-cache-max>
            <clean-read-ahead-on-load>false</clean-read-ahead-on-load>
            <unknown-pk>
            <key-generator-factory>UUIDKeyGeneratorFactory</key-generator-factory>
            <unknown-pk-class>java.lang.String</unknown-pk-class>
            <jdbc-type>VARCHAR</jdbc-type>
            <sql-type>VARCHAR(32)</sql-type>
            </unknown-pk>
            <entity-command name="default"/>
            <ql-compiler>org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler</ql-compiler>
            </_defaults_>
            <enterprise-beans>
            <_entity_>
            <ejb-name>Users</ejb-name>
            <table-name>USERS</table-name>
            <create-table>false</create-table> <!-- this line causes the error --> <cmp-field>
            <field-name>user_id</field-name>
            <column-name>USER_ID</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>company_id</field-name>
            <column-name>COMPANY_ID</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>version</field-name>
            <column-name>VERSION</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>user_id_create</field-name>
            <column-name>USER_ID_CREATE</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>user_id_modify</field-name>
            <column-name>USER_ID_MODIFY</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>login</field-name>
            <column-name>LOGIN</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>login_password</field-name>
            <column-name>LOGIN_PASSWORD</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>role</field-name>
            <column-name>ROLE</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>role_password</field-name>
            <column-name>ROLE_PASSWORD</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>person_id</field-name>
            <column-name>PERSON_ID</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>details</field-name>
            <column-name>DETAILS</column-name>
            <jdbc-type>CLOB</jdbc-type>
            <sql-type>NCLOB</sql-type>
            </cmp-field>


            <ejb-name>Persons</ejb-name>
            <table-name>PERSONS</table-name>
            <!-- <create-table>false</create-table> -->
            <cmp-field>
            <field-name>person_id</field-name>
            <column-name>PERSON_ID</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>company_id</field-name>
            <column-name>COMPANY_ID</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>version</field-name>
            <column-name>VARSION</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>user_id_create</field-name>
            <column-name>USER_ID_CREATE</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>user_id_modify</field-name>
            <column-name>USER_ID_MODIFY</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>details</field-name>
            <column-name>DETAILS</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>first_name</field-name>
            <column-name>FIRST_NAME</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>last_name</field-name>
            <column-name>LAST_NAME</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>birdth_date</field-name>
            <column-name>BIRDTH_DATE</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>person_type</field-name>
            <column-name>PERSON_TYPE</column-name>
            </cmp-field>
            <cmp-field>
            <field-name>email</field-name>
            <column-name>EMAIL</column-name>
            </cmp-field>
            </_entity_>
            </enterprise-beans>

            <ejb-relation>
            <ejb-relation-name>Users - Persons</ejb-relation-name>
            <foreign-key-mapping/>
            <ejb-relationship-role>
            <ejb-relationship-role-name>Persons may have many Users</ejb-relationship-role-name>
            <key-fields>
            <key-field>
            <field-name>person_id</field-name>
            <column-name>PERSON_ID</column-name>
            </key-field>
            </key-fields>
            </ejb-relationship-role>
            <ejb-relationship-role>
            <ejb-relationship-role-name>Users has one Persons</ejb-relationship-role-name>
            <key-fields/>
            </ejb-relationship-role>
            </ejb-relation>

            </jbosscmp-jdbc>

            TRACE:
            2004-09-02 09:39:57,578 ERROR [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File jar:file:/D:/jboss-4.0.0RC1/server/default/tmp/deploy/tmp39176application.ear-contents/ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 84. Error message: The content of element type "entity" must match "(ejb-name,(datasource,datasource-mapping)?,create-table?,remove-table?,post-table-create?,read-only?,read-time-out?,row-locking?,pk-constraint?,read-ahead?,list-cache-max?,clean-read-ahead-on-load?,fetch-size?,table-name?,cmp-field*,load-groups?,eager-load-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?,optimistic-locking?,audit?)".
            2004-09-02 09:39:57,578 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
            2004-09-02 09:39:57,578 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
            2004-09-02 09:39:57,578 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
            2004-09-02 09:39:57,578 ERROR [org.jboss.ejb.EntityContainer] Starting failed jboss.j2ee:jndiName=local/Functions,service=EJB
            org.jboss.deployment.DeploymentException: Invalid XML: file=jar:file:/D:/jboss-4.0.0RC1/server/default/tmp/deploy/tmp39176application.ear-contents/ejb.jar!/META-INF/jbosscmp-jdbc.xml
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
            at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:229)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:213)
            at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:80)
            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:719)
            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:417)
            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365)
            at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
            at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:348)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
            at $Proxy18.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:369)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy48.start(Unknown Source)
            at org.jboss.ejb.EjbModule.startService(EjbModule.java:394)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
            at $Proxy18.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:369)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy15.start(Unknown Source)
            at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:855)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
            at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy7.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:369)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
            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:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
            at org.jboss.Main.boot(Main.java:151)
            at org.jboss.Main$1.run(Main.java:405)
            at java.lang.Thread.run(Thread.java:534)
            2004-09-02 09:39:57,578 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=local/Functions,service=EJB
            org.jboss.deployment.DeploymentException: Invalid XML: file=jar:file:/D:/jboss-4.0.0RC1/server/default/tmp/deploy/tmp39176application.ear-contents/ejb.jar!/META-INF/jbosscmp-jdbc.xml
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
            at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:229)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:213)
            at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:80)
            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:719)
            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:417)
            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:365)
            at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
            at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:348)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
            at $Proxy18.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:369)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy48.start(Unknown Source)
            at org.jboss.ejb.EjbModule.startService(EjbModule.java:394)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
            at $Proxy18.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:369)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy15.start(Unknown Source)
            at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:855)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
            at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy7.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:369)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
            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:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
            at org.jboss.Main.boot(Main.java:151)
            at org.jboss.Main$1.run(Main.java:405)
            at java.lang.Thread.run(Thread.java:534)

            • 4. Re: Bug in JBoss 4.0.0 RC1 jbosscmp-jdbc.xml parsing?
              Alexey Loubyansky Master

              You should follow the order of elements as they are defined in the dtd, i.e. move create-table before the table-name. This is the parser's requirement.

              • 5. Re: Bug in JBoss 4.0.0 RC1 jbosscmp-jdbc.xml parsing?
                Kacper Marczewski Newbie

                Thank you, I didn't know that. I checked XML specification, and in deed, DTD forces child tags order.

                Kacper Marczewski