JSP error - org.apache.jasper.JasperException: Unable to compile class for JSPJD [message #50026] |
Tue, 27 May 2003 12:09  |
Eclipse User |
|
|
|
Hello,
I have encountered a problem with Eclipse and Tomcat. I have been
struggling with the problem for quite a while now. I have reached a
deadend and was hoping that someone could help me with this problem.
I am having some difficulty with a JSP file.
I have been successful in starting the Eclipse Infocenter application and
running it, but the moment I save the JSP file, the file fails to load in
a browser. Even if I save the file without making any changes, the JSP
fails to load. I have tried saving the file with several different
applications ( notepad, WinVi, wordpad). But it fails every time. The
version of tomcat that this image of Eclipse is using is Tomcat 4.0.4.
This happens only after I save the JSP file index.jsp, which is located at
:
plugins\org.eclipse.help.webapp directory. It also happens if the file is
saved without making any changes to the file.
The error I get when I load the JSP after saving the file is as follows:
org.apache.jasper.JasperException: Unable to compile class for JSPJDT
Compiler: java.lang.Exception:
org.eclipse.jdt.internal.compiler.batch.Main.compile() not found
at org.apache.jasper.compiler.Compiler.compile
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java :548)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadI fNecessary(JspServlet.java:176)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.servi ce(JspServlet.java:188)
Thank you for you help.
Probir
|
|
|
Re: JSP error - org.apache.jasper.JasperException: Unable to compile class for JSPJD [message #52078 is a reply to message #50026] |
Wed, 28 May 2003 11:38  |
Eclipse User |
|
|
|
At run-time help system supports compiled servlets, not raw JSPs. One
reason is that there is no java compiler in Eclipse platform. Tomcat is
configured to use org.eclipse.jdt.internal.compiler.batch.Main for
compilation, and this class only exist in Eclipse SDK, not the Platform, or
subset (non UI) of plug-ins that is necessary to run Infocenter.
Run Eclipse SDK as infocenter, it should help.
Konrad Kolosowski
"Probir Mukerjee" <probirkmukerjee@yahoo.com> wrote in message
news:bb02jg$7ii$1@rogue.oti.com...
> Hello,
>
> I have encountered a problem with Eclipse and Tomcat. I have been
> struggling with the problem for quite a while now. I have reached a
> deadend and was hoping that someone could help me with this problem.
>
> I am having some difficulty with a JSP file.
>
> I have been successful in starting the Eclipse Infocenter application and
> running it, but the moment I save the JSP file, the file fails to load in
> a browser. Even if I save the file without making any changes, the JSP
> fails to load. I have tried saving the file with several different
> applications ( notepad, WinVi, wordpad). But it fails every time. The
> version of tomcat that this image of Eclipse is using is Tomcat 4.0.4.
>
> This happens only after I save the JSP file index.jsp, which is located at
> :
> plugins\org.eclipse.help.webapp directory. It also happens if the file is
> saved without making any changes to the file.
>
> The error I get when I load the JSP after saving the file is as follows:
>
> org.apache.jasper.JasperException: Unable to compile class for JSPJDT
> Compiler: java.lang.Exception:
> org.eclipse.jdt.internal.compiler.batch.Main.compile() not found
>
> at org.apache.jasper.compiler.Compiler.compile
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java :548)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadI fNecessary(JspSe
rvlet.java:176)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.servi ce(JspServlet.ja
va:188)
>
>
> Thank you for you help.
>
> Probir
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03169 seconds