首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse开发web中遇到的有关问题

2012-01-09 
求助 eclipse开发web中遇到的问题大家知道这个错误的原因吗?谢啦严重:Endeventthrewexceptionjava.lang.re

求助 eclipse开发web中遇到的问题
大家知道这个错误的原因吗?谢啦严重:   End   event   threw   exception
java.lang.reflect.InvocationTargetException
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at   org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at   org.apache.commons.digester.Rule.end(Rule.java:276)
at   org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at   org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:123)
at   org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(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.DTDConfiguration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XMLParser.parse(Unknown   Source)
at   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.commons.digester.Digester.parse(Digester.java:1567)
at   org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:512)
at   org.apache.catalina.core.StandardHost.install(StandardHost.java:890)
at   org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:523)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at   org.apache.catalina.core.StandardService.start(StandardService.java:519)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:581)
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.start(Bootstrap.java:297)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused   by:   java.lang.NoClassDefFoundError:   javax/servlet/http/HttpServlet
at   java.lang.ClassLoader.defineClass1(Native   Method)
at   java.lang.ClassLoader.defineClass(Unknown   Source)
at   java.security.SecureClassLoader.defineClass(Unknown   Source)
at   java.net.URLClassLoader.defineClass(Unknown   Source)
at   java.net.URLClassLoader.access$100(Unknown   Source)
at   java.net.URLClassLoader$1.run(Unknown   Source)


at   java.security.AccessController.doPrivileged(Native   Method)
at   java.net.URLClassLoader.findClass(Unknown   Source)
at   java.lang.ClassLoader.loadClass(Unknown   Source)
at   sun.misc.Launcher$AppClassLoader.loadClass(Unknown   Source)
at   java.lang.ClassLoader.loadClass(Unknown   Source)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1279)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
at   java.lang.ClassLoader.loadClassInternal(Unknown   Source)
at   java.lang.ClassLoader.defineClass1(Native   Method)
at   java.lang.ClassLoader.defineClass(Unknown   Source)
at   java.security.SecureClassLoader.defineClass(Unknown   Source)
at   org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1653)
at   org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:883)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1333)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
at   org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
at   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at   org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3948)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at   org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:832)
...   38   more
2007-1-18   15:21:07   org.apache.catalina.startup.HostConfig   deployDescriptors
严重:   Error   deploying   configuration   descriptor   admin.xml
java.io.IOException:   java.lang.reflect.InvocationTargetException
at   org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:518)
at   org.apache.catalina.core.StandardHost.install(StandardHost.java:890)
at   org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:523)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at   org.apache.catalina.core.StandardService.start(StandardService.java:519)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:581)
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.start(Bootstrap.java:297)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



[解决办法]
应该是连接上的问题吧,我也遇见过,不过就是在配置文件改改就好了

热点排行