QueueMetrics > QueueMetrics installation

Ubuntu+Tomcat6 Installation Problem

(1/1)

sanket:
Hello, I am a novice in Tomcat, never tried before. I am trying to configure Queuemetrics on my Ubuntu Linux machine (AMD64). I installed Tomcat using "apt-get install tomcat6". Followed all the steps on http://www.astrecipes.net/index.php?n=108

I get the following error(s) on trying to access Queuemetrics:


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to load class for JSP
   org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:620)
   org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
   org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

root cause

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
   java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   java.security.AccessController.doPrivileged(Native Method)
   java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
   org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
   org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
   org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
Apache Tomcat/6.0.20

Someone, please suggest a solution.

sanket:
Now, after some tweaking, I am getting the following error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.jasper.compiler)
   java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
   java.security.AccessController.checkPermission(AccessController.java:546)
   java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
   sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:298)
   java.lang.ClassLoader.loadClass(ClassLoader.java:296)
   java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:203)
   org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
   org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
   org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
   org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
   org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:96)
   org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:91)
   org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
   org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)
   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
   org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
Apache Tomcat/6.0.20


Help!

QueueMetrics:

--- Quote from: sanket on April 08, 2010, 17:11:25 ---java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.jasper.compiler)

--- End quote ---


I would turn off Java Security - see http://www.crazysquirrel.com/computing/debian/servers/debian-tomcat-package.jspx

Navigation

[0] Message Index

Go to full version