respected mods
i am facing a very strange problem when i am trying to run any jsp code on tomcat server in fedora 13.
i have installed tomcat6 by command as
#yum install tomcat6
after that when i give the address as http://127.0.0.1:8080/aa1.jsp
(aa1.jsp being the name of my jsp code) i get an output as follows:-
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/_/org/apache/jsp/aa_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(FileOutputStream.java:209)
java.io.FileOutputStream.<init>(FileOutputStream.java:99)
org.apache.jasper.compiler.Compiler.setupContextWriter(Compiler.java:276)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:215)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
Apache Tomcat/6.0.20
i have kept my jsp files in following path
/var/lib/tomcat6/webapps/ROOT/aa.jsp
and
.jar files are kept as
/var/lib/tomcat6/webapps/ROOT/WEB-INF/ojdbc14.jar
tell me how to run my jsp!!
i am too much confused abt it!!