Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.apache.jasper.JasperException: Invalid directive

 
Seiya Stevskwy
Greenhorn
Posts: 3
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello World,

I need to deploy a .war file so all I have is this single compiled .war file -- no source code here :/
I upload it to tomcat 7.0.19 using the localhost:8080/manager/ page and after clicking the 'Deploy', it shows up under "Applications" but when I click application I get the exception shown below. Unfortunately, I cannot dig into the code and re-create a new war file which are the only solutions I've found. Maybe I need a specific tomcat config? and that will allow the war to load properly? Any other ideas? hints? Thanks !!




type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /index.jsp (line: 7801, column: 181) Invalid directive
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:498)
org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1777)
org.apache.jasper.compiler.Parser.parse(Parser.java:135)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:119)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:193)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error indicates that there is an error in the JSP at line 7801 (you have got to be kidding me!).

Without the sources, you have no chance of fixing this. Can you not just unpack the war file to find the JSP?
 
Seiya Stevskwy
Greenhorn
Posts: 3
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand it points to where the error is but the issue is that I cannot get to it. I unpacked it but the JSP file just contains gibberish. :/
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then I am afraid that there is nothing that you can do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic