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!!

This is also the error i am getting:-

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: java.lang.IllegalStateException: No output folder
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:350)
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.lang.IllegalStateException: No output folder
org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:668)
org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:197)
org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:511)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:429)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:377)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:582)
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

where you placed your aa1.jsp...

it should be under webapps\ROOT folder in Tomcat home directory..

i have kept my jsp files in following path

/var/lib/tomcat6/webapps/ROOT/aa.jsp

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.