I've been tasked with migrating a site from one institution to another. As part of the process we are attempting to update the versions the site uses.
Initially I was asked to use Java 8 with Tomcat 5.5 (on Linux), which led to issues - not to mention Tomcat 5 being 'out of support¹. I have since tried to deploy the webapps to Tomcat 9 with Java 8. Some of the webapps appear to run fine (and resolve the issues I was having with Tomcat5). However, the main app (and 2 similar/smaller web apps) throws a JasperException when I go to the index.jsp - the same web apps deployed to Tomcat 5.5 load without issue. Most of the similar issues I have found have suggested this would be related to the jar files and possibly some sort of conflict. However, the lib structure for tomcat 9 is different to tomcat5 and I'm not sure which jars could be causing this. e.g. https://stackoverflow.com/questions/22552244/tomcat-7-fails-to-compile-jsp- pages I've also tried changing the index.jsp into a simpler (HelloWorld) form - removing any code. And tried deleting the 'work' directory before restarting Tomcat (http://grokbase.com/t/tomcat/users/072v2kf60h/java-permission-denied-error -in-tomcat). In both cases the exception is still thrown. The exception thrown is: --------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------- org.apache.jasper.JasperException: Unable to compile class for JSP <http://www.coderanch.com/forums/f-50/jsp>: An error occurred at line: [15] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] The type index_jsp must implement the inherited abstract method JspSourceImports.getPackageImports() An error occurred at line: [15] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] The type index_jsp must implement the inherited abstract method JspSourceImports.getClassImports() An error occurred at line: [15] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] The type index_jsp must implement the inherited abstract method JspSourceDependent.getDependants() An error occurred at line: [22] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] The type Map is not generic; it cannot be parameterized with arguments <String <http://www.coderanch.com/t/410859/java/java/string-stringbuffer-stringbuil der-performance>, Long> An error occurred at line: [24] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] The type Set is not generic; it cannot be parameterized with arguments <String> An error occurred at line: [26] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] The type Set is not generic; it cannot be parameterized with arguments <String> An error occurred at line: [29] in the generated java file: [/opt/tomcat9/work/Catalina/localhost/home/org/apache/jsp/index_jsp.java] _jspx_imports_packages cannot be resolved to a variable ... ... ... Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl er.java:103) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 213) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:458) org.apache.jasper.compiler.Compiler.compile(Compiler.java:389) org.apache.jasper.compiler.Compiler.compile(Compiler.java:361) org.apache.jasper.compiler.Compiler.compile(Compiler.java:345) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 603) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) edu.purdue.cybercenter.ionomics.servlet.PiiMS.doGet(PiiMS.java:83) javax.servlet.http.HttpServlet.service(HttpServlet.java:634) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹ ‹‹‹‹‹‹‹‹‹‹ This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org