当前位置: 代码迷 >> Java面试 >> eclpise中启动tomcat出错
  详细解决方案

eclpise中启动tomcat出错

热度:119   发布时间:2016-04-17 20:12:38.0
eclpise中启动tomcat出错 请教大家
2007-7-26   9:15:10   org.apache.tomcat.util.digester.Digester   startElement
SEVERE:   Begin   event   threw   exception
java.security.AccessControlException:   access   denied   (java.lang.RuntimePermission   accessClassInPackage.org.apache.catalina)
at   java.security.AccessControlContext.checkPermission(Unknown   Source)
at   java.security.AccessController.checkPermission(Unknown   Source)
at   java.lang.SecurityManager.checkPermission(Unknown   Source)
at   java.lang.SecurityManager.checkPackageAccess(Unknown   Source)
at   sun.misc.Launcher$AppClassLoader.loadClass(Unknown   Source)
at   java.lang.ClassLoader.loadClass(Unknown   Source)
at   java.lang.ClassLoader.loadClass(Unknown   Source)
at   java.lang.ClassLoader.loadClassInternal(Unknown   Source)
at   org.apache.catalina.core.StandardServer. <init> (StandardServer.java:86)
at   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native   Method)
at   sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown   Source)
at   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown   Source)
at   java.lang.reflect.Constructor.newInstance(Unknown   Source)
at   java.lang.Class.newInstance0(Unknown   Source)
at   java.lang.Class.newInstance(Unknown   Source)
at   org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)
at   org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at   org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at   org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown   Source)
at   org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown   Source)
at   org.apache.xerces.parsers.XML11Configuration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XML11Configuration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XMLParser.parse(Unknown   Source)
at   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)


------解决方案--------------------
你的WEB_INF/lib下面有tomcat的包,去掉就可以了
------解决方案--------------------
用了myeclipse插件都搞定,简单的配置一下就OK。
  相关解决方案