GeeCON Prague 2014*
The moose likes Websphere and the fly likes Error 404: No target servlet configured for uri: +websphere 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Error 404: No target servlet configured for uri: +websphere 6.0" Watch "Error 404: No target servlet configured for uri: +websphere 6.0" New topic
Author

Error 404: No target servlet configured for uri: +websphere 6.0

chetlur padmanabham
Greenhorn

Joined: Apr 18, 2008
Posts: 9
My server is running properly, but I got Error 404: No target servlet configured for uri: error while launching my project on web sphere 6.0
see my web.xml and strut-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> id="WebApp_ID"<br /> version="2.4"<br /> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee " target="_blank" rel="nofollow">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>supportPortalWeb</display-name>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>OrganizationDataServlet</servlet-name>
<servlet-class>com.harcourt.supportportal.web.OrganizationDataServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>OrderProcessingServlet</servlet-name>
<servlet-class>com.harcourt.supportportal.web.ordermgmt.OrderProcessingServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>OrganizationValidationServlet</servlet-name>
<servlet-class>com.harcourt.supportportal.web.OrganizationValidationServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ProductValidationServlet</servlet-name>
<servlet-class>com.harcourt.supportportal.web.ProductValidationServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ProductGradeServlet</servlet-name>
<servlet-class>com.harcourt.supportportal.web.ProductGradeServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>action_tmp</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OrganizationDataServlet</servlet-name>
<url-pattern>/servlet/OrganizationDataServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OrderProcessingServlet</servlet-name>
<url-pattern>/servlet/OrderProcessingServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OrganizationValidationServlet</servlet-name>
<url-pattern>/servlet/OrganizationValidationServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ProductValidationServlet</servlet-name>
<url-pattern>/servlet/ProductValidationServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ProductGradeServlet</servlet-name>
<url-pattern>/servlet/ProductGradeServlet</url-pattern>
</servlet-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-config/spring-config.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/epc.tld</taglib-uri>
<taglib-location>/WEB-INF/supportportal.tld</taglib-location>
</taglib>
</jsp-config>
<resource-ref>
<res-ref-name>jdbc/SupportPortalDataSource</res-ref-name>
<res-type>java.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>



< !DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
< !-- Data Sources -->
<data-sources />

< !-- Form Beans -->
<form-beans>
<form-bean name="signOnHandlerForm" type="com.harcourt.supportportal.struts.signon.actionform.SignOnHandlerForm" />
<form-bean name="signOffHandlerForm" type="com.harcourt.supportportal.struts.signon.actionform.SignOffHandlerForm" />
<form-bean name="updatePersonForm" type="com.harcourt.supportportal.struts.sample.actionform.UpdatePersonForm" />
<form-bean name="searchPersonsForm" type="com.harcourt.supportportal.struts.sample.actionform.SearchPersonsForm" />
<form-bean name="updateProductForm" type="com.harcourt.supportportal.struts.product.actionform.UpdateProductForm"/>
<form-bean name="searchProductsForm" type="com.harcourt.supportportal.struts.product.actionform.SearchProductsForm"/>
<form-bean name="searchOrganizationForm" type="com.harcourt.supportportal.struts.mdr.actionform.SearchOrganizationForm"/>
<form-bean name="updateOrganizationForm" type="com.harcourt.supportportal.struts.mdr.actionform.UpdateOrganizationForm"/>
<form-bean name="exportOrganizationForm" type="com.harcourt.supportportal.struts.mdr.actionform.ExportOrganizationForm"/>
<form-bean name="exportProductForm" type="com.harcourt.supportportal.struts.product.actionform.ExportProductForm"/>
</form-beans>

< !-- Global Exceptions -->
<global-exceptions />

< !-- Global Forwards -->

< !-- Action Mappings -->
<action-mappings type="org.apache.struts.config.SecureActionConfig">
<action <br /> path="/start"<br /> type="org.apache.struts.actions.ForwardAction"<br /> parameter="loginRendererDef"/>

< !--<action --><br /> < !--path="/product"--><br /> < !--type="org.apache.struts.actions.ForwardAction"--><br /> < !--parameter="productInputDef"/>-->


<action path="/product" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="updateProductForm" parameter="method" scope="request" validate="false">
<forward name="success" path="productInputDef"/>
<forward name="failure" path="productInputDef"/>
</action>

< !--<action --><br /> < !--path="/organization"--><br /> < !--type="org.apache.struts.actions.ForwardAction"--><br /> < !--parameter="organizationIndexDef"/>-->


<action <br /> path="/report"<br /> type="org.apache.struts.actions.ForwardAction"<br /> parameter="reportIndexDef"/>

<action <br /> path="/user"<br /> type="org.apache.struts.actions.ForwardAction"<br /> parameter="userIndexDef"/>


<action path="/login" type="org.springframework.web.struts.DelegatingActionProxy" name="signOnHandlerForm" scope="request" input="loginRendererDef" validate="true">
<set-property property="secure" value="false"/>
<forward name="success" path="loginLandingDef" />
<forward name="failure" path="loginRendererDef" />
</action>

< !-- sample -->

<action path="/updatePerson" type="org.springframework.web.struts.DelegatingActionProxy" name="updatePersonForm" scope="request" input="productInputDef" validate="true">
<set-property property="secure" value="false"/>
<forward name="success" path="personIndexDef" />
<forward name="failure" path="personInputDef" />
</action>


<action path="/searchPersons" <br /> type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="searchPersonsForm" <br /> scope="request" <br /> parameter="method" <br /> validate="true">
<set-property property="secure" value="false"/>
<forward name="success" path="personIndexDef" />
<forward name="failure" path="loginRendererDef" />
</action>

< !-- end sample -->


<action path="/updateProduct" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="updateProductForm" parameter="method" scope="request" input="productInputDef" validate="true">
<set-property property="secure" value="false"/>
<forward name="success" path="loginLandingDef" />
<forward name="failure" path="/product.do?method=createOrUpdateProduct" />
</action>

<action path="/deleteProduct" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="updateProductForm" parameter="method" scope="request" validate="false">
<set-property property="secure" value="false"/>
<forward name="success" path="loginLandingDef" />
<forward name="failure" path="/product.do?method=createOrUpdateProduct" />
</action>

<action path="/searchProducts" <br /> type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="searchProductsForm"<br /> scope="request" <br /> parameter="method" <br /> validate="true">
<set-property property="secure" value="false"/>
<forward name="success" path="productSearchDef" />
<forward name="failure" path="loginLandingDef"/>
</action>

<action path="/loadProducts" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="searchProductsForm" parameter="method" scope="request" validate="true">
<forward name="success" path="productIndexDef"/>
<forward name="failure" path="userIndexDef"/>
</action>

<action path="/exportProduct" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="exportProductForm" parameter="method" scope="request" validate="true">
<forward name="failure" path="loginLandingDef" />
</action>


< !-- Organization Actions -->

<action path="/searchOrganization" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="searchOrganizationForm" parameter="method" scope="request" validate="true">
<forward name="success" path="orgSearchDef"></forward>
<forward name="failure" path="loginLandingDef"/>
</action>

<action path="/organization" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="updateOrganizationForm" parameter="method" scope="request" validate="false">
<set-property property="secure" value="false"/>
<forward name="success" path="orgInputDef" />
<forward name="failure" path="loginLandingDef" />
</action>

<action path="/loadOrganizations" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="searchOrganizationForm" parameter="method" scope="request" validate="true">
<forward name="success" path="orgIndexDef" />
<forward name="failure" path="loginLandingDef" />
</action>

<action path="/updateOrganization" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="updateOrganizationForm" parameter="method" scope="request" input="orgInputDef" validate="true">
<forward name="success" path="/loadOrganizations.do?method=loadOrganizations"></forward>
<forward name="failure" path="/organization.do?method=createOrUpdateOrganization"/>
</action>

<action path="/exportOrganization" type="org.springframework.web.struts.DelegatingActionProxy" <br /> name="exportOrganizationForm" parameter="method" scope="request" >
<forward name="failure" path="loginLandingDef" />
</action>
</action-mappings>

< !-- Register Support Portal RequestProcessor -->
<controller>
<set-property property="processorClass" value="com.harcourt.supportportal.struts.common.action.SupportPortalRequestProcessor" />
</controller>

< !-- Message Resources -->
<message-resources parameter="com.harcourt.supportportal.resources.ApplicationResources" />

< !-- tiles plugin -->

<plug-in className="com.harcourt.supportportal.tiles.SupportPortalSecureTilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-def/tiles-defs.xml" />
<set-property property="httpPort" value="80"/>
<set-property property="httpsPort" value="80"/>
<set-property property="enable" value="false"/>
<set-property property="addSession" value="false"/>
</plug-in>

< !-- spring plugin -->
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/spring-config/spring-config.xml"/>
</plug-in>

</struts-config>
Joanne Bangasan
Greenhorn

Joined: May 10, 2008
Posts: 11
I'm having similar problem? Did you got a solution for that?

I've tried uninstalling and re-installing the app on the admin console. But still getting the same message?
 
GeeCON Prague 2014
 
subject: Error 404: No target servlet configured for uri: +websphere 6.0