OpenShift : ActiveMQ Console ClassNotFoundException: org.apache.jsp.index_jsp

By default all the Jetty's JSP temp files are created in /tmp, that is the reason why you can have problem accessing the ActiveMQ console, if you look at the log /var/log/activemq/activemq.log, you should see the following exception.

Caused by: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:204)
        at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:190)
        at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:122)
        at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:639)
        ... 55 more

In order to avoid this problem, you should store the temp files in another directory, this is the file that you should update to configure a new temp directory.

/etc/activemq/wrapper.conf

Add the following entry

wrapper.java.additional.16=-Djava.io.tmpdir=/usr/tmp/jetty

Comentarios

Entradas populares