• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Tomcat not seeing my spring mvc app's Servlet?

 
Bartender
Posts: 1938
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm typing in code doing a "simple" Spring MVC application.

However, when I run it, I keep getting "Resource unavailable" regardless of the URL I use (same result in Tomcat Manager application).

It seems that somehow, the Spring Servlet - which I'm not creating, only referencing, somehow isn't being connected.

<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

I've updated both web.xml and the associated "dispatcher" servlet.xml file, but even the simplest example doesn't work.

Creating a standard (local) servlet works fine and I can create one in about a minute.

I'm not sure what I'm missing (obviously...).

I'm cutting and pasting code from an example trying to get the simplest of examples to work. (http://maestric.com/doc/java/spring/hello_world)

Any help or suggestions would be appreciated.

Thanks.

Mike

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Spring.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you increased the logging levels and examined the Tomcat startup output? What libraries are you deploying? What version of Spring?
 
Mike London
Bartender
Posts: 1938
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,

I fixed this problem. Turned out to be an improper implemented class.

Thanks for your reply.

-- Mike
reply
    Bookmark Topic Watch Topic
  • New Topic