1 Reply Latest reply on Mar 21, 2006 1:03 PM by Serge Emmanuel Pagop

    Problems with EJB3 embedded-tutorials/simple-deployment

    Serge Emmanuel Pagop Newbie

      Hi all,

      I try to run the Main.java in embedded-tutorials/simple-deployment and after the run I get an erro although I set all jars in /lib and also all the config-files in /conf in my CLASSPATH .

      ERROR 21-03 14:21:47,137 (KernelErrors.java:validate:107) -
      *** DEPLOYMENTS MISSING DEPENDENCIES:
      jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean depends on:
      persistence.units:unitName=custdb'{Create:NOT FOUND}
      persistence.units:unitName=custdb'{Start:NOT FOUND}

      Exception in thread "main" java.lang.RuntimeException: Problems scanning classpath
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:245)
      org.jboss.tutorial.simple.tutorial.simple.Main.main(Main.java:54)

      And I do not know what I do wrong and I suspect that the problem can be with unitName definition.

      Some suggestions !!!

      Thanks.




        • 1. Re: Problems with EJB3 embedded-tutorials/simple-deployment
          Serge Emmanuel Pagop Newbie

          If somebody know how I can solve this problem in embedded-tutorials/simple-deployment, please send some suggestions:.
          This ERROR-Trace in my console:

          INFO 21-03 18:36:30,544 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS'
          INFO 21-03 18:36:31,622 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 469
          INFO 21-03 18:36:31,700 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=CustomerDAOBean, class=de.mathema.tutorial.simple.CustomerDAOBean, type=STATELESS
          INFO 21-03 18:36:31,747 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 125
          INFO 21-03 18:36:31,778 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 31
          INFO 21-03 18:36:31,840 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 62
          Exception in thread "main" java.lang.RuntimeException: Problems scanning classpath
          at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:245)INFO 21-03 18:36:31,887 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean with dependencies:
          INFO 21-03 18:36:31,887 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@1a0225b{dependency=persistence.units:unitName=custdb}
          ERROR 21-03 18:36:31,903 (KernelErrors.java:validate:107) -
          *** DEPLOYMENTS MISSING DEPENDENCIES:
          jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean depends on:
          persistence.units:unitName=custdb'{Create:NOT FOUND}
          persistence.units:unitName=custdb'{Start:NOT FOUND}
          at org.jboss.tutorial.simple.Main.main(Main.java:54)

          Here is my configs:
          - persistent.xml


          <persistence-unit name="custdb">
          <jta-data-source>java:/DefaultDS</jta-data-source>



          </persistence-unit>



          in My Main.java:

          EJB3StandaloneBootstrap.boot(null);
          EJB3StandaloneBootstrap.scanClasspath();
          InitialContext ctx = getInitialContext();
          CustomerDAOLocal local = (CustomerDAOLocal)ctx.lookup("CustomerDAOBean/local");
          CustomerDAORemote remote = (CustomerDAORemote)ctx.lookup("CustomerDAOBean/remote");