WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Error in deploying war file in webspehere 7

  • 1.  Error in deploying war file in webspehere 7

    Posted Thu December 12, 2013 12:47 AM

    We are using struts 2, spring , hibernate and smartgwt in our application.


    This application running fine Tomcat 6.0 . We are able to deployed webspehere with out error.


    When try to access the URL we are getting Error:500 .


    I attached the Error log below


    FFDC Exception:javax.servlet.ServletException SourceId:com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper ProbeId:166 Reporter:com.ibm.ws.webcontainer.filter.WebAppFilterManagerImpl@18e418e4
    javax.servlet.ServletException: Filter [struts]: could not be initialized
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:154)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:509)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:423)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:282)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:340)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:812)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:917)
        at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:924)
        at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:651)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
        at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
        at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1016)
        at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:639)
        at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
        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:202)
        at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
    Caused by: Class: com.opensymphony.xwork2.util.ResolverUtil
    File: ResolverUtil.java
    Method: loadImplementationsInDirectory
    Line: 382 - com/opensymphony/xwork2/util/ResolverUtil.java:382:-1
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:502)
        at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
        at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:140)
        ... 27 more
    Caused by: java.lang.NullPointerException
        at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInDirectory(ResolverUtil.java:382)
        at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInDirectory(ResolverUtil.java:388)
        at com.opensymphony.xwork2.util.ResolverUtil.findInPackage(ResolverUtil.java:351)
        at com.opensymphony.xwork2.util.ResolverUtil.find(ResolverUtil.java:302)
        at org.apache.struts2.config.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:300)
        at org.apache.struts2.config.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:543)
        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:260)
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
        at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
        ... 30 more



    In Web.xml Filter Mapping


    -----------------------------------------




     
            struts
            org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
            
                actionPackages
                   /
              
           
                listings
                true  
          
       

       
            struts
            /*