GeeCON Prague 2014*
The moose likes Spring and the fly likes Spring 3 not calling .html and servlet is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring 3 not calling .html and servlet is not available" Watch "Spring 3 not calling .html and servlet is not available" New topic
Author

Spring 3 not calling .html and servlet is not available

HectorM Rivera
Greenhorn

Joined: Dec 01, 2010
Posts: 18
I run this url http://localhost:8080/CtetSpring1/ and hit teh link for contract.html:
http://localhost:8080/CtetSpring1/contact.html.
Error:

type Status report

message /CtetSpring1/contact.html

description The requested resource (/CtetSpring1/contact.html) is not available.


I'm not sure what else I can do - help!


Here is a list of my jars:
aopalliance-1.0.jar
cglib-1.0.jar
com.springsource.org.aopa;;iance-spurces-1.0.0.jar
commons-collections-3.2.1.jar
commons-dbcp-1.0.jar
commons-loggin-1.0.4.jar
commons-pool-1.2.jar
ehcache-1.1.jar
ejb3-persistence-1.0.0.GA.jar
hibernate-core-3.1.1.GA.jar
hibernate-entitiymanager-3.2.1.GA.jar
hibernate-validaator-3.0.0.GA.jar
org.springframework.aop-3.0.1.jar
org.springframework.aop-3.0.1.release.jar
org.springframework.aam-3.0.1.release.jar
org.springframework.beans-3.0.1.release.jar
org.springframework.context-3.0.1.release.jar
org.springframework.core-3.0.1.release.jar
org.springframework.expression-3.0.1.release.jar
org.springframework.expression-sources-3.0.1.release.jar
org.springframework.orm-3.0.1.release.jar
org.springframework.oxm-3.0.1.release.jar
org.springframework.transaction-3.0.1.release.jar
org.springframework.web-servlet-3.0.1.release.jar
org.springframework.web-servlet-sources-3.0.1.release.jar
org.springframework.web-3.0.1.release.jar
org.springframework.seb-sources-3.0.1.release.jar
spring-hibernate3-2.0.1.jar
spring-webmvc-3.0.0.release.jar
spring-webmvc-3.0.0.release.jar



thanks - Hector
T. Huy Nguyen
Ranch Hand

Joined: Nov 02, 2010
Posts: 57
Hi,

Do you have a @RequestMapping ("/contact") somewhere in your code?


My material for SCJP (2008), SCWCD (2010), SCBCD (2010). About me
HectorM Rivera
Greenhorn

Joined: Dec 01, 2010
Posts: 18
T. Huy Nguyen wrote:Hi,

Do you have a @RequestMapping ("/contact") somewhere in your code?


I put this in the controller class:


but still getting thsi error when trying to call servlet:
type Status report

message Servlet SpringMVC is not available

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

Doe steh fact theat I am using APache Topcat 7 make a differecne?

Thanks
T. Huy Nguyen
Ranch Hand

Joined: Nov 02, 2010
Posts: 57
It's possible that Tomcat may have some implicit handling of request for .html. But I don't know for sure because I have never use Tomcat before.

If you replace



By



does it work?
HectorM Rivera
Greenhorn

Joined: Dec 01, 2010
Posts: 18
T. Huy Nguyen wrote:It's possible that Tomcat may have some implicit handling of request for .html. But I don't know for sure because I have never use Tomcat before.

If you replace



By



does it work?


No it does not work. It just won't bring up the servlet - any other suggestiosn?

Thanks - H
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
How about just <url-pattern>*</url-pattern>
 
GeeCON Prague 2014
 
subject: Spring 3 not calling .html and servlet is not available