This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes org.apache.jasper.JasperException: Invalid directive 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 » Java » JSP
Bookmark "org.apache.jasper.JasperException: Invalid directive" Watch "org.apache.jasper.JasperException: Invalid directive" New topic
Author

org.apache.jasper.JasperException: Invalid directive

Seiya Stevskwy
Greenhorn

Joined: Jul 15, 2010
Posts: 3

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

Joined: Jan 10, 2002
Posts: 60822
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Seiya Stevskwy
Greenhorn

Joined: Jul 15, 2010
Posts: 3

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

Joined: Jan 10, 2002
Posts: 60822
    
  65

Then I am afraid that there is nothing that you can do.
 
jQuery in Action, 2nd edition
 
subject: org.apache.jasper.JasperException: Invalid directive
 
Similar Threads
NullPointerException while running a jsp
include doesn't recognize relative path from sub folder
Unable to Resolve JSTL taglib Declaration
server encountered an internal error ()
class not found IterateTei