This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Where do I find JspC

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I am trying to precompile my JSP's for Tomcat 4.1.31 using the following task in Ant.

<jspc
destdir="${build_linux}/jsp_source"
verbose="1"
srcdir="C:\Jeb\root\webapps\jeb\jsp\standard"
compiler="jasper41">

<include name="**/*.jsp" />
</jspc>

Unfortunately I keep getting an error message

"java.lang.NoClassDefFoundError: org/apache/jasper/JspC"

What jar file is supposed to contain this class? I've looked around and can't seem to find it.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need jasper.jar & jasper-runtime.jar from your Tomcat 4.X install.

Copy these files into your ANT_HOME/lib directory and you should not get than error any more.
 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I can succussfully compile the jsp's, but when i put the compiled JSP's into the work/Standalone/localhost/<webapp>/jsp/login directory, I get the following error

javax.servlet.ServletException: org/apache/jsp/login_project_jsp (wrong name: jsp/login/login_project_jsp)

If I go to the actual jsp file and do "touch login.jsp" it will then recompile the login_jsp.class file and everything works. But how do you deploy the actual jsp class files so they are picked up by the server as the "latest" copy of the jsp without forcing the jsp to be recompiled.

Jim
 
Danger, 10,000 volts, very electic .... tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!