1 2 3 Previous Next 32 Replies Latest reply: Jun 18, 2013 4:07 PM by lukas lukasz Go to original post RSS
  • 15. Re: Anyone do osgi web application within jboss as 7?
    Ranis MK Newbie

    Hi David,

     

    Thanks for the wonderful description and sorry to open such an old thread again. I am facing problem with OSGi WABs deployed in JBoss AS7. I am able to deploy my WAB successfully, but when I try to hit the URL, I'm getting a 404 error. I have changed the value of "org.osgi.framework.startlevel.beginning" in standalone.xml as you mentioned.  Its the same case with the example "osgi-demo-wab.jar" you provided (ie when I hit http://localhost:8090/TestWab/DemoServlet ). I had actually started another thread https://community.jboss.org/thread/20283, but I'm just trying out my luck here. It would be very great if you could throw some light on this. Is there any other configuration change that need to be done?

     

    Thanks in Advance

  • 16. Re: Anyone do osgi web application within jboss as 7?
    David Bosschaert Expert

    Hi Ranis,

     

    I replied to your post here: https://community.jboss.org/thread/202836

     

    Best regards,

     

    David

  • 17. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi David,

     

    I have to bundle my service as OSGI bundle and deploy it on JBOSS AS7.

    I have attached the source code (sampleJBossWS.rar) and current serviice war.

    Please tell me what changes I have to make in order to deploy it as jboss as osgi bundle

  • 18. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi david,

     

    Can we bundle our service in same way and deploy that on JBoss 7?

     

    Thanks

    Ankur

  • 19. Re: Anyone do osgi web application within jboss as 7?
    David Bosschaert Expert

    Hi Ankur,

     

    When you're referring to 'service' I assume that you're talking about a web service that is deployed in a .war file (not to be confused by an OSGi service).

     

    To deploy a .war file as an OSGi bundle you need to turn it into a Web Application Bundle (WAB). This involves setting the required OSGi Manifest Headers (such as Bundle-ManifestVersion=2, Import-Package, SymbolicName) and specifying the WAB-specific Web-ContextPath header. For more info see chapter 128 in the OSGi Enterprise specification.

     

    In AS 7.0 and 7.1 WAB support is provided through Pax-Web. See the docs for more details: https://docs.jboss.org/author/display/JBOSGI/Provided+Examples#ProvidedExamples-WebApplication (this link applies to AS 7.1)

     

    On AS 7.2 trunk WAB support through native JBoss-Web is being developed. You can try that out if you like, see here for a system test that creates a few WABs and deploys them: http://github.com/jbossas/jboss-as/blob/master/testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/osgi/SimpleWebAppTestCase.java

  • 20. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi David,

     

    I tried adding

     

    <capability name="org.ops4j.pax.web:pax-web-jetty-bundle:1.1.2"/>

    <capability name="org.ops4j.pax.web:pax-web-jsp:1.1.2"/>

    <capability name="org.ops4j.pax.web:pax-web-extender-war:1.1.2"/>

     

    but these bundles are not present in the bundle folder of jboss.

     

    <module identifier="org.jboss.osgi.webapp" />

    contains the pax-web-extender-war-1.0.3.jar & pax-web-api-1.0.3.jar and  pax-web-jsp:1.1.2 & pax-web-jetty-bundle:1.1.2 are missing.

    how to resolve this in JBoss 7.0.2 ?

     

    Steps I followed

     

    I have to deploy a webservice on Jboss 7.0.2.final  as a OSGi Bundle

     

    The steps I have followed is

    1) I have created service class

    2) modified the web.xml for mapping

    3) made  the entries to MANIFEST.MF

     

     

    Manifest-Version: 1.0

    Bundle-ClassPath: .,WEB-INF/classes/

    Bundle-ManifestVersion: 2

    Bundle-SymbolicName: sample

    Export-Package: com.ankit.webservice

    Import-Package: org.osgi.framework

    Web-ContextPath: /sample

     

     

    4) then I generated a war file and deployed it in deployemnt folder of JBoss

     

     

    I am getting this exception

     

     

    16:08:43,451 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "sample.war"

    16:08:43,641 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api dependency to sample.war

    16:08:43,651 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deploym

    ent.unit."sample.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."sample.war".PO

    ST_MODULE: Failed to process phase POST_MODULE of deployment "sample.war"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

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

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

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

    Caused by: java.lang.NullPointerException

            at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:78)

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

            ... 5 more

     

     

    16:08:43,651 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "sample.war" was rolle

    d back with failure message {"Failed services" => {"jboss.deployment.unit.\"sample.war\".POST_MODULE" => "org.jboss.msc.

    service.StartException in service jboss.deployment.unit.\"sample.war\".POST_MODULE: Failed to process phase POST_MODULE

    of deployment \"sample.war\""}}

    16:08:43,651 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report

      Services which failed to start:

          service jboss.deployment.unit."sample.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."sample.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "sample.war"

     

     

    16:08:43,651 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled

    back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"sample.war\".POST_M

    ODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"sample.war\".POST_MODULE: Failed to p

    rocess phase POST_MODULE of deployment \"sample.war\""}}}}

  • 21. Re: Anyone do osgi web application within jboss as 7?
    David Bosschaert Expert

    Hi Ankur,

     

    I see that you're using AS 7.0.2. Apologies, the instructions I linked to were only applicable to AS 7.1. For as 7.0.2 the instructions posted earlier in this thread (https://community.jboss.org/message/616647#616647) should work.

     

    If you have no luck with either you can try building the latest AS 7.2 from master and try the native WAB support in there. This means that with AS 7.2 you can create a .wab as described before and deploy it as an OSGi bundle without the need for the configuration changes that are required for 7.0 and 7.1

     

    As you can see the WAB support area is still a bit in flux. Hopefully we can settle on the 7.2 approach going forward for the system test that shows what's currently working see here: http://github.com/jbossas/jboss-as/blob/master/testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/osgi/SimpleWebAppTestCase.java

  • 22. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi David,

     

    Thanks for the clarification.

    But my limitation is that I have to deploy my webservice as OSGi Bundle on JBoss7.0.2 and here are the steps that I followed for deploying .

     

    I have changed the framework start  lever to 3

    <property name="org.osgi.framework.startlevel.beginning">3</property>

     

     

    1) I have created service class

    2) modified the web.xml for mapping

    3) made  the entries to MANIFEST.MF

     

     

    Manifest-Version: 1.0

    Bundle-ClassPath: .,WEB-INF/classes/

    Bundle-ManifestVersion: 2

    Bundle-SymbolicName: sample

    Export-Package: com.ankit.webservice

    Import-Package: org.osgi.framework

    Web-ContextPath: /sample

     

     

    4) then I generated a war file and deployed it in deployemnt folder of JBoss

     

     

    I am getting this exception

     

     

    13:38:46,340 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start s

    ervice jboss.deployment.unit."sample.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."sample.war".POST_MODULE: Failed to process phase POST_MODULE of deployment

     

     

    "sample.war"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759

    )

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

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

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

    Caused by: java.lang.NullPointerException

            at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:78)

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

            ... 5 more

     

     

    Can you please let me know that I am bundling the application correctly or Do I need to make changes?

  • 23. Re: Anyone do osgi web application within jboss as 7?
    David Bosschaert Expert

    Hi Ankur,

     

    Could you do a simple check for me and rename your sample.war to sample.jar and see if that works? I think this version of AS7 requires that WebApplicationBundles have the .jar extension (this is not needed any more in the latest versions of AS7).

     

    Thanks,

  • 24. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi David,

     

     

    This is the exception i am getting while renaming the sample.war to sample.jar

     

    16:20:24,425 INFO  [org.eclipse.jetty.util.log] (MSC service thread 1-2) started HttpServiceContext{

    httpContext=org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext@c12ad8}

    16:20:24,425 WARN  [org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC] (MSC service th

    read 1-2) Jsp support is not enabled. Is org.ops4j.pax.web.jsp bundle installed?

    16:20:24,435 ERROR [org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC] (MSC service th

    read 1-2) Registration exception. Skipping.: java.lang.ClassCastException: com.ankit.webservice.Hell

    o cannot be cast to javax.servlet.Servlet

            at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisit

    orWC.java:200)

            at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:583)

            at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebA

    ppPublisher.java:170)

            at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChange

    d(WebAppPublisher.java:155)

            at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChange

    d(WebAppPublisher.java:119)

            at org.ops4j.pax.swissbox.tracker.ReplaceableService.setService(ReplaceableService.java:114)

     

     

            at org.ops4j.pax.swissbox.tracker.ReplaceableService.access$100(ReplaceableService.java:28)

            at org.ops4j.pax.swissbox.tracker.ReplaceableService$CollectionListener.serviceAdded(Replace

    ableService.java:183)

            at org.ops4j.pax.swissbox.tracker.ServiceCollection$Tracker.addingService(ServiceCollection.

    java:181)

            at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896) [j

    bosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) [jbosgi-frame

    work-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184) [jbosgi-fram

    ework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339) [jbosgi-framework-core

    -1.0.0.CR8.jar:1.0.0.CR8]

            at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273) [jbosgi-framework-core

    -1.0.0.CR8.jar:1.0.0.CR8]

            at org.ops4j.pax.swissbox.tracker.ServiceCollection.onStart(ServiceCollection.java:139)

            at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:1

    21)

            at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)

            at org.ops4j.pax.swissbox.tracker.ReplaceableService.onStart(ReplaceableService.java:146)

            at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:1

    21)

            at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)

            at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:81)

            at org.ops4j.pax.web.extender.war.internal.WebAppPublisherExt.publish(WebAppPublisherExt.jav

    a:40)

            at org.jboss.osgi.webapp.internal.WebAppPublisherInterceptor.invoke(WebAppPublisherIntercept

    or.java:74)

            at org.jboss.osgi.deployment.interceptor.AbstractLifecycleInterceptorService.handleStateChan

    ge(AbstractLifecycleInterceptorService.java:281) [jbosgi-deployment-1.0.10.jar:1.0.10]

            at org.jboss.osgi.framework.internal.LifecycleInterceptorPlugin.handleStateChange(LifecycleI

    nterceptorPlugin.java:125) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.changeState(AbstractBundleState.jav

    a:183) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.changeState(AbstractBundleState.jav

    a:172) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java

    :279) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:221)

    [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494)

    [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:

    144) [jboss-as-osgi-service-7.0.2.Final.jar:7.0.2.Final]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119)

    [jboss-as-osgi-service-7.0.2.Final.jar:7.0.2.Final]

            at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:142

    9) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:49) [j

    boss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1

    952) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

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

    .0_22]

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

    2]

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

     

     

    16:20:24,545 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bund

    le started: sample:0.0.0

    16:20:24,595 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "sample

     

     

    my service class is :

     

    package com.ankit.webservice;

    import javax.jws.WebMethod;

    import javax.jws.WebParam;

    import javax.jws.WebService;

    import javax.jws.soap.SOAPBinding;

    @WebService

    public class Hello

    {

    @WebMethod

    public String greet( @WebParam(name = "name")

    String name )

    {

       return "Hello" + name;

    } }      

  • 25. Re: Anyone do osgi web application within jboss as 7?
    David Bosschaert Expert

    It's quite simple. Pax-Web expects a Servlet and your class does not implement the javax.servlet.Servlet interface.

     

    I see that you are using JaxWS annotations. I'm not sure whether or how Pax-Web supports these. I know that Apache CXF supports these in an OSGi context, you might get more information from here: http://cxf.apache.org/

  • 26. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Thanks for your response. My usecase is as follows:

     

    Step1: To create a soap based web service.

    Step2: To deploy that webservice as OSGI bundle in JBoss 7.0.2

     

    Is there way to achieve this ( there is no constraint to use JAX-WS annotations. ).

    Thanks for your help.

  • 27. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi David,

     

    I tried the example given over here (http://weblogs.java.net/blog/ss141213/archive/2010/04/08/jax-ws-web-service-osgi-bundle) and deployed the same on JBoss 7.0.2

    The changes I made is , I renamed webservice.war to webservice.jar and this is the exception I got

     

    15:30:55,089 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT

    15:30:55,099 ERROR [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] (MSC service thread 1-1) Framework ERROR: org.osgi.framework.BundleException: Canno

    t resolve bundle resModule: [sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT]

            at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:210) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) [jboss-as-osgi-service-7.0.2.Final.jar:7.0.2.Final]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) [jboss-as-osgi-service-7.0.2.Final.jar:7.0.2.Final]

            at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1429) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:49) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1952) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

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

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

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

    Caused by: org.jboss.osgi.resolver.XResolverException: Unable to resolve Module[sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT]: missing requirement [Module[

    sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT]] package; (&(package=javax.jws)(version>=2.0.0))

            at org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117) [jbosgi-resolver-felix-1.0.9.jar:1.0.9]

            at org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:148) [jbosgi-resolver-spi-1.0.9.jar:1.0.9]

            at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            ... 11 more

     

    15:30:55,119 ERROR [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011912: Cannot start bundle: sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT: org.osgi.fra

    mework.BundleException: Cannot resolve bundle: sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT

            at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) [jboss-as-osgi-service-7.0.2.Final.jar:7.0.2.Final]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) [jboss-as-osgi-service-7.0.2.Final.jar:7.0.2.Final]

            at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1429) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:49) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1952) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

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

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

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

     

     

    15:30:55,119 ERROR [sahoo.hybridapp.jaxws1.web-service] (Thread-13) FrameworkEvent ERROR: org.apache.felix.log.LogException: org.osgi.framework.BundleException:

    Cannot resolve bundle resModule: [sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT]

            at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:210) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144)

            at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119)

            at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1429) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:49) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

            at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1952) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

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

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

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

    Caused by: org.apache.felix.log.LogException: org.jboss.osgi.resolver.XResolverException: Unable to resolve Module[sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAP

    SHOT]: missing requirement [Module[sahoo.hybridapp.jaxws1.web-service:1.0.0.SNAPSHOT]] package; (&(package=javax.jws)(version>=2.0.0))

            at org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117) [jbosgi-resolver-felix-1.0.9.jar:1.0.9]

            at org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:148) [jbosgi-resolver-spi-1.0.9.jar:1.0.9]

            at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155) [jbosgi-framework-core-1.0.0.CR8.jar:1.0.0.CR8]

            ... 11 more

  • 28. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi David,

     

    Can you please let me know if there is support for webservices as OSGI bundle in JBoss 6?

     

    Thanks

  • 29. Re: Anyone do osgi web application within jboss as 7?
    Ankur Agarwal Newbie

    Hi Thomas,

     

    Can you please let me know that can we deploy web services as OSGI bundle in Jboss 6 or jboss 7?

     

    Thanks