apologies for he late reply but I wanted to ask if the servlet-name and servlet-mapping
and welcome-file-list from web.xml for entry jspbook have been entered

here is an example that may help (sub in jspbook)
<servlet>
     <servlet-name>jspbook</servlet-name>
     <servlet-class>package.jspbook</servlet-class>
     <init-param>
        <param-value>jspbook.properties</param-value>
     </init-param>
</servlet>
<servlet-mapping>
       <servlet-name>jspbook</servlet-name>
       <url-pattern>/jspbook</url-pattern>
</servlet-mapping>
   <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>

Does this help?
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Kevin O'Mara" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Saturday, May 05, 2007 8:33 PM
Subject: Tomcat5 on Mac OS X, problem with book or installation?


I am using tomcat5 5.5.20, Revision 3, java/tomcat5 from MacPorts.

I am following the instructions for the Addison Wesley book: "Servlets and JavaServer Pages: The J2EE Web Tier" from the first chapter.

The first chapter may be found here: http://www.jspbook.com/jspbook-01.pdf

I am on the part where the author is creating the jspbook directory and is placing a web.xml file in the $CATALINA_HOME/webapps/jspbook/WEB-INF directory, and a jspbook.xml file in the $CATALINA_HOME/webapps directory. I cannot get the webapps/jspbook directory to be recognized by my Tomcat setup no matter what I do, after following these steps and continuous restarting of the server. I am assuming that it is ok to forgo the editing of the server.xml file like the book says.

This is the error I receive after retrieving http://localhost:8080 -


 HTTP Status 404 - /jspbook/

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

*type* Status report

*message* _/jspbook/_

*description* _The requested resource (/jspbook/) is not available._

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


     Apache Tomcat/5.5.20


Please help.  Thanks in advance.

--


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to