3 Replies Latest reply on Jan 4, 2005 4:09 PM by sumanth jagga

    Could not deploy an application -- new to Jboss

    sumanth jagga Newbie

      Hello all,

      I am new to jboss, I am getting an error while deploying my entity based application. Following are descriptor files and server log information. Please help me figure out this issue, I am kind of stuck.

      server.log
      --------------
      2005-01-04 10:28:39,425 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : campaignDefBean
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
      Info : Class not found on 'dataadmin.definition.campaignDefBean': Unexpected error during load of: dataadmin.definition.campaignDefBean, msg=dataadmin/definition/campaignDefBean (Unsupported major.minor version 49.0)

      2005-01-04 10:28:39,435 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2005-01-04 10:28:39,435 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2005-01-04 10:28:39,435 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2005-01-04 10:28:39,425 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss_4/server/default/tmp/deploy/tmp62912calendar.ear-contents/calendar.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
      -------------

      ejb-jar.xml

      ---------------

      <ejb-jar>

      Calendar Engine
      <display-name>Calendar Engine</display-name>

      <enterprise-beans>


      <display-name>My Calendar Definition Bean</display-name>
      <ejb-name>campaignDefBean</ejb-name>
      dataadmin.definition.campaignDefHome
      dataadmin.definition.campaignDef
      <ejb-class>dataadmin.definition.campaignDefBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>dataadmin.definition.campaignDefPK</prim-key-class>
      False


      </enterprise-beans>

      <assembly-descriptor>

      </assembly-descriptor>

      </ejb-jar>
      -------------------------------------------
      jboss.xml
      -------------------------------------------

      -
      - <enterprise-beans>
      -
      <ejb-name>campaignDefBean</ejb-name>
      <jndi-name>ejb/dataadmin/campaignDefBean</jndi-name>

      </enterprise-beans>
      <resource-managers />


      Thanks!!!

        • 1. Re: Could not deploy an application -- new to Jboss
          sumanth jagga Newbie

          Can somebody please reply to this post, I am really struggling with it...the whole day.

          Thanks.

          "sjagga" wrote:
          Hello all,

          I am new to jboss, I am getting an error while deploying my entity based application. Following are descriptor files and server log information. Please help me figure out this issue, I am kind of stuck.

          server.log
          --------------
          2005-01-04 10:28:39,425 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
          Bean : campaignDefBean
          Section: 22.2
          Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
          Info : Class not found on 'dataadmin.definition.campaignDefBean': Unexpected error during load of: dataadmin.definition.campaignDefBean, msg=dataadmin/definition/campaignDefBean (Unsupported major.minor version 49.0)

          2005-01-04 10:28:39,435 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
          2005-01-04 10:28:39,435 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
          2005-01-04 10:28:39,435 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
          2005-01-04 10:28:39,425 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss_4/server/default/tmp/deploy/tmp62912calendar.ear-contents/calendar.jar
          org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
          at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
          -------------

          ejb-jar.xml

          ---------------

          <ejb-jar>

          <description>Calendar Engine</description>
          <display-name>Calendar Engine</display-name>

          <enterprise-beans>

          <entity id="DefinitionEntity">
          <display-name>My Calendar Definition Bean</display-name>
          <ejb-name>campaignDefBean</ejb-name>
          <home>dataadmin.definition.campaignDefHome</home>
          <remote>dataadmin.definition.campaignDef</remote>
          <ejb-class>dataadmin.definition.campaignDefBean</ejb-class>
          <persistence-type>Bean</persistence-type>
          <prim-key-class>dataadmin.definition.campaignDefPK</prim-key-class>
          <reentrant>False</reentrant>
          </entity>

          </enterprise-beans>

          <assembly-descriptor>

          </assembly-descriptor>

          </ejb-jar>
          -------------------------------------------
          jboss.xml
          -------------------------------------------

          - <jboss>
          - <enterprise-beans>
          - <entity>
          <ejb-name>campaignDefBean</ejb-name>
          <jndi-name>ejb/dataadmin/campaignDefBean</jndi-name>
          </entity>
          </enterprise-beans>
          <resource-managers />
          </jboss>

          Thanks!!!


          • 2. Re: Could not deploy an application -- new to Jboss
            jgra Newbie

            The error message: dataadmin/definition/campaignDefBean (Unsupported major.minor version 49.0) says that you class was compiled with Java 5 and probably your instalation of JBoss is running on older Java VM (1.4.X probably) which doesnt understands newer format.
            You should use the same version of JDK for JBoss and developing.

            Regards
            Janusz

            • 3. Re: Could not deploy an application -- new to Jboss
              sumanth jagga Newbie

              Sir thank you...I appreciate your help. Indeed there was a mismatch with version...

              thanks!