tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teh Noranis Mohd Aris <teh_nora...@yahoo.com>
Subject Re: Please Help! Error in using Packages
Date Wed, 21 Dec 2005 02:58:45 GMT
The web.xml looks like this:

<?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/j2ee/dtds/web-app_2_3.dtd">

<web-app>

  <servlet>
    <servlet-name>MyFirstServlet</servlet-name>
   
<servlet-class>com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>MyFirstServlet</servlet-name>
    <url-pattern>
      /MyFirstServlet
    </url-pattern>
  </servlet-mapping>

</web-app>

I placed the web.xml in
c:\jakarta-tomcat-4.1.31\webapps\ch03\WEB-INF
directory.

How about the server.xml file in
c:\jakarta-tomcat-4.1.31\conf directory? The original
file looks like this:

.
.
.
<!-- Tomcat Examples Context -->
        <Context path="/examples" docBase="examples"
debug="0"
                 reloadable="true"
crossContext="true">
          <Logger
className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_examples_log."
suffix=".txt"
        	  timestamp="true"/>
          <Ejb   name="ejb/EmplRecord" type="Entity"
                
home="com.wombat.empl.EmployeeRecordHome"
              
remote="com.wombat.empl.EmployeeRecord"/>
.
.
.

Should I replace <Context path="/examples" to <Context
path="ch03" and docBase="examples" to
docBase="myfirstwebapp" (the war file for
myfirstwebapp in the
c:\jakarta-tomcat-4.1.31\webapps\ch03 directory)?
Thanks.

TEH  

--- Prasad <list.tomcat@gmail.com> wrote:

> Can you post your web.xml. I think I can help you
> with this but only 
> after looking at your web.xml.
> I think the problem is with <servlet> and
> <servlet-mapping> in your 
> web.xml. Moreover as David said, you can find all
> the information in the 
> Docs.
> -Prasad.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message