wood burning stoves*
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 Java 8 in Action this week in the Java 8 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: 14687
    
  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: 172
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 404 - Servlet springtest is not available
 
Similar Threads
servlet not found error
HTTP Status 404 - Servlet YardelligentServlet is not available
http status 404 message {extremely urgent help required}
"HTTP Status 404" with Tomcat
HTTP Status 404 error in tomcat