quality@glassfish.java.net

Re: Glassfish going crazy after a while

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Thu, 12 Nov 2009 14:45:51 +0200

Hi Kitty-Cats


It seems myfaces config was at fault It was :
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
              version="2.0"
              metadata-complete="false">

*causing exceptions like :*
*[#|2009-11-12T14:30:19.206+0200|WARNING|glassfishv3.0|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=24;_ThreadName=Thread-1;|java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
com.sun.facelets.tag.jsf.ComponentHandler
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
com.sun.facelets.tag.jsf.ComponentHandler
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
        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:1896)
        at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1568)
        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:323)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:169)
        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
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
        at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
        at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
        at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)*
Caused by: java.lang.ClassNotFoundException:
com.sun.facelets.tag.jsf.ComponentHandler
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:949)
        at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:914)
        at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:914)
        at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
        at com.sun.faces.util.Util.loadClass(Util.java:203)
        at
com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:312)
        at
com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:567)
        at
com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:360)
        at
com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:313)
        at
com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:262)
        at
com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:337)
        ... 42 more



*Now I have it :*

<faces-config version="1.2"
              xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">

It all seems fine now. hmmm....
I am using Open Faces 2.0
*

Any clues, Ideas ?*


thanks
Richard.




2009/11/12 Richard Kolb <rjdkolb_at_gmail.com>

> Hi Cats.
>
> Has anyone experienced the container locking up
> I deploy a Web app that fails to deploy a few times.
>
> And then I see a Java process using 100% on my one CPU
> http://localhost:8080/
> http://localhost:4848/
> are unresponsive.
>
> ./bin/asadmin stop-domain domain1 does not seem work
>
> logs say nothing
>
> if I call a 'killall java' GlassFish does not shut down
>
> I have to killall -9 java to shut it down
>
> regards
> Richard.
>
>