1 2 Previous Next 18 Replies Latest reply on Apr 12, 2011 6:55 AM by deryaaltuntas

    Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA

    vhalitsyn

      I have a simple EJB 3.0 jar I want to deploy to JBoss.

      I am using next persistance.xml configuration file

       

      <persistence>

          <persistence-unit name="MyCompanyEntityManager">

              <jta-data-source>java:/MyCompanyDS</jta-data-source>

              <properties>

                  <property name="hibernate.hbm2ddl.auto" value="create-drop"/>

              </properties>

          </persistence-unit>

      </persistence>

       

      which is intended to use next JNDI database

       

      <datasources>

        <local-tx-datasource>

          <jndi-name>MyCompanyDS</jndi-name>

          <connection-url>jdbc:mysql://localhost:3306/testdb</connection-url>

          <driver-class>com.mysql.jdbc.Driver</driver-class>

          <user-name>root</user-name>

          <password>root</password>

          <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>   

          <metadata>

             <type-mapping>mySQL</type-mapping>

          </metadata>

        </local-tx-datasource>

      </datasources>

       

      To use the entity managet I use the next code snippet

       

      protected EntityManager _em;

       

          @PersistenceContext(unitName = Constants.ENTITY_MANAGER_NAME)

          void setEm(EntityManager em) {

              _log.info(getServiceCassName() +  ": Entity Manager acquired");

              _em = em;

          }

       

      where

      public static final String ENTITY_MANAGER_NAME = "MyCompanyEntityManager";

       

      When I deploy the jar to Jboss I get the following exception:

       

      18:10:30,278 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error deploying model-ejb.jar: Container jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3 failed to resolve persistence unit MyCompanyEntityManager

      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:201)

      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:103)

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)

      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:830)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      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:668)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:270)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

      at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      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:668)

      at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)

      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

      at sun.rmi.transport.Transport$1.run(Transport.java:159)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3 failed to resolve persistence unit MyCompanyEntityManager

      at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135)

      at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)

      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:588)

      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:415)

      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:523)

      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:194)

      ... 70 more

      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'MyCompanyEntityManager' in AbstractVFSDeploymentContext@10940133{vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/}

      at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107)

      at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:720)

      at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1428)

      at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130)

      ... 75 more

      18:10:30,278 WARN  [MainDeployer] Failed to deploy: file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      *** DEPLOYMENTS IN ERROR: Name -> Error

       

      Everything seams to be configured OK, please help.

        • 1. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
          jaikiran

          Have you placed the persistence.xml in the model-ejb.jar/META-INF folder?

           

          P.S: I would recommend that you upgrade to the latest stable 5.1.0 version of the AS.

          • 2. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
            vhalitsyn

            Hi jaikiran,

            here is the output from c:\Projects\Java\Test\TestWebApp\testproject-maven-j2ee\model-ejb\target>jar tf

            model-ejb.jar

            META-INF/

            META-INF/MANIFEST.MF

            com/

            com/mycompany/

            com/mycompany/ejb/

            com/mycompany/ejb/common/

            com/mycompany/ejb/entity/

            com/mycompany/ejb/impl/

            com/mycompany/ejb/local/

            com/mycompany/ejb/remote/

            com/mycompany/ejb/common/AbstractServiceImplBase.class

            com/mycompany/ejb/common/Constants.class

            com/mycompany/ejb/common/ICopyTo.class

            com/mycompany/ejb/common/ICRUDService.class

            com/mycompany/ejb/entity/BaseEntity.class

            com/mycompany/ejb/entity/TestTable.class

            com/mycompany/ejb/impl/TestTableServiceImpl.class

            com/mycompany/ejb/local/ITestTableServiceLocal.class

            com/mycompany/ejb/remote/ITestTableServiceRemote.class

            META-INF/persistance.xml

            META-INF/maven/

            META-INF/maven/com.mycompany/

            META-INF/maven/com.mycompany/model-ejb/

            META-INF/maven/com.mycompany/model-ejb/pom.xml

            META-INF/maven/com.mycompany/model-ejb/pom.properties

             

            Unfortunately we can't move to 5.1 on production but I'll test and let you know.

            • 3. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
              jaikiran

              vhalitsyn wrote:

               

              Hi jaikiran,

              here is the output from c:\Projects\Java\Test\TestWebApp\testproject-maven-j2ee\model-ejb\target>jar tf


              META-INF/persistance.xml


              Rename persistance.xml to persistence.xml

              • 4. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                vhalitsyn

                Hi again and thanks for reply - part of the problem solved. Now I've got

                 

                10:55:19,828 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/ state=Not Installed mode=Manual requiredState=Parse

                org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/

                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)

                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)

                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)

                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)

                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:830)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                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:668)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:270)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

                at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                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:668)

                at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)

                at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

                at sun.rmi.transport.Transport$1.run(Transport.java:159)

                at java.security.AccessController.doPrivileged(Native Method)

                at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

                at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:619)

                Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=persistence

                at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

                at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)

                at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)

                at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)

                at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)

                at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)

                at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)

                at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)

                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323)

                ... 70 more

                Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=persistence

                at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)

                at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)

                at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)

                at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)

                at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

                at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

                at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

                at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

                at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)

                ... 78 more

                10:55:19,828 WARN  [MainDeployer] Failed to deploy: file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

                org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                 

                Does this mean that I have to fully configure my persistence specifying the dialect and classes and other stuff? I read that this is not needed with EJB 3.0

                • 5. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                  wolfgangknauf

                  Hi,

                   

                  your "persistence.xml" lacks the schema declaration etc. It should start with this:

                   

                  (if the following snippet is broken, it is the fault of the new wiki, I gave the "Wiki markup help" a try...)

                   

                  {code:xml}<?xml version="1.0" encoding="UTF-8"?>
                  <persistence 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"
                      version="1.0">{code}

                   

                  Hope this helps

                   

                  Wolfgang

                  • 6. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                    wolfgangknauf

                    whow, it IS broken... Anybody who knows how to use the new wiki tags like "{code:xml}...{code}" from [http://community.jboss.org/plugins/wiki/README.html]?

                     

                    Wolfgang

                    • 7. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                      jaikiran

                      WolfgangKnauf wrote:

                       

                      whow, it IS broken... Anybody who knows how to use the new wiki tags like "{code:xml}...{code}" from [http://community.jboss.org/plugins/wiki/README.html]?

                       

                      Wolfgang

                      The way it's "supposed" to work is:

                       

                      1) Click on "Wiki Markup" button in the editor

                      2) In the box that gets created in the editor, add your text with the wiki markup language

                      3) Submit

                      (4. Now is the time, you start praying that you don't lose the contents)

                       

                      But there are numerous issues with the editor, so i can't really guarantee it's going to work. Atleast for me, most of the times it takes numerous attempts to get the formatting right and not lose the contents, in the forum/wiki editor.

                      • 8. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                        wolfgangknauf

                        let's try it and pray ;-):

                         

                        {code:xml}<?xml version="1.0" encoding="UTF-8"?>
                        <persistence 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"
                             version="1.0">{code}

                         

                        Hope we are back to the original subject now...

                        • 9. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                          vhalitsyn

                          Ok. We have major things solved, however I still can't deploy with initial JBoss setup. Now it complains about the EJBTiming service. I think this would be fixed in 5.1.0 But here's the stack trace  - so maybe this thread will help anyone with same problems.

                           

                          BTW:It is so awful you cannot use inheritance in the entity classes! E.G. we cannot have @Id in the base class and have the entity successfully restored.

                           

                          16:21:43,144 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                           

                          DEPLOYMENTS MISSING DEPENDENCIES:

                            Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is missing the following dependencies:

                              Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                              Dependency "jboss.jdbc:datasource=DefaultDS,service=metadata" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **")

                            Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:

                              Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing the following dependencies:

                              Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing the following dependencies:

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the following dependencies:

                              Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following dependencies:

                              Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:

                              Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:

                              Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.messaging:service=JMSUserManager" is missing the following dependencies:

                              Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                            Deployment "jboss.messaging:service=PersistenceManager" is missing the following dependencies:

                              Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                            Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                            Deployment "jboss.messaging:service=ServerPeer" is missing the following dependencies:

                              Dependency "jboss.messaging:service=PersistenceManager" (should be in state "Create", but is actually in state "Configured")

                              Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss.mq:service=DestinationManager" is missing the following dependencies:

                              Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                            Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:

                              Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                           

                          DEPLOYMENTS IN ERROR:

                            Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **

                            Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **

                           

                          16:21:43,160 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

                          16:21:43,191 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

                          16:21:43,191 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Started in 37s:330ms

                          Connected to server

                          [2010-01-25 04:21:43,269] Artifact model-ejb:ejb: Artifact is being deployed, please wait...

                          [2010-01-25 04:21:43,285] Artifact SpringMVCUI:war: Artifact is being deployed, please wait...

                          16:21:43,332 WARN  [MainDeployer] undeploy 'file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/SpringMVCUI/target/SpringMVCUI.war' : package not deployed

                          16:21:43,332 INFO  [MainDeployer] deploy, url=file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/SpringMVCUI/target/SpringMVCUI.war

                          16:21:43,332 WARN  [MainDeployer] undeploy 'file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar' : package not deployed

                          16:21:43,347 INFO  [MainDeployer] deploy, url=file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

                          16:21:43,785 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@7070406{vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/}

                          16:21:43,785 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@7070406{vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/}

                          16:21:45,379 INFO  [TomcatDeployment] deploy, ctxPath=/SpringMVCUI

                          16:21:45,441 INFO  [JBossASKernel] Created KernelDeployment for: model-ejb.jar

                          16:21:45,457 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3

                          16:21:45,457 INFO  [JBossASKernel]   with dependencies:

                          16:21:45,457 INFO  [JBossASKernel]   and demands:

                          16:21:45,457 INFO  [JBossASKernel] jboss.ejb:service=EJBTimerService

                          16:21:45,457 INFO  [JBossASKernel] persistence.unit:unitName=#MyCompanyEntityManager

                          16:21:45,457 INFO  [JBossASKernel]   and supplies:

                          16:21:45,457 INFO  [JBossASKernel] jndi:TestTableServiceImpl/local-com.mycompany.ejb.local.ITestTableServiceLocal

                          16:21:45,457 INFO  [JBossASKernel] Class:com.mycompany.ejb.local.ITestTableServiceLocal

                          16:21:45,457 INFO  [JBossASKernel] jndi:TestTableServiceImpl/remote

                          16:21:45,457 INFO  [JBossASKernel] jndi:TestTableServiceImpl/local

                          16:21:45,457 INFO  [JBossASKernel] jndi:TestTableServiceImpl/remote-com.mycompany.ejb.remote.ITestTableServiceRemote

                          16:21:45,457 INFO  [JBossASKernel] Class:com.mycompany.ejb.remote.ITestTableServiceRemote

                          16:21:45,457 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3) to KernelDeployment of: model-ejb.jar

                          16:21:45,597 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#MyCompanyEntityManager

                          16:21:45,675 INFO  [[/SpringMVCUI]] Initializing Spring FrameworkServlet 'springmvcui'

                          16:21:45,675 INFO  [DispatcherServlet] FrameworkServlet 'springmvcui': initialization started

                          16:21:45,707 INFO  [XmlWebApplicationContext] Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1952e89: display name [WebApplicationContext for namespace 'springmvcui-servlet']; startup date [Mon Jan 25 16:21:45 EET 2010]; root of context hierarchy

                          16:21:45,769 INFO  [Version] Hibernate Annotations 3.4.0.GA

                          16:21:45,832 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/springmvcui-servlet.xml]

                          16:21:45,832 INFO  [Environment] Hibernate 3.3.1.GA

                          16:21:45,847 INFO  [Environment] hibernate.properties not found

                          16:21:45,847 INFO  [Environment] Bytecode provider name : javassist

                          16:21:45,879 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling

                          16:21:45,988 INFO  [XmlWebApplicationContext] Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1952e89]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3b9b12

                          16:21:46,097 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b9b12: defining beans [org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor]; root of factory hierarchy

                          16:21:46,160 INFO  [Version] Hibernate Commons Annotations 3.1.0.GA

                          16:21:46,191 INFO  [Version] Hibernate EntityManager 3.4.0.GA

                          16:21:46,285 INFO  [DispatcherServlet] FrameworkServlet 'springmvcui': initialization completed in 610 ms

                          [2010-01-25 04:21:46,300] Artifact SpringMVCUI:war: Artifact is deployed successfully

                          16:21:46,410 WARN  [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.

                          16:21:46,597 INFO  [AnnotationBinder] Binding entity from annotated class: com.mycompany.ejb.entity.TestTable

                          16:21:47,285 INFO  [EntityBinder] Bind entity com.mycompany.ejb.entity.TestTable on table test_table

                          16:21:47,441 INFO  [Version] Hibernate Validator 3.1.0.GA

                          16:21:47,519 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

                          16:21:47,675 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                          16:21:47,691 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource

                          16:21:48,566 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.1.34-community

                          16:21:48,566 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )

                          16:21:48,629 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect

                          16:21:48,644 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory

                          16:21:48,644 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup

                          16:21:48,676 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup

                          16:21:48,676 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled

                          16:21:48,676 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled

                          16:21:48,676 INFO  [SettingsFactory] JDBC batch size: 15

                          16:21:48,676 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled

                          16:21:48,691 INFO  [SettingsFactory] Scrollable result sets: enabled

                          16:21:48,691 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled

                          16:21:48,691 INFO  [SettingsFactory] Connection release mode: auto

                          16:21:48,691 INFO  [SettingsFactory] Maximum outer join fetch depth: 2

                          16:21:48,691 INFO  [SettingsFactory] Default batch fetch size: 1

                          16:21:48,691 INFO  [SettingsFactory] Generate SQL with comments: disabled

                          16:21:48,691 INFO  [SettingsFactory] Order SQL updates by primary key: disabled

                          16:21:48,691 INFO  [SettingsFactory] Order SQL inserts for batching: disabled

                          16:21:48,691 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

                          16:21:48,691 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory

                          16:21:48,691 INFO  [SettingsFactory] Query language substitutions: {}

                          16:21:48,691 INFO  [SettingsFactory] JPA-QL strict compliance: enabled

                          16:21:48,691 INFO  [SettingsFactory] Second-level cache: enabled

                          16:21:48,691 INFO  [SettingsFactory] Query cache: disabled

                          16:21:48,707 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge

                          16:21:48,707 INFO  [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider

                          16:21:48,707 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled

                          16:21:48,707 INFO  [SettingsFactory] Cache region prefix: persistence.unit:unitName=#MyCompanyEntityManager

                          16:21:48,707 INFO  [SettingsFactory] Structured second-level cache entries: disabled

                          16:21:48,738 INFO  [SettingsFactory] Statistics: disabled

                          16:21:48,738 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled

                          16:21:48,754 INFO  [SettingsFactory] Default entity-mode: pojo

                          16:21:48,754 INFO  [SettingsFactory] Named query checking : enabled

                          16:21:49,035 INFO  [SessionFactoryImpl] building session factory

                          16:21:49,847 INFO  [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=#MyCompanyEntityManager

                          16:21:49,847 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

                          16:21:49,863 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=#MyCompanyEntityManager

                          16:21:49,863 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext

                          16:21:50,066 INFO  [SchemaExport] Running hbm2ddl schema export

                          16:21:50,082 INFO  [SchemaExport] exporting generated schema to database

                          16:21:51,285 INFO  [SchemaExport] schema export complete

                          16:21:51,285 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

                          16:21:51,348 WARN  [MainDeployer] Failed to deploy: file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

                          org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                           

                          DEPLOYMENTS MISSING DEPENDENCIES:

                            Deployment "jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3" is missing the following dependencies:

                              Dependency "<UNKNOWN jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **")

                           

                          DEPLOYMENTS IN ERROR:

                            Deployment "<UNKNOWN jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **

                           

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)

                          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)

                          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:869)

                          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:858)

                          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:833)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          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:668)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:270)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

                          at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)

                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                          at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          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:668)

                          at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)

                          at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

                          at sun.rmi.transport.Transport$1.run(Transport.java:159)

                          at java.security.AccessController.doPrivileged(Native Method)

                          at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

                          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

                          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

                          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                          at java.lang.Thread.run(Thread.java:619)

                          org.jboss.deployment.DeploymentException: Failed to deploy: file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

                          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:838)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          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:668)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:270)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

                          at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)

                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                          at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                          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:668)

                          at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)

                          at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                          at java.lang.reflect.Method.invoke(Method.java:597)

                          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

                          at sun.rmi.transport.Transport$1.run(Transport.java:159)

                          at java.security.AccessController.doPrivileged(Native Method)

                          at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

                          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

                          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

                          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                          at java.lang.Thread.run(Thread.java:619)

                          Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                          Where should I get all those dependencies for JBoss 5.0.1 GA?
                          • 10. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                            wolfgangknauf

                            Hi,

                             

                            did you change the configuration for the DefaultDS data source? It seems that this one cannot be initialized.

                             

                            Try to deploy your app without your custom "java:/MyCompanyDS" (using "java:DefaultDS" in persistence.xml). Does this work?

                             

                            Best regards

                             

                            Wolfgang

                            • 11. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                              vhalitsyn

                              Hi Wolfgang,

                               

                              The only place where I can see the DefaultDs being mentioned is the standardjbosscmp-jdbc.xml and and login-config.xml located in 'deploy/conf' dir. However this ha nothing to do with my deployment.I deployed the -ds.xml file with config to my datasource. I don't want all apps to have same login/datasource configuration for EJB. What if I need several EJB packages under one server instance? I also tried 5.1.0 GA this morning - it doesn't give me those errors about TimerService, but I recieve this

                               

                              12:00:38,747 INFO  [MainDeployer] deploy, url=file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

                              12:00:38,903 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@28901345{vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/}

                              12:00:38,903 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@28901345{vfszip:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar/}

                              12:00:39,028 INFO  [JBossASKernel] Created KernelDeployment for: model-ejb.jar

                              12:00:39,028 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3

                              12:00:39,028 INFO  [JBossASKernel]   with dependencies:

                              12:00:39,028 INFO  [JBossASKernel]   and demands:

                              12:00:39,028 INFO  [JBossASKernel] jboss.ejb:service=EJBTimerService

                              12:00:39,028 INFO  [JBossASKernel] persistence.unit:unitName=#MyCompanyEntityManager

                              12:00:39,028 INFO  [JBossASKernel]   and supplies:

                              12:00:39,028 INFO  [JBossASKernel] jndi:TestTableServiceImpl/local-com.mycompany.ejb.local.ITestTableServiceLocal

                              12:00:39,028 INFO  [JBossASKernel] Class:com.mycompany.ejb.local.ITestTableServiceLocal

                              12:00:39,028 INFO  [JBossASKernel] jndi:TestTableServiceImpl/remote

                              12:00:39,028 INFO  [JBossASKernel] jndi:TestTableServiceImpl/local

                              12:00:39,028 INFO  [JBossASKernel] jndi:TestTableServiceImpl/remote-com.mycompany.ejb.remote.ITestTableServiceRemote

                              12:00:39,028 INFO  [JBossASKernel] Class:com.mycompany.ejb.remote.ITestTableServiceRemote

                              12:00:39,043 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3) to KernelDeployment of: model-ejb.jar

                              12:00:39,043 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@c4e0d3{name=jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

                              12:00:39,122 WARN  [MainDeployer] Failed to deploy: file:/C:/Projects/Java/Test/TestWebApp/testproject-maven-j2ee/model-ejb/target/model-ejb.jar

                              org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              DEPLOYMENTS MISSING DEPENDENCIES:

                                Deployment "jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3" is missing the following dependencies:

                                  Dependency "<UNKNOWN jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#MyCompanyEntityManager' **")

                                Deployment "jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3_endpoint" is missing the following dependencies:

                                  Dependency "jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")

                                Deployment "persistence.unit:unitName=#MyCompanyEntityManager" is missing the following dependencies:

                                  Dependency "jboss.jca:name=MyCompanyDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=MyCompanyDS,service=DataSourceBinding' **")

                               

                              DEPLOYMENTS IN ERROR:

                                Deployment "<UNKNOWN jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#MyCompanyEntityManager' **

                                Deployment "jboss.jca:name=MyCompanyDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=MyCompanyDS,service=DataSourceBinding' **

                               

                              Important: with 5.0.1 it actually created the tables in the database for me(although deployed with error) but 5.1.0, out-of -the box didn't.

                               

                              UPD: looks like correlating with http://community.jboss.org/thread/110523?start=15&tstart=0#

                              • 12. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                                vhalitsyn

                                Ok - got it to work with 5.1.0 GA There reason for the previous errors was that I had a clean install of the server and forgot to deploy database connector driver and -ds.xml descriptor to the instance. Now deploys great with no error.

                                Still the question remains about 5.0.1 GA - how to fix the EJB service so that they start normally?

                                BTW - thanks for help so far!

                                • 13. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                                  wolfgangknauf

                                  Hi,

                                   

                                  I am a bit confused ;-). What do you mean with "how to fix the EJB service so that they start normally"? I thought your errors are fixed? Please provide updated error messages. Did you check in JNDIView that your custom data source is found by JBoss?

                                   

                                  Best regards

                                   

                                  Wolfgang

                                  • 14. Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
                                    vhalitsyn

                                    Hi again,

                                     

                                    All errors gone for JBoss 5.1.0 GA. - EJB package deployed successfully.

                                    However the very same setup fails on 5.0.1 GA which we are using extensively now.

                                     

                                    The final error is as follows

                                    DEPLOYMENTS MISSING DEPENDENCIES:

                                      Deployment "jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3" is missing the following dependencies:

                                        Dependency "<UNKNOWN jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **")

                                     

                                    DEPLOYMENTS IN ERROR:

                                      Deployment "<UNKNOWN jboss.j2ee:jar=model-ejb.jar,name=TestTableServiceImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **

                                     

                                    Previous errors on the stack

                                     

                                    14:22:17,761 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                                     

                                    DEPLOYMENTS MISSING DEPENDENCIES:

                                      Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is missing the following dependencies:

                                        Dependency "jboss.jdbc:datasource=DefaultDS,service=metadata" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **")

                                        Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                                      Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:

                                        Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing the following dependencies:

                                        Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the following dependencies:

                                        Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following dependencies:

                                        Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                        Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                        Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging:service=JMSUserManager" is missing the following dependencies:

                                        Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                                      Deployment "jboss.messaging:service=PersistenceManager" is missing the following dependencies:

                                        Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                                      Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:

                                        Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.messaging:service=ServerPeer" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=PersistenceManager" (should be in state "Create", but is actually in state "Configured")

                                        Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss.mq:service=DestinationManager" is missing the following dependencies:

                                        Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")

                                      Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:

                                        Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

                                     

                                    Thanks.

                                     

                                    DEPLOYMENTS IN ERROR:

                                      Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **

                                      Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **

                                    1 2 Previous Next