• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 - Servlet springtest is not available

 
suneel kota
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are using Spring MVC. If you could post your xml file containing the mapping handler.
 
suneel kota
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jacob Sonia
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic