File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Conflict Tomcat 4.0.1 and JBuilder useing jsp5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Conflict Tomcat 4.0.1 and JBuilder useing jsp5" Watch "Conflict Tomcat 4.0.1 and JBuilder useing jsp5" New topic
Author

Conflict Tomcat 4.0.1 and JBuilder useing jsp5

Reto Gehring
Greenhorn

Joined: Nov 29, 2001
Posts: 1
When I run a jsp with the build in Tomcat 3.2 of the JBuilder 5 everything works fine. (JBuilder Project Properties Server Tomcat 3.2)
If I then run the JSP on my standalone Tomcat 4.0.1 the error message on the bottom apears in my browser after the a POST. ( JBuilder Project Properties Server Tomcat 3.2)
see ==== browser ====
If I put the
throw new JspException("Please enter comment!!");
in comment it works too.
So I switch the JBuilder Project Properties to Srever 4.0
But if I rebuild the project this error message apears in jBuilder: see === jbuilder error ===
It would be so great if somebody knows how to solve this
PROBLEM
Cheers Reto

========================== browser ========================
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP An error occured between lines: 14 and 24 in the jsp file: /xmlJSP.jsp Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\localhost\WebApp04\xmlJSP$jsp.java:109: Ambiguous class: javax.servlet.jsp.JspException and org.apache.jasper.runtime.JspException
throw new JspException("Please enter comment!!");
^
1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)
===================JBuilder error =============================
C:\jbuilder5\jdk1.3\bin\java -classpath
"C:\Program Files\Apache Tomcat 4.0\lib\jasper-runtime.jar;
C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;
D:\TSSO\Informatik\jprojects\Project_AB_03_2\classes;
C:\jaxb-1.0-ea\lib\jaxb-rt-1.0-ea.jar;
C:\jbuilder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;
C:\jbuilder5\jdk1.3\jre\lib\i18n.jar;
C:\jbuilder5\jdk1.3\jre\lib\jaws.jar;
C:\jbuilder5\jdk1.3\jre\lib\rt.jar;
C:\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;
C:\jbuilder5\jdk1.3\lib\dt.jar;
C:\jbuilder5\jdk1.3\lib\tools.jar"
org.apache.jasper.JspC -d "D:/TSSO/Informatik/jprojects/Project_AB_03_2/classes/Temporary_Files/_jsp_/WebApp04" -p "" -c xmlJSPErrorPage2ejspJSP -uriroot "D:/TSSO/Informatik/jprojects/Project_AB_03_2" "D:/TSSO/Informatik/jprojects/Project_AB_03_2/xmlJSPErrorPage.jsp"
"xmlJSPErrorPage.jsp": java.lang.NoClassDefFoundError: org/apache/jasper/JspC
Exception in thread "main"
and so on...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Conflict Tomcat 4.0.1 and JBuilder useing jsp5
 
Similar Threads
deployment problem
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
HTTP Status 500
jdbc error....
Apache Tomcat - JDBC error