• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet.service() for servlet jsp threw exception

 
Nileshtis Patiltis
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am using java,JSP in my project with tag library.
c.tld
i do have 1 function which is expansion (just like minimize/maximize)
when i maximize with the function its giving mw the follwing error.
pls help.



- Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(1,1) File "/WEB-INF/jsp/include.js
p" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:405)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:86)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java
:339)
at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:3
72)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:211)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:556)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:296)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:534)
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't look like it can find /WEB-INF/jsp/include.jsp
Personally I never place JSPs in the WEB-INF directory. It is 'dangerous' (in the sense that it can just stop working)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I never place JSPs in the WEB-INF directory


I differ. I always place my JSPs under WEB-INF to protect them against direct access without their controller. David, in which container has this not worked for you?

File "/WEB-INF/jsp/include.jsp" not found


Does the file exist?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be honest I can't remember. It was the first time I tried placing them there and it didn't work. I checked the Tomcat source and it was rejecting all forward and include access to the WEB-INF directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic