-
JSP Compilation problem
Hi,
I am using tomcat 4.12 and j2sdk 1.4.0.
in our application we are loading 7 frames.
sometimes we are getting jasper exception,This could be because the JSP file associated with a Frame may not have compiled on time to be referenced by JSP files from other Frames.
so what shall we do for compile all the jsp files at the same time.
Reply please
-
This could be because the JSP file associated with a Frame may not have compiled on time to be referenced by JSP files from other Frames.
This is not the case. You get a JasperException when some exception is thrown during the JSP compilation/runtime and handled by the container. You should take a look into the server logs.
The order of compilation doesn't get messed up as you are assuming.
Happiness is good health and a bad memory.
-
Re:JSP Compilation problem
 Originally Posted by aniseed
This could be because the JSP file associated with a Frame may not have compiled on time to be referenced by JSP files from other Frames.
This is not the case. You get a JasperException when some exception is thrown during the JSP compilation/runtime and handled by the container. You should take a look into the server logs.
The order of compilation doesn't get messed up as you are assuming.
Hi aniseed,
Thanks for suggestion...
i have attached sample coding of the jsp compilation in my generated jsp file.
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\eFirstHelp\web\bot_jsp.java:52: ';' expected
javax.servlet.http.HttpSession sess=request.getSession(false);
if u lookout this code , ; expected.... but the code is perfectly good then why should i get this type of exception? if i access the same page in the another browser i did not get this exception. why?
Second problem:
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\eFirstHelp\web\bot_jsp.java:44: cannot resolve symbol
symbol : method +etAttribute (java.lang.String)
location: interface javax.servlet.ServletContext
java.lang.String str_jpath =(java.lang.String)application.getAttribute("jsp_path");
i did not understand what the error says..
can u help me out
Thanks
-
It looks like you need to clean up the Tomcat cache. Try doing a clean build and deployment.
Happiness is good health and a bad memory.
-
JSP compilation problem
 Originally Posted by aniseed
It looks like you need to clean up the Tomcat cache. Try doing a clean build and deployment.
Hi aniseed,
I do not understand cleaning up the tomcat cache...
how to do the clean build and depolyment.?
u mean to say that i have to reinstall everything and configure again...
if it is then tell me the exact configuration...
should i include servlet.jar,tools.jar and jasper-compiler.jar,jasper-runtime.jar file in the classpath...
Can u clearly tell me what i should do exactly.
Thanks
-
JSP Compilation problem
 Originally Posted by aniseed
It looks like you need to clean up the Tomcat cache. Try doing a clean build and deployment.
Hi aniseed,
Now i understand what u have said.... actually we are using jsp,servlets and java beans. so we did not any build war file for deploying....
We have placed all the servlets under classes and placed the JSP files into webapplication folder...
Everytime we have cleared the logs and work folder (Tomcat cache) before starting tomcat...
So what shall we do next?
Similar Threads
-
Replies: 3
Last Post: 03-07-2005, 02:34 AM
-
By substring in forum VB Classic
Replies: 2
Last Post: 07-24-2001, 02:29 PM
-
Replies: 3
Last Post: 02-10-2001, 08:24 AM
-
By Peter Drayton in forum .NET
Replies: 1
Last Post: 08-09-2000, 07:51 PM
-
Replies: 2
Last Post: 04-07-2000, 01:20 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|