3 Replies Latest reply on May 8, 2005 4:36 AM by simonwind

    new JBOSS user; having problem deploying examples in book...

    rnunziata

      I have been trying to get examples from the OÂ’Reilly Enterprise Java Beans 4-th Edition book to run with JBOSS using its Hypersonic database.

      IÂ’ve set up JBOSS and have been able to access the Hypersonic database under its JMX Management console and run the load scripts.

      I am running JBOSS 4.0 RC1 and Eclipse 3.1 with the JBOSS-IDE Eclipse plug-in.

      I have followed all the instructions in JBOSS documentation jbossj2ee.pdf for seting up the Hypersonic database.

      When I deploy the first example I get the following error. Does anyone have any ideas how to investigate this further.


      FROM THE JBOSS CONSOLE:

      Default/server.logDepends On Me:
      ObjectName: jboss.j2ee:jndiName=ejb/Cabin,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound)
      ObjectName: jboss.j2ee:jndiName=ejb/Cabin,plugin=pool,service=EJB
      state: CREATED
      I Depend On:
      Depends On Me:

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

      ObjectName: jboss.j2ee:jndiName=ejb/Cabin,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound)
      ObjectName: jboss.j2ee:jndiName=ejb/Cabin,plugin=pool,service=EJB
      state: CREATED
      I Depend On:
      Depends On Me:



      ALSO PRIOR TO THE ERROR IN THE default/server.log FILE SHOWING HYPERSONIC INSTALL

      2004-09-28 19:16:51,647 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:service=Hypersonic
      2004-09-28 19:16:51,647 DEBUG [org.jboss.system.ServiceConfigurator] Port set to 1701 in jboss:service=Hypersonic
      2004-09-28 19:16:51,647 DEBUG [org.jboss.system.ServiceConfigurator] Silent set to true in jboss:service=Hypersonic
      2004-09-28 19:16:51,647 DEBUG [org.jboss.system.ServiceConfigurator] Database set to default in jboss:service=Hypersonic
      2004-09-28 19:16:51,647 DEBUG [org.jboss.system.ServiceConfigurator] Trace set to false in jboss:service=Hypersonic
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceConfigurator] No_system_exit set to true in jboss:service=Hypersonic
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] Creating service jboss.jca:name=DefaultDS,service=LocalTxCM
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:name=DefaultDS,service=LocalTxCM waiting on jboss.jca:name=DefaultDS,service=ManagedConnectionPool
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] Creating service jboss.jca:name=DefaultDS,service=ManagedConnectionPool
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:name=DefaultDS,service=ManagedConnectionPool waiting on jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] Creating service jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:name=DefaultDS,service=ManagedConnectionFactory waiting on jboss:database=localDB,service=Hypersonic
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] Creating service jboss.jca:name=DefaultDS,service=DataSourceBinding
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:name=DefaultDS,service=DataSourceBinding waiting on jboss.jca:name=DefaultDS,service=LocalTxCM
      2004-09-28 19:16:51,657 DEBUG [org.jboss.system.ServiceController] Creating service jboss:service=Hypersonic
      2004-09-28 19:16:51,657 DEBUG [org.jboss.jdbc.HypersonicDatabase] Creating jboss:service=Hypersonic
      2004-09-28 19:16:51,657 DEBUG [org.jboss.jdbc.HypersonicDatabase] Created jboss:service=Hypersonic