1 Reply Latest reply on Aug 30, 2006 5:10 PM by Vince Ingram

    EJB spec violation when deploying JBossDukesBank.ear

    Vince Ingram Newbie

      Following the directions in the Getting Started Guide for JBoss 4.0, I'm getting many errors when I run the deploy step (ant -f jboss-build.xml deploy) in the Duke's Bank example. Any help would be appreciated.

      My environment is as follows:
      OS: RedHat ES 4 Update 3
      JDK: 1.4.2_12
      Ant: 1.6.5
      JBoss: 4.0.4
      J2EE Tutorial: J2EE 1.4 Tutorial Update 7 (for Sun Java System Application Server Platform Edition 8.2) January 27, 2006

      Errors:
      12:42:24,524 INFO [EARDeployer] Init J2EE application: file:/opt/jboss-4.0.4.GA/server/default/deploy/JBossDukesBank.ear
      12:42:24,944 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.2
      Warning: The class must be defined as public and must not be abstract.

      12:42:24,953 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.5
      Warning: Every entity bean must define the ejbFindByPrimaryKey method.

      12:42:24,956 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
      Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerHome': No ClassLoaders found for: com.sun.ebank.ejb.customer.CustomerHome

      12:42:24,957 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
      Info : Class not found on 'com.sun.ebank.ejb.customer.Customer': No ClassLoaders found for: com.sun.ebank.ejb.customer.Customer

      12:42:24,957 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.1
      Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

      12:42:24,960 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 12.2.2
      Warning: The class must be defined as public and must not be abstract.

      12:42:24,966 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 12.2.5
      Warning: Every entity bean must define the ejbFindByPrimaryKey method.

      12:42:24,969 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
      Info : Class not found on 'com.sun.ebank.ejb.account.AccountHome': No ClassLoaders found for: com.sun.ebank.ejb.account.AccountHome

      12:42:24,970 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
      Info : Class not found on 'com.sun.ebank.ejb.account.Account': No ClassLoaders found for: com.sun.ebank.ejb.account.Account

      12:42:24,970 WARN [verifier] EJB spec violation:
      Bean : AccountBean
      Section: 12.2.1
      Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

      12:42:24,973 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 12.2.2
      Warning: The class must be defined as public and must not be abstract.

      12:42:24,976 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 12.2.5
      Warning: Every entity bean must define the ejbFindByPrimaryKey method.

      12:42:24,980 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
      Info : Class not found on 'com.sun.ebank.ejb.tx.TxHome': No ClassLoaders found for: com.sun.ebank.ejb.tx.TxHome

      12:42:24,982 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 22.2
      Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
      Info : Class not found on 'com.sun.ebank.ejb.tx.Tx': No ClassLoaders found for: com.sun.ebank.ejb.tx.Tx

      12:42:24,982 WARN [verifier] EJB spec violation:
      Bean : TxBean
      Section: 12.2.1
      Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

      12:42:25,055 ERROR [MainDeployer] Could not create deployment: file:/opt/jboss-4.0.4.GA/server/default/tmp/deploy/tmp55721JBossDukesBank.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:610)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:99)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy42.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor12.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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)