• 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

Spring 3 not calling .html and servlet is not available

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Do you have a @RequestMapping ("/contact") somewhere in your code?
 
HectorM Rivera
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about just <url-pattern>*</url-pattern>
 
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic