RE: tomcat deploy configuration

2006-01-11 Thread Caldarale, Charles R
 From: William Mok [mailto:[EMAIL PROTECTED] 
 Subject: tomcat deploy configuration
 
 However, if I move the servlet class files to a 
 separate directory called myservlet, for example 
 tomcat_root\webapps\myservlet, the servlet 
 fails to deploy. (servlet not found error)
 
 What is the minimum configuration changes that I need to do 
 in order to make it work?

Is there an error at deployment time or when you try to reference the
servlet from a client?

Did you restart Tomcat?

Did you remember to do the servlet mapping in your
webapps\myservlet\WEB-INF\web.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat deploy configuration

2006-01-11 Thread William Mok

Thanks.

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 11:55 AM
Subject: RE: tomcat deploy configuration



From: William Mok [mailto:[EMAIL PROTECTED]
Subject: tomcat deploy configuration

However, if I move the servlet class files to a
separate directory called myservlet, for example
tomcat_root\webapps\myservlet, the servlet
fails to deploy. (servlet not found error)

What is the minimum configuration changes that I need to do
in order to make it work?


Here is what I have, I got tomcat listening to port 1.
http://localhost:1/dbtrax/servlet/PlexEngineDemo

My PlexEngineDemo servlet class files are sitting under 
tomcat_root\webapps\dbtrax\WEB-INF\classes



Is there an error at deployment time or when you try to reference the
servlet from a client?


Yes. Http status 404
The requested resource (/dbtrax/servlet/PlexEngineDemo) is not available.


Did you restart Tomcat?


Yes.


Did you remember to do the servlet mapping in your
webapps\myservlet\WEB-INF\web.xml?


I got a web.xml file under tomcat_root\webapps\dbtrax\WEB-INF\
Contents as follows:

?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-namePlexEngine/servlet-name
servlet-classPlexEngine/servlet-class
/servlet

servlet-mapping
servlet-namePlexEngine/servlet-name
url-pattern/servlet/PlexEngine/url-pattern
/servlet-mapping

/web-app




- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat deploy configuration

2006-01-11 Thread Caldarale, Charles R
 From: William Mok [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat deploy configuration
 
 The requested resource (/dbtrax/servlet/PlexEngineDemo)
 is not available.

 url-pattern/servlet/PlexEngine/url-pattern

Your mapping is for /servlet/PlexEngine but you tried to reference
/servlet/PlexEngineDemo.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat deploy configuration

2006-01-11 Thread William Mok


- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 12:13 PM
Subject: RE: tomcat deploy configuration



From: William Mok [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat deploy configuration

The requested resource (/dbtrax/servlet/PlexEngineDemo)
is not available.

url-pattern/servlet/PlexEngine/url-pattern


Your mapping is for /servlet/PlexEngine but you tried to reference
/servlet/PlexEngineDemo.

- Chuck

Thanks. Now I got a different error when invoking the servlet from a html 
page. I am using log4j in my code.


java.lang.NoClassDefFoundError: org/apache/log4j/Logger

If the servlet is under the \examples directory, then this problem does not 
exist.

My log4j jar file is under tomcat_root\logging-log4j-1.2.13\dist\lib


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]