This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes HTTP Status 404 - Servlet springtest is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "HTTP Status 404 - Servlet springtest is not available" Watch "HTTP Status 404 - Servlet springtest is not available" New topic
Author

HTTP Status 404 - Servlet springtest is not available

suneel kota
Greenhorn

Joined: Jun 06, 2006
Posts: 24
Hai All,

I am new to springs, i am getting this type of error when i am running my application. Can anybody help me to solve this problem.


HTTP Status 404 - Servlet springtest is not available

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

type Status report

message Servlet springtest is not available

description The requested resource (Servlet springtest is not available) is not available.


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

Apache Tomcat/5.5.17

Thanks & Regards
SuneelKota
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I guess you are using Spring MVC. If you could post your xml file containing the mapping handler.


[My Blog]
All roads lead to JavaRanch
suneel kota
Greenhorn

Joined: Jun 06, 2006
Posts: 24
Hi Satou,

Thanks for your reply here is my springapp-servlet.xml file. pls check it and inform me the mistache which i have done.



<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><!-- - Application context definition for "springapp" DispatcherServlet. --><beans> <bean id="springappController" class="SpringappController"/> <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/hello.htm">springappController</prop> </props> </property> </bean></beans>

Thanks & Regards
SuneelKota
meena latha
Ranch Hand

Joined: Jan 24, 2005
Posts: 219
Hi i am also trying the same example....
I am getting the same problem..........Please let me know if you have figured out what is the problem.
Shiwakant Bharti
Greenhorn

Joined: Mar 22, 2010
Posts: 2

In the web.xml file, remove the load on startup entry.
<load-on-startup>1</load-on-startup>

web.xml
---------------------------------------------------------------------------------------------------
<servlet>
<servlet-name>springapp2</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup> <-- remove this line.
</servlet>
---------------------------------------------------------------------------------------------------
After removing the same you. Restart the tomcat and run the application from any web exlplorer.
There you will find the relevant error of Class not found or something.
Copy all the relevant classes in the lib folder from the Springs and it should be resolved.

If not yet done contact me.


Regards,
Shiwakant
----------------
SCJP 6, SCWCD 5, SCBCD 5
Jacob Sonia
Ranch Hand

Joined: Jun 28, 2009
Posts: 174
Hi,

This is my springmvc-servlet.xml



and this is my web.xml


I am still getting the exception
HTTP Status 404 - /springmvc/hello_world.html
 
 
subject: HTTP Status 404 - Servlet springtest is not available