3 Replies Latest reply on May 7, 2006 10:10 AM by Markus Wahl

    varification in ejb failed...

    Sheikh Golam Muhammod Newbie

      hi i m new to jboss and j2ee. i tried to execute duke examples and got this deployment error at server...it says could not create deployment...verifiation failed..plz help..wha to do..i have:
      linux fedora..
      jboss-4.0.3-sp1 (i installed jboss with full version..)
      java 1.5_06 versions

      is anything wrong? what to do now?

      15:30:22,536 ERROR [MainDeployer] Could not create deployment: file:/opt/jboss-4.0.3SP1/server/default/tmp/deploy/tmp50230JBossDukesBank.ear-contents/bank-ejb.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
      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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy35.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)

        • 1. Re: varification in ejb failed...
          Sheikh Golam Muhammod Newbie

          ok.. from the tutorial i have used jboss 4.0.2 and j2ee tut update 2...still the problem occurs...

          17:05:32,624 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must be defined as public and abstract.

          17:05:32,754 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: customerId

          17:05:32,756 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: customerId

          17:05:32,756 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: lastName

          17:05:32,757 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: lastName

          17:05:32,757 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: firstName

          17:05:32,758 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: firstName

          17:05:32,759 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: middleInitial

          17:05:32,759 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: middleInitial

          17:05:32,760 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: street

          17:05:32,760 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: street

          17:05:32,761 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: city

          17:05:32,762 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: city

          17:05:32,762 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: state

          17:05:32,763 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: state

          17:05:32,763 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: zip

          17:05:32,764 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: zip

          17:05:32,765 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a get accessor for each CMP field.
          Info : Field: phone

          17:05:32,765 WARN [verifier] EJB spec violation:
          Bean : CustomerBean
          Section: 10.6.2
          Warning: The entity bean class must define a set accessor for each CMP field.
          Info : Field: phone

          WHAT TO DO NOW..any suggestions?

          • 2. Re: varification in ejb failed...
            Cheryl McDiarmid Newbie

            Did you get this to work? If not, look at this:

            I finally got this to work after reading just about every forum topic on HSQL and all the different error messages such as:


            MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM

            jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

            jboss.jca:service=DataSourceBinding,name=DefaultDS

            ejbFindByCustomerId Table not found: CUSTOMER_ACCOUNT_XREF

            Verification of Enterprise Beans failed ???

            HSQL-DB Connection Refused

            The part that isn't clear in the tutorial or in the hsqldb-ds.xml comments is that the xml tag which is found ABOVE the mbean declarations (and just before the closing </local-tx-datasource> tag) needs to be altered as follows:

            change from: jboss.server.Hypersonic,database=localDB
            change to:jboss:service=Hypersonic

            Hope this helps and I appreciate this forum!

            Cheryl

            • 3. Re: varification in ejb failed...
              Markus Wahl Newbie

              yes it is correct that you would need to remove the "database=localDB" bit from the depends-clause, but that's NOT ALL. the CMP error messages occurs because the ejb-jar.xml file of the j2ee tutorial (update 2) says

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

              which is inconsistent with the source code of update 2. update 7 has fixed this.

              i am using jboss-4.0.2 with j2ee-1_4-doc-tutorial_7.zip and startguide40.zip and it works (finally, after 4 hours!)