6 Replies Latest reply on Sep 7, 2007 8:24 PM by William Woodman

    help getting started with eclipse

    William Woodman Master

      having basic problems getting to first check point with ejb3 - just starting out and got stuck.

      running europa eclipse and run JBOSS AS4.2 and have deployed a mysql JTA datasource in the server and started in Eclipse.

      Then I have created an EJB project and decalred an peristence unit xml as follows

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
       <persistence-unit name="embedDS" transaction-type="JTA">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
       <jta-data-source>jdbc/embedDS</jta-data-source>
       <class>org.model.Message</class>
       <properties>
       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
       <property name="hibernate.show_sql" value="true"/>
       </properties>
       </persistence-unit>
      </persistence>
      


      I think i have this right - the defaultDS is still using jboss AS defaults.

      I then create simple message persistence entity class as follows.

      package org.model;
      
      import javax.persistence.Column;
      import javax.persistence.Entity;
      import javax.persistence.GeneratedValue;
      import javax.persistence.GenerationType;
      import javax.persistence.Id;
      import javax.persistence.*;
      
      @Entity
      @Table(name="message", catalog="embed")
      public class Message
      {
       private long messageID;
       private String message;
      
       @Id
       @GeneratedValue(strategy=GenerationType.AUTO)
       @Column(name="messageID")
       public long getMessageID() {
       return messageID;
       }
      
       public void setMessageID(long messageID) {
       this.messageID = messageID;
       }
      
       public String getMessage() {
       return message;
       }
      
       public void setMessage(String message) {
       this.message = message;
       }
      
      
      
      }
      


      however in my eclipse editor this wont compile - the error says


      Severity and Description Path Resource Location Creation Time Id
      Schema "root" cannot be resolved for table "message" SessionTest/ejbModule/org/model Message.java line 11 1189118136216 1813

      Severity and Description Path Resource Location Creation Time Id
      Column "messageID" cannot be resolved SessionTest/ejbModule/org/model Message.java line 19 1189118136216 1811

      and

      Severity and Description Path Resource Location Creation Time Id
      Column "message" cannot be resolved SessionTest/ejbModule/org/model Message.java line 28 1189118136216 1812



      - cant therefore compile nor test the rest of my understanding if i cant get past this.

      the error Schema "root" cannot be resolved for table "message" is associated with the @table annotation -

      any ideas as what I am doing wrong here ?



        • 1. Re: help getting started with eclipse
          wayne baylor Apprentice

          i'm not 100% sure, but it may be a warning that the DB doesn't contain any such table, etc. (assuming you set up the datasource connection)

          • 2. Re: help getting started with eclipse
            William Woodman Master

            I wondered about that also - but i dont think it is that, but just in case i created the table in the mysql db by hand - no difference.

            In addition i've not actually deployed the code to the server - as it wont compile - so how could eclipse use the datasource when i'm not running the code ?

            what i have at present is

            1. hand created catalog and one table crafted by hand using mysql admin
            a user account and password created and granted all rights on the catlog which i called 'embed'

            2. in the AS i deployed a new JTA datasource call 'jdbc/embedDS and pointed it at the mysql url and catalog.

            
            <datasources>
            <xa-datasource>
             <jndi-name>jdbc/embedDS</jndi-name>
             <use-java-context>false</use-java-context>
             <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class >
             <xa-datasource-property name="URL">jdbc:mysql://localhost:3306/embed</xa-datasource-property>
             <user-name>embed</user-name>
             <password>embed</password>
             <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
             <max-pool-size>5</max-pool-size>
             <min-pool-size>1</min-pool-size>
             <blocking-timeout-millis>2000</blocking-timeout-millis>
             <idle-timeout-minutes>2</idle-timeout-minutes>
             <track-connection-by-tx>true</track-connection-by-tx>
             <no-tx-separate-pools>false</no-tx-separate-pools>
             <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
             <metadata>
             <type-mapping>mySQL</type-mapping>
             </metadata>
            </xa-datasource>
            


            that i think is okay (cant test it yet) but it appears in the JMX console as deployed - and i wrote an external jndi lookup to get a connection on theDS and close it (no sql commands) and that didnt error.

            3. I have created an EJB project in eclipse for ejb3 and perisistence facets. I've setup the persistence XML ok (i hope) in the meta inf directory and pointed it a

            
            <?xml version="1.0" encoding="UTF-8"?>
            <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
             <persistence-unit name="embedDS" transaction-type="JTA">
             <provider>org.hibernate.ejb.HibernatePersistence</provider>
             <jta-data-source>jdbc/embedDS</jta-data-source>
             <class>org.model.Message</class>
             <properties>
             <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
             <property name="hibernate.show_sql" value="true"/>
             </properties>
             </persistence-unit>
            </persistence>
            


            4. I have created the entity class in org.model as
            
            package org.model;
            
            import javax.persistence.Column;
            import javax.persistence.Entity;
            import javax.persistence.GeneratedValue;
            import javax.persistence.GenerationType;
            import javax.persistence.Id;
            import javax.persistence.*;
            
            @Entity
            @Table(name="message", catalog="embed")
            public class Message
            {
             private long messageID;
             private String message;
            
             @Id
             @GeneratedValue(strategy=GenerationType.AUTO)
             @Column(name="messageID")
             public long getMessageID() {
             return messageID;
             }
            
             public void setMessageID(long messageID) {
             this.messageID = messageID;
             }
            
             public String getMessage() {
             return message;
             }
            
             public void setMessage(String message) {
             this.message = message;
             }
            
            
            
            }
            


            and thats the bit that has these blessed compile errors.

            Given the bean hasnt been deployed - and i have set the hibernate properties to "create-drop" the tables i cant see how the compiler could be trying to use the datasource and getting confused. It makes no difference whether i add or remove the table in mysql by hand or otherwise ?

            my EJB project has the jboss4.2 jar set, including the mysql adapter jar and the the JRE 6 system library jar set.

            Is there anything you can see that i'm doing stupid please



            • 3. Re: help getting started with eclipse
              William Woodman Master

              has any else had this problem ? Still kinda stuck and i'm sure its something simple

              • 4. Re: help getting started with eclipse
                William Woodman Master

                has any else had this problem ? Still kinda stuck and i'm sure its something simple

                • 5. Re: help getting started with eclipse - update
                  William Woodman Master

                  not sure how but things seem to have shifted along -

                  I had installed the mysql 5.04jar file - so went to mysql site and downloaded the latest driver 5.07. removed the orld jar from default/lib and copied the new one instead -

                  This seemed to leave me with one error not three - so I commented out the @table annotation and it suddenly said it was happy.

                  however - when i try to deploy the test ejb to the server i get another problem see trace

                  ...
                  23:46:11,987 INFO [JmxKernelAbstraction] jboss.jca:name=jdbc/embedDS,service=DataSourceBinding
                  23:46:11,987 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=SessionTest.jar,unitName=embedDS
                  23:46:11,997 WARN [ServiceController] Problem starting service persistence.units:jar=SessionTest.jar,unitName=embedDS
                  javax.naming.NameNotFoundException: jdbc not bound
                   at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                   at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                   at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                   at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
                   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
                   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                   at javax.naming.InitialContext.lookup(Unknown Source)
                   at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:216)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                   at $Proxy0.start(Unknown Source)
                   at org.jboss.system.ServiceController.start(ServiceController.java:417)
                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy59.start(Unknown Source)
                   at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
                   at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:551)
                   at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:333)
                   at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                   at $Proxy0.start(Unknown Source)
                   at org.jboss.system.ServiceController.start(ServiceController.java:417)
                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy33.start(Unknown Source)
                   at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                   at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                   at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                   at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                   at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy34.start(Unknown Source)
                   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                   at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy9.deploy(Unknown Source)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                  23:46:12,047 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
                  23:46:12,057 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3 with dependencies:
                  23:46:12,278 INFO [EJBContainer] STARTED EJB: org.HelperBean ejbName: HelperBean
                  23:46:12,298 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
                  23:46:12,298 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3 with dependencies:
                  23:46:12,298 INFO [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  23:46:12,298 INFO [JmxKernelAbstraction] persistence.units:jar=SessionTest.jar,unitName=embedDS
                  23:46:12,298 INFO [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3
                  23:46:12,308 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
                  23:46:12,308 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 with dependencies:
                  23:46:12,308 INFO [JmxKernelAbstraction] persistence.units:jar=SessionTest.jar,unitName=embedDS
                  23:46:12,308 INFO [EJB3Deployer] Deployed: file:/E:/jboss/jboss-4.2.0.GA/server/default/deploy/SessionTest.jar
                  23:46:12,308 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
                  
                  --- MBeans waiting for other MBeans ---
                  ObjectName: persistence.units:jar=SessionTest.jar,unitName=embedDS
                   State: FAILED
                   Reason: javax.naming.NameNotFoundException: jdbc not bound
                   I Depend On:
                   jboss.jca:service=DataSourceBinding,name=jdbc/embedDS
                   Depends On Me:
                   jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                   jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  
                  ObjectName: jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                   State: NOTYETINSTALLED
                   I Depend On:
                   jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                   persistence.units:jar=SessionTest.jar,unitName=embedDS
                   jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3
                  
                  ObjectName: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                   State: NOTYETINSTALLED
                   I Depend On:
                   persistence.units:jar=SessionTest.jar,unitName=embedDS
                   Depends On Me:
                   jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                  
                  --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                  ObjectName: persistence.units:jar=SessionTest.jar,unitName=embedDS
                   State: FAILED
                   Reason: javax.naming.NameNotFoundException: jdbc not bound
                   I Depend On:
                   jboss.jca:service=DataSourceBinding,name=jdbc/embedDS
                   Depends On Me:
                   jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                   jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  
                  
                  23:48:07,644 INFO [EJBContainer] STOPPED EJB: org.HelperBean ejbName: HelperBean
                  23:48:07,644 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3 is not registered
                  23:48:07,644 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3 is not registered
                  23:48:07,644 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  23:48:07,644 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  23:48:07,644 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  23:48:07,644 WARN [JmxKernelAbstraction] persistence.units:jar=SessionTest.jar,unitName=embedDS is not registered
                  23:48:37,797 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
                  23:48:37,797 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=SessionTest.jar,unitName=embedDS with dependencies:
                  23:48:37,797 INFO [JmxKernelAbstraction] jboss.jca:name=jdbc/embedDS,service=DataSourceBinding
                  23:48:37,807 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3
                  23:48:37,807 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3
                  23:48:37,807 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3 is not registered
                  23:48:37,807 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                  23:48:37,807 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                  23:48:37,807 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3 is not registered
                  23:48:37,807 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered
                  23:48:37,807 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  23:48:37,807 WARN [JmxKernelAbstraction] persistence.units:jar=SessionTest.jar,unitName=embedDS is not registered
                  23:48:37,807 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=SessionTest.jar
                  java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                   at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:124)
                   at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:551)
                   at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:333)
                   at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                   at $Proxy0.start(Unknown Source)
                   at org.jboss.system.ServiceController.start(ServiceController.java:417)
                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy33.start(Unknown Source)
                   at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                   at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                   at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                   at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                   at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy34.start(Unknown Source)
                   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                   at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy9.deploy(Unknown Source)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                  Caused by: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                   at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
                   at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:666)
                   at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:871)
                   at org.jboss.system.ServiceController.register(ServiceController.java:842)
                   at org.jboss.system.ServiceController.create(ServiceController.java:296)
                   at org.jboss.system.ServiceController.create(ServiceController.java:273)
                   at org.jboss.system.ServiceController.create(ServiceController.java:349)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy76.create(Unknown Source)
                   at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:119)
                   ... 67 more
                  23:48:37,827 INFO [EJB3Deployer] Deployed: file:/E:/jboss/jboss-4.2.0.GA/server/default/deploy/SessionTest.jar
                  23:48:37,827 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
                  
                  --- MBeans waiting for other MBeans ---
                  ObjectName: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                   State: NOTYETINSTALLED
                   I Depend On:
                   persistence.units:jar=SessionTest.jar,unitName=embedDS
                  
                  ObjectName: jboss.j2ee:service=EJB3,module=SessionTest.jar
                   State: FAILED
                   Reason: java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                  
                  --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                  ObjectName: persistence.units:jar=SessionTest.jar,unitName=embedDS
                   State: NOTYETINSTALLED
                   Depends On Me:
                   jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  
                  ObjectName: jboss.j2ee:service=EJB3,module=SessionTest.jar
                   State: FAILED
                   Reason: java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                  
                  
                  23:49:07,900 WARN [Ejb3Module] Destroying failed jboss.j2ee:service=EJB3,module=SessionTest.jar
                  java.lang.IllegalStateException: Container jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3 + is not registered
                   at org.jboss.ejb3.Ejb3Registry.unregister(Ejb3Registry.java:94)
                   at org.jboss.ejb3.Ejb3Deployment.undeploy(Ejb3Deployment.java:610)
                   at org.jboss.ejb3.Ejb3Deployment.destroy(Ejb3Deployment.java:599)
                   at org.jboss.ejb3.Ejb3Module.destroyService(Ejb3Module.java:122)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalDestroy(ServiceMBeanSupport.java:345)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:249)
                   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                   at $Proxy0.destroy(Unknown Source)
                   at org.jboss.system.ServiceController.destroy(ServiceController.java:577)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy33.destroy(Unknown Source)
                   at org.jboss.ejb3.EJB3Deployer.destroy(EJB3Deployer.java:550)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                   at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                   at org.jboss.ws.integration.jboss42.DeployerInterceptor.destroy(DeployerInterceptor.java:119)
                   at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.destroy(SubDeployerInterceptorSupport.java:204)
                   at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:103)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy34.destroy(Unknown Source)
                   at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:704)
                   at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:639)
                   at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
                   at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy9.undeploy(Unknown Source)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:450)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:570)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                  23:49:23,012 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
                  23:49:23,012 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=SessionTest.jar,unitName=embedDS with dependencies:
                  23:49:23,012 INFO [JmxKernelAbstraction] jboss.jca:name=jdbc/embedDS,service=DataSourceBinding
                  23:49:23,012 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3
                  23:49:23,012 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3
                  23:49:23,012 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=HelperBean,service=EJB3 is not registered
                  23:49:23,012 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                  23:49:23,012 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3
                  23:49:23,012 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=SessionBean,service=EJB3 is not registered
                  23:49:23,012 WARN [JmxKernelAbstraction] jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered
                  23:49:23,012 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  23:49:23,012 WARN [JmxKernelAbstraction] persistence.units:jar=SessionTest.jar,unitName=embedDS is not registered
                  23:49:23,022 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=SessionTest.jar
                  java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                   at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:124)
                   at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:551)
                   at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:333)
                   at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                   at $Proxy0.start(Unknown Source)
                   at org.jboss.system.ServiceController.start(ServiceController.java:417)
                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy33.start(Unknown Source)
                   at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                   at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                   at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                   at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                   at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy34.start(Unknown Source)
                   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                   at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy9.deploy(Unknown Source)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                  Caused by: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                   at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
                   at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:666)
                   at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:871)
                   at org.jboss.system.ServiceController.register(ServiceController.java:842)
                   at org.jboss.system.ServiceController.create(ServiceController.java:296)
                   at org.jboss.system.ServiceController.create(ServiceController.java:273)
                   at org.jboss.system.ServiceController.create(ServiceController.java:349)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                   at java.lang.reflect.Method.invoke(Unknown Source)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy77.create(Unknown Source)
                   at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:119)
                   ... 67 more
                  23:49:23,022 INFO [EJB3Deployer] Deployed: file:/E:/jboss/jboss-4.2.0.GA/server/default/deploy/SessionTest.jar
                  23:49:23,022 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
                  
                  --- MBeans waiting for other MBeans ---
                  ObjectName: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                   State: NOTYETINSTALLED
                   I Depend On:
                   persistence.units:jar=SessionTest.jar,unitName=embedDS
                  
                  ObjectName: jboss.j2ee:service=EJB3,module=SessionTest.jar
                   State: FAILED
                   Reason: java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                  
                  --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                  ObjectName: persistence.units:jar=SessionTest.jar,unitName=embedDS
                   State: NOTYETINSTALLED
                   Depends On Me:
                   jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3
                  
                  ObjectName: jboss.j2ee:service=EJB3,module=SessionTest.jar
                   State: FAILED
                   Reason: java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=SessionTest.jar,name=MessageServiceBean,service=EJB3 is not registered.
                  
                  
                  


                  not sure whats happened here - it looks as though for some reason my embedDS datasource wont now start - and my SessionTestBean with the entity manager dependency then doesnt go to plan.

                  I've tried unintalling the bean, deleting it from the deploy directory - restarting the server and i still hit the problem

                  any one seen anything like this and could advise?

                  • 6. Re: help getting started with eclipse
                    William Woodman Master

                    its getting late now but I seem to have got it working. Changed several things and now quite sure now which combo made it all work.

                    1. removed the 'jdbc/' prestring from the dataource, and persistence unit seemto help alot in the end.

                    I had a another @PersistenceContext (name='..') EntityManager em

                    but noticed that it should have been unitName = "..". The name attribute refers to a jndi ref and i was getting alll sorts of exceptions.

                    however the long and short of now appears to work .

                    - how reproducable it'll be in the morning i dont know.

                    Goodnight