1 Reply Latest reply on Sep 9, 2003 6:22 AM by Darran Lofthouse

    ear containing sar problem

    gaulakh Newbie

      Hi,

      I am working with jboss 3.0.1 on Win2k.

      I am trying to create an ear that has an ejb.jar and a service archive (.sar).
      Previously I had the ejb.ear and the .sar as separate deployments but now I need to package them together in the same ear.

      I have followed the instructions in the JbossBook 3.0.7.pdf (Jboss Admin and Devel) and have a setup similar to Listing 2.21.
      In my ejb.ear I have two xml files, application.xml and jboss-app.xml. Here are their contents

      application.xml
      <?xml version="1.0" encoding="ISO-8859-1"?>


      <display-name>myapp</display-name>


      <web-uri>DAS.war</web-uri>
      <context-root>/DAS</context-root>



      ejb.jar



      jboss-app.xml
      <jboss-app>

      service.sar

      <loader-repository>com.mycompany.ejb:loader=ejb.ear</loader-repository>
      </jboss-app>

      Inside the service.sar I have a jboss-service.xml.

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>







      When I try to run this setup I get the following deployment error.
      Does anyone know what I am doing wrong?

      Thank you.

      ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@e67e6f25{ url=file:/C:/jboss-3.0.1/server/default/deploy/ejb.ear, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: app:service=MyService is not registered.; - nested throwable: (javax.management.InstanceNotFoundException: app:service=MyService is not registered.)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:749)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:741)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:238)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:396)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:796)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.management.InstanceNotFoundException: app:service=MyService is not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:403)
      at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:502)
      at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:736)
      at org.jboss.system.ServiceController.create(ServiceController.java:276)
      at org.jboss.system.ServiceController.create(ServiceController.java:242)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:217)
      ... 47 more
      2003-09-08 11:28:54,339 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-3.0.1/server/default/deploy/ejb.ear -> file:/C:/jboss-3.0.1/server/default/deploy/ejb.ear
      2003-09-08 11:28:54,339 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@e67e6f25 { url=file:/C:/jboss-3.0.1/server/default/deploy/ejb.ear }
      deployer: org.jboss.deployment.EARDeployer@1976011
      status: Deployment FAILED reason: app:service=MyService is not registered.; - nested throwable: (javax.management.InstanceNotFoundException: app:service=MyService is not registered.)
      state: FAILED
      watch: file:/C:/jboss-3.0.1/server/default/deploy/ejb.ear
      lastDeployed: 1063045733738
      lastModified: 1063045716163
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: app:service=MyService
      state: NOTYETINSTALLED
      I Depend On:
      Depends On Me: ]