Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

J2EE security violation

2 views
Skip to first unread message

Alexandre

unread,
Aug 27, 2001, 10:31:32 PM8/27/01
to
I'm trying to deploy an entity bean with the J2EE reference
implementation. Deployment fails when running rmic and the cause is a
security violation because it is trying to start a new thread (I know
this is an EJB no-no, but I need to use a package that does this and
have no control over it). The package responsible for thread creation
was placed under the $J2EE_HOME/lib/system directory and
$J2EE_CLASSPATH was set accordingly. I was under the impression that
this would allow my code to function properly, but I still get the
following exception:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
at java.security.AccessController.checkPermission(AccessController.java:
399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at com.sun.enterprise.J2EESecurityManager.checkAccess(J2EESecurityManage
r.java:53)
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:279)
at java.lang.Thread.init(Thread.java:265)
at java.lang.Thread.<init>(Thread.java:345)
at org.ewin.common.util.Log.<clinit>(Log.java:190)
at orgg.ewin.javax.sql.DriverManagerDataSource.<clinit>
(DriverManagerData...

So, what gives? Am I forgetting something obvious? I read and re-read
the J2EE documentation but could not figure out what I am doing
wrong...

Thanking in advance for any help I might get,

- Alex (alex...@infravio.com)

0 new messages