首页 文章

Spring引导,Eureka服务器,IBM WAS:logback提供NoClassDefFoundError ch.qos.logback.classic.spi.ThrowableProxy

提问于
浏览
-1

在使用jdk 8在IBM Websphere Application Server(8.5.5.9)上启动Spring启动应用程序(Eureka服务器)(尝试:1.4.0,1.3.7,1.3.6)时出现问题,它会引发以下异常:

[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: ch.qos.logback.classic.spi.ThrowableProxy
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:433)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:719)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1178)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1383)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:972)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:777)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1380)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2191)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:435)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:378)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:126)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:653)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5486)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5612)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:667)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:611)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1270)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at java.lang.reflect.Method.invoke(Method.java:508)
[8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at java.lang.reflect.Method.invoke(Method.java:508)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1263)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at java.security.AccessController.doPrivileged(AccessController.java:620)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1257)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1096)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:246)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:608)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.RequestProcessor.process(Unknown Source)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.ActionServlet.process(Unknown Source)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1232)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:781)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:480)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:79)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385)
[8/22/16 14:04:02:484 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.RequestProcessor.process(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.ActionServlet.process(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1232)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:781)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:480)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:964)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:511)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:332)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:940)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1820)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[8/22/16 14:04:02:485 GMT+02:00] 00000098 SystemErr     R   at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[8/22/16 14:04:02:486 GMT+02:00] 00000098 SystemErr     R   at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[8/22/16 14:04:02:486 GMT+02:00] 00000098 SystemErr     R   at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[8/22/16 14:04:02:486 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)
[8/22/16 14:04:02:486 GMT+02:00] 00000098 SystemErr     R Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: ch.qos.logback.classic.spi.ThrowableProxy
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:914)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   ... 97 more
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: ch.qos.logback.classic.spi.ThrowableProxy
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:177)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   ... 99 more
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R Caused by: java.lang.NoClassDefFoundError: ch.qos.logback.classic.spi.ThrowableProxy
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:119)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:419)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at ch.qos.logback.classic.Logger.log(Logger.java:765)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:221)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:303)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at java.util.logging.Logger.log(Logger.java:749)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.logging.WsLogger.deliverOrBuffer(WsLogger.java:407)
[8/22/16 14:04:02:517 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.logging.WsLogger.log(WsLogger.java:385)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.logging.WsLogger.logp(WsLogger.java:639)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJAR(ScannerContextImpl.java:282)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scanJARs(ScannerContextImpl.java:315)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.ecs.internal.scan.context.impl.WARScannerContext.scanInternal(WARScannerContext.java:76)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.scan(ScannerContextImpl.java:87)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl.getScannedClasses(ScannerContextImpl.java:70)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.webapp.WebAppImpl.scanForHandlesTypesClasses(WebAppImpl.java:764)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:605)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:170)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   ... 100 more
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at java.net.URLClassLoader.findClass(URLClassLoader.java:607)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:243)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:846)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at java.lang.ClassLoader.loadClass(ClassLoader.java:825)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:134)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:585)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:585)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
[8/22/16 14:04:02:518 GMT+02:00] 00000098 SystemErr     R   ... 120 more

只需在pom中包含spring-cloud-starter-eureka-server,部署到WAS,启动应用程序 - >生成异常

如果从pom中删除启动器并部署应用程序,则可以多次启动和停止应用程序并正常工作 .

所以我无法理解为什么eureka服务器启动器打破了logback并给出了这个异常

项目如果有兴趣试试demo application .

注意:部署应用程序后,停止所有服务器并启动它,应用程序启动成功,停止并单独启动它,它会再次生成异常 .

我相信它与类路径加载器冲突或类似的东西有关,但我无法理解它 .

任何帮助!

1 回答

  • 0

    感谢您的示例项目!

    当我 Build 你的战争时,我明白了

    $ jar tvf bootcallbackdemo-0.0.1-SNAPSHOT.war|grep logback
       521 Mon Aug 29 09:07:26 MDT 2016 WEB-INF/classes/logback-spring.xml
    304075 Fri Apr 08 08:49:58 MDT 2016 WEB-INF/lib/logback-classic-1.1.7.jar
    470782 Fri Apr 08 08:50:02 MDT 2016 WEB-INF/lib/logback-core-1.1.7.jar
    

    ThrowableProxylogback-classic-1.1.7.jar .

    不幸的是,我没有't have websphere, but my guess is that websphere has an old version of logback that doesn'包含 ThrowableProxy 并且正在使用 WEB-INF/lib 中定义的那个 . 是否有可以改变优先级的设置(几年前有weblogic)?

相关问题