users@glassfish.java.net

Re: Unable to initialize TldScanner

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 06 Aug 2009 09:23:26 -0700

On 08/06/09 04:00, glassfish_at_javadesktop.org wrote:
> With the jsp-impl.jar update from Aug 6, JSTL seems to be broken. When starting the appserver (v3b57 with today's updates) I get the stacktrace below. Reverting to the previous jsp-impl.jar bundle fixed the problem (I noticed the TldScanner class is new?)
>

Yes, the latest jsp-impl.jar implements the new "pluggable JSP
container", which leverages various Servlet 3.0 features, including
the ServletContainerInitializer facility and programmatic registration
of listeners, in an effort to clearly separate the JSP container's
from the Servlet container's concerns.

For example, the Servlet container now passes any jsp-config related
info (declared in web.xml and/or web-fragment.xml) to the JSP container
via standard ServletContext APIs, and no longer scans any TLD
resources for listeners, but delegates this task to the JSP
container's ServletContainerInitializer, which registers any listeners
declared in TLDs via the new ServletContext registration APIs.

We are investigating what might be causing the JSTL regression, so stay
tuned ...

Thanks!

Jan

> [#|2009-08-06T12:58:09.354+0200|WARNING|glassfish|org.apache.catalina.core.StandardContext|_ThreadID=11;_ThreadName=Thread-2;|PWC1420: Error invoking ServletContainerInitializer org.apache.jasper.runtime.TldScanner
> org.apache.jasper.JasperException: PWC6180: Unable to initialize TldScanner
> at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:267)
> at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:210)
> at org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5367)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:5267)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:509)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1796)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1485)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:223)
> at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:193)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:291)
> at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:306)
> at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:147)
> at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
> at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
> at java.security.AccessController.doPrivileged(Native Method)
> at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
> at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
> 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:235)
> at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:460)
> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:404)
> at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:121)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)
> at org.jvnet.hk2.osgimain.Main.start(Main.java:117)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> at java.util.jar.JarFile.<init>(JarFile.java:133)
> at java.util.jar.JarFile.<init>(JarFile.java:70)
> at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
> at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
> at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
> at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
> at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
> at org.apache.jasper.runtime.TldScanner.scanJar(TldScanner.java:330)
> at org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:503)
> at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:264)
> ... 38 more
> |#]
> [Message sent by forum member 'johanvos' (johanvos)]
>
> http://forums.java.net/jive/thread.jspa?messageID=359185
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>