• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP Status 404 - Servlet springtest is not available

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic