0

Have an old java site archive that I'm trying to spin up to see what could be done to "convert" it to php, but I'm terrible when it comes to Java and Tomcat. Dropped the .jsp files in to the webroot and getting the following:

Dec 05, 2018 1:47:43 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [Unable to compile class for JSP] with root cause
java.lang.IllegalArgumentException: Page directive: invalid value for import
        at org.apache.jasper.compiler.Node$PageDirective.validateImport(Node.java:628)
        at org.apache.jasper.compiler.Node$PageDirective.addImport(Node.java:611)
        at org.apache.jasper.compiler.Parser.parsePageDirective(Parser.java:352)
        at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
        at org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1773)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:135)
        at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
        at org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:119)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:194)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

No idea what that means. As far as I can tell jasper is loaded:

# lsof -p 1913 | grep jasper
java    1913 tomcat  mem    REG              253,0    601438  8715857 /usr/share/java/tomcat/jasper.jar
java    1913 tomcat  mem    REG              253,0    126765  8715855 /usr/share/java/tomcat/jasper-el.jar
java    1913 tomcat   20r   REG              253,0    126765  8715855 /usr/share/java/tomcat/jasper-el.jar
java    1913 tomcat   22r   REG              253,0    601438  8715857 /usr/share/java/tomcat/jasper.jar

Not even sure where to start looking. Can someone point me in the right direction?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.