Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3450

OSGi-WAR fails to deploy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • OSGi
    • Hide

      Set osgi-subsystem activation to "eager", startlevel to "3" to provoke the error on eagerloading.
      Deploy attached test-WAR.

      Show
      Set osgi-subsystem activation to "eager", startlevel to "3" to provoke the error on eagerloading. Deploy attached test-WAR.

    Description

      Trying to deploy a very simple WAR, containing one Servlet as OSGi-bundle on jboss-as-7.1.0.Beta1 fails with error on ClassLoading the servlet.
      osgi-subsystem activation is set to "eager", startlevel to "3".

      Will attach full log and test-WAR, here is an extract from the stacktrace:
      ERROR [org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC] (MSC service thread 1-12) Registration exception. Skipping.: java.lang.ClassNotFoundException: jboss.osgi.webapp.test.JNDIViewServlet from [Module "deployment.jboss.osgi.webapp.test.OSGiWebApp:0.0.1.SNAPSHOT" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.0.CR4]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485) [jboss-modules.jar:1.1.0.CR4]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421) [jboss-modules.jar:1.1.0.CR4]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:155) [jboss-modules.jar:1.1.0.CR4]
      at org.jboss.osgi.framework.internal.HostBundleRevision.loadClass(HostBundleRevision.java:114) [jbosgi-framework-core-1.1.0.jar:]
      at org.jboss.osgi.framework.internal.AbstractBundleState.loadClass(AbstractBundleState.java:415) [jbosgi-framework-core-1.1.0.jar:]
      at org.jboss.osgi.framework.internal.HostBundleState.loadClass(HostBundleState.java:151) [jbosgi-framework-core-1.1.0.jar:]

      Attachments

        Activity

          People

            tdiesler@redhat.com Thomas Diesler
            r.neubauer@seeburger.de Rico Neubauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: