dev@glassfish.java.net

Visual JSF (Woodstock) projects failing in OSGi mode...

From: Peter Williams <Pete.Williams_at_Sun.COM>
Date: Wed, 25 Jun 2008 13:02:37 -0700

I took a generic Visual JSF web project from NetBeans (uses woodstock
components) and tried to run it against both TP2 and a V3 build from
yesterday.

This project runs fine on V3 TP2 (hk2 kernel), but fails on my Jun24
build (OSGi kernel) with 4 ClassNotFoundExceptions as shown below. Is
this a server bug? Is there a way to work around it?

-Peter

[#|2008-06-25T12:22:11.425-0700|WARNING|GlassFish10.0|global|_ThreadID=11;_ThreadName=Thread-4;|Cannot
load com.sun.webui.jsf.util.UploadFilter reason :
com.sun.webui.jsf.util.UploadFilter
java.lang.ClassNotFoundException: com.sun.webui.jsf.util.UploadFilter
        at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1503)
        at
com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:189)
        at
com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:435)
        at
com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:347)
        at
com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:319)
        at
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:210)
        at
com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:142)
        at
org.glassfish.javaee.core.deployment.JavaEEDeployer.parseModuleMetaData(JavaEEDeployer.java:243)
        at
com.sun.enterprise.web.WebDeployer.parseModuleMetaData(WebDeployer.java:131)
        at
org.glassfish.javaee.core.deployment.JavaEEDeployer.loadMetaData(JavaEEDeployer.java:169)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:503)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:255)
        at
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:219)
        at
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:97)
        at
com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:55)
        at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
        at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
        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:123)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:431)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:376)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:116)
        at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
        at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
        at java.lang.Thread.run(Thread.java:619)
|#]