File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Why is this happening? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why is this happening?" Watch "Why is this happening?" New topic

Why is this happening?

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Hi there,
I have recently migrated to Tomcat 4.1.24. My application which used to work before is now not working. It gives the following error:
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\backoffice\ '.' expected
[javac] import DbPool;
[javac] ^
[javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\backoffice\ cannot resolve symbol
[javac] symbol : variable DbPool
[javac] location: class org.apache.jsp.login_jsp
[javac] return DbPool.getConn();
[javac] ^
[javac] 2 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(
at org.apache.jasper.compiler.ErrorDispatcher.javacError(
at org.apache.jasper.compiler.Compiler.generateClass(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.JspCompilationContext.compile(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationDispatcher.invoke(
at org.apache.catalina.core.ApplicationDispatcher.doForward(
at org.apache.catalina.core.ApplicationDispatcher.forward(
at org.apache.jasper.runtime.PageContextImpl.forward(
at org.apache.jsp.errorpage_jsp._jspService(
As you can see, my JSP page imports a Servlet. Does anybody know what's wrong. What is the 'fork' thing anyway?
Really appreciate any help.

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Looks to me that the class dbpool is not the classpath.The JSP compiler is not able to find it.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12982
I think Tomcat 4 changed the way classes are looked up and loaded. If your previous Tomcat was version 3, that may be the problem. As I recall the Tomcat 4 online documentation goes into this.
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Thanks for the help guys. I think you are right William in your advice. I'm saying this because the app works fine in Tomcat 3.XXX. I'm off to read the Tomcat 4 manual now.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63047

The 'fork thing' is an ant message. Look into the documentation on the ant javac task for information.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Amer Khan
Ranch Hand

Joined: Apr 05, 2003
Posts: 163
This might help!

<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>
I agree. Here's the link:
subject: Why is this happening?
It's not a secret anymore!