I am trying JRebel for the first time and having some difficulty getting it working. I downloaded jrebel.jar and added the configuration so the setenv.bat of my development Tomcat instance (running on the same PC as my IDE) is as follows:
set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -javaagent:C:\jrebel\jrebel\jrebel.jar -Drebel.remoting_plugin=true
When I start Tomcat after adding this configuration, my web application pages fail to load, with the following error message:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [63] in the generated java file: [C:\Users\duncanw\AppData\Roaming\NetBeans\8.1\apache-tomcat-8.0.27.0_base\work\Catalina\localhost\geotrips\org\apache\jsp\WEB_002dINF\jsp\layout\layout_002dhome_jsp.java]
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
An error occurred at line: [91] in the generated java file: [C:\Users\duncanw\AppData\Roaming\NetBeans\8.1\apache-tomcat-8.0.27.0_base\work\Catalina\localhost\geotrips\org\apache\jsp\WEB_002dINF\jsp\layout\layout_002dhome_jsp.java]
The method getDispatcherType() is undefined for the type HttpServletRequest
An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/layout/layout-home.jsp
The method setJspContext(JspContext) in the type SimpleTagSupport is not applicable for the arguments (PageContext)
3: %><%@taglib uri=”http://tiles.apache.org/tags-tiles” prefix=”tiles”
4: %><!DOCTYPE html><html>
5: <head>
6: <tiles:insertAttribute name=”head” />
7: </head>
8: <body class=”loading” onload=”initmap();”>
9: <!–[if lt IE 7]>
If I remove the jrebel configuration from setenv.bat, the web application works again. Is there a way to fix this?
My development environment details:
IDE: Netbeans 8.1
Java version: 1.8.0_101
Tomcat version: 8.0.27
Maven version: 3.3.9
OS: Windows 10
Apache tiles version: 2.2.2
JRebel version: 6.5.1