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
Expand all | Collapse all

Error 404: No target servlet configured for uri

  • 1.  Error 404: No target servlet configured for uri

    Posted Wed August 11, 2010 10:37 AM
    Error 404: No target servlet configured for uri

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

    Hi Experts,

    I just got done with a new Web module built with Spring Framework. Till now I was testing all the pages on my local machine using Tomcat. Today after I moved the application to Websphere 6.1
    I am getting the following error:
    Error 404: No target servlet configured for uri

    is there anything I need to do in web.xml or somewhere? I deployed an EAR file on my WAS , which has another war file. I have cross checked my deployment descriptor so many times already :(

    Can someone please guide towards the correct path?

    Below is the stack trace of my console output:

    /18/09 9:01:06:592 CDT] 00000016 EJBContainerI I WSVR0037I: Starting EJB jar: mejb.jar
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O com.ibm.ws.exception.RuntimeError: java.lang.NullPointerException
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:856)
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2114)
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:340)
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    [6/18/09 9:01:06:624 CDT] 00000015 SystemOut O Caused by: java.lang.NullPointerException
    at com.ibm.ws.wswebcontainer.webapp.WebAppConfigurationHelper.constructServletMappings(WebAppConfigurationHelper.java:405)
    at com.ibm.ws.wswebcontainer.webapp.WebAppConfigurationHelper.createConfiguration(WebAppConfigurationHelper.java:147)
    at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:169)
    at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:135)

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

    Posted By: aman0711 at Jun 18 2009 2:18PM


  • 2.  Error 404: No target servlet configured for uri

    Posted Wed August 11, 2010 10:45 AM
    The error /"Error 404: No target servlet configured for uri/" is encountered when you dont specify a proper virtual host for the server. Try assigning a proper virtual host to the deployed application.

    Regards,
    Sachin

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

    Posted By: sachin.varma at Jun 19 2009 10:27AM