JSP Compilation problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: JSP Compilation problem

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    10

    Angry 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

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    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.

  3. #3
    Join Date
    Nov 2005
    Posts
    10

    Re:JSP Compilation problem

    Quote 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

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    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.

  5. #5
    Join Date
    Nov 2005
    Posts
    10

    JSP compilation problem

    Quote 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

  6. #6
    Join Date
    Nov 2005
    Posts
    10

    JSP Compilation problem

    Quote 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

  1. Java Applet Compiler problem?
    By mdl in forum Java
    Replies: 3
    Last Post: 03-07-2005, 02:34 AM
  2. problem with recordset from Sybase and Oracle
    By substring in forum VB Classic
    Replies: 2
    Last Post: 07-24-2001, 02:29 PM
  3. Replies: 3
    Last Post: 02-10-2001, 08:24 AM
  4. c# compilation problem
    By Peter Drayton in forum .NET
    Replies: 1
    Last Post: 08-09-2000, 07:51 PM
  5. JSP and the <SERVLET> tag
    By Dusty in forum Java
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center