users@glassfish.java.net

Re: Problems with GFv3 and OSGI Web bundle

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Mar 2010 10:48:43 PDT

And one more error : I have removed all CDI and EJB stuff...so now I have pure JSF app with IceFaces and I am getting the following exception

org.apache.jasper.JasperException: PWC6180: Unable to initialize TldScanner
        at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:300)
        at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:229)
        at org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5396)
        at com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:533)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5302)
        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: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: org.icefaces.push.servlet.ServletEnvironmentListener, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
        at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2679)
        at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2662)
        at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:874)
        at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:659)
        at org.apache.jasper.runtime.TldScanner.addListener(TldScanner.java:448)
        at org.apache.jasper.runtime.TldScanner.scanJar(TldScanner.java:433)
        at org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:626)
        at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:295)
        ... 34 more



and here is this class
package org.icefaces.push.servlet;

public class ServletEnvironmentListener implements javax.servlet.ServletContextListener, javax.servlet.http.HttpSessionListener
..............................

So it seems to be correct listener, and this app is working quite good in GFv3.0 but without OSGI.

Many thanks in advance for fixing all this :)))))
[Message sent by forum member 'smikesh' (mshtelma_at_gmail.com)]

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