gpt4 book ai didi

java - 找不到 Tomcat 类 & 路径 WEB-INF\lib 中有该类

转载 作者:行者123 更新时间:2023-11-28 22:23:10 37 4
gpt4 key购买 nike

我从服务器复制了一个应用程序,然后部署到Tomcat6(与服务器相同),但我总是得到错误!尝试重装Tomcat,还是报错。

错误 1:

            2011-4-12 21:36:16 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2011-4-12 21:36:16 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2011-4-12 21:36:21 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet AdminServlet as unavailable
2011-4-12 21:36:21 org.apache.catalina.core.ApplicationContext log

严重: Error loading WebappClassLoader
context: /portal
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1eed786
org.apache.axis.transport.http.AdminServlet
java.lang.ClassNotFoundException: org.apache.axis.transport.http.AdminServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1493)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4387)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)
at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2011-4-12 21:36:21 org.apache.catalina.core.StandardContext loadOnStartup

严重: Servlet /portal threw load() exception
java.lang.ClassNotFoundException: org.apache.axis.transport.http.AdminServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1493)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4387)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)
at org.apache.catalina.startup.Catalina.start(Catalina.java:585)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2011-4-12 21:36:54 org.apache.catalina.core.StandardWrapperValve invoke

严重: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.jdom.input.SAXBuilder
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1493)
at pde.ams.AmsGlobals.loadProperties(AmsGlobals.java:82)
at pde.ams.AmsGlobals.getAmsPropertys(AmsGlobals.java:47)
at pde.ams.AmsEngine.initialize(AmsEngine.java:77)
at pde.ams.AmsEngine.<init>(AmsEngine.java:61)
at pde.ams.AmsEngine.getInstance(AmsEngine.java:45)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:90)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at pde.ams.filters.AmsFilter.doFilter(AmsFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
2011-4-12 21:37:07 org.apache.catalina.core.StandardContext listenerStop

错误2:

    严重: Exception sending context destroyed event to listener instance of class pde.ams.ContextListener
java.lang.NullPointerException
at pde.ams.ContextListener.contextDestroyed(ContextListener.java:15)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4211)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4846)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:932)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1319)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1290)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:323)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1094)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1106)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:468)
at org.apache.catalina.core.StandardService.stop(StandardService.java:604)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:735)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:652)
at org.apache.catalina.startup.Catalina.start(Catalina.java:619)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2011-4-12 21:37:07 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
2011-4-12 21:37:07 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()

desc:there are the classes that could not found by tomcat still in the path /web_inf/lib

问题1:它有什么问题?

问题2:error1和error2有关系吗?

好的,这是竞争堆栈跟踪

最佳答案

Question1: What's wrong with it?

第一个错误看起来像是 webapp 或其配置中的错误。 Tomcat 报告当 web 应用程序关闭时某些东西(例如其中一个 servlet)没有正确整理。如果不解决这个问题,您的网络服务器可能会在几次 webapp 重新启动后耗尽内存。

第二个错误是提示找不到某些类。这可能是某种网络服务器或网络应用配置错误。

在这两种情况下,如果您向我们展示完整的堆栈跟踪,将会有所帮助。

Question2: Is there any relation between the error1 and error2?

可能不会。


一点点挖掘告诉我,您可能会在名为 axis-x.y.jar 的 JAR 文件中找到 org.apache.axis.transport.http.AdminServlet或类似的东西(完整列表请参见 http://findjar.com/class/org/apache/axis/transport/http/AdminServlet.html)

对于 org.jdom.input.SAXBuilder 寻找像 jdom-x.y.jar 这样的文件(完整列表参见 http://findjar.com/class/org/jdom/input/SAXBuilder.html)

第二个错误与您最初报告的错误不同,但它仍然是 webapp 中的错误。这可能是您第一个错误的结果;即假设 servlet 正常启动。

您需要查看安装在 Tomcat 上的 Web 应用程序,并查看 Axis 和 JDOM JAR 是否位于 WEB-INF/lib 中。如果没有,请返回到您从中复制 webapp 的服务器,然后查看那里的 webapp ...以及服务器的公共(public)图书馆区域。 (你不说你从什么样的服务器复制...)

关于java - 找不到 Tomcat 类 & 路径 WEB-INF\lib 中有该类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5633239/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com