[
http://jira.jboss.com/jira/browse/JBAS-4031?page=comments#action_12351763 ]
Scott M Stark commented on JBAS-4031:
-------------------------------------
This was due to the jbossts14 snapshot release not being updated in my repo. With that
corrected the tests-jacc-security overview is:
[starksm@succubus testsuite]$ ant tests-jacc-security
Buildfile: build.xml
tests-jacc-security:
[echo] creating jacc config
[copy] Copying 173 files to
/home/svn/JBoss4.2/Branch_4_2/build/output/jboss-4.2.0.CR1/server/jacc
[echo] Overwriting config descriptors
[copy] Copying 7 files to
/home/svn/JBoss4.2/Branch_4_2/build/output/jboss-4.2.0.CR1/server/jacc
[server:start] Starting server "jacc" with command:
[server:start] /usr/java/jdk1.5.0_09/bin/java -cp
/home/svn/JBoss4.2/Branch_4_2/build/output/jboss-4.2.0.CR1/bin/run.jar:/usr/java/jdk1.5.0_09/lib/tools.jar
org.jboss.Main -c jacc -b localhost
[echo] Starting patternset=jacc.includes config=JACC
[junit] Running org.jboss.test.cmp2.audit.test.AuditUnitTestCase
[junit] Tests run: 7, Failures: 0, Errors: 7, Time elapsed: 1.735 sec
[junit] Test org.jboss.test.cmp2.audit.test.AuditUnitTestCase FAILED
[junit] Running org.jboss.test.cmp2.cmrstress.CMRStressTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.113 sec
[junit] Running org.jboss.test.cmp2.cmrtransaction.test.CMRTransactionUnitTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.803 sec
[junit] Running org.jboss.test.cmp2.commerce.CompleteUnitTestCase
[junit] Tests run: 32, Failures: 0, Errors: 0, Time elapsed: 4.441 sec
[junit] Running org.jboss.test.cmp2.perf.test.PerfUnitTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 3.384 sec
[junit] Running org.jboss.test.cmp2.relationship.RelationshipUnitTestCase
[junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 2.497 sec
[junit] Running org.jboss.test.cmp2.simple.SimpleUnitTestCase
[junit] Tests run: 44, Failures: 0, Errors: 0, Time elapsed: 1.856 sec
[junit] Running org.jboss.test.jacc.test.CallerInRoleUnitTestCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.593 sec
[junit] Test org.jboss.test.jacc.test.CallerInRoleUnitTestCase FAILED
[junit] Running org.jboss.test.jacc.test.EJBSpecUnitTestCase
[junit] Tests run: 23, Failures: 5, Errors: 14, Time elapsed: 2.654 sec
[junit] Test org.jboss.test.jacc.test.EJBSpecUnitTestCase FAILED
[junit] Running org.jboss.test.jacc.test.FormAuthUnitTestCase
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 1.619 sec
[junit] Running org.jboss.test.jacc.test.JMXConsoleUnitTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.569 sec
[junit] Running org.jboss.test.jacc.test.MissingMethodUnitTestCase
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.706 sec
[junit] Test org.jboss.test.jacc.test.MissingMethodUnitTestCase FAILED
[junit] Running org.jboss.test.jacc.test.WebConstraintsUnitTestCase
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.007 sec
[junit] Running org.jboss.test.jacc.test.WebIntegrationUnitTestCase
[junit] Tests run: 37, Failures: 0, Errors: 4, Time elapsed: 5.607 sec
[junit] Test org.jboss.test.jacc.test.WebIntegrationUnitTestCase FAILED
[junit] Running org.jboss.test.web.test.UserInRoleUnitTestCase
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.968 sec
[junit] Running org.jboss.test.webservice.jbws309.JBWS309TestCase
[junit] Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 3.221 sec
[junit] Test org.jboss.test.webservice.jbws309.JBWS309TestCase FAILED
[server:stop] Shutting down server: jacc
failing org.jboss.test.jacc.test.* tests
----------------------------------------
Key: JBAS-4031
URL:
http://jira.jboss.com/jira/browse/JBAS-4031
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Test Suite
Environment: Java Version 1.5.0_10
Java Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Client VM
Java VM Version 1.5.0_10-b03
Java VM Info mixed mode
OS Name Linux
OS Version 2.6.9-42.0.2.EL
OS Arch i386
Reporter: Dimitris Andreadis
Assigned To: Scott M Stark
Priority: Critical
Fix For: JBossAS-4.2.0.CR1
A lot of JACC tests (currenty 62) fail with the message:
SecurityException; nested exception is: java.lang.SecurityException: Denied:
(javax.security.jacc.EJBMethodPermission StatefulSession
create,Home,java.lang.String)[Home:create(java.lang.String)], caller=null
java.rmi.AccessException: SecurityException; nested exception is:
java.lang.SecurityException: Denied: (javax.security.jacc.EJBMethodPermission
StatefulSession create,Home,java.lang.String)[Home:create(java.lang.String)], caller=null
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:388)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
at org.jboss.ejb.Container.invoke(Container.java:975)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
at $Proxy15.invoke(Unknown Source)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848)
at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:527)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
Caused by: java.lang.SecurityException: Denied: (javax.security.jacc.EJBMethodPermission
StatefulSession create,Home,java.lang.String)[Home:create(java.lang.String)], caller=null
at
org.jboss.ejb.plugins.JaccAuthorizationInterceptor.checkSecurityAssociation(JaccAuthorizationInterceptor.java:115)
at
org.jboss.ejb.plugins.JaccAuthorizationInterceptor.invokeHome(JaccAuthorizationInterceptor.java:76)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:143)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
at org.jboss.ejb.Container.invoke(Container.java:975)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
at $Proxy15.invoke(Unknown Source)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848)
at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:527)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:612)
at org.jboss.remoting.Client.invoke(Client.java:604)
at
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:175)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy2.create(Unknown Source)
at
org.jboss.test.security.test.EJBSpecUnitTestCase.testStatefulCreateCaller(EJBSpecUnitTestCase.java:163)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
--
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