tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shanmugham, Dayanand (IE10)" <Dayanand.Shanmug...@Honeywell.com>
Subject JSP 2.0 examples throw security exception - Need help with configuration
Date Mon, 04 Jan 2010 11:38:26 GMT
Hi All,

 

I need help with resolving following error - staketrace is shown below.
Following is what I did:

1.	Downloaded TC 6.0 and extracted into D:\TC60
2.	Downloaded "Eclipse Java EE IDE for Web Developers." (or)
Eclipse 3.5 with J2EE Support and created instance of Tomcat Server to
point to "D:\TC60"
3.	Started Tomcat instance 
4.	All Servlets and JSP 1.2 examples work fine but when I run the
JSP 2.0 examples, I get the following security exception messages
5.	I removed the comments from "tomcat-users.xml" file

 

~~~


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: java.security.AccessControlException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:522)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:416)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

...

root cause 

java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
 
java.security.AccessControlContext.checkPermission(AccessControlContext.
java:323)
 
java.security.AccessController.checkPermission(AccessController.java:546
)
 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532
...
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.20 logs.

~~~

 

 

Regards,
Daya

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message