将jetty嵌入到j2me cdc,启动服务后报错,请高手指教

zhuilu 发布于 2012/02/15 17:25
阅读 383
收藏 0

错误如下

 

Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError
 at java.lang.Class.runStaticInitializers(Class.java:1617)
 at org.mortbay.component.Container.add(Container.java:200)
 at org.mortbay.component.Container.update(Container.java:164)
 at org.mortbay.component.Container.update(Container.java:106)
 at org.mortbay.jetty.Server.setConnectors(Server.java:158)
 at JettyServer.startJetty(JettyServer.java:36)
 at BasicJButtonDemo$1.actionPerformed(BasicJButtonDemo.java:41)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1745)
 at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1783)
 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
 at com.sun.java.swing.plaf.micro.MicroButtonListener.mouseReleased(MicroButtonListener.java:228)
 at java.awt.Component.processMouseEvent(Component.java:3066)
 at java.awt.Component.processEvent(Component.java:2895)
 at java.awt.Container.processEvent(Container.java:895)
 at java.awt.Component.dispatchEventImpl(Component.java:2409)
 at java.awt.Component.dispatchEvent(Component.java:2313)
 at com.sun.java.swing.plaf.micro.MicroInternalFrameUI$GlassPaneDispatcher.retargetMouseEvent(MicroInternalFrameUI.java:1496)
 at com.sun.java.swing.plaf.micro.MicroInternalFrameUI$GlassPaneDispatcher.forwardMouseEvent(MicroInternalFrameUI.java:1432)
 at com.sun.java.swing.plaf.micro.MicroInternalFrameUI$GlassPaneDispatcher.mouseReleased(MicroInternalFrameUI.java:1362)
 at java.awt.Component.processMouseEvent(Component.java:3066)
 at java.awt.Component.processEvent(Component.java:2895)
 at java.awt.Container.processEvent(Container.java:895)
 at java.awt.Component.dispatchEventImpl(Component.java:2409)
 at java.awt.Component.dispatchEvent(Component.java:2313)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:295)
 at java.awt.EventQueueProxy.dispatchEvent(EventDispatchThread.java:286)
 at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:98)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:83)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:74)
 at java.lang.Thread.startup(Thread.java:753)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.mortbay.log.class read)
 at java.security.AccessControlContext.checkPermission(AccessControlContext.java:277)
 at java.security.AccessController.checkPermission(AccessController.java:465)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:536)
 at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1284)
 at java.lang.System.getProperty(System.java:639)
 at org.mortbay.log.Log.<clinit>(Log.java:43)
 at java.lang.Class.runStaticInitializers(Class.java:1596)
 ... 31 more

 

 

我的java security  已经修改为


//grant codeBase "file:${{java.ext.dirs}}/*" {
// permission java.security.AllPermission;
//};

// default permissions granted to all domains

grant {
  permission java.security.AllPermission;
};

加载中
返回顶部
顶部