By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Apache/Tomcat Java Exception

P: n/a
Hi I'm trying to run a web page but I get the following error. Ca
anyone please tell me a solution to this.

Thanks

Ptaz

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevente
it from fulfilling this request.

exception

javax.servlet.ServletException: org/apache/log4j/Category
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
a
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:247)
a
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:193)
a
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:256)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
a
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
a
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
a
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
a
org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:551)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
a
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
a
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
a
org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2422)
a
org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:180)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
a
org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:171)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
a
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:163)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
a
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
a
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
a
org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:174)
a
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
a
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
a
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
a
org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:199)
a
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:828)
a
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:700)
a
org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:584)
a
org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

root cause

java.lang.NoClassDefFoundError: org/apache/log4j/Category
at org.dbforms.taglib.DbFormTagTEI.<clinit>(DbFormTag TEI.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Nativ
Method)
a
sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
a
sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
a
org.apache.jasper.compiler.TagLibraryInfoImpl.crea teTagInfo(TagLibraryInfoImpl.java:353)
a
org.apache.jasper.compiler.TagLibraryInfoImpl.pars eTLD(TagLibraryInfoImpl.java:269)
a
org.apache.jasper.compiler.TagLibraryInfoImpl.<ini t>(TagLibraryInfoImpl.java:183)
at
org.apache.jasper.compiler.Parser.parseTaglibDirec tive(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(P arser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Pa rser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.jav a:122)
at
org.apache.jasper.compiler.ParserController.parse( ParserController.java:199)
at
org.apache.jasper.compiler.ParserController.parse( ParserController.java:153)
at
org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:369)
at
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:473)
at
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:551)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:163)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
--
ptaz
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ptaz <pt*********@mail.codecomments.com> wrote:
Hi I'm trying to run a web page but I get the following error. Can
anyone please tell me a solution to this.

Thanks

Ptaz

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: org/apache/log4j/Category
at
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(Applic
ationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFil
terChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperVal
ve.java:256)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextVal
ve.java:191)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBas e.invoke(Authenticato
rBase.java:551)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(St andardContext.java:24
22)
at
org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.jav
a:180)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherV
alve.java:171)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.jav
a:163)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve
.java:174)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:8
28)
at
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process
Connection(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:5
84)
at
org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPoo
l.java:683)
at java.lang.Thread.run(Thread.java:534)

root cause

java.lang.NoClassDefFoundError: org/apache/log4j/Category
at org.dbforms.taglib.DbFormTagTEI.<clinit>(DbFormTag TEI.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructor
AccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingCon
structorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Construc tor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.crea teTagInfo(TagLibraryI
nfoImpl.java:353)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.pars eTLD(TagLibraryInfoIm
pl.java:269)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.<ini t>(TagLibraryInfoImpl
.java:183)
at
org.apache.jasper.compiler.Parser.parseTaglibDirec tive(Parser.java:354)
at
org.apache.jasper.compiler.Parser.parseDirective(P arser.java:381)
at
org.apache.jasper.compiler.Parser.parseElements(Pa rser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.jav a:122)
at
org.apache.jasper.compiler.ParserController.parse( ParserController.java
:199)
at
org.apache.jasper.compiler.ParserController.parse( ParserController.java
:153)
at
org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:369)
at
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.j
ava:473)
at
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.j
ava:190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295
)
at
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(Applic
ationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFil
terChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperVal
ve.java:256)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextVal
ve.java:191)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBas e.invoke(Authenticato
rBase.java:551)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(St andardContext.java:24
22)
at
org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.jav
a:180)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherV
alve.java:171)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.jav
a:163)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve
.java:174)
at
org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.
invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:
480)
at
org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:8
28)
at
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process
Connection(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:5
84)
at
org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPoo
l.java:683)
at java.lang.Thread.run(Thread.java:534)
--
ptaz
-----------------------------------------------------------------------
- Posted via http://www.codecomments.com
-----------------------------------------------------------------------
-


root cause

java.lang.NoClassDefFoundError: org/apache/log4j/Category
at org.dbforms.taglib.DbFormTagTEI.<clinit>(DbFormTag TEI.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native
Method)
The above line appears to be telling you that Log4J isn't setup correctly
(NoClassDefFoundError). It appears to be having a problem instantiating a
log4j object. A few things to check:

1. Is log4j-1.2.7.jar installed in C:\Tomcat x.x.xx\common\lib directory?
2. Is log4j.properties properly located?
3. Did you properly instantiate the logger?

import org.apache.log4j.Logger;
protected Logger log = Logger.getLogger(this.getClass());

It's a starting point anyway.

Later
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.