users@glassfish.java.net

Re: Problems with GFv3 and OSGI Web bundle

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Mar 2010 07:50:54 PDT

Hello,

I have attached the test project. It is working if built as a normal WAR, but fails if built as a WAB. I have managed to deploy as a WAB the same application, but without icefaces. So pure JSF with composite components are working quite good as a WAB as well.

There is also other question, are there a roadmap for the GF 3.1 available? I am interested in possible release dates.

Thanks in advance :)

With best regards,
Michael Shtelma


PS Here is a stack trace for your information
[#|2010-03-17T15:02:28.819+0100|SEVERE|glassfishv3.0|org.apache.catalina.core.ContainerBase|_ThreadID=24;_ThreadName=Thread-1;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.glassfish.osgiweb.OSGiFacesConfigResourceProvider cannot be cast to com.sun.faces.spi.ConfigurationResourceProvider
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5328)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:482)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:913)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:897)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:681)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1926)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1598)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:87)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:127)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:242)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:249)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:342)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:186)
        at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:153)
        at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:112)
        at org.glassfish.osgijavaeebase.OSGiContainer.deployJavaEEArtifacts(OSGiContainer.java:193)
        at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:101)
        at org.glassfish.osgiweb.WebExtender.deploy(WebExtender.java:167)
        at org.glassfish.osgiweb.WebExtender.bundleChanged(WebExtender.java:119)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1690)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:902)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1027)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1013)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:398)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:206)
Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.glassfish.osgiweb.OSGiFacesConfigResourceProvider cannot be cast to com.sun.faces.spi.ConfigurationResourceProvider
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4684)
        at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:518)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
        ... 30 more
Caused by: java.lang.ClassCastException: org.glassfish.osgiweb.OSGiFacesConfigResourceProvider cannot be cast to com.sun.faces.spi.ConfigurationResourceProvider
        at com.sun.faces.spi.ConfigurationResourceProviderFactory.createProviders(ConfigurationResourceProviderFactory.java:88)
        at com.sun.faces.config.ConfigManager.getConfigurationResourceProviders(ConfigManager.java:470)
        at com.sun.faces.config.ConfigManager.getFacesConfigResourceProviders(ConfigManager.java:453)
        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:306)
:
[Message sent by forum member 'smikesh' (mshtelma_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=392372