2 Replies Latest reply on Dec 21, 2005 10:33 AM by debambi

    Unable to build Bank application

    mallesh.kota

      Hi,
      I am new to JBoss and trying to build sample application BANK.
      I am getting following error when I run ant -f jboss-build.xml compile.
      Can you please help me in solving this issue.

      Debug info:-
      ---------------

      Apache Ant version 1.6.5 compiled on June 2 2005
      Buildfile: jboss-build.xml
      Adding reference: ant.PropertyHelper
      Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_06\jre
      Detected OS: Windows XP
      Adding reference: ant.ComponentHelper
      Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on June 2 2005
      Setting ro project property: ant.file -> C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\examples\bank\jboss-bui
      ld.xml
      Adding reference: ant.projectHelper
      Adding reference: ant.parsing.context
      Adding reference: ant.targets
      parsing buildfile C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\examples\bank\jboss-build.xml with URI = file:
      ///C:/Documents%20and%20Settings/kotam/Desktop/Mallesh/JBOSS/startguide40/jbossj2ee-src/examples/bank/jboss-build.xml
      Setting ro project property: ant.project.name -> jboss-dukes-bank
      Adding reference: jboss-dukes-bank
      Setting ro project property: ant.file.jboss-dukes-bank -> C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\exampl
      es\bank\jboss-build.xml
      Project base dir set to: C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\examples\bank
      +Target:
      Adding reference: client.classpath
      Adding reference: axis.classpath
      Adding reference: build.classpath
      Adding reference: hsql.classpath
      +Target: prepare
      +Target: compile
      +Target: package-ejb
      +Target: package-ws
      +Target: package-client
      +Target: package-web
      +Target: wsdl
      +Target: deploy-ws
      +Target: run-ws
      +Target: assemble-app
      +Target: deploy
      +Target: run-client
      +Target: db-create-table
      +Target: db-insert
      +Target: db-list
      +Target: db-delete
      +Target: clean
      +Target: db-all
      +Target: all
      [property] Loading C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\jboss-build.properties
      Setting project property: jboss.server -> C:/Program Files/jboss-4.0.3SP1/server/default
      Setting project property: jboss.home -> C:/Program Files/jboss-4.0.3SP1
      Setting project property: jboss.deploy.dir -> C:/Program Files/jboss-4.0.3SP1/server/default/deploy
      Setting project property: lib.dir -> ../../libs
      Setting project property: src.dir -> C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\examples\bank/src
      Setting project property: build.dir -> C:\Documents and Settings\kotam\Desktop\Mallesh\JBOSS\startguide40\jbossj2ee-src\examples\bank/build
      Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
      Adding reference: client.classpath
      Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
      Adding reference: axis.classpath
      Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
      Adding reference: build.classpath
      Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
      Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
      Adding reference: hsql.classpath
      Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
      Adding reference: ant.executor

      BUILD FAILED
      Target `ant' does not exist in this project.
      at org.apache.tools.ant.Project.tsort(Project.java:1717)
      at org.apache.tools.ant.Project.topoSort(Project.java:1627)
      at org.apache.tools.ant.Project.topoSort(Project.java:1590)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

      Total time: 0 seconds





      thx,
      Mallesh

        • 1. Re: Unable to build Bank application
          mallesh.kota

          Finally, I got through this problem with the help of following topic.

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=71999


          Thanks to all.
          Mallesh

          • 2. Re: Unable to build Bank application
            debambi

            Hi I am new to Jboss and trying out the examples !!!
            I have problems to deploy the JBossDukesBank.ear
            I am getting following error :
            15:01:37,015 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
            boss-4.0.3SP1/server/default/deploy/JBossDukesBank.ear
            15:01:38,390 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 12.2.2
            Warning: The class must be defined as public and must not be abstract.

            15:01:38,406 WARN [verifier] EJB spec violation:
            Bean : CustomerBean
            Section: 12.2.5
            Warning: Every entity bean must define the ejbFindByPrimaryKey method.

            15:01:38,406 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

            15:01:38,406 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

            15:01:38,406 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.

            15:01:38,406 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 12.2.2
            Warning: The class must be defined as public and must not be abstract.

            15:01:38,421 WARN [verifier] EJB spec violation:
            Bean : AccountBean
            Section: 12.2.5
            Warning: Every entity bean must define the ejbFindByPrimaryKey method.

            15:01:38,578 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

            15:01:38,578 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

            15:01:38,578 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.

            15:01:38,578 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 12.2.2
            Warning: The class must be defined as public and must not be abstract.

            15:01:38,578 WARN [verifier] EJB spec violation:
            Bean : TxBean
            Section: 12.2.5
            Warning: Every entity bean must define the ejbFindByPrimaryKey method.

            15:01:38,578 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

            15:01:38,593 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

            15:01:38,593 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.

            15:01:38,734 ERROR [MainDeployer] Could not create deployment: file:/C:/Program
            Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp22027JBossDukesBank.ear-conten
            ts/bank-ejb.jar
            org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
            d, see above for error messages.

            CAN YOU HELP ME PLEASE