Could not init service for worker

2005-04-11 Thread Spencer
Hi,
Goal: To have apache forward connections for a name based virtual host to  
a Tomcat instance. No load balancing is fine for now.

Current state: Both Apache and Tomcat work separatly. When I request a  
page that uses the connector I get a Internal Server Error (from  
Apache). I also get the following error messages in the JkLogFile:

  ..
  [debug] wc_get_worker_for_name::jk_worker.c (94): did not find a worker  
ajp13w
  [error] jk_handler::mod_jk.c (1813): Could not init service for  
worker=ajp13w

I get the same message when Tomcat is running as well as when it is _not_  
running.

Can someone point me to why the service for my worker could not be  
initialized?

Thanks,
Spencer


My setup: Linux, Apache 1.3, Tomcat 5.0.28, jk-1.2.10 (also tried jk-1.2.8)
 server.xml - Begin 

Connector port=8009 enableLookups=false redirectPort=8443 debug=2  
protocol=AJP/1.3 /

 server.xml - End 

 httpd.conf - Begin 
...
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
...
NameVirtualHost 192.168.1.9
...
VirtualHost 192.168.1.9
ServerName www.foo.com
DocumentRoot /home/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT
ServerAdmin [EMAIL PROTECTED]
# Log Set-Up
ErrorLog  /var/log/apache/www.foo.com-error_log
LogFormat %h %l %u %t \%r\ %s %b common
CustomLog /var/log/apache/www.foo.com-access.log common
JkLogFile /var/log/apache/mod_jk.log
JkLogLeveltrace
JkRequestLogFormat %w %U %r
JkMount /* ajp13w
#   JkWorkersFile /etc/httpd/conf/workers.properties
JkWorkerProperty worker.list=ajp13w
JkWorkerProperty worker.ajp13w.type=ajp13
JkWorkerProperty worker.ajp13w.host=192.168.1.9
JkWorkerProperty worker.ajp13w.port=8009
Location /WEB-INF
  Options None
  AllowOverride None
  order deny,allow
  deny from all
   /Location
   Directory /home/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT
 Options None
 AllowOverride None
 order deny,allow
 allow from all
   /Directory
/VirtualHost
VirtualHost 192.168.1.9
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /var/www/
  ErrorLog /var/log/apache/default-error.log
  CustomLog /var/log/apache/default-access.log common
/VirtualHost
 httpd.conf - End 
 jk2.properties - Start 
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
 jk2.properties - End 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


UTF-8 Charset from mod_jk and Apache http server

2004-01-15 Thread Spencer Bruce
Hi,

 I am using apche http server 1.3.27, tomcat 4.1.29 and mod_jk/1.2.4 to connect it up. 
 

I have set tomcat to serve all pages using the utf-8 charset in the http header.  This 
works fine. However, when I serve the same page through the web server, the charset is 
set to be iso-8859-1.

I assume this is because the web server has been set to serve pages in this charset.  
How do I get it to serve pages using the UTF-8 charset.

I have tried adding AddDefaultCharset utf-8 to the httpd.conf but this does not seem 
to work.

Thanks

Spencer Bruce


Tomcat puts Apache in tight loop

2002-05-30 Thread Spencer Roedder

I have been encountering an intermittent problem with httpd going into an
infinite loop which uses all available processor time.  I will find anywhere
from one to all five of the child processes of the httpd daemon process in
this state.  Killing them allows new processes to be spawned, and all is
well.

The problem seems to be connected with situations where a screen generated
by Tomcat starts to be displayed but never finishes for some reason
(possibly because I shut down Tomcat).  However, I am not sure of this
connection.

I am running Tomcat 3.2.3 and Apache 1.3.14.

Has anyone seen this problem before?  I tried searching the Tomcat and
Apache bug data bases and found nothing.

Thanks.
--Spencer Roedder


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




RE: JSP on IIS 5.0

2002-03-22 Thread Spencer, Sean

I suggest checking your workers.properties file.
I've noticed some inconsistencies when this file is referenced.
Make sure iis_redirect.reg references this file as workers.properties.
(notice the S at the end of workers, i.e.- plural)
Also make sure your file is named workers.properties AND NOT
worker.properties.

This seemed to help me out when I had the same error you're getting.
HTH

-Original Message-
From: A. Lai [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 1:53 PM
To: Tomcat Users List
Subject: Re: JSP on IIS 5.0


Problem is I am NOT getting any error.
I can get the page like http://localhost/jsp/cal/cal1.jsp

However, all the JSP's are not parsed.

the iis_redirect.log is empty.

I did get something in the system log for W2K that said
 The HTTP filiter DLL d:\tomcat4\bin\native\isapi_redirect.dll failed to
load. The data is the error

How to make it redirect?

Thanks

Alec



 What errors are you getting (500 Internal Server Error, 404 Page Not
 Found, 403 Permission Denied, etc) and what is generating them (Tomcat,
 IIS)?

 You probably want to look at your log files (IIS,
 isapi_redirect.log, and Tomcat's) and you will probably be able to
determine
 the problem from that.

 Randy


  -Original Message-



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



This communication (including all attachments) is intended solely for the
use of the person or persons to whom it is addressed and should be treated
as a confidential xwave communication.  If you are not the intended
recipient, any use, distribution, printing, or copying of this email is
strictly prohibited.  If you received this email in error, please
immediately delete it from your system and notify the originator.  Your
cooperation is appreciated.



RE: TOMCAT does not set the CLASSPATH for my WebAPP

2001-11-20 Thread Alan Pearlman Spencer

Hi Again,
Tomcat, in it's batch file, has it's own CLASSPATH.
It creates a ClassLoader for each webapp.
It used all jars in lib directory and the classes directory.

The problem you are seeing is that the ClassLoaders are in
a tree structure.
TOMCAT_CLASSLOADER
  WEBAPP_X_CLASSLOADER
  WEBAPP_Y_CLASSLOADER
Take a look at the documentation for java.lang.ClassLoader for info on
this.

If a class A is loaded in WEBAPP_X_CLASSLOADER and it tries to load
another
class B (or resource) it first looks in WEBAPP_X_CLASSLOADERs classpath
and
then goes to the parent TOMCAT_CLASSLOADER. If B is not found in
WEBAPP_X_CLASSLOADER, but is found in TOMCAT_CLASSLOADER and it then in
turn
tries to load another class or resource C it can only see
TOMCAT_CLASSLOADER,
so it does not have access to the WEBAPP_X_CLASSLOADER classpath.

I think in your case:
Servelt loaded in WEBAPP_X_CLASSLOADER
XML file loaded in WEBAPP_X_CLASSLOADER
XML parser loaded in TOMCAT_CLASSLOADER
DTD searched for in TOMCAT_CLASSLOADER and not found.

It probably makes sense to put the log4J.jar in the TOMCAT_CLASSLOADER's
classpath...

Is this clearer?
Alan.

-Original Message-
From: Roland Berger [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2001 09:46
To: Tomcat Mailinglist
Subject: TOMCAT does not set the CLASSPATH for my WebAPP


Hi all

As I understand from the Servlet specs. a Servlet Container like Tomcat
should set the CLASSPATH for each webapp which is placed in
%TOMCAT_HOME%/webapps. e.g. if I have placed a .jar file in
%TOMCAT_HOME%/webapps/mywebapp/WEB-INF/lib/myjar.jar it should add to
the
CLASSPATH the path %TOMCAT_HOME%/webapps/mywebapp/WEB-INF/lib/myjar.jar
.

But Tomcat doesn't do that with me. I have checked the tomcat.bat
startup
script. Dynamic Classpath generation is only done for .jar's in
%TOMCAT_HOME%/lib but not for each webapp.

So, how, where and at what time in startup procedure does tomcat
generate
the CLASSPATH for each webapp??

Thank's a lot for any help
Roland


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




clientAuth problems

2001-10-04 Thread Phil Spencer

I'm having difficulty with client authorisation.
Actually I suppose thse are two separate problems.

Problem 1
=
With tomcat 3.x (various versions) I can enable SSL
without clientAuth and everything works fine. However
when I enable clientAuth the web browser (Netscape
Navigator 4.07) says I have no client certificate.
which not true - see problem 2)

Problem 2
=
In one of many attempts to find a solution to problem 1,
I installed Tomcat 4. I was pleasantly surprised when
I simply edited the server.xml file, started it, and it
worked with clientAuth immediately. I checked I can run
the examples and create a simple servlets myself and all
is fine so far. The problem is that I need to create a
servlet as a subclass of a framework class which is in
turn a a subclass of HttpServlet. When I try this, I get
the exception shown below.

I've tried just about everthing I can think of but I seem
to have reached a dead-end. A solution or suggestion for
a way forward with either of these problems would be most
appeciated

TIA

Phil

javax.servlet.ServletException: Class com.csfs.spencer.phil.GetRemoteUser is not a 
Servlet
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.RequestDumperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.ClassCastException: com.csfs.spencer.phil.GetRemoteUser
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 

RE: Problem accessing servlets on Netscape

2001-10-04 Thread Phil Spencer

I had this problem once. In my case it turned out
to be slightly incorrect syntax for a stylesheet.
IE thought it was OK, Netscape belched.

Try writing the offending page content to a file
and opening it locally. A binary chop on the content
of the file should isolate the problem quickly

Phil
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 6:26 PM
To: [EMAIL PROTECTED]
Subject: Problem accessing servlets on Netscape


Hi
  I'm pretty new to Tomcat and so would really
appreciate some help.
  I have an application consisting of java servlets
running on Apache/tomcat. It works fine on IE but when
i try accessing the servlets from Netscape it brings
up the contents of the original file!
  Can anyone please help me with this...
 Thanks in advance
 Kiran 

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Re: [TC3.3b1] use of taglib causes org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found error

2001-09-01 Thread Paul Spencer

I have made the changes suggested.  I still get the same errors.

The jsp file will work when referenced directly,
http://localhost/jetspeed/hello.jsp, but fails when it is executed by
Jetspeed.

This problem is does not occur in Tomcat 3.3-m4 or Tomcat 4.0-b7.  I
suspect something that was changed between 3.3-m4 and 3.3-b1 is causing
the problem, but I do not know what it is :-(.  I do not believe the
problem is with Jetspeed because I used the same WAR file when testing
all 3 versions of Tomcat.

The error message may not be related to the actual error.  The empty
.java file in the work directory may be the closer to the problem. 
Maybe somewhere in the process of converting from .jsp to .java when a
taglib is defined.  

I enabled debug logging. 
 No entries on the servlet logfile
 The jasper log contained:
2001-09-01 17:29:25 - Package name is:
WEB_0002dINF.templates.jsp.portlets.html
2001-09-01 17:29:25 - Class file name is:
E:\apache\jakarta-tomcat-3.3-b1\work\DEFAULT\jetspeed\WEB_0002dINF\templates\jsp\portlets\html\Example_1.class
2001-09-01 17:29:25 - Java file name is:
E:\apache\jakarta-tomcat-3.3-b1\work\DEFAULT\jetspeed\WEB_0002dINF\templates\jsp\portlets\html\Example_1.java
2001-09-01 17:29:25 - Class name is: Example_1
2001-09-01 17:29:25 - 
Handling Directive: taglib  {uri=/WEB-INF/templates/jsp/tld/template.tld,
prefix=jetspeed}

Ideas?

Paul Spencer

Will Stranathan wrote:
 
 Take the XML related jars in TOMCAT_HOME/lib and rename them to
 x[whatever].jar (for example, xjaxp.jar).  Then put Velocity's XML
 parsers in TOMCAT_HOME/lib.
 
 I know it's a kludge, but AFAICT, these sorts of classloader issues have
 been corrected in 4.0.  (Which is all the Struts people can't understand
 why their stuff suddenly DOESN'T work - all the Struts WAR's come
 without any parser libraries.)
 
 w
 
 Paul Spencer wrote:
 
  I am getting the following error while using Jetspeed with Tomcat
  3.3-b1.  This error does NOT occur in Tomcat 3.3-m4!
[Fri Aug 31 22:19:33 EDT 2001] -- ERROR -- Error rendering Velocity
  template:   /controllers/html/multicolumn.vm: Invocation of method
  'getContent' in  class
  org.apache.jetspeed.portal.controls.VelocityPortletControl threw
  exception class  javax.xml.parsers.FactoryConfigurationError :
  Provider   org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found
 
  In addition the .java file created in the work directory is has a size
  of 0 bytes.
 
  I copied crimson.jar and jaxp.jar to the lib/apps directory, as
  suggested in
  http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg13224.html
  ,
  but that did not work.
 
  My jsp file is below (Note this file work in Tomcat v3.3-m3 and -m4):
%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld'
  prefix='jetspeed' %
p
  bJSP/b Hello World!
  bServer date:/b jetspeed:info requestedInfo=ServerDate /
/p
 
 
  Ideas?
 
  Thank you
  Paul Spencer
 



[TC3.3b1] use of taglib causes org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found error

2001-08-31 Thread Paul Spencer

I am getting the following error while using Jetspeed with Tomcat
3.3-b1.  This error does NOT occur in Tomcat 3.3-m4!
  [Fri Aug 31 22:19:33 EDT 2001] -- ERROR -- Error rendering Velocity
template:   /controllers/html/multicolumn.vm: Invocation of method
'getContent' in  class
org.apache.jetspeed.portal.controls.VelocityPortletControl threw
exception class  javax.xml.parsers.FactoryConfigurationError :
Provider   org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found

In addition the .java file created in the work directory is has a size
of 0 bytes.

I copied crimson.jar and jaxp.jar to the lib/apps directory, as
suggested in
http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg13224.html
,
but that did not work.

My jsp file is below (Note this file work in Tomcat v3.3-m3 and -m4):
  %@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld'
prefix='jetspeed' %
  p
bJSP/b Hello World!
bServer date:/b jetspeed:info requestedInfo=ServerDate /
  /p


Ideas?

Thank you
Paul Spencer



How is the Turbine framework?

2001-06-13 Thread Curtis Spencer



What does the turbine framework at 
jakarta.apache.org have in it?
Is it stable and / or ready for prime 
time?

Thanks
Curtis


Xerces or Crimson

2001-06-05 Thread Curtis Spencer



Can anyone tell me the difference between these XML 
parsers and which one is the best?


Thanks,
Curtis


Speaking of JDBC Datasource...

2001-05-30 Thread Curtis Spencer



Does this have connection pooling built 
in? What is faster to use a DataSource model or to hard code the 
JDBC using a connection pool hand coded?

Thanks,
Curtis


Tomcat vs. Other App Servers

2001-05-23 Thread Curtis Spencer



Hi, 
I have been working with Tomcat for a few months 
now with little problems. I am wondering if this app server is ready for 
prime time when it comes to business end of the things. What do the other 
servers that cost upwards of $1 offer that Tomcat doesn't? Also, I 
have been hearing a lot about Caucho's Resin Servlet engine as another open 
source alternative? Anyone have any takes on the app server 
market?

Thanks
Curtis


Precompiling the JSP pages?

2001-05-01 Thread Curtis Spencer



How do you pre compile the jsp pages so that Tomcat 
will not need to compile them the first time someone tries to retrieve it in 
their browser?

Thanks,
Curtis


getContextPath, getServletPath, getPathInfo return values

2001-04-30 Thread Lu, Spencer

Hi,

I'm running Tomcat 3.2.1 on Windows NT.  In my server.xml I have defined a
Context for my web app and the path is set to /.  In my web.xml my servlet
maps to /*.  In my servlet I make calls to getContextPath(),
getServletPath(), and getPathInfo().  When I access
http://localhost:8080/Login.htm, here are the values that are returned by
the calls:

getContextPath(): empty string
getServletPath(): empty string
getPathInfo(): /Login.htm

But when I run my web app under BEA Weblogic Server, I get the following
values:

getContextPath(): empty string
getServletPath(): /Login.htm
getPathInfo(): null

I'm just wondering why Tomcat and Weblogic return different values, and
which one is correct.

Thanks,
Spencer 



Best IDE for Servlet Development?

2001-04-28 Thread Curtis Spencer



Hi,
I just downloaded the trial version for Forte for 
Java 2.0 Internet Edition and it seems like a good servlet development kit 
because of the integrated tomcat server. I was wondering if anyone was 
using other IDE's for servlet development and if they had any thoughts about 
what was the best IDE and why?

Thanks

Curtis


Running Tomcat as a service in Win2k

2001-04-24 Thread Curtis Spencer



How do I do this?

Thanks
Curtis


Starting Tomcat with user nobody

2001-04-22 Thread Curtis Spencer



Does anyone have a good startup script that will 
start tomcat with the user nobody rather than root. I don't know if this 
is a security risk or not but I feel alittle uncomfortable starting with 
root. Do I have to change file permissions to ensure that 'nobody' can 
access certain files. 

Thx,
Curtis


Startup Script

2001-04-20 Thread Curtis Spencer



I am a newbie to Tomcat and I was wondering what 
the best way to get it to start up when Linux 7.0 is starting up. I 
created a symbolic link in the rc3.d folder. Is this the best way? 

Also what should be in the server 
script

Thanks,
  
Curtis


Why does servlet need to be in a subdir of WEB-INF/classes?

2001-04-17 Thread Lu, Spencer

Hi,

I've noticed that a servlet class invoked by Tomcat must reside in a
subdirectory of docBase/WEB-INF/classes.  Ideally I would like to be able
to place my servlet class in a directory that is not under WEB-INF/classes.
Is there any way to do this without changing the Tomcat source and
recompiling it?  If not, does anyone know why the developers coded Tomcat
this way, instead of just loading the servlet from a directory in the
classpath?  Just curious.  Thanks.

Spencer




How to execute a class on startup (Tomcat 3.2.1) ?

2001-04-16 Thread Lu, Spencer

Hi,

I'm wondering how I can have Tomcat 3.2.1 execute a class (not a servlet)
when it starts up.

Thanks.

Spencer




RE: A couple of questions

2001-04-13 Thread Lu, Spencer

OK, I have just read the Servlet Specification 2.2, and it does not answer
my first question, which was:

When I go to the Servlet Examples page
(http://localhost:8080/examples/servlets/index.html), there is a link that
executes the Hello World servlet.  This link is
http://localhost:8080/examples/servlet/HelloWorldExample.  How does Tomcat
know that when it sees "/examples/servlet/" in the URL, it is supposed to
look in the examples/WEB-INF/classes directory for the
HelloWorldExample.class file?  I haven't been able to find anything in the
server.xml or web.xml files that shows how this is configured.

I see no servlet mappings in any of the configuration files that maps a
servlet to "/examples/servlet/HelloWorldExample".

Please tell me how this is set up.

Thanks,
Spencer

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 7:37 PM
To: [EMAIL PROTECTED]
Subject: RE: A couple of questions


first things first,
you will have 90% of your questions answered by reading the servlet
specification from Sun.
this answers question 1 for you

 2) Would it be possible for me to place my application in a completely
 separate directory tree and not in a war file?  Or does it have to be in a
 war file in the webapps directory?

yes, you will just have to setup classpaths etc properly for servlets and
other classes.
The server.xml file allows you to configure other contexts outside of the
webapps directory.

Filip



~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

 -Original Message-
 From: Lu, Spencer [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 4:29 PM
 To: '[EMAIL PROTECTED]'
 Subject: A couple of questions


 Hi,

 I've recently installed Tomcat 3.2.1 (win32) on my computer.  I'm
 trying to
 understand how certain things are configured, and I have a couple of
 questions:

 1) When I go to the Servlet Examples page
 (http://localhost:8080/examples/servlets/index.html), there is a link that
 executes the Hello World servlet.  This link is
 http://localhost:8080/examples/servlet/HelloWorldExample.  How does Tomcat
 know that when it sees "/examples/servlet/" in the URL, it is supposed to
 look in the examples/WEB-INF/classes directory for the
 HelloWorldExample.class file?  I haven't been able to find anything in the
 server.xml or web.xml files that shows how this is configured.

 2) Would it be possible for me to place my application in a completely
 separate directory tree and not in a war file?  Or does it have to be in a
 war file in the webapps directory?

 Thanks for your help,
 Spencer





A couple of questions

2001-04-11 Thread Lu, Spencer

Hi,

I've recently installed Tomcat 3.2.1 (win32) on my computer.  I'm trying to
understand how certain things are configured, and I have a couple of
questions:

1) When I go to the Servlet Examples page
(http://localhost:8080/examples/servlets/index.html), there is a link that
executes the Hello World servlet.  This link is
http://localhost:8080/examples/servlet/HelloWorldExample.  How does Tomcat
know that when it sees "/examples/servlet/" in the URL, it is supposed to
look in the examples/WEB-INF/classes directory for the
HelloWorldExample.class file?  I haven't been able to find anything in the
server.xml or web.xml files that shows how this is configured.

2) Would it be possible for me to place my application in a completely
separate directory tree and not in a war file?  Or does it have to be in a
war file in the webapps directory?

Thanks for your help,
Spencer