tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound
Date Thu, 25 Sep 2008 16:20:10 GMT
Hmmm... and I take it you are sure the version being used when the stack 
trace is produced is the same version you are looking at.  In that case 
my next thought is to check for a classloader issue.  Do 
StrutsPageLifecycleFactory and DefaultStrutsPageLifecycleFactory only 
exist once in tomcat (if in common/[classes|lib], it can't be in 
WEB-INF/[classes|lib] and vice-versa)?  Lastly I'm wondering if there's 
a problem if DefaultStrusPageLifecycleFactory is in a different 
classloader than StrutsPageLifecycleFactory?

Overall I'm guessing this is some sort of classloader issue.

--David

Jon Haitz Legarreta Gorroño wrote:
> Hi again,
> thanks for your interest, David.
> Well, found that line 68 in StrutsPageLifecycleFactory.java is empty !!
>
> The method menetioned is the following, and line 68 is the one above 
> the return statement:
>
> private static StrutsPageLifecycleFactory getDefaultInstance()
>   {
>      if (defaultInstance == null)
>      {
>         defaultInstance = new DefaultStrutsPageLifecycleFactory();
>      }
>          return defaultInstance;
>   }
>
> I don't know whether sometime it contained something, but no doubt I 
> haven't edited it !
>
> BTW, forgot to mention that some other Web applications I've got work 
> fine.
>
> Thanks again for any suggestion.
> JON HAITZ
>
>
>
>
>
>
> David Smith escribió:
>>> oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68)

>>
>>
>>
>> ... so what class is referenced at line 68 of 
>> StrutsPageLifecycleFactory.java?  It's weird that it didn't include 
>> the class name it couldn't find in the stack trace.
>>
>> --David
>>
>> Jon Haitz Legarreta Gorroño wrote:
>>> Hi all,
>>> since a couple of days ago I've been experiencing problems with a 
>>> Web application of mine that worked fine until then: when I deployed 
>>> the application (built with Java and JSP) under my Tomcat 5.0.28 I 
>>> got the following error stack (sorry for the length):
>>>
>>> HTTP Status 500
>>>
>>> The server found an internal error tha prevented it from fulfilling 
>>> this request
>>>
>>> 2008-09-25 16:18:52 StandardContext[/ADMPAC]StandardWrapper.Throwable
>>> java.lang.NoClassDefFoundError
>>>   at 
>>> oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68)

>>>
>>>   at 
>>> oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58)

>>>
>>>   at 
>>> oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73)

>>>
>>>   at 
>>> org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503)

>>>
>>>   at 
>>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
>>>   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>>>   at 
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)

>>>
>>>   at 
>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 
>>>
>>>
>>>   // Some org.apache.catalina.core.* classes related lines more
>>>
>>>   at 
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>   at 
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
>>>
>>>   at 
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

>>>
>>>   at 
>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
>>>
>>>   at 
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

>>>
>>>   at java.lang.Thread.run(Unknown Source)
>>>
>>> 2008-09-25 16:18:52 StandardWrapperValve[action]: Excepción de 
>>> reserva de espacio para servlet action
>>> javax.servlet.ServletException: Servlet.init() para servlet action 
>>> lanzó excepción
>>>   at 
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071)

>>>
>>>   at 
>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 
>>>
>>>   at 
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)

>>>
>>>
>>>   // Some org.apache.catalina.core.* classes related lines more
>>>
>>>   at 
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>   at 
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
>>>
>>>   at 
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

>>>
>>>   at 
>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
>>>
>>>   at 
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

>>>
>>>   at java.lang.Thread.run(Unknown Source)
>>> ----- Root Cause -----
>>> java.lang.NoClassDefFoundError
>>>   at 
>>> oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68)

>>>
>>>   at 
>>> oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58)

>>>
>>>   at 
>>> oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73)

>>>
>>>   at 
>>> org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503)

>>>
>>>   at 
>>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
>>>   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>>>   at 
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)

>>>
>>>   at 
>>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 
>>>
>>>   at 
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)

>>>
>>>       // Some org.apache.catalina.core.* classes related lines 
>>> more   at 
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>   at 
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
>>>
>>>   at 
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

>>>
>>>   at 
>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
>>>
>>>   at 
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

>>>
>>>   at java.lang.Thread.run(Unknown Source)
>>>
>>>
>>>
>>> I would say that I am 99% sure that it is not due to an error in my 
>>> code (the same code worked three days ago), and I haven't changed 
>>> anything else.
>>>
>>> Could somebody cast some light on this error, please?
>>> I am unable to make head or tail of it. And I did not find any 
>>> useful information on the Web.
>>>
>>> Many thanks in advance !!
>>> JON HAITZ
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message