部署在IBM WebSphere Application Server中自由17.0.0.2提高错误

问题描述:

我的web应用程序我部署在IBM WebSphere Application Server中自由17.0.0.2我的web应用程序,当我试图访问它得到以下错误:部署在IBM WebSphere Application Server中自由17.0.0.2提高错误

Error Message: javax.servlet.ServletException: 
java.lang.NoClassDefFoundError: Could not initialize class 
com.x.y.z 
Error Code: 500 
Target Servlet: com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor 
Error Stack: java.lang.NoClassDefFoundError: Could not initialize class com.x.y.z at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:207) 
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91) 
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:1021) 
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1143) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4983) 
at com.ibm.ws.webcontainer31.osgi.webapp.WebApp31.handleRequest(WebApp31.java:528) 
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(DynamicVirtualHost.java:315) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1025) 
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:280) 
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:967) 
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.wrapHandlerAndExecute(HttpDispatcherLink.java:359) 
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:318) 
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471) 
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405) 
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285) 
at com.ibm.ws.http.channel.internal.inbound.HttpICLReadCallback.complete(HttpICLReadCallback.java:66) 
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504) 
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574) 
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929) 
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018) 
+0

我第一次使用WebSphere Application Server Liberty。请给出您宝贵的建议 –

+1

什么是com.x.y.z,它是如何打包的? – covener

+0

@covener:它是我们内部应用程序中的一个包。 –

如果com.xyz是第三方包,则需要在Liberty server.xml中设置第三方API包的可见性以允许应用程序访问它们。

希望本文档应该有所帮助:https://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/twlp_classloader_3p_apis.html

+0

Thankyou altenbue。它为我工作。 –