0 Replies Latest reply on Sep 27, 2013 3:44 AM by umberto-cappellini

    WAB bundles starting when deployed, but not at startup

    umberto-cappellini

      Hello,

       

      I just created an OSGi WAB bundle, which starts and deploys fine when deployed from the jboss-cli, but fails to be registered to the web container at the next wildfly startup.

       

      When I deploy it through the jboss cli I get the following log (the wab is correctly registered):

       

      08:50:05,838 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-11) Starting bundle: wabexample:3.3.0

      08:50:05,841 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-11) Calling out to client code with current lock: (START) [wabexample:3.3.0, wabexample:3.3.0]

      08:50:05,849 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-11) JBAS018210: Register web context: /test

      08:50:05,849 DEBUG [org.jboss.as.osgi] (MSC service thread 1-11) Injecting bundle context BundleContext[wabexample:3.3.0] into io.undertow.servlet.spec.ServletContextImpl@593aed8a

      08:50:05,850 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-11) Register service: ServiceState{service.id=63, objectClass=[javax.servlet.ServletContext], osgi.web.symbolicname=wabexample, osgi.web.version=3.3.0, osgi.web.contextpath=/test}

      08:50:05,854 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-11) Calling out to client code with current lock: (START) [wabexample:3.3.0, wabexample:3.3.0]

      08:50:05,854 INFO  [org.jboss.osgi.framework] (MSC service thread 1-11) JBOSGI011002: Bundle started: wabexample:3.3.0

       

      ..but at wildfly startup the wab is not registered as a web app in undertow:

       

      08:50:53,901 DEBUG [org.jboss.osgi.framework] (MSC service thread 1-2) Starting bundle: wabexample:3.3.0

      08:50:53,901 DEBUG [org.jboss.modules] (MSC service thread 1-2) Module deployment.wabexample.wab:main defined by Service Module Loader

      08:50:53,908 DEBUG [org.jboss.modules] (MSC service thread 1-2) Module org.jboss.as.jsf-injection:main defined by local module loader @69960a51 (finder: local module finder @797f81fe (roots: /opt/wildfly-8.0.0.Alpha4/modules,/opt/wildfly-8.0.0.Alpha4/modules/system/layers/base))

      08:50:53,909 INFO  [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002: Bundle started: wabexample:3.3.0


      Any idea ?


      Thanks, Umberto