2 Replies Latest reply on Aug 14, 2012 6:09 AM by thomas.diesler

    Getting 404 when accessing deployed OSGi bundle with JAX-WS.

    pankbharambe

      Hi ,

       

      I got simple example of osgi bundle using JAX-WS in this http://weblogs.java.net/blog/ss141213/archive/2010/04/08/jax-ws-web-service-osgi-bundle blog which is in GlassFish server. I have deployed that into JBoss EAP 6 server but i got following error.

       

      18:23:15,773 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jbosgi.integration.AutoInstallHandler.COMPLETE: org.jboss.msc.service.StartException in service jbosgi.integration.AutoInstallHandler.COMPLETE: Failed to start service

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_17]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_17]

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]

      Caused by: java.lang.IllegalStateException: JBOSGI011217: Cannot load module: deployment.org.apache.felix.configadmin:1.2.8.redhat-1

          at org.jboss.osgi.framework.internal.ResolverPlugin.loadModules(ResolverPlugin.java:267)

          at org.jboss.osgi.framework.internal.ResolverPlugin.applyResolverResults(ResolverPlugin.java:204)

          at org.jboss.osgi.framework.internal.ResolverPlugin.resolveAndApply(ResolverPlugin.java:121)

          at org.jboss.osgi.framework.internal.PackageAdminPlugin.resolveBundles(PackageAdminPlugin.java:372)

          at org.jboss.as.osgi.service.AutoInstallIntegration$1.start(AutoInstallIntegration.java:175)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

          ... 3 more

      Caused by: org.jboss.modules.ModuleLoadException: JBAS018760: Timeout waiting for module service: deployment.org.apache.felix.configadmin:1.2.8.redhat-1

          at org.jboss.as.server.moduleservice.ServiceModuleLoader$ModuleSpecLoadListener.getModuleSpec(ServiceModuleLoader.java:133) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

          at org.jboss.as.server.moduleservice.ServiceModuleLoader.findModule(ServiceModuleLoader.java:174) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)

          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)

          at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:158) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

          at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:233)

          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:246)

          at org.jboss.as.osgi.service.ModuleLoaderIntegration.preloadModule(ModuleLoaderIntegration.java:178)

          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:204)

          at org.jboss.osgi.framework.internal.ModuleManagerPlugin.loadModule(ModuleManagerPlugin.java:506)

          at org.jboss.osgi.framework.internal.ResolverPlugin.loadModules(ResolverPlugin.java:265)

          ... 9 more

       

       

      MANIFEST.MF of osgi-service is as follow...

       

      Manifest-Version: 1.0

      Archiver-Version: Plexus Archiver

      Created-By: 1.6.0_16 (Sun Microsystems Inc.)

      Built-By: ss141213

      Build-Jdk: 1.6.0_16

      Export-Package: sahoo.hybridapp.jaxws1.service;uses:="org.osgi.framework";version="1.0.0.SNAPSHOT"

      Bundle-Version: 1.0.0.SNAPSHOT

      Tool: Bnd-0.0.311

      Bundle-Name: OSGi Service module for our application

      Bnd-LastModified: 1270710908705

      Bundle-Activator: sahoo.hybridapp.jaxws1.service.Activator

      Bundle-ManifestVersion: 2

      Bundle-SymbolicName: sahoo.hybridapp.jaxws1.osgi-service

      Import-Package: org.osgi.framework;version="1.5",sahoo.hybridapp.jaxws1.service;version="1.0"

       

       

      MANIFEST.MF of web-service is as follow...

       

      Manifest-Version: 1.0

      Archiver-Version: Plexus Archiver

      Created-By: 1.6.0_16 (Sun Microsystems Inc.)

      Built-By: ss141213

      Build-Jdk: 1.6.0_16

      Bundle-ClassPath: WEB-INF/classes/

      Private-Package: sahoo.hybridapp.jaxws1.webservice;version="1.0-SNAPSHOT"

      Bundle-Version: 1.0.0.SNAPSHOT

      Tool: Bnd-0.0.311

      Bundle-Name: Web Service module of our application

      Bnd-LastModified: 1270710909852

      Bundle-ManifestVersion: 2

      Bundle-SymbolicName: sahoo.hybridapp.jaxws1.web-service

      Web-ContextPath: /hybridapp.jaxws1.web-service

      Import-Package: javax.jws;version="2.0",org.osgi.framework;version="1.

      5",sahoo.hybridapp.jaxws1.service;version="1.0"

       

       

      Please anybody look into this and tell me whats going wrong here.

       

      Thanks..