[jboss-jira] [JBoss JIRA] Commented: (JBAS-4373) failing org.jboss.test.securitymgr.test.WebIntegrationUnitTestCase
Anil Saldhana (JIRA)
jira-events at lists.jboss.org
Thu Apr 26 14:52:30 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4373?page=comments#action_12360609 ]
Anil Saldhana commented on JBAS-4373:
-------------------------------------
The following permission needs to be added
-------------------
12:05:36,760 INFO [TomcatDeployer] deploy, ctxPath=/class-loading, warUrl=.../tmp/deploy/tmp42192class-loading-exp.war/
12:05:37,081 ERROR [[ClasspathServlet2]] Servlet.service() for servlet ClasspathServlet2 threw exception
java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.Class.getClassLoader(Class.java:588)
at org.jboss.test.util.Debug.displayClassInfo(Debug.java:43)
at org.jboss.test.web.servlets.ClasspathServlet2.processRequest(ClasspathServlet2.java:77)
at org.jboss.test.web.servlets.ClasspathServlet2.doGet(ClasspathServlet2.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at sun.reflect.GeneratedMethodAccessor222.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
-----------------------------
The permission should be:
permission java.lang.RuntimePermission "getClassLoader";
Try adding that and see if the test cases pass.
> failing org.jboss.test.securitymgr.test.WebIntegrationUnitTestCase
> ------------------------------------------------------------------
>
> Key: JBAS-4373
> URL: http://jira.jboss.com/jira/browse/JBAS-4373
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: Test Suite
> Affects Versions: JBossAS-4.2.0.CR2
> Reporter: Dimitris Andreadis
> Assigned To: Scott M Stark
> Fix For: JBossAS-4.2.0.GA
>
>
> We have 2 testcase failures, after the introduction of one more testcase in the org.jboss.test.web.test.WebIntegrationUnitTestCase by JBAS-3047
> http://cruisecontrol.jboss.com/cc/buildresults/jboss-4.2-testsuite-sun-1.5?log=log20070426085000
> testJava2ClassLoadingComplianceOverride org.jboss.test.jacc.test.WebIntegrationUnitTestCase(JACC+SecurityMgr)
> testJava2ClassLoadingComplianceOverride org.jboss.test.securitymgr.test.WebIntegrationUnitTestCase(tests-security-manager)
> So is the new test supposed to run with a security manager, or we have to override it in the subclasses?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list