1 Reply Latest reply on Nov 9, 2011 2:21 AM by Wolf-Dieter Fink

    Error in cmp-field when migrating to new version of JBoss

    Dante Bell Newbie

      I am in process of moving an .ear project from an old server running

       

      Old Server: Jboss 2.4.4 - Tomcat 4.0.1 with java 1.4.0-b92 on Redhat Release 6.2 (Zoot) ---NOT RHEL, it's way older than that

       

      New server is: Oracle Enteprise Linux 5u2 (Carthage) with JBoss 6.1.0-Final and java 1.7.0_01-b08.

       

      .ear file has been in production for years, so I think everything is OK with it. Testing of the new setup is OK, too so I dont think anything is wrong with configuration on new server.

       

      When deploying the .ear file via the JBoss manager Deploy screen we get the following error about cmp-fields:

       

      Failed to create Resource planlink.ear - cause: java.lang.Exception:Failed to start deployment [vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear] during deployment of 'planlink.ear' - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): *** DEPLOYMENTS IN ERROR: Name -> Error vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear -> org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear/planlinkEJB.jar/ DEPLOYMENTS IN ERROR: Deployment "vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: column-name not found as a child of cmp-field in unordered_sequence: description* field-name? -> org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): *** DEPLOYMENTS IN ERROR: Name -> Error vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear -> org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear/planlinkEJB.jar/ DEPLOYMENTS IN ERROR: Deployment "vfs:///usr/local/jboss-6.1.0.Final/server/default/deploy/planlink.ear" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: column-name not found as a child of cmp-field in unordered_sequence: description* field-name?

       

      We have no java developer here so we have no idea on how to proceed. Do we need to recompile the code? Is something missing from the EJB??

       

      Here's a snippet of the ejb-jar.xml file:

       

      <?xml version="1.0" encoding="iso-8859-1"?>

              <ejb-jar>

              <description>PlanLink Application</description>

                      <display-name>PlanLink</display-name>

       

                      <enterprise-beans>

                              <session>

                                      <ejb-name>ejb/ValidateLogin</ejb-name>

                                      <home>com.vkmsolutions.planlink.login.ValidateLoginEJBHome</home>

                                      <remote>com.vkmsolutions.planlink.login.ValidateLoginEJB</remote>

                                      <ejb-class>com.vkmsolutions.planlink.login.ValidateLoginEJBBean</ejb-class>

                                      <session-type>Stateless</session-type>

                                      <transaction-type>Bean</transaction-type>

       

                                      <ejb-local-ref>

                                              <ejb-ref-name>ServiceLocator</ejb-ref-name>

                                              <ejb-ref-type>Session</ejb-ref-type>

                                      <local-home>com.vkmsolutions.planlink.sl.ServiceLocatorEJBHome</local-home>

                                              <local>com.vkmsolutions.planlink.sl.ServiceLocatorEJB</local>

                                              <ejb-link>ServiceLocatorEJB</ejb-link>

                                      </ejb-local-ref>

                              </session>

      ...

       


      <entity>

      <description>Models a Member</description>

      <ejb-name>MemberEJB</ejb-name>

      <local-home>com.vkmsolutions.planlink.member.MemberEJBHome</local-home>

      <local>com.vkmsolutions.planlink.member.MemberEJB</local>

      <ejb-class>com.vkmsolutions.planlink.member.MemberEJBBean</ejb-class>

      <persistence-type>Container</persistence-type>

      <prim-key-class>java.lang.String</prim-key-class>

      <reentrant>False</reentrant>

      <cmp-field>

      <field-name>memberID</field-name>

      <column-name>member_id</column-name>

      </cmp-field>

      <cmp-field>

      <field-name>displayMemberID</field-name>

      <column-name>display_member_id</column-name>

      </cmp-field>

       

      All help is greatly appreciated.

      Dante

        • 1. Re: Error in cmp-field when migrating to new version of JBoss
          Wolf-Dieter Fink Master

          Hello Dante,

          welcome to the JBoss forum.

           

          It sound to me like a big challange to migrate an application from JBoss2.4 to 6.x without developer support

           

          I have no idea what it can be, it looks like that you have to investigate very deep, first you have to find out the exact entity.

          If you don't find a hint in the logfile you might extract parts of the persistence and analyze/deploy it.

          But I don't think that this will work without a developer.

           

          What you can check is whether the application run with JBoss 4.3 or 5.1 and JDK6.

          There are also lots of changes but maybe it works.

           

          Good luck