java.lang.NoClassDefFoundError :(初始化失败)

时间:2014-02-14 07:41:47

标签: java java-ee websphere websphere-6.1

我已经在websphere服务器中部署了我的应用程序,上周工作正常。

之后不会更改类文件和配置文件,但是现在当我尝试访问应用程序时出现错误

我无法理解为什么突然发生初始化失败。

我不确定问题是否是由于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$2.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$2.run(ResultHandler.java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

3 个答案:

答案 0 :(得分:0)

运行时类路径中缺少包含com.klm.solution.cargo.webpearl.library.Debug的JAR,真的没什么可说的,只需检查你的编译和&运行时类路径匹配。

答案 1 :(得分:0)

根据你的堆栈跟踪, 检查这一行 在com.klm.solution.cargo.webpearl.library.USRUserAutherization.getSSOID(USRUserAutherization.java:109) 你可以找到线索。

答案 2 :(得分:0)

我已经在调试模式下重新启动了服务器并检查了问题并开始工作。这很奇怪