wood burning stoves 2.0*
The moose likes Tomcat and the fly likes ClassNotFoundException in Jsp Precompilation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ClassNotFoundException in Jsp Precompilation" Watch "ClassNotFoundException in Jsp Precompilation" New topic
Author

ClassNotFoundException in Jsp Precompilation

Prachi Deodhar
Greenhorn

Joined: Jun 13, 2006
Posts: 15
I am using tomcat 5.5. I am trying to precompile all my JSPs using Jasper2. After my ant script runs successfully. i am trying to access my index.jsp, which gives me ClassNotFoundException. Can anyone help me resolving this?

Thanks
Prachi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Which class isn't found? Is it imported by the page? Did the precompilation produce a class file for that page?


Ping & DNS - updated with new look and Ping home screen widget
Prachi Deodhar
Greenhorn

Joined: Jun 13, 2006
Posts: 15
There are no class files. All files are java files.
Prachi Deodhar
Greenhorn

Joined: Jun 13, 2006
Posts: 15
It produces class files for tags but not for jsps.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
A ClassNotFoundException means that a class that is used by the code is missing. The exception message tells you which one it is. Make sure it's somewhere where both the Ant task and your web app can find it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFoundException in Jsp Precompilation
 
Similar Threads
implementing common jars
ClassNotFoundException
Problem in invoking rmi server, which is existing in a jar file.
Got Exception=> Class.forName(String ClassName) throwing ClassNotFoundException
AXIS and Classpath