2 Replies Latest reply on May 11, 2010 12:55 PM by Slava Schmidt

    Deployment Issue with jboss as 5.1.0GA

    Slava Schmidt Newbie

      Hi all, i have an issue with JBoss AS that i cannot solve. Could anybody help me?

       

      This is my class (without package and imports):

       

      public class ReplicationServiceBean implements ReplicationService {


          private final Logger log = Logger.getLogger(this.getClass().getCanonicalName());


          private DataSource dataSource;


          private ReplicationService delegate;


          private void init() {
              delegate = new ReplicationServiceImpl(dataSource);
          }


          public String getCurrentDbSchema() throws ServiceUnavailableException {
              return delegate.getCurrentDbSchema();
          }

      }

       

      With annotations it deploys just fine, but with following ejb-jar.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar
              xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                                  http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
              version="3.0">

       

          <display-name>test</display-name>

       

          <enterprise-beans>

       

              <session>
                  <ejb-name>ReplicationService</ejb-name>
                  <ejb-class>ReplicationServiceBean</ejb-class>
                  <session-type>Stateless</session-type>
                  <transaction-type>Container</transaction-type
              </session>

           </enterprise-beans>

       

          <assembly-descriptor>
              <container-transaction>
                  <method>
                      <ejb-name>ReplicationService</ejb-name>
                      <method-name>*</method-name>
                  </method>
                  <trans-attribute>Supports</trans-attribute>
              </container-transaction>
          </assembly-descriptor>
      </ejb-jar>

       

       

       

      all i get is the following stacktrace:

       

       

      15:56:39,993 INFO  [DeployHandler] Handle stream, deploymentTarget: names=[master-backend-1.0.jar], copyContent=true, description=file:/srv/jboss/server/default/tmp/embjopr/uploads/master-backend-1.0.jar
      15:56:39,993 INFO  [DeployHandler] End handle stream, repositoryName: vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/
      15:56:39,994 INFO  [DeployHandler] Begin start, [vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/]
      15:56:40,336 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@29881537{vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/ejb-jar.xml}
      15:56:40,337 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@29881537{vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/ejb-jar.xml}
      15:56:40,337 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@29881537{vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/ejb-jar.xml}
      15:56:40,343 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1f7b6b3{name=jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      15:56:40,424 INFO  [DeployHandler] Failed to complete command: [start] for deployment: names=[vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/], copyContent=true
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3_endpoint" is missing the following dependencies:
          Dependency "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **")

       

      DEPLOYMENTS IN ERROR:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **

       

          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:873)
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
          at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:265)
          at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
          at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
          at org.jboss.remoting.Client.invoke(Client.java:1724)
          at org.jboss.remoting.Client.invoke(Client.java:629)
          at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
          at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
          at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
          at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
          at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:120)
          at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(DeploymentUtils.java:103)
          at org.rhq.plugins.jbossas5.ApplicationServerComponent.createContentBasedResource(ApplicationServerComponent.java:400)
          at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:211)
          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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          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)
      15:56:40,426 ERROR [DeploymentUtils] Failed to start deployment [vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/] during initial deployment of 'master-backend-1.0.jar'. Backing out the deployment...
      java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3_endpoint" is missing the following dependencies:
          Dependency "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **")

       

      DEPLOYMENTS IN ERROR:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **

       

          at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:313)
          at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
          at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
          at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
          at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:120)
          at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(DeploymentUtils.java:103)
          at org.rhq.plugins.jbossas5.ApplicationServerComponent.createContentBasedResource(ApplicationServerComponent.java:400)
          at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:211)
          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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          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):

       

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3_endpoint" is missing the following dependencies:
          Dependency "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **")

       

      DEPLOYMENTS IN ERROR:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **

       

          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:873)
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
          at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:265)
          at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
          at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
          at org.jboss.remoting.Client.invoke(Client.java:1724)
          at org.jboss.remoting.Client.invoke(Client.java:629)
          at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
          ... 17 more
      15:56:40,428 INFO  [DeployHandler] Remove, [vfszip:/srv/jboss/server/default/deploy/master-backend-1.0.jar/]
      15:56:40,429 WARN  [CreateResourceRunner] Throwable was found in creation report for request [1]: java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3_endpoint" is missing the following dependencies:
          Dependency "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **")

       

      DEPLOYMENTS IN ERROR:
        Deployment "jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=master-backend-1.0.jar,jar=ejb-jar.xml,name=ReplicationService,service=EJB3' **
      - Enable DEBUG logging to see the stack trace.

       

       

      Can anybody please give me an idea what am i doing wrong? Thanks in advise.