Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
java.lang.ClassCircularityError

java.lang.ClassCircularityError

2004-05-19       - By Viktor Matic

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

We are getting java.lang.ClassCircularityError Source code of java.lang.ClassCircularityError on the Tomcat 5.0.x (we
have tested the same code on a following releases 5.0.18, 5.0.19 and
5.0.24). The java source code, which we have used for the testing
purposes, consists of the servlet which use our custom implementation of
the java.security.Policy Source code of java.security.Policy to test user rights to execute action.
This code pass JUnit tests and works fine if it is called isolated out
of the Tomcat (called through class with the main method). It also works
fine on Tomcat 4.1.30.
Since improvement list for Tomcat  5.0.x states that Security Manager
support is enhanced from 4.1.x release maybe there is something we are
missing to implement or maybe there is a new bug in the catalina class
loader when it is used with java.security.manager. It is important to
state that out application sets our policy (Policy.setPolicy(new
OurPolicy())). We are pretty sure that we have configured Tomcat
properly because everything works fine on older Tomcat.

Here is error stack trace:

root cause:
java.lang.ClassCircularityError Source code of java.lang.ClassCircularityError: com/ingemark/security/AnybodyPrincipal
  com.ingemark.security.SimpleGroup.isMember(SimpleGroup.java:65)
  com.ingemark.security.NestableGroup.isMember(NestableGroup.java:89)
  com.ingemark.security.PolicyEntry.contains(PolicyEntry.java:67)
  com.ingemark.security.PolicyEntry.implies(PolicyEntry.java:105)
  com.ingemark.security.AuthorizationInfo.getPermissions(AuthorizationInfo.java
:72)
  com.ingemark.security.SecurityPolicy.getPermissions(SecurityPolicy.java:95)
  java.security.Policy Source code of java.security.Policy(Policy.java:397)
  java.security.ProtectionDomain Source code of java.security.ProtectionDomain(ProtectionDomain.java:189)
  java.security.AccessControlContext Source code of java.security.AccessControlContext(AccessControlContext.java
:254)
  java.security.AccessController Source code of java.security.AccessController(AccessController.java:401)
  java.lang.SecurityManager Source code of java.lang.SecurityManager(SecurityManager.java:524)
  java.lang.SecurityManager Source code of java.lang.SecurityManager(SecurityManager.java:863)
  java.io.File Source code of java.io.File(File.java:678)
  org.apache.naming.resources.FileDirContext Source code of org.apache.naming.resources.FileDirContext(FileDirContext.java:826)
  org.apache.naming.resources.FileDirContext Source code of org.apache.naming.resources.FileDirContext(FileDirContext.java:208)
  org.apache.naming.resources.ProxyDirContext Source code of org.apache.naming.resources.ProxyDirContext(ProxyDirContext.java:287)
  org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader
(WebappClassLoader.java:1707)
  org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader
(WebappClassLoader.java:1575)
  org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(WebappClassLoader.java
:860)
  org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(WebappClassLoader.java
:1307)
  org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(WebappClassLoader.java
:1189)
  java.lang.ClassLoader Source code of java.lang.ClassLoader(ClassLoader.java:302)
  com.ingemark.security.SimpleGroup.isMember(SimpleGroup.java:65)
  com.ingemark.security.NestableGroup.isMember(NestableGroup.java:89)
  com.ingemark.security.PolicyEntry.contains(PolicyEntry.java:67)
  com.ingemark.security.PolicyEntry.implies(PolicyEntry.java:105)
  com.ingemark.security.AuthorizationInfo.getPermissions(AuthorizationInfo.java
:72)
  com.ingemark.security.SecurityPolicy.getPermissions(SecurityPolicy.java:95)
  java.security.Policy Source code of java.security.Policy(Policy.java:397)
  java.security.ProtectionDomain Source code of java.security.ProtectionDomain(ProtectionDomain.java:189)
  java.security.AccessControlContext Source code of java.security.AccessControlContext(AccessControlContext.java
:254)
  java.security.AccessController Source code of java.security.AccessController(AccessController.java:401)
  com.ingemark.experiments.ServletSec$SecuredActions.run(ServletSec.java:207)
  java.security.AccessController Source code of java.security.AccessController(Native Method)
  javax.security.auth.Subject Source code of javax.security.auth.Subject(Subject.java:437)
  com.ingemark.experiments.ServletSec.service(ServletSec.java:181)
  javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:810)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
  java.lang.reflect.Method Source code of java.lang.reflect.Method(Method.java:324)
  org.apache.catalina.security.SecurityUtil Source code of org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
  java.security.AccessController Source code of java.security.AccessController(Native Method)
  javax.security.auth.Subject Source code of javax.security.auth.Subject(Subject.java:500)
  org.apache.catalina.security.SecurityUtil Source code of org.apache.catalina.security.SecurityUtil(SecurityUtil.java:263)
  org.apache.catalina.security.SecurityUtil Source code of org.apache.catalina.security.SecurityUtil(SecurityUtil.java:157)


I will be happy to present this problem in more details if somebody can
recognize familiar topic in this post.  


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.