Announcement Announcement Module
Collapse
No announcement yet.
Trouble getting Spring application running on WAS 7 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trouble getting Spring application running on WAS 7

    I am getting the following error when I try and run my application on WAS 7. The only post I could find about it said it was fixed after updating the spring dependency's to 2.5.6, bu I am running 3.0.6.RELEASE.

    Does anyone have any ideas about why it won't run?

    Thanks!



    HTML Code:
    Error Page Exception
    SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.
    
    
    Original Exception: 
    Error Message: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
    Error Code: 500
    Target Servlet: ras_web
    Error Stack: 
    java.lang.NoSuchMethodError: org/slf4j/spi/LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V 
         at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159) 
         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:320) 
         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) 
         at javax.servlet.GenericServlet.init(GenericServlet.java:241) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:739) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) 
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935) 
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) 
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) 
         at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) 
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) 
         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:138) 
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) 
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) 
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) 
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) 
         
    
    
    
    Error Page Exception: 
    Error Message: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
    Error Code: 0
    Target Servlet: 
    Error Stack: 
    java.lang.NoSuchMethodError: org/slf4j/spi/LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V 
         at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159) 
         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:320) 
         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) 
         at javax.servlet.GenericServlet.init(GenericServlet.java:241) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:739) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) 
         at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) 
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:354) 
         at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:3369) 
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3968) 
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) 
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) 
         at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) 
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305) 
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) 
         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:138) 
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) 
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) 
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) 
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) 
         

  • #2
    The WAS probably uses out-date jar. You probably need to configure to load application classpath first before loading the WAS classpath. Hope this will help

    Comment


    • #3
      In your EAR's deployment descriptor, goto "Deployment" tab and then under "Application" Section click on EAR and then select

      classloader mode = "PARENT_LAST" and
      WAR classloader policy = APPLICATION.

      Comment

      Working...
      X