Error 404: target servlet for uri not configured

I just finished with a new web module created using the Spring Framework. So far, I have tested all the pages on my local machine using Tomcat. Today, after I moved the application to Websphere, I get 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 that has another war file.

Below is the output that I see on the console if this is any help.

 The resource WEB-INF/ibm-web-bnd.xmi that is defined in URI WEB-INF/ibm-web-bnd.xmi for module analytics.war is not valid. The resource has a cross reference org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl@4be 44be4 (eProxyURI: WEB-INF/web.xml#WebApp_ID) that cannot be resolved. [6/17/09 15:24:49:465 CDT] 00000011 ArchiveDeploy W ADMA0091E: The resource WEB-INF/ibm-web-ext.xmi that is defined in URI WEB-INF/ibm-web-ext.xmi for module analytics.war is not valid. The resource has a cross reference org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl@7b7 a7b7a (eProxyURI: WEB-INF/web.xml#WebApp_ID) that cannot be resolved. 
+4
source share
2 answers

It seems your servlet is configured correctly. I would say that your web.xml has a servlet name entry that does not match the -servlet.xml file in your WEB-INF directory.

+3
source

I have the same error for my json answer. This is fixed by setting contentLength in action.

0
source

Source: https://habr.com/ru/post/1286390/


All Articles