java.lang.NoClassDefFoundError:(初始化失败)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21773464/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
java.lang.NoClassDefFoundError: (initialization failure)
提问by user2369634
I have deployed my application in websphere server and it was working fine last week.
我已经在 websphere 服务器中部署了我的应用程序,上周它运行良好。
Class files and configuration files are not changed after that, but now when I try to access the application I get the error
之后类文件和配置文件不会更改,但是现在当我尝试访问应用程序时出现错误
I am not able to understand why suddenly the initialization failure is occuring.
我无法理解为什么突然发生初始化失败。
I am not sure whether the issue is due to some problem in websphere server?
我不确定问题是否是由于 websphere 服务器中的某些问题引起的?
[14-02-14 13:04:40:295 IST] 00000039 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: PCUSRCAASLogonServlet. Exception thrown : java.lang.NoClassDefFoundError: com.klm.solution.cargo.webpearl.library.Debug (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)
at com.klm.solution.cargo.webpearl.library.USRUserAutherization.getSSOID(USRUserAutherization.java:109)
at com.klm.solution.cargo.webpearl.control.user.PCUSRCAASLogonServlet.performTask(PCUSRCAASLogonServlet.java:85)
at com.klm.solution.cargo.webpearl.control.user.PCUSRCAASLogonServlet.doGet(PCUSRCAASLogonServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
[14-02-14 13:04:40:299 IST] 00000039 WebApp E [Servlet Error]-[PCUSRCAASLogonServlet]: java.lang.NoClassDefFoundError: com.klm.solution.cargo.webpearl.library.Debug (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)
at com.klm.solution.cargo.webpearl.library.USRUserAutherization.getSSOID(USRUserAutherization.java:109)
at com.klm.solution.cargo.webpearl.control.user.PCUSRCAASLogonServlet.performTask(PCUSRCAASLogonServlet.java:85)
at com.klm.solution.cargo.webpearl.control.user.PCUSRCAASLogonServlet.doGet(PCUSRCAASLogonServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
回答by epoch
The JAR containing com.klm.solution.cargo.webpearl.library.Debug
is missing on the runtime classpath, not much else to say really, just check if your compile and & runtime classpaths match up.
com.klm.solution.cargo.webpearl.library.Debug
运行时类路径中缺少包含的 JAR,实际上没有什么可说的,只需检查您的编译和运行时类路径是否匹配。
回答by Derek
According to your stacktrace,
check this line
at com.klm.solution.cargo.webpearl.library.USRUserAutherization.getSSOID(USRUserAutherization.java:109)
you can find the clue.
根据您的堆栈跟踪,检查这一行,com.klm.solution.cargo.webpearl.library.USRUserAutherization.getSSOID(USRUserAutherization.java:109)
您可以找到线索。
回答by user2369634
I have restarted the server in debug mode and checked for the issue and it started working. This is very strange
我已在调试模式下重新启动服务器并检查问题并开始工作。这很奇怪