Jetty and Access Denied

Posted by Laurent on Stack Overflow See other posts from Stack Overflow or by Laurent
Published on 2010-04-07T08:59:12Z Indexed on 2010/04/07 9:03 UTC
Read the original article Hit count: 880

Filed under:
|
|

Hello,

I am using several libraries in a maven project and one of these libraries is Jetty (6.1.18). It is a mandatory dependency for an another library.

If I run my application from eclipse, with the eclipse classpath which is set by the maven eclipse plugin, all works. However, if I generate a one jar with dependencies and then I run my application from this jar, I get the following exception :

  Exception in thread "main" java.lang.ExceptionInInitializerError
 at org.mortbay.jetty.nio.SelectChannelConnector.<init>(SelectChannelConnector.java:70)
 ...
  Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.mortbay.io.nio.JVMBUG_THRESHHOLD read)
 at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
 at java.security.AccessController.checkPermission(AccessController.java:546)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
 at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
 at java.lang.System.getProperty(System.java:650)
 at java.lang.Integer.getInteger(Integer.java:865)
 at java.lang.Integer.getInteger(Integer.java:823)
 at org.mortbay.io.nio.SelectorManager.<clinit>(SelectorManager.java:47)
 ... 27 more

I think it is due to a file which is overridden by an another with the same name when the one jar is built but I have no idea where to look for. Does someone has an idea ?

© Stack Overflow or respective owner

Related posts about java

Related posts about jetty