Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 11th, 2003, 08:17 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem of running servlet in Tomcat 4.1.24

hi,

   I have tomcat 4.1.24 installed in my windows 98 SE machine.
   Tomcat is working fine
   I have purchased a Book Proffesional JSP second edition.

   I was trying to run the MyfirstServlet example as described in the book

   as written in the book
   i made the following directories
   webapps\ch03\WEB-INF\classes\com\wrox\projsp\ch03\myfirstwebapp

   wrote the Myfirst.java code inside and it complied fine.

   but when i tried to run the servler thru the URl as below
   http://localhost:8080/ch03/servlet/c...webapp.Myfirst

i get the below message what could be wrong

--------------------------------------------------------------------------------

type Status report

message /ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.Myfirst

description The requested resource (/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.Myfirst) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/4.1.24


when i copied the Myfirst class file in the examples directory and changed the url it ran fine.

what am i doing worng please help:(







 
Old July 14th, 2003, 01:37 AM
Authorized User
 
Join Date: Jun 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jwenting Send a message via MSN to jwenting
Default

Did you include a web.xml file in webapps\ch03\WEB-INF ? If not it's not recognised as a directory containing servlets and other Java code.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Servlet problem in Tomcat problem umeshawasthi Apache Tomcat 1 February 8th, 2007 05:54 AM
Servlet is running after tomcat is stopped. pandian Apache Tomcat 3 January 2nd, 2006 07:56 AM
problem with tomcat-users.xml (4.1.24) holdmykidney Apache Tomcat 0 August 24th, 2005 04:44 AM
Problem with Servlet from Tomcat to Apache holdmykidney Servlets 0 April 28th, 2005 07:38 AM
servlet with tomcat problem... thiNkspAce Apache Tomcat 2 October 23rd, 2004 05:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.