users@glassfish.java.net

PWC6180: Unable to initialize TldScanner when deploying simple ear

From: <glassfish_at_javadesktop.org>
Date: Mon, 11 Oct 2010 13:41:26 PDT

I have just posted and Issue with Glassfish 3.0.1 https://glassfish.dev.java.net/issues/show_bug.cgi?id=13918, has anyone else seen this bug?

I have created a simple ear file which contains one jar containing an EJB3.1
Stateless Session bean and an war file containing one Faces ManagedBean. When I
try to deploy this I get the following error.
"PWC6180: Unable to initialize TldScanner"

The ejb jar is in the lib directory in the ear file
The war is in the root of the ear file
I have an application.xml defining the war (I believe that I don't need to
define the ejb jar as I am using EJB3.1 which is automatically picked up)

I know there is know there is no problem with the code as if I package the ejb
jar in the WEB-INF/lib directory then everything works fine. In my real project
I want to use EJBs from multiple wars so packaging them multiple times is not an
option.

Has anyone else seen these errors, see stack trace below
[#|2010-10-11T21:14:21.328+0100|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=35;_ThreadName=http-thread-pool-4848-(10);|Loading
application test-ear-1.0-2#test-war-1.0.war at /test-war|#]

[#|2010-10-11T21:14:21.382+0100|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=35;_ThreadName=Thread-1;|test-ear-1.0-2
was successfully deployed in 640 milliseconds.|#]

[#|2010-10-11T21:15:43.176+0100|WARNING|glassfish3.0.1|org.apache.catalina.connector.Request|_ThreadID=28;_ThreadName=Thread-1;|PWC4011:
Unable to set request character encoding to UTF-8 from context , because request
parameters have already been read, or ServletRequest.getReader() has already
been called|#]

[#|2010-10-11T21:15:43.752+0100|SEVERE|glassfish3.0.1|org.apache.catalina.core.StandardContext|_ThreadID=28;_ThreadName=Thread-1;|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:287)
        at org.apache.jasper.runtime.TldScanner.onStartup(TldScanner.java:228)
        at
org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5352)
        at
com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:550)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5263)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
        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:1947)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
        at
org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:138)
        at
org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:350)
        at
org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:89)
        at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:66)
        at
org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:186)
        at sun.reflect.GeneratedMethodAccessor416.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
        at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at
com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
        at
com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772)
        at javax.faces.component.UICommand.broadcast(UICommand.java:300)
        at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: javax.servlet.ServletException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error creating
managed object for class com.sun.faces.config.ConfigureListener
        at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2659)
        at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2642)
        at
org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1270)
        at
org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:665)
        at org.apache.jasper.runtime.TldScanner.addListener(TldScanner.java:435)
        at org.apache.jasper.runtime.TldScanner.scanJar(TldScanner.java:420)
        at org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:633)
        at org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:282)
        ... 75 more
Caused by: javax.servlet.ServletException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error creating
managed object for class com.sun.faces.config.ConfigureListener
        at
org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2769)
        at org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4719)
        at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1583)
        at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2656)
        ... 82 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Error creating managed object for class com.sun.faces.config.ConfigureListener
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
        at
com.sun.enterprise.web.WebContainer.createListenerInstance(WebContainer.java:741)
        at com.sun.enterprise.web.WebModule.createListenerInstance(WebModule.java:1958)
        at
org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2767)
        ... 85 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: No
descriptor registered for current invocation :
com.sun.enterprise.web.WebComponentInvocation_at_12620d3
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:143)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:127)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:306)
        ... 88 more
[Message sent by forum member 'owenfellows']

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