2 Replies Latest reply on Sep 8, 2006 4:09 AM by Kusanagihk Kyo

    Deployment failed on Duke Bank Application

    Kusanagihk Kyo Newbie

      To all,

      I am using Win XP and JBoss 4.0.4 GA; I am following the instructions on chp 04 of the "Getting started with JBoss 4 release 5"; however when I tried to deploy the JBossDukeBank.ear to JBoss, I got numerous deployment errors / warnings.

      14:19:08,993 WARN [StatefulSessionContainer] Could not restore ejb timers
      RuntimeMBeanException: null Cause: java.lang.NullPointerException
      ...

      I'm not sure what's wrong, but looks sth might not be configured correctly beforehand, but the guide didn't say much on pre-configurations....

      Any ideas?

      Thanks

      From Jason (kusanagihk)

        • 1. Re: Deployment failed on Duke Bank Application
          Kusanagihk Kyo Newbie

          To all,

          I've found more errors during starting the jboss server, there are 3 services or modules that failed to be configure during startup.

          --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
          ObjectName: jboss:database=localDB,service=Hypersonic
          State: NOTYETINSTALLED
          Depends On Me:
          jboss.jca:name=DefaultDS,service=ManagedConnectionFactory

          ObjectName: jboss.j2ee:module=bank-ejb.jar,service=EjbModule
          State: FAILED
          Reason: org.jboss.deployment.DeploymentException: Error: can't find data sourc
          e: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: Def
          aultDS not bound)

          ObjectName: jboss.j2ee:module=team-ejb.jar,service=EjbModule
          State: FAILED
          Reason: org.jboss.deployment.DeploymentException: Error: can't find data sourc
          e: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: Def
          aultDS not bound)

          Seems like :
          1) JNDI problems in bounding some resources
          2) a DefaultDS is missing (but the getting document didn't say a thing on setting a default DS)
          3) the nullPointerException in creating the EJBs (mostly because of the 1st 2 problems above; in which the related EJB JNDI entry is missing now)

          Any ideas on solving the problem? Or any guides I should read before reading the "Getting Start" document?

          Thanks

          From Jason (kusanagihk)

          • 2. Re: Deployment failed on Duke Bank Application
            Kusanagihk Kyo Newbie

            To all,

            Problems solved; I have made 2 changes as follows:

            1) the contents of the jndi.properties at <jboss_home>\server\default\conf

            java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
            java.naming.provider.url=jnp://localhost:1099
            java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

            PS. the extra property java.naming.provider.url is added (this line is founded in the getting started guide)

            2) the contents of the hsqldb-ds.xml at <jboss_home>\server\default\deploy

            find this line:
            jboss:service=Hypersonic,database=localDB
            now replace it with:
            jboss:service=Hypersonic


            Restart jboss and I have no more errors/warnings; everything's should running fine now

            Also see :
            http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853324

            From Jason (kusanagihk)