*
The moose likes Websphere and the fly likes Failed to load servlet: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Failed to load servlet:" Watch "Failed to load servlet:" New topic
Author

Failed to load servlet:

Danny Rebello
Greenhorn

Joined: Dec 30, 2005
Posts: 6
Hi Everybody,
I am using Websphere version 4, and struts 1.1.
My web.xml looks like this


<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app id="WebApp">
<display-name>TestPrj</display-name>
<servlet>
<servlet-name>testServlet</servlet-name>
<display-name>testServlet</display-name>
<servlet-class>com.test.testServlet</servlet-class>
<init-param>
<param-name>age</param-name>
<param-value>10</param-value>
</init-param>
</servlet>
<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.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>testServlet</servlet-name>
<url-pattern>testServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>


<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/taglibs/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/taglibs/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/taglibs/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/taglibs/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/taglibs/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/taglibs/x.tld</taglib-location>
</taglib>

</web-app>



Can anyone please help me on why am i getting this error.
Thanks in advance
Danny
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Which servlet failed to load? ActionServlet or testServlet?

And shouldn't testServlet start with a capital T?


A good workman is known by his tools.
Danny Rebello
Greenhorn

Joined: Dec 30, 2005
Posts: 6
The ActionServlet failed to load , There is no problem with
the testServlet as it works fine without integrating the Struts
framework.

Regards
Danny
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Failed to load servlet:
 
Similar Threads
Problem in web.xml
Parsing error processing resource path /WEB-INF/struts-config.xml
How to user Struts Tags in a WebApplication
error comes while running the struts application please see the source code for detail
Jboss 4.2.3 how to change the default datasource to oracle ?