簡體   English   中英

java.lang.NoClassDefFoundError:javax / xml / bind / JAXBPermission

[英]java.lang.NoClassDefFoundError: javax/xml/bind/JAXBPermission

當我嘗試在App Engine本地開發服務器上運行Maven項目時,顯示某些類未找到異常

下面給出的是我的控制台狀態

  Apr 7, 2014 11:56:01 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed C:\new\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\web\WEB-INF/appengine-web.xml
Apr 7, 2014 11:56:01 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:\new\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\web\WEB-INF/web.xml
Apr 7, 2014 11:56:01 AM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'E:\appengine-java-sdk-1.9.0\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\new\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\web\WEB-INF\appengine-web.xml'
Apr 7, 2014 11:56:04 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBPermission
    at com.google.appengine.tools.development.JettyContainerService.initContext(JettyContainerService.java:172)
    at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:299)
    at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
    at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:79)
    at com.google.appengine.tools.development.Modules.startup(Modules.java:97)
    at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:255)
    at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
    at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
    at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
    at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
    at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
    at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:219)
    at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:210)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBPermission
    at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:391)
    at com.google.appengine.tools.development.DevAppServerClassLoader.loadClass(DevAppServerClassLoader.java:92)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:331)
    ... 15 more

請輸入您的建議

直到Java SE 6才提供對JAX-B的支持。

1確保將適當的JAXB實現添加到您的類路徑中

2.將您的JRE升級到1.6或更高

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM