Hi John,

John Langley schrieb:
> Just FYI... 
> 
> I tried loading the launchpad webapp into glassfishv3-prelude this
> afternoon and it threw  exception stack included below. 
> My guess is that this is related to there being different versions of
> the org.apache.felix.framework.Felix because glassfishv3-prelude also
> uses felix. Perhaps there's a work around by specifying a different
> import version in a sling manifest? 
> 
> I haven't tried to dig around, but osgi ~should~ allow us to have
> multiple versions, but being a relative newbie I realize this may be on
> the hairy edge of 'system bundle' space, which could be a limitation
> that's hard to work around. 

OSGi in fact allows for running framework inside frameworks. Since there
are issues with this regarding the integration with the JVM, the R4.2
draft even contains RFC138 on this matter.

The problem IIRC with glassfish is, that the
org.osgi.framework.bootdelegation framework property is set to "*" (as I
said IIRC), which causes all classes from outside the framework are
visible inside the framework. I think they did this for backwards
compatibility for non-OSGi glassfish 2.

Regards
Felix

> 
> At any rate, I thought I'd let people know. 
> 
> -- Langley 
> 
> 
> 
> 
> 
> Feb 20, 2009 4:27:56 PM org.apache.catalina.core.ApplicationContext log
> SEVERE:
> WebModule[/org.apache.sling.launchpad.webapp-4-incubator-SNAPSHOT]sling:
> Failed to start Sling in
> sling/_org.apache.sling.launchpad.webapp-4-incubator-SNAPSHOT
> java.lang.NoSuchMethodError:
> org.apache.felix.framework.Felix.<init>(Ljava/util/Map;)V
>         at
> org.apache.sling.launchpad.base.impl.SlingFelix.<init>(SlingFelix.java:39)
>         at
> org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:234)
>         at
> org.apache.sling.launchpad.base.webapp.SlingBridge.<init>(SlingBridge.java:42)
>         at
> org.apache.sling.launchpad.base.webapp.SlingServletDelegate.init(SlingServletDelegate.java:202)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:270)
>         at
> org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:317)
>         at
> org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:254)
>         at
> org.apache.sling.launchpad.webapp.SlingServlet.init(SlingServlet.java:90)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:270)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4953)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5350)
>         at com.sun.enterprise.web.WebModule.start(WebModule.java:456)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:906)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
>         at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2205)
>         at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1890)
>         at
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:85)
>         at
> com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:560)
>         at
> com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:547)
>         at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:189)
>         at
> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:260)
>         at
> com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:97)
>         at
> com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:61)
>         at
> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
>         at com.sun.hk2.component.ConstructorWomb
> $1.run(ConstructorWomb.java:90)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
>         at
> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>         at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>         at
> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>         at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>         at
> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:203)
>         at com.sun.enterprise.v3.server.AppServerStartup
> $1.run(AppServerStartup.java:116)
> 
> 

Reply via email to