I can only show you the door...

The error is in your index.jsp file.

Look at the servlet source in your
%CATALINA_HOME%\work\Standalone\localhost\{context or _ for
root}\index_jsp.java line 205.   There you'll probably find a method that
somehow down the chain is calling your
lt.ktu.distance.sql.helpers.CountryManagerHelper class, which is throwning
an error which is not being caught.

Contain the corresponding code in your index.jsp with a try{
suspectCode(); } catch (Exception e) { and do a out.println(e.getMessage());
and possibly a log(e.getMessage); and maybe a e.printStackTrace(); and maybe
rethrow it (probably result is the same output error, whereas if you don't
throw it you can see something) with throw e;

Then check your context log file, the HTML output and/or STDERR log for a
traceback.

Something like this:

<%
        try {
                codeThatCausesServletException;
        } catch (Exception e) {
                out.println(e.getMessage()};
                log(e.getMessage());
                e.printStackTrace();
        }
%>yadda...


Good luck.

If you've moved your Tomcat work directory, look there, rather than the
%CATALINA_HOME%\work\Standalone... etc I typed above.

._. Brian Buchanan

-----Original Message-----
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 4:14 AM
To: Tomcat Users List
Subject: Re: Tomcat jsp exception



> Further done in the trace, there should be a "root-cause".  Including this
> will help greatly in getting help for your particular problem.

In my previous message I didn't want to paste all the long exception that
I get. This time I'll post the ROOT CAUSE. Unfortunately, it doesn't tell
me what's wrong. The error comes from tomcat4 inside. I hope someone can
help me with that:

root cause

javax.servlet.ServletException:
lt/ktu/distance/sql/helpers/CountryManagerHelper
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:205)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
        at java.lang.Thread.run(Thread.java:536)

>
> "Mindaugas Genutis" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > Hello,
> >
> > I developed my application with Tomcat 4.0.3/Java 1.3. Now I moved to
> > Tomcat 4.1.24/Java 1.4.1.
> >
> > On my first JSP I get an exception that doesn't tell me what's wrong
going
> > on. It is referring to one of my classes that is not even used in that
> > particular JSP.
> >
> > Can anyone suggest where to start to fix this problem. I tried to
compile
> > it in many ways. The problem is that the exception that comes from JSP
> > isn't informative enough.
> >
> > My project is compiled into a *.jar. This *.jar is put into the
> > ./tomcat/webapps/cdk/WEB-INF/lib directory.
> >
> > exception
> >
> > org.apache.jasper.JasperException:
> > lt/ktu/distance/sql/helpers/CountryManagerHelper
> > ...
> >
> > root cause
> >
> > javax.servlet.ServletException:
> lt/ktu/distance/sql/helpers/CountryManagerHelper
> > ...
> >
> >
> > Thanks,
> >
> > --
> > Kaunas Regional Distance Education Center
> > Programmer
> > Phone: +370 674 05232
> > WWW: http://distance.ktu.lt
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to