tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Haitz Legarreta Gorroño <jhlegarr...@vicomtech.org>
Subject Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound
Date Mon, 29 Sep 2008 16:02:41 GMT
Hi all,
first of all, sorry for posting here the complete stack trace, but I 
don't know which other information may be of use...

The log files I am looking in Tomcat are three:

1. stdout - Edited each time I restart tomcat (I stop tomcat before 
superseding my old webapp version). Apparently OK, no error messages:


29-sep-2008 17:48:42 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
29-sep-2008 17:48:42 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 969 ms
29-sep-2008 17:48:43 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
29-sep-2008 17:48:43 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
29-sep-2008 17:48:43 org.apache.catalina.core.StandardHost start
INFO: Desactivada la validación XML
29-sep-2008 17:48:43 org.apache.catalina.startup.ContextConfig 
applicationConfig
INFO: Falta el archivo web.xml de la aplicaciónb. Utilizando los 
parámetros por defecto 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fotos]
29-sep-2008 17:48:43 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
29-sep-2008 17:48:43 org.apache.catalina.core.StandardHostDeployer install
INFO: Procesando URL de archivo de configuración de Contexto 
file:C:\Tomcat\conf\Catalina\localhost\admin.xml
29-sep-2008 17:48:43 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true
29-sep-2008 17:48:43 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true
29-sep-2008 17:48:43 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
29-sep-2008 17:48:45 org.apache.catalina.core.StandardHostDeployer install
INFO: Procesando URL de archivo de configuración de Contexto 
file:C:\Tomcat\conf\Catalina\localhost\balancer.xml
29-sep-2008 17:48:45 org.apache.catalina.core.StandardHostDeployer install
INFO: Procesando URL de archivo de configuración de Contexto 
file:C:\Tomcat\conf\Catalina\localhost\manager.xml
INFO: Instalando aplicaciones web en trayectoria de contexto /ADMPAC 
desde URL file:C:/Tomcat/webapps/ADMPAC
29-sep-2008 17:48:47 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto 
/jsp-examples desde URL file:C:\Tomcat\webapps\jsp-examples
29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto  desde URL 
file:C:\Tomcat\webapps\ROOT
29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto 
/servlets-examples desde URL file:C:\Tomcat\webapps\servlets-examples
29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto 
/tomcat-docs desde URL file:C:\Tomcat\webapps\tomcat-docs
29-sep-2008 17:48:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Instalando aplicaciones web en trayectoria de contexto /webdav 
desde URL file:C:\Tomcat\webapps\webdav
29-sep-2008 17:48:48 org.apache.coyote.http11.Http11Protocol start
INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080
29-sep-2008 17:48:48 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
29-sep-2008 17:48:48 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=C:\Tomcat\conf\jk2.properties
29-sep-2008 17:48:48 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5953 ms
29-sep-2008 17:49:01 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080



2. The file jakarta_service_[currentDate] is created each time I Tomcat 
is started. Always empty.

3. The file localhost_log.[currentDate] is the one I've been looking at 
since I got the error: the stack trace I posted in the very first post 
was taken from there.

2008-09-29 17:57:12 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)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    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-29 17:57:12 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)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    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)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    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)


While the stack trace for an application that runs correctly is:

2008-09-29 17:59:43 StandardContext[/jsp-examples]ContextListener: 
contextInitialized()
2008-09-29 17:59:43 StandardContext[/jsp-examples]SessionListener: 
contextInitialized()
2008-09-29 17:59:43 StandardContext[/servlets-examples]ContextListener: 
contextInitialized()
2008-09-29 17:59:43 StandardContext[/servlets-examples]SessionListener: 
contextInitialized()



Sorry again for the endless stack trace.


Any idea?

Thanks for your patience and support,
JON HAITZ




David Smith escribió:
> Tomcat maintains log files in it's logs directory.  All the log files 
> are just plain old text files, typically with timestamps.  Just take a 
> read through it for the moment in time when your webapp is deployed 
> and see if there are any error messages.  Because you work on a 
> Windows environment, you may have to make a copy of the log file 
> before opening it for reading.  Either that or stop Tomcat and then 
> read the file.
>
> --David
>
> Jon Haitz Legarreta Gorroño wrote:
>> Sorry for my ignorance, but what do you mena by "the log files for 
>> messages that occur when your webapp starts"?
>> Where can I look for them?
>> Thanks for your patience and support,
>> JON HAITZ
>>
>>
>>
>>
>> David Smith escribió:
>>> Have you looked at any of the log files for messages that occur when 
>>> you webapp starts?
>>> --David
>>>
>>> Jon Haitz Legarreta Gorroño wrote:
>>>> Hi there,
>>>> thanks for the suggestion David.
>>>> I am pretty new to all these Web technologies, so I hope I 
>>>> understood well your mail.
>>>>
>>>> 1. I've got two versions of the StrutsPageLifecycleFactory and 
>>>> DefaultStrutsPageLifeCycleFactory classes: the first ones located 
>>>> in the folder
>>>>
>>>> C:\Program 
>>>> Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\struts\actions

>>>>
>>>>
>>>> and the other ones in
>>>>
>>>> C:\Program 
>>>> Files\JDeveloper\adfc\src\adf-controllersrc.zip\oracle\adf\controller\v2\struts\lifecycle

>>>>
>>>>
>>>> (I work under XP and my IDE is Oracle JDeveloper 10g version 
>>>> 10.1.3.0.4)
>>>>
>>>> On my previous mail I had a look at the first ones, so therefore, 
>>>> and a you suggested, I was not looking at the one being used when 
>>>> the stack trace is being produced, which is the one contained in 
>>>> the second path.
>>>>
>>>> The method yielding the problem is the following one:
>>>>
>>>> private static PageLifecycleFactory getDefaultInstance()
>>>>   {
>>>>      if (defaultInstance == null)
>>>>      {
>>>>         defaultInstance = new DefaultStrutsPageLifecycleFactory();
>>>>      }
>>>>          return defaultInstance;
>>>>   }
>>>>
>>>> And line 68 is where the new defaulsInstance is created: 
>>>> defaultInstance = new DefaultStrutsPageLifecycleFactory();
>>>>
>>>>
>>>> 2. As for the question whether they exist only once in Tomcat, in 
>>>> my Tomcat folder (C:\Tomcat\common\lib), none of them exists; the 
>>>> jars I've got are:
>>>>
>>>> ant
>>>> ant-launcher
>>>> commons-collentions-3.1
>>>> commons-colletions-dbcp-1.2.1
>>>> commons-el
>>>> commons-pool-1.2
>>>> jasper-compiler
>>>> jasper-runtime
>>>> jasp-api
>>>> naming-common
>>>> naming-factory
>>>> naming-java
>>>> naming-resources
>>>> servelt-api
>>>> tools
>>>>
>>>> And C:\Tomcat\common\classes is empty.
>>>>
>>>> In the WEB-INF\classes folder of my project, the above-mentioned 
>>>> classes (StrutsPageLifecycleFactory and 
>>>> DefaultStrutsPageLifeCycleFactory) do not exist.
>>>> In the WEB-INF\lib folder of my project, the jars I've got are:
>>>> adf-controller
>>>> commons-beanutils
>>>> commons-collections
>>>> commons-digester
>>>> commons-fileupload
>>>> commons-lang
>>>> commons-logging
>>>> commons-validator
>>>> DBF_JDBC30
>>>> jakarta-oro
>>>> jmf
>>>> log4j-1.2.15
>>>> mediaplayer
>>>> mysql-connector-java-3.1.10-bin
>>>> struts
>>>>
>>>> I've found that if I remove the library "ADF Controller Runtime" 
>>>> from the project properties (the WEB-INF\lib folder has no longer 
>>>> adf-controller), the Web page shows
>>>> HTTP Status 404: The servelt Action is not available
>>>> And the localhostlog of Tomcat shows
>>>> 2008-09-29 12:32:25 StandardWrapperValve[action]: The Servlet 
>>>> action is not available in this moment
>>>>
>>>> So, due to my lack of expertise, to be sincere, I don't know 
>>>> whether I am giving the right clues. Sorry in that case.
>>>> And I don't know where the problem may come from.
>>>>
>>>> I would appreciate any help.
>>>>
>>>> Thanks,
>>>> 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
>
>

-- 

Jon Haitz Legarreta Gorroño
Laguntzaile zientifikoa / Colaborador científico / Scientific collaborator

VICOMTech - Visual Interaction and Communication Technologies Center
Mikeletegi Pasealekua, 57 - Parque Tecnológico
E-20009 Donostia - San Sebastián, Spain
Tel: +[34] 943 30 92 30
Fax: +[34] 943 30 93 93
e-mail: jhlegarreta@vicomtech.org
http://www.vicomtech.org

*** member of INI-GraphicsNet ****
http://www.inigraphics.net
*** member of IK4 Research Alliance ****
http://www.ik4.es

-----------------------------------------------------
VICOMTech is an ISO 9001:2000 certified institute
-----------------------------------------------------


---------------------------------------------------------------------
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