Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th April 2007, 17:16
raghu raghu is offline
Junior Member
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy problem running servlet on apache tomcar 5.5.23

Hi

I am trying to run my first application servlet in apache tomcat 5.5.23 but it doesnt work. The example servlets and JSPs work fine but my application( called "firstapp") gives a http 404- resource not found error.

I am using JDK 6 and have setup the the JAVA_HOME variables and compiled the source for my app. here is the hierarchy where I have placed the application

%CATALINA HOME%/webapps/firstapp/WEB-INF/classes/PrimitiveServlet.java
%CATALINA HOME%/webapps/firstapp/WEB-INF/classes/PrimitiveServlet.class
%CATALINA HOME%/webapps/firstapp/WEB-INF/web.xml

here are the contents of the web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>



<!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">



<web-app>

<servlet>

<servlet-name>Primitive</servlet-name>

<servlet-class>PrimitiveServlet</servlet-class>

</servlet>

</web-app>


Could anyone please help me!!!!!!!!!


Raghu,
Reply With Quote
Sponsored Links
  #2  
Old 16th April 2007, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

What's the URL you're using, and what's the document root of that vhost?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 4 TPS mail problem Hagforce HOWTO-Related Questions 13 10th February 2010 18:23
apache ./configure problem zoffmann Server Operation 1 24th February 2007 10:57
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Very weird Apache + iptables problem snowfly Server Operation 1 8th August 2006 01:51
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 20:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.