• 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

Tomcat 4.1.24 cannot find Servlets

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone hope I can find some help here. I have switched to Mac OSX( iBook ) in January and was impressed by how great this OS is and so far the switch has been painless. I got up and running with OpenOffice, Apache, PHP, Mysql, successfully compile projects with Eclipse so generally beginning to forget my old PC for good! My only headache has so not having been able to figure out a problem I have with Tomcat. I transferred my web application from my PC but I can only view HTML pages and JSP files. Each time I try to access a servlet I get a message 'HTTP Status 404 -/servlet/ArticleSearchHandler'. Normally this means that the class file is not found but it is there. I have all my files in the ROOT directory ( sorry I am no geek ) and my classes are all in packages in the classes folder.
A web.xml snippet looks something like...

<web-app>

<servlet>
<servlet-name>ArticleContentHandler</servlet-name>
<servlet-class>middleway.ArticleContentHandler</servlet-class>
</servlet>

.......
</web-app>

any help most appreciated, Gianni
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the forums gianni.

I've never had any Mac-specific problems of this kind with Tomcat. It must be something in your setup.

It's no sin not to be a geek, but you really should delve into the Tomcat documentation and find out how to properly set up web applications. Just shoving everything into ROOT is bound to cause difficulties sooner or later.

We have a forum here specifically devoted to Tomcat where lots of help is available.
[ February 26, 2005: Message edited by: Bear Bibeault ]
 
Are you okay? You look a little big. Maybe this tiny ad will help:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic