[Hippo-cms7-user] Re: Occasional NoClassDefFoundError in Tomcat 6.0.2

Woonsan Ko w.ko at onehippo.com
Fri Feb 26 15:38:54 CET 2010


Hi Dennis,

I'm not sure but I'd like to suggest you set the log level to info
level to find the error pattern.
I'm suggesting this because I found the following line in "PluginFactory.java":

            ClassLoader loader = ((UserSession) Session.get()).getClassLoader();
            if (loader == null) {
                log.info("Unable to retrieve repository classloader,
falling back to default classloader.");
                loader = getClass().getClassLoader();
            }

The first line looks like trying to retrieve the classloader of the
jcr session object which is stored in UserSession object as a
JcrSessionModel.
I don't have any clue, but I wonder if the line ("Unable to
retieve...") is logged whenever you meet the exception.

Additionally, if possible, you can inspect the classloader in the
above code lines to figure out why it cannot find the class.

Just my two cents,

Woonsan


On Fri, Feb 26, 2010 at 11:28 AM, Dennis Dam <d.dam at onehippo.com> wrote:
> getting this exception again .. what could be the cause of the exception ?
> It seems random when this exception occurs.
>
> On Thu, Feb 4, 2010 at 9:07 AM, Dennis Dam <d.dam at onehippo.com> wrote:
>>
>> Hi there,
>>
>> Sometimes I get the exception below when starting the CMS (currently
>> 2.09.05) in Tomcat 6.0.2 with Java version 1.6.0_14. A restart of Tomcat
>> solves the problem. Does  anybody have any idea what is the cause?
>>
>> Thanks,
>> Dennis
>>
>> Feb  4 08:33:31 127.0.0.1 org.apache.wicket.WicketRuntimeException: Method
>> onFormSubmitted of interface
>> org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
>> [MarkupContainer [Component id = signInForm]] threw an
>> exception
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:31)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>> Feb  4 08:33:31 127.0.0.1 at java.lang.Thread.run(Thread.java:619)
>> Feb  4 08:33:31 127.0.0.1 Caused by:
>> java.lang.reflect.InvocationTargetException
>> Feb  4 08:33:31 127.0.0.1 at
>> sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
>> Feb  4 08:33:31 127.0.0.1 at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> Feb  4 08:33:31 127.0.0.1 at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
>> Feb  4 08:33:31 127.0.0.1 ... 27 more
>> Feb  4 08:33:31 127.0.0.1 Caused by: java.lang.NoClassDefFoundError:
>> org.hippoecm.frontend.plugins.yui.layout.PageLayoutBehavior
>> Feb  4 08:33:31 127.0.0.1 at java.lang.Class.forName0(Native Method)
>> Feb  4 08:33:31 127.0.0.1 at java.lang.Class.forName(Class.java:247)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.plugin.impl.PluginFactory.createPlugin(PluginFactory.java:67)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:84)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:248)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:112)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.Home.<init>(Home.java:111)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.Home.<init>(Home.java:64)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.hippoecm.frontend.plugins.login.RememberMeLoginPlugin$SignInForm.onSubmit(RememberMeLoginPlugin.java:201)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1355)
>> Feb  4 08:33:31 127.0.0.1 at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810)
>> Feb  4 08:33:31 127.0.0.1 ... 31 more
>
>
>
> --
> Hippo B.V.  -  Amsterdam
> Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466
>
> Hippo USA Inc.  -  San Francisco
> 101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
> -----------------------------------------------------------------
> http://www.onehippo.com   -  info at onehippo.com
> -----------------------------------------------------------------
>
>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html
>



-- 
w.ko at onehippo.com     www.onehippo.com
EUROPE • AMSTERDAM - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
NORTH AMERICA • SAN FRANCISCO - Hippo USA Inc. 185 H Street, Suite B
Petaluma CA 94952 +1 (877) 414-4776



More information about the Hippo-cms7-user mailing list