0 Replies Latest reply on Oct 4, 2006 11:26 PM by Sirajul Muneer

    Eror while looking EJB...Urgent

    Sirajul Muneer Newbie

      I m getting an error as such shown below while trying to scan Class path of BootStrap.

      I just put two lines of code in my sample app and classpath for some ejbs.

      Code is-->
      EJB3StandaloneBootstrap.boot(null);
      System.out.println("----------------------------------------------------------");
      EJB3StandaloneBootstrap.scanClasspath();
      Error is ->
      WARN 05-10 08:29:48,905 (BeanSchemaBinding.java:init:227) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
      ----------------------------------------------------------
      java.lang.RuntimeException: java.lang.IllegalStateException: Already installed jboss.j2ee:service=EJB3,jar=ejb,name=ScheduleSessionBean
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:90)
      at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:414)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:463)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:450)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:238)
      at test.TestMe.main(TestMe.java:11)
      Caused by: java.lang.IllegalStateException: Already installed jboss.j2ee:service=EJB3,jar=ejb,name=ScheduleSessionBean
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:149)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:86)
      ... 5 more
      Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: Already installed jboss.j2ee:service=EJB3,jar=ejb,name=ScheduleSessionBean
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:243)
      at test.TestMe.main(TestMe.java:11)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Already installed jboss.j2ee:service=EJB3,jar=ejb,name=ScheduleSessionBean
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:90)
      at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:414)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:463)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:450)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:238)
      ... 1 more
      Caused by: java.lang.IllegalStateException: Already installed jboss.j2ee:service=EJB3,jar=ejb,name=ScheduleSessionBean
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:149)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:86)
      ... 5 more


      embedded-jboss-beans.xml,
      ejb3-interceptors-aop.xml
      default.persistence.properties
      log4j.xml

      Files are present in class path.

      persistence.xml is present in META_INF

      the problem shows only when I am trying to add class path of EJB in my project.
      Lest Booting and scanClasspath works fine.(Removing classpath of EJB)

      Please help me ..Its quite urgent...
      Thanks in advance
      Regards
      Muneer