aspose file tools*
The moose likes JSP and the fly likes JSP Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Error" Watch "JSP Error" New topic
Author

JSP Error

Lavi Tang
Greenhorn

Joined: Jul 15, 2006
Posts: 5
Hi all

I am getting an error while compiling JSP programs can anybody helpmein finding out why this error is occuring,what may be the problem??
Is it because of any path settings ??

The error is as follows:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
[javac] javac: invalid flag: 5.0\common\endorsed
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose Output messages about what the compiler is doing
[javac] -deprecation Output source locations where deprecated APIs are used
[javac] -classpath <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source files
[javac] -bootclasspath <path> Override location of bootstrap class files
[javac] -extdirs <dirs> Override location of installed extensions
[javac] -d <directory> Specify where to place generated class files
[javac] -encoding <encoding> Specify character encoding used by source files
[javac] -source <release> Provide source compatibility with specified release
[javac] -target <release> Generate class files for specific VM version
[javac] -help Print a synopsis of standard options


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is the actual error which I got,Please help me!

Waiting for reply,

Thanks and regards
Jacob Fenwick
Ranch Hand

Joined: Apr 28, 2006
Posts: 55
How are you compiling it?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

[javac] javac: invalid flag: 5.0\common\endorsed


Just a wild guess - are you using Tomcat? I guess your Tomcat folder is named "Tomcat 5.0"(Note the space between the letters). That *might* be the reason why you are seeing this error. Try renaming the tomcat folder to something like Tomcat5.0 (i.e. remove the space).


[My Blog] [JavaRanch Journal]
Lavi Tang
Greenhorn

Joined: Jul 15, 2006
Posts: 5
Ya you are right! I use Tomcat and even the folder name is just as you said,but that worked properly in a system where I worked previously,I newly installed Tomcat 5.0.30 which is asking for the user name and password when I login , could this be the problem ? Maybe the site where I downloaded the Tomcat is not liscensed ! Or can you specify me the link for the download?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat is open source.
It needs no license.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Error