5 Replies Latest reply on Feb 8, 2005 12:48 AM by khoa

    EJB spec violation in Duke bank

    nkm

      Hi

      I am a beginner and had installed the duke bank application.
      After some effort I managed to build it and deploy it. But now the jboss startup give me errors like

      17:53:23,781 WARN [verifier] EJB spec violation:
      Bean : CustomerBean
      Section: 12.2.10
      Warning: Entity bean's local interface must extend the javax.ejb.EJBLocalObject
      interface.

      It is happening for all classes.
      Can you suggest a solution please

      thanks
      nkm

        • 1. Re: EJB spec violation in Duke bank
          manhilango

          I get the same error .Did you find a way to fix this issue?
          Can anyone on this forum help us?
          You help is greatly appreciated.

          • 2. Re: EJB spec violation in Duke bank
            nkm

            This is the complete list of errors I am getting

            17:40:08,403 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 12.2.2
            Warning: The class must be defined as public and must not be abstract.

            17:40:08,403 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 12.2.5
            Warning: Every entity bean must define the ejbFindByPrimaryKey method.

            17:40:08,413 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 22.2
            Warning: The bean provider must specify the fully-qualified name of the enterpri
            se bean's local home interface, if any, in the <local-home> element.
            Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerHome': No ClassL
            oaders found for: com.sun.ebank.ejb.customer.CustomerHome

            17:40:08,423 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 22.2
            Warning: The bean provider must specify the fully-qualified name of the enterpri
            se bean's local interface, if any, in the element.
            Info : Class not found on 'com.sun.ebank.ejb.customer.Customer': No ClassLoade
            rs found for: com.sun.ebank.ejb.customer.Customer

            17:40:08,433 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 12.2.1
            Warning: The Bean Provider must provide a remote interface and a remote home int
            erface or a local interface and a local home interface for the bean.

            17:40:08,453 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 12.2.2
            Warning: The class must be defined as public and must not be abstract.

            17:40:08,453 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 12.2.5
            Warning: Every entity bean must define the ejbFindByPrimaryKey method.

            17:40:08,473 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 22.2
            Warning: The bean provider must specify the fully-qualified name of the enterpri
            se bean's local home interface, if any, in the <local-home> element.
            Info : Class not found on 'com.sun.ebank.ejb.account.AccountHome': No ClassLoa
            ders found for: com.sun.ebank.ejb.account.AccountHome

            17:40:08,473 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 22.2
            Warning: The bean provider must specify the fully-qualified name of the enterpri
            se 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

            17:40:08,493 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 12.2.1
            Warning: The Bean Provider must provide a remote interface and a remote home int
            erface or a local interface and a local home interface for the bean.

            17:40:08,503 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 12.2.2
            Warning: The class must be defined as public and must not be abstract.

            17:40:08,513 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 12.2.5
            Warning: Every entity bean must define the ejbFindByPrimaryKey method.

            17:40:08,513 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 22.2
            Warning: The bean provider must specify the fully-qualified name of the enterpri
            se 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

            17:40:08,523 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 22.2
            Warning: The bean provider must specify the fully-qualified name of the enterpri
            se 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

            17:40:08,543 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 12.2.1
            Warning: The Bean Provider must provide a remote interface and a remote home int
            erface or a local interface and a local home interface for the bean.

            17:40:08,643 ERROR [MainDeployer] could not create deployment: file:/C:/Neeraj/j
            boss-4.0.1/server/default/tmp/deploy/tmp15130JBossDukesBank.ear-contents/bank-ej
            b.jar

            Can someone help

            Please....

            • 3. Re: EJB spec violation in Duke bank
              huang

              Try with the earlier J2EE 1.4 Tutorial Update 2.

              J2EE 1.4 Tutorial Update 4 may have some problem . . .

              • 4. Re: EJB spec violation in Duke bank
                youngj

                Thanks I ran into the same problem and that fixed it.

                • 5. Re: EJB spec violation in Duke bank
                  khoa

                  Hi,

                  After some effort I managed to build it and deploy it.

                  As a side topic, nkm could you tell me how you managed to get the Duke Bank tutorial to compile?
                  I did a
                  ant -f jboss-build.xml compile
                  but got a lot of packages do not exist errors.
                  Thanks.