RE: Questions About jakarta-tomcat-5.0.28

2005-03-01 Thread Allistair Crossley
According to the question, the poster wanted to know how to configure a context 
in TC5.0. 

Taking the context element copied in at the foot of this email, this should be 
copied out into a file at

$CATALINA_HOME/conf/[enginename]/[hostname]

which is usually

$CATALINA_HOME/conf/Catalina/localhost/

and given the name of the webapp e.g

$CATALINA_HOME/conf/Catalina/localhost/mywebapp.xml

Nothing needs to change with respect to what he has in the file.

In terms of getting it looking at a whole webapp structure outside of Tomcat, 
you change the path attribute to point to it


...

I am not entirely sure, but the reason for all this I believe ties into the 
deployer management tool if you like to use that. The configuration of web apps 
is no longer bundled into the server configuration which is a good thing. 

Note the above will not work per se in Tomcat 5.5, there are further changes to 
that

A.

> -Original Message-
> From: Matt [mailto:[EMAIL PROTECTED]
> Sent: 01 March 2005 14:20
> To: Tomcat Users List
> Subject: RE: Questions About jakarta-tomcat-5.0.28
> 
> 
> Yes, the documentation is not as clear as it could be; 
> however, Allistair:
> 
> How does this differ from my  in server.xml to 
> get Tomcat to
> recognize webapps outside of $CATALINA_HOME?
> Certainly 's are still relevant in server.xml, 
> so perhaps I
> misunderstand this exchange, and there needs to be 
> clarification on the
> TYPES of 's we're talking about in each case?
> 
> Thanks,
> -Matt
> 
> 
> On Tue, 1 Mar 2005, Allistair Crossley wrote:
> 
> > Hi,
> >
> > Check out the Context element documentation for 5.0. You 
> create a new file now that configures your context, and don't 
> add them to server.xml.
> >
> > You can do this in a number of ways,. e.g
> >
> > /yourwebapp/META-INF/context.xml
> > /conf/Catalina/localhost/yourwebapp.xml
> >
> > But it's all there in the docs in the configuration section.
> >
> > Come back if you need more help after reading those.
> >
> > Cheers, Allistair.
> >
> > > -Original Message-
> > > From: Scott Purcell [mailto:[EMAIL PROTECTED]
> > > Sent: 01 March 2005 14:09
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: Questions About jakarta-tomcat-5.0.28
> > >
> > >
> > > Hello,
> > >
> > > I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28
> > > at home. I have been working with Tomcat for quite some time,
> > > and ran into a problem trying to set up a webapp. At work on
> > > my 4.1.31, when  create a new web-app, I edit the server.xml
> > > file and add my Context (see context below)
> > >
> > > Anyway when I edit the server.xml on my 5.0.28 I noticed
> > > there is no "example Context" in which to copy, edit and
> > > duplicate. That is how I have always done it. Upon reading
> > > the docs, it looks like a lot is controlled by web front end.
> > > Am I correct on this? And if so, where and how do I edit to
> > > add Loggers, and Resources, etc to it?
> > >
> > > Or can I just add a new Context somewhere in the server.xml
> > > like I used to, and if so where in that file (I couldn't find
> > > a DTD for server.xml).
> > >
> > > I get a feeling from the list that I should stay current, but
> > > I am having trouble understanding the current setups, etc.
> > >
> > > Thanks for any input.
> > > Sincerely
> > > Scott
> > >
> > >
> > >
> > >
> > >  > > debug="5" reloadable="true" crossContext="true">
> > >
> > >   className="org.apache.catalina.logger.FileLogger"
> > >prefix="localhost_builder_log." suffix=".txt"
> > >timestamp="true"/>
> > >
> > >
> > >   > >auth="Container"
> > >type="javax.sql.DataSource"/>
> > >
> > >  
> > >
> > >  removeAbandoned
> > >  true
> > >
> > >
> > >
> > >  removeAbandonedTimeout
> > >  60
> > >
> > >
> > >
> > >  logAbandoned
> > >  true
> > &g

RE: Questions About jakarta-tomcat-5.0.28

2005-03-01 Thread Matt
Yes, the documentation is not as clear as it could be; however, Allistair:

How does this differ from my  in server.xml to get Tomcat to
recognize webapps outside of $CATALINA_HOME?
Certainly 's are still relevant in server.xml, so perhaps I
misunderstand this exchange, and there needs to be clarification on the
TYPES of 's we're talking about in each case?

Thanks,
-Matt


On Tue, 1 Mar 2005, Allistair Crossley wrote:

> Hi,
>
> Check out the Context element documentation for 5.0. You create a new file 
> now that configures your context, and don't add them to server.xml.
>
> You can do this in a number of ways,. e.g
>
> /yourwebapp/META-INF/context.xml
> /conf/Catalina/localhost/yourwebapp.xml
>
> But it's all there in the docs in the configuration section.
>
> Come back if you need more help after reading those.
>
> Cheers, Allistair.
>
> > -Original Message-
> > From: Scott Purcell [mailto:[EMAIL PROTECTED]
> > Sent: 01 March 2005 14:09
> > To: tomcat-user@jakarta.apache.org
> > Subject: Questions About jakarta-tomcat-5.0.28
> >
> >
> > Hello,
> >
> > I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28
> > at home. I have been working with Tomcat for quite some time,
> > and ran into a problem trying to set up a webapp. At work on
> > my 4.1.31, when  create a new web-app, I edit the server.xml
> > file and add my Context (see context below)
> >
> > Anyway when I edit the server.xml on my 5.0.28 I noticed
> > there is no "example Context" in which to copy, edit and
> > duplicate. That is how I have always done it. Upon reading
> > the docs, it looks like a lot is controlled by web front end.
> > Am I correct on this? And if so, where and how do I edit to
> > add Loggers, and Resources, etc to it?
> >
> > Or can I just add a new Context somewhere in the server.xml
> > like I used to, and if so where in that file (I couldn't find
> > a DTD for server.xml).
> >
> > I get a feeling from the list that I should stay current, but
> > I am having trouble understanding the current setups, etc.
> >
> > Thanks for any input.
> > Sincerely
> > Scott
> >
> >
> >
> >
> >  > debug="5" reloadable="true" crossContext="true">
> >
> >   >prefix="localhost_builder_log." suffix=".txt"
> >timestamp="true"/>
> >
> >
> >   >auth="Container"
> >type="javax.sql.DataSource"/>
> >
> >  
> >
> >  removeAbandoned
> >  true
> >
> >
> >
> >  removeAbandonedTimeout
> >  60
> >
> >
> >
> >  logAbandoned
> >  true
> >
> >
> >
> >  factory
> >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> >
> >
> >
> >   
> > maxActive
> > 100
> >   
> >
> >   
> >  
> >maxIdle
> >30
> >  
> >
> >  
> > 
> >   maxWait
> >   1
> > 
> >
> > 
> > 
> >   username
> >   spurcell
> > 
> >
> > 
> >   password
> >   spurcell
> > 
> >
> > 
> > 
> >   driverClassName
> >   org.gjt.mm.mysql.Driver
> > 
> >
> > 
> > 
> >   url
> >
> > jdbc:mysql://localhost:3306/builder?autoReconnect=true
> >
> >
> >   
> > 
> >
> >
> >
> >
>
>
> 
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Matthew Kozak
Rutgers University-Camden
[EMAIL PROTECTED]

**
 "They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."  -Ben Franklin
**

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



RE: Questions About jakarta-tomcat-5.0.28

2005-03-01 Thread Allistair Crossley
Hi,

Check out the Context element documentation for 5.0. You create a new file now 
that configures your context, and don't add them to server.xml.

You can do this in a number of ways,. e.g

/yourwebapp/META-INF/context.xml
/conf/Catalina/localhost/yourwebapp.xml

But it's all there in the docs in the configuration section.

Come back if you need more help after reading those.

Cheers, Allistair.

> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: 01 March 2005 14:09
> To: tomcat-user@jakarta.apache.org
> Subject: Questions About jakarta-tomcat-5.0.28
> 
> 
> Hello,
>  
> I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28 
> at home. I have been working with Tomcat for quite some time, 
> and ran into a problem trying to set up a webapp. At work on 
> my 4.1.31, when  create a new web-app, I edit the server.xml 
> file and add my Context (see context below)
>  
> Anyway when I edit the server.xml on my 5.0.28 I noticed 
> there is no "example Context" in which to copy, edit and 
> duplicate. That is how I have always done it. Upon reading 
> the docs, it looks like a lot is controlled by web front end. 
> Am I correct on this? And if so, where and how do I edit to 
> add Loggers, and Resources, etc to it?
>  
> Or can I just add a new Context somewhere in the server.xml 
> like I used to, and if so where in that file (I couldn't find 
> a DTD for server.xml).
>  
> I get a feeling from the list that I should stay current, but 
> I am having trouble understanding the current setups, etc.
>  
> Thanks for any input.
> Sincerely
> Scott
>  
>  
>  
>  
>  debug="5" reloadable="true" crossContext="true">
>  
>  prefix="localhost_builder_log." suffix=".txt"
>timestamp="true"/>
>  
> 
>  auth="Container"
>type="javax.sql.DataSource"/>
>  
>  
>
>  removeAbandoned
>  true
>
>  
>
>  removeAbandonedTimeout
>  60
>
>  
>
>  logAbandoned
>  true
>
>  
>
>  factory
>  
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>  
>
>   
> maxActive
> 100
>   
>  
>   
>  
>maxIdle
>30
>  
>  
>  
> 
>   maxWait
>   1
> 
>  
> 
> 
>   username
>   spurcell
> 
>  
> 
>   password
>   spurcell
> 
>  
> 
> 
>   driverClassName
>   org.gjt.mm.mysql.Driver
> 
>  
> 
> 
>   url
>   
> jdbc:mysql://localhost:3306/builder?autoReconnect=true
>
>  
>   
> 
>  
>  
>  
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: questions on WebDAV implementation

2004-12-28 Thread Mark Thomas
Peter Crowther wrote:
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
The best way forward is to create a bugzilla item for 
this and list the issues you find in that. Even better, would 
be if you had patches for some (or all) of these ;)

The Bodington III project over here in the UK will also have to face and
fix several of these, as we're using Slide and the WebDAV servlet in our
project - we have to admit that we'd expected the servlet to be... er...
more complete.
webDAV support isn't part of the servlet spec so any work on webDAV is 
always going to be lower priority. Also, the aim of the Tomact webDAV 
servlet has always been to provide a light-weight implementation that 
deliberately doesn't implement the full webDAV spec.

Do we want to pool any of the efforts so that we're not duplicating
them?
Sounds like a sensible plan to me. Once an issue is confirmed then 
bugzilla is the place to track it. I'll happily look at any patches 
provided.

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


RE: questions on WebDAV implementation

2004-12-28 Thread Peter Crowther
> From: Mark Thomas [mailto:[EMAIL PROTECTED] 
> The best way forward is to create a bugzilla item for 
> this and list the issues you find in that. Even better, would 
> be if you had patches for some (or all) of these ;)

The Bodington III project over here in the UK will also have to face and
fix several of these, as we're using Slide and the WebDAV servlet in our
project - we have to admit that we'd expected the servlet to be... er...
more complete.

Do we want to pool any of the efforts so that we're not duplicating
them?

- Peter

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



Re: questions on WebDAV implementation

2004-12-28 Thread Mark Thomas
Garret Wilson wrote:
* I note that WebDAVServlet keeps a static SimpleDateFormat around for 
quickly formatting the creation date/time. The Java API docs for 
DateFormat indicate that date formats are not synchronized. Does this 
raise the potential for corrupted date printing, should multiple threads 
try to simultaneously serve WebDAV requests?
Yep.
* The WebDAV servlet gets the creation date and last modified date from 
the directory object. But Java has no way of actually retrieving a 
file's creation date. Do these two values ultimately end up being the same?
Probably, I haven't looked at the code.
If this is helpful, I'll report any other issues I find. Your responses 
will be appreciated and helpful to my effort.
Yes it is helpful. The best way forward is to create a bugzilla item for 
this and list the issues you find in that. Even better, would be if you 
had patches for some (or all) of these ;)

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


RE: Questions on loading servlet vs. loading JSP

2004-11-03 Thread Steve Kirk
I may be way off the mark here, but could this by any chance be related to
the JNI classloading issue raised by Benson last week could it?  You'll find
more details if you search the archive, but the basic jist of that was:

1. if you try to load the same JNI class using two different classloaders in
the same JVM, you will have problems
2. each webapap has its own classloader

so, any chance that your servlet and JSP are in different webapps?

does JSPServlet use a different classloader to load the compiled classes
than is used to load servlets in the same webapp?

> -Original Message-
> From: John MccLain [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday 03 November 2004 16:54
> To: Shapira, Yoav; Tomcat Users List
> Subject: RE: Questions on loading servlet vs. loading JSP
> 
> 
> Thank you for your reply, but after reading your message, I may be
> proceeding down a rabbit hole.
> I don't believe it is Tomcat that is the problem - I believe it is the
> PowerBuilder interface code (PBNI .dll) that my JNI code is calling
> 
> Nevertheless, It is a simple form post action.
> 
> Thanks again!
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 02, 2004 11:19 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Questions on loading servlet vs. loading JSP
> 
> 
> 
> Hi,
> As you know, a JSP is just a servlet after it's compiled.  A 
> JSP call is
> handled by the JSPServlet by default, which calls Jasper to evaluate
> (and if necessary compile) the JSP into a .class file.  The request
> processing and resource handling pipeline is otherwise identical.  As
> the Tomcat source code is freely available to you (and anyone else),
> feel free to confirm the above or just browse the code out of 
> curiosity.
> 
> When you say "servlets get called from JSP's" -- what do you mean
> exactly?  Is it an include, forward, or other RequestDispatcher-based
> call?  Or is it a simple reference from an HTML page (in 
> which case the
> fact that the HTML page is generated by a JSP is irrelevant)?
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> 
> >-Original Message-
> >From: John MccLain [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, November 02, 2004 1:50 PM
> >To: tomcat jasper list; Tomcat Dev List; Tomcat user list
> >Subject: Questions on loading servlet vs. loading JSP
> >
> >I have a webapp.
> >
> >In 2 servlets, I call JNI code.
> >
> >When I call the servlets from a browser DIRECTLY, all is well and the
> code
> >executes.
> >
> >When the servlets get called from JSP's, the JNI code hangs.
> >
> >I know I am cleaning up after myself in the JNI code
> >
> >What is the difference in how Tomcat loads and processes a 
> servlet call
> >versus a JSP call???
> >
> >How can I debug/profile this to determine the problem???
> >
> >John McClain
> >Senior Software Engineer
> >TCS Healthcare
> >[EMAIL PROTECTED]
> >(530)886-1700x235
> >"Before you criticize someone, walk a mile in their shoes.
> >That way, you'll be a mile from them, and you'll have their shoes."
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is 
> confidential, proprietary
> and/or privileged.  This e-mail is intended only for the 
> individual(s) to
> whom it is addressed, and may not be saved, copied, printed, 
> disclosed or
> used by anyone else.  If you are not the(an) intended 
> recipient, please
> immediately delete this e-mail from your computer system and 
> notify the
> sender.  Thank you.
> 
> 
> -
> 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: Questions on loading servlet vs. loading JSP

2004-11-03 Thread John MccLain
Thank you for your reply, but after reading your message, I may be
proceeding down a rabbit hole.
I don't believe it is Tomcat that is the problem - I believe it is the
PowerBuilder interface code (PBNI .dll) that my JNI code is calling

Nevertheless, It is a simple form post action.

Thanks again!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 11:19 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Questions on loading servlet vs. loading JSP



Hi,
As you know, a JSP is just a servlet after it's compiled.  A JSP call is
handled by the JSPServlet by default, which calls Jasper to evaluate
(and if necessary compile) the JSP into a .class file.  The request
processing and resource handling pipeline is otherwise identical.  As
the Tomcat source code is freely available to you (and anyone else),
feel free to confirm the above or just browse the code out of curiosity.

When you say "servlets get called from JSP's" -- what do you mean
exactly?  Is it an include, forward, or other RequestDispatcher-based
call?  Or is it a simple reference from an HTML page (in which case the
fact that the HTML page is generated by a JSP is irrelevant)?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: John MccLain [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 02, 2004 1:50 PM
>To: tomcat jasper list; Tomcat Dev List; Tomcat user list
>Subject: Questions on loading servlet vs. loading JSP
>
>I have a webapp.
>
>In 2 servlets, I call JNI code.
>
>When I call the servlets from a browser DIRECTLY, all is well and the
code
>executes.
>
>When the servlets get called from JSP's, the JNI code hangs.
>
>I know I am cleaning up after myself in the JNI code
>
>What is the difference in how Tomcat loads and processes a servlet call
>versus a JSP call???
>
>How can I debug/profile this to determine the problem???
>
>John McClain
>Senior Software Engineer
>TCS Healthcare
>[EMAIL PROTECTED]
>(530)886-1700x235
>"Before you criticize someone, walk a mile in their shoes.
>That way, you'll be a mile from them, and you'll have their shoes."
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



RE: Questions on loading servlet vs. loading JSP

2004-11-02 Thread Shapira, Yoav

Hi,
As you know, a JSP is just a servlet after it's compiled.  A JSP call is
handled by the JSPServlet by default, which calls Jasper to evaluate
(and if necessary compile) the JSP into a .class file.  The request
processing and resource handling pipeline is otherwise identical.  As
the Tomcat source code is freely available to you (and anyone else),
feel free to confirm the above or just browse the code out of curiosity.

When you say "servlets get called from JSP's" -- what do you mean
exactly?  Is it an include, forward, or other RequestDispatcher-based
call?  Or is it a simple reference from an HTML page (in which case the
fact that the HTML page is generated by a JSP is irrelevant)?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: John MccLain [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 02, 2004 1:50 PM
>To: tomcat jasper list; Tomcat Dev List; Tomcat user list
>Subject: Questions on loading servlet vs. loading JSP
>
>I have a webapp.
>
>In 2 servlets, I call JNI code.
>
>When I call the servlets from a browser DIRECTLY, all is well and the
code
>executes.
>
>When the servlets get called from JSP's, the JNI code hangs.
>
>I know I am cleaning up after myself in the JNI code
>
>What is the difference in how Tomcat loads and processes a servlet call
>versus a JSP call???
>
>How can I debug/profile this to determine the problem???
>
>John McClain
>Senior Software Engineer
>TCS Healthcare
>[EMAIL PROTECTED]
>(530)886-1700x235
>"Before you criticize someone, walk a mile in their shoes.
>That way, you'll be a mile from them, and you'll have their shoes."
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: questions of Cluster

2004-05-17 Thread Filip Hanik \(lists\)
>primary-secondary session replication
only replicate the session to one other machine

>if "Tomcat1" is crashed,only "Tomcat2"(if it's alive) can continue the
>services and replace "Tomcat1"

correct, if your system crashes two tomcats at a time, contact your system
administrator or debug your code :)
you would have the same problem in primary secondary if the primary and
secondary servers crashed at the same time

Filip


-Original Message-
From: 柴 小柴 [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 11:11 PM
To: [EMAIL PROTECTED]
Subject: questions of Cluster


hello everyone! i have some questions:

Question 1
I have read this from tomcat-doc(5.0.24):
.
For large clusters, the next release will support a primary-secondary
session replication
where the session will only be stored at one or maybe two backup servers
.
Can you explain more about "primary-secondary session replication" and how
it works?
Thank you very much :)

Question 2
I have read this from tomcat-doc:
..
In order to keep the network traffic down in an all-to-all environment,
you can split your cluster into smaller groups.
This can be easily achieved by using different multicast addresses for the
different groups.
A very simple setup would look like this:


 DNS Round Robin
   |
 Load Balancer
  /   \
  Cluster1  Cluster2
  / \/ \
  Tomcat1 Tomcat2  Tomcat3 Tomcat4
...
Do you mean that:
if "Tomcat1" is crashed,only "Tomcat2"(if it's alive) can continue the
services and replace "Tomcat1",other instances in "Cluster2" can not do
that,
because different groups have different multicast addresses?
If my guess is true,i thank it may make a reduction in the capability of
"Cluster".
Am I correct?
Thank you for any comment!

_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004


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



Re: Questions on Clustering

2003-12-23 Thread daniel
Hummm i wounder if that may have some thing to due with my earlyer problem?
Ill check in a bit to see if that helps out.
I can not thank you enough Filip .

thanks
Daniel Schulken

- Original Message - 
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 23, 2003 1:27 PM
Subject: RE: Questions on Clustering


> yes, with different multicast addresses and ports
> that way you don't replicate sessions between 10 different hosts, to no
use
>
>
> Filip
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 23, 2003 4:37 AM
> To: Tomcat Users List
> Subject: Re: Questions on Clustering
>
>
> so i should only create 1 cluster inside each host tag?
> so if im hosting 10 sites/hosts i need the clustering in each of the host
> tags correct?
>
> thanks aging
> Daniel Schulken
>
> - Original Message -
> From: "Filip Hanik" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, December 22, 2003 8:49 PM
> Subject: RE: Questions on Clustering
>
>
> > >mcastAddr="228.0.0.4"
> > >as long as this is the same across all web apps this is ok right?
> >
> > should only be the same across the cluster, ie, I don't believe you want
> to
> > replicate sessions between different virtual hosts, makes no sense,
right?
> >
> > Filip
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 22, 2003 6:17 AM
> > To: Tomcat Users List
> > Subject: Questions on Clustering
> >
> >
> > I am looking for a better understanding on the Cluster tag in side
> > of the host tag/ for virtual host.
> >
> > what should the mcastAddr be ? should this be a internal IP address
> > in side the network?
> > mcastAddr="228.0.0.4"
> > as long as this is the same across all web apps this is ok right?
> > mcastPort="45564"
> >
> > this should be different for each web app/virtual host correct?
> > tcpListenPort="1"
> >
> >
> > The primary reason I am asking is because I have about 10 web apps
> > / virtual hosts that 2 tomcats are severing.
> >
> > Thanks,
> >
> > Daniel Schulken
> >
> >
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.553 / Virus Database: 345 - Release Date: 12/21/2003
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.554 / Virus Database: 346 - Release Date: 12/21/2003
>
>
> -
> 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]
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/21/2003


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



Re: Questions on Clustering

2003-12-23 Thread daniel
Oh i changed that to 224.0.0.1 to but it was still doing what i had
described earlyer.

thanks matt
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 10:51 PM
Subject: RE: Questions on Clustering


I ran into a problem implementing clustering and then I changed the
multicast address from the default - 228.0.0.4 to 224.0.0.1 and it worked.
This website was pretty useful.  Apparently there are reserved addresses for
this type of thing (i.e. Group Membership Reporting).

 http://www.iana.org/assignments/multicast-addresses

- Matt

-Original Message- 
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Mon 22/12/2003 8:49 PM
To: Tomcat Users List
Cc:
Subject: RE: Questions on Clustering



>mcastAddr="228.0.0.4"
>as long as this is the same across all web apps this is ok right?

should only be the same across the cluster, ie, I don't believe you want to
replicate sessions between different virtual hosts, makes no sense, right?

Filip



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 6:17 AM
To: Tomcat Users List
Subject: Questions on Clustering


I am looking for a better understanding on the Cluster tag in side
of the host tag/ for virtual host.

what should the mcastAddr be ? should this be a internal IP address
in side the network?
mcastAddr="228.0.0.4"
as long as this is the same across all web apps this is ok right?
mcastPort="45564"

this should be different for each web app/virtual host correct?
tcpListenPort="1"


The primary reason I am asking is because I have about 10 web apps
/ virtual hosts that 2 tomcats are severing.

Thanks,

Daniel Schulken






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/21/2003


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





This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.








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


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/21/2003


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



RE: Questions on Clustering

2003-12-23 Thread Filip Hanik
yes, with different multicast addresses and ports
that way you don't replicate sessions between 10 different hosts, to no use


Filip

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 4:37 AM
To: Tomcat Users List
Subject: Re: Questions on Clustering


so i should only create 1 cluster inside each host tag?
so if im hosting 10 sites/hosts i need the clustering in each of the host
tags correct?

thanks aging
Daniel Schulken

- Original Message -
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 8:49 PM
Subject: RE: Questions on Clustering


> >mcastAddr="228.0.0.4"
> >as long as this is the same across all web apps this is ok right?
>
> should only be the same across the cluster, ie, I don't believe you want
to
> replicate sessions between different virtual hosts, makes no sense, right?
>
> Filip
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 22, 2003 6:17 AM
> To: Tomcat Users List
> Subject: Questions on Clustering
>
>
> I am looking for a better understanding on the Cluster tag in side
> of the host tag/ for virtual host.
>
> what should the mcastAddr be ? should this be a internal IP address
> in side the network?
> mcastAddr="228.0.0.4"
> as long as this is the same across all web apps this is ok right?
> mcastPort="45564"
>
> this should be different for each web app/virtual host correct?
> tcpListenPort="1"
>
>
> The primary reason I am asking is because I have about 10 web apps
> / virtual hosts that 2 tomcats are severing.
>
> Thanks,
>
> Daniel Schulken
>
>
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.553 / Virus Database: 345 - Release Date: 12/21/2003
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/21/2003


-
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: Questions on Clustering

2003-12-23 Thread daniel
so i should only create 1 cluster inside each host tag?
so if im hosting 10 sites/hosts i need the clustering in each of the host
tags correct?

thanks aging
Daniel Schulken

- Original Message - 
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 8:49 PM
Subject: RE: Questions on Clustering


> >mcastAddr="228.0.0.4"
> >as long as this is the same across all web apps this is ok right?
>
> should only be the same across the cluster, ie, I don't believe you want
to
> replicate sessions between different virtual hosts, makes no sense, right?
>
> Filip
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 22, 2003 6:17 AM
> To: Tomcat Users List
> Subject: Questions on Clustering
>
>
> I am looking for a better understanding on the Cluster tag in side
> of the host tag/ for virtual host.
>
> what should the mcastAddr be ? should this be a internal IP address
> in side the network?
> mcastAddr="228.0.0.4"
> as long as this is the same across all web apps this is ok right?
> mcastPort="45564"
>
> this should be different for each web app/virtual host correct?
> tcpListenPort="1"
>
>
> The primary reason I am asking is because I have about 10 web apps
> / virtual hosts that 2 tomcats are severing.
>
> Thanks,
>
> Daniel Schulken
>
>
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.553 / Virus Database: 345 - Release Date: 12/21/2003
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/21/2003


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



RE: Questions on Clustering

2003-12-22 Thread matthew . rapoport
I ran into a problem implementing clustering and then I changed the multicast address 
from the default - 228.0.0.4 to 224.0.0.1 and it worked.  This website was pretty 
useful.  Apparently there are reserved addresses for this type of thing (i.e. Group 
Membership Reporting).
 
 http://www.iana.org/assignments/multicast-addresses
 
- Matt

-Original Message- 
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/12/2003 8:49 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Questions on Clustering



>mcastAddr="228.0.0.4"
>as long as this is the same across all web apps this is ok right?

should only be the same across the cluster, ie, I don't believe you want to
replicate sessions between different virtual hosts, makes no sense, right?

Filip



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 6:17 AM
To: Tomcat Users List
Subject: Questions on Clustering


I am looking for a better understanding on the Cluster tag in side
of the host tag/ for virtual host.

what should the mcastAddr be ? should this be a internal IP address
in side the network?
mcastAddr="228.0.0.4"
as long as this is the same across all web apps this is ok right?
mcastPort="45564"

this should be different for each web app/virtual host correct?
tcpListenPort="1"


The primary reason I am asking is because I have about 10 web apps
/ virtual hosts that 2 tomcats are severing.

Thanks,

Daniel Schulken






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/21/2003


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





This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

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

RE: Questions on Clustering

2003-12-22 Thread Filip Hanik
>mcastAddr="228.0.0.4"
>as long as this is the same across all web apps this is ok right?

should only be the same across the cluster, ie, I don't believe you want to
replicate sessions between different virtual hosts, makes no sense, right?

Filip



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 6:17 AM
To: Tomcat Users List
Subject: Questions on Clustering


I am looking for a better understanding on the Cluster tag in side
of the host tag/ for virtual host.

what should the mcastAddr be ? should this be a internal IP address
in side the network?
mcastAddr="228.0.0.4"
as long as this is the same across all web apps this is ok right?
mcastPort="45564"

this should be different for each web app/virtual host correct?
tcpListenPort="1"


The primary reason I am asking is because I have about 10 web apps
/ virtual hosts that 2 tomcats are severing.

Thanks,

Daniel Schulken






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/21/2003


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



RE: questions related to context root configuration on tomcat 4.1.27 ...

2003-09-09 Thread Shapira, Yoav

Howdy,
How does your app look for your app files?  Post that code.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Kenneth Tang [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 08, 2003 5:48 PM
>To: [EMAIL PROTECTED]
>Subject: questions related to context root configuration on tomcat
4.1.27
>...
>
>Hi,
>
>
>
>I have questions related to context root configuration on
>tomcat 4.1.27.
>
>For our company's web application, we put our application specific
files
>under WEB-INF.  During startup, our application checks if those files
>are there and startup our application based on properties inside the
>files.  We put the war file under \webapps and all the
>content of the war file got extracted into \webapps.
>Everything works fine. However, problem comes up when we want to set
the
>context path other than the default one(the war file name)...
>
>I put  element in server.xml and try to use for example,
>"abc/foo" other than just "foo" for the context path.  However, our
>application specific files cannot be found under WEB-INF.  I have
>checked that not all the content of the war file (included our
>application specific files) are extracted to the "workdir" directory
(by
>default \work).
>
>I have tried to use exploded web application structure other than war
>file.  The result is the same.  Only few files got copied into the
>"workdir".
>
>
>
>My questions are:
>
>How can I make tomcat (4.1) extract / unjar all context from the war to
>the "workdir" in this case (use context path other than the default)?
>Or, is there any way that I can set tomcat (4.1) to extract some
>particular files from the war file into the "workdir" during startup
>time?
>
>
>
>
>
>Thanks a lot,
>
>
>
>Ken
>
>




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: questions on instances of java beans

2003-03-21 Thread Michael Ni
do you have any examples on this material?

mike






From: Reynir Hübner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: RE: questions on instances of java beans
Date: Fri, 21 Mar 2003 13:42:59 -
Hi,

Put your bean into servlet context when it's instanciated with the first 
client. Then get it out of ServletContext when you want the other client to 
use it.

Hope it helps
-reynir
> -Original Message-
> From: Michael Ni [mailto:[EMAIL PROTECTED]
> Sent: 21. mars 2003 13:44
> To: [EMAIL PROTECTED]
> Subject: questions on instances of java beans
>
>
> if browser A has made an instance of my javabean of session
> scope, how does
> browser B from another computer use the same instance of that
> javabean.  in
> otherwords i want to have different browsers use a session
> bean like an
> application scope bean.
>
> mike
>
>
>
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> 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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: questions on instances of java beans

2003-03-21 Thread Reynir Hübner
Hi, 

Put your bean into servlet context when it's instanciated with the first client. Then 
get it out of ServletContext when you want the other client to use it.

Hope it helps
-reynir


> -Original Message-
> From: Michael Ni [mailto:[EMAIL PROTECTED] 
> Sent: 21. mars 2003 13:44
> To: [EMAIL PROTECTED]
> Subject: questions on instances of java beans
> 
> 
> if browser A has made an instance of my javabean of session 
> scope, how does 
> browser B from another computer use the same instance of that 
> javabean.  in 
> otherwords i want to have different browsers use a session 
> bean like an 
> application scope bean.
> 
> mike
> 
> 
> 
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> 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: Questions about Servlets

2002-09-30 Thread Patricio Vera S.

The servlet's user list is [EMAIL PROTECTED]

Saludos,
Patricio Vera S.


- Original Message -
From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 9:52 AM
Subject: Questions about Servlets


> Could anyone tell me where a good servlet coding / debugging list is?  I
> tried the one on java.sun.com but had no luck.  I'm trying to get an
example
> servlet that came with a book to compile and not sure where to get help.
I
> thought I'd ask here since this is related.
>
> Thanks all,
> Kenny
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:


___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Questions about Tomcat/Servlets

2002-09-27 Thread David Mossakowski

Obviously in both cases only the .class file can be run.

What differs is when and how they get compiled.  Your servlet's source 
is not monitored ever but your JSP source is.  Therefore when the JSP 
source changes the container recompiles it and executes teh new .class 
file.  In the case of a servlet, changing source is not detected but (if 
configured) changed .class file is.  In order to have a new .class file 
you need to compile the .java file yourself.

Servlet .class file is no different from HelloWorld.class file.  It just 
requires some stuff on classpath in order to get compiled and it can't 
be run directly but is invoked by the servlet container.  You can write 
your own servlet container if you want too.  Make it an HTTP server. 
When a request for it is made (http://localhost/SillyServlet) have it 
load your servlet class by name (cast it to HttpServlet) and  execute 
its init() and then its doGet() method with the right parameters.

d.


Kenny G. Dubuisson, Jr. wrote:
> Hello all again.  I have 3 simple questions that I'd like to see if anyone
> knows (please let me know if this is off topic or not).
> 
> 1)  I'm working on teaching myself JSP/Servlets.  I wanted to know if when a
> servlet is run the ".class" or the ".java" file is what got run.  So I
> renamed one of Tomcat's example files ("HelloWorldExample.class") to a
> "*.bak".  Once my test was done I renamed it back to the original file name.
> Now it won't run.  Gives me a "Apache Tomcat/4.0.5 - HTTP Status 503 -
> Servlet org.apache.catalina.INVOKER.HelloWorldExample is currently
> unavailable" error.  I thought it maybe had something to do with the java
> and class files having the same time stamp so I copied both from the
> original Tomcat distribution and it still won't run.  Man I'm stuck on this
> one...any ideas?
> 
> 2) How do you get a ".class" file when you create a ".java" Servlet file?  I
> was hoping that if I delete a ".class" file and the ".java" file still
> exists, the ".class" file gets recreated/recompiled automatically by Tomcat.
> 
> 3) What the heck does Jakarta mean?  I'm voting that it's a small Italian
> cart used for transporting fish remains.
> 
> Thanks,
> Kenny
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
<>

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Questions about " [SECURITY] Apache Tomcat 4.x JSP source disclosure vulnerability"

2002-09-26 Thread Milt Epstein

On Thu, 26 Sep 2002, Andreas Mohrig wrote:

> The servlet to be disabled is the invoker servlet, not the
> DefaultServlet.  The reason you see "DefaultServlet" so much in
> these postings is that the DefaultServlet can be "tricked" into
> serving the sources of your jsp's by invoking it over the invoker
> servlet, thereby treating jsp's like static content. But the trouble
> is originating in the invoker servlet.

Right.  And to add a bit of perhaps clarifying information, "invoking"
in this context means calling a servlet using a URL of the form:

  http://www.domain.com/context/servlet/full.class.name.of.servlet

that is, "/servlet" is a virtual directory that invokes the invoker
servlet, and "full.class.name.of.servlet" includes the package and
class name of the servlet class.  This was the main/only way of
calling servlets way back when, but now the favored way is to define
servlets in web.xml.  And some say this invoking method of calling
servlets should be disabled as a security precaution anyway, and only
defined servlets should be allowed (i.e., even before this bug showed
up).

This is all controlled by a servlet definition and mapping in the
web.xml (in Tomcat 4.0.X, at least, and I assume 4.1.X as well) --
look for "invoker" in it.


> -Original Message-
> From: Adam Greene [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 2:47 PM
> To: Tomcat Users List
> Subject: Questions about " [SECURITY] Apache Tomcat 4.x JSP source
> disclosure vulnerability"
>
> Maybe I don't understand, but DefaultServlet, which is supposed to
> serve static content is disabled... How are we supposed to serve up
> pictures, etc that are static??

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Questions about " [SECURITY] Apache Tomcat 4.x JSP source disclosure vulnerability"

2002-09-26 Thread Andreas Mohrig

The servlet to be disabled is the invoker servlet, not the DefaultServlet.
The reason you see "DefaultServlet" so much in these postings is that the
DefaultServlet can be "tricked" into serving the sources of your jsp's by
invoking it over the invoker servlet, thereby treating jsp's like static
content. But the trouble is originating in the invoker servlet.

Andreas Mohrig

-Original Message-
From: Adam Greene [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:47 PM
To: Tomcat Users List
Subject: Questions about " [SECURITY] Apache Tomcat 4.x JSP source
disclosure vulnerability"


Maybe I don't understand, but DefaultServlet, which is supposed to serve
static content is disabled... How are we supposed to serve up pictures, etc
that are static??



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Questions about " [SECURITY] Apache Tomcat 4.x JSP source disclosurevulnerability"

2002-09-26 Thread Tim Funk

The DefaultServlet is "ok". But is was being called by the invoker 
servlet in a roundabout (unintended manner). The invoker servlet is 
typically mapped to /servlet/*

The invoker servlet should be disabled. Or "restricted" using many of 
the ways described in other threads.

You should be fine allowing the DefaultServlet  to work.

Adam Greene wrote:
> Maybe I don't understand, but DefaultServlet, which is supposed to serve
> static content is disabled... How are we supposed to serve up pictures, etc
> that are static??



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Questions about web solution based on Tomcat & Apache.

2002-07-22 Thread Turner, John


If you use mod_jk, you can set the roots to the same for apache and tomcat.
Just make sure you specify in your JkMount directive what filetype to send
to tomcat, such as "/myapp/*.jsp" instead of "/myapp".

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Ola Theander [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 20, 2002 4:56 AM
To: 'Tomcat Users List'
Subject: RE: Questions about web solution based on Tomcat & Apache.


Hi again John.

Is it possible for Apache and Tomcat to share the same web root, i.e.
Tomcat's /webapp and Apache's /webapp are both mapped to the same file
system folder e.g. /usr/local/webs without Apache and Tomcat getting
confused about which one of them that should handle a particular
document?

/ola

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: den 19 juli 2002 15:14
> To: 'Tomcat Users List'
> Subject: RE: Questions about web solution based on Tomcat & Apache.
> 
> 
> 
> With mod_jk, you can also get more specific than just a path 
> (/examples), I think.  You can say "/examples/*.jsp", for example. 
> 
> So you could say something like "/myapp/*.jsp" and have those 
> requests go to tomcat, but "/myapp/*.html" or "/myapp/*.gif" 
> would still be served by apache.  To do this you will need 
> mod_jk, not mod_webapp.
> 
> It would look something like this in your httpd.conf (using mod_jk):
> 
> JkMount /myapp/*.jsp ajp13
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Ola Theander [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 8:48 AM
> To: 'Tomcat Users List'
> Subject: RE: Questions about web solution based on Tomcat & Apache.
> 
> 
> Hi John.
> 
> Thanks for your answer. Unfortunately I'm not sure that I 
> understand you completely. Regarding your answer to question 
> 1, I want Apache to serve html, image and other static 
> content while Tomcat processes the dynamic content such as 
> jsp pages, i.e. I don't want to use Tomcat to serve static 
> content, i.e. that means the use of either the AJP or Warp 
> connector. Does the use of these connectors require that I 
> separate the static content files from the files for dynamic content?
> 
> Kind regards, Ola
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: den 19 juli 2002 14:09
> > To: 'Tomcat Users List'
> > Subject: RE: Questions about web solution based on Tomcat & Apache.
> > 
> > 
> > 
> > 1)  Yes.  Tomcat can serve images and HTML, that is the
> > purpose of the Coyote HTTP connector, which is installed with 
> > tomcat by default.  It was on my installations.
> > 
> > 2)  The difference is #1.  If you want to divide static
> > content and dynamic content, you want AJP (mod_jk).  The 
> > current WARP implementation
> > (mod_webapp) does not differentiate between static and 
> > dynamic content.  It may in the future.  I hope it does, 
> > though I've had zero problems with mod_jk on both tomcat 3 
> > and 4.  With mod_webapp, all content is served by tomcat, 
> > apache is not involved except as a request receiver.
> > 
> > John Turner
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Ola Theander [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 19, 2002 7:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Questions about web solution based on Tomcat & Apache.
> > 
> > 
> > Dear subscribers.
> > 
> > I have two questions about using Tomcat 4.x & Apache 2.x as a
> > base for web application development:
> > 
> > 1) A solution typically consists of html, jsp pages and
> > servlets. Is it possible to store html, jsp and servlets 
> > based on the logical structure of the solution and have 
> > Tomcat process only based on the file extension or must all 
> > jsp and servlet files be collected in the folder pointed out 
> > by the WebAppDeploy attribute in httpd.conf? I.e. if I have a 
> > solution where I store customer data in a database I'll 
> > probably have at least a form page for registering a new 
> > customer, a list view where I list all customers and a 
> > servlet to store submitted customer data in a database. In a 
> > simple case the form page would be a html page and the list 
> > view an jsp page. If these files where to be grouped 
> > logically, i.e. by task, the form page, the jsp list page and 
> > the servlet s

RE: Questions about web solution based on Tomcat & Apache.

2002-07-19 Thread Turner, John


With mod_jk, you can also get more specific than just a path (/examples), I
think.  You can say "/examples/*.jsp", for example. 

So you could say something like "/myapp/*.jsp" and have those requests go to
tomcat, but "/myapp/*.html" or "/myapp/*.gif" would still be served by
apache.  To do this you will need mod_jk, not mod_webapp.

It would look something like this in your httpd.conf (using mod_jk):

JkMount /myapp/*.jsp ajp13

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Ola Theander [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 8:48 AM
To: 'Tomcat Users List'
Subject: RE: Questions about web solution based on Tomcat & Apache.


Hi John.

Thanks for your answer. Unfortunately I'm not sure that I understand you
completely. Regarding your answer to question 1, I want Apache to serve
html, image and other static content while Tomcat processes the dynamic
content such as jsp pages, i.e. I don't want to use Tomcat to serve
static content, i.e. that means the use of either the AJP or Warp
connector. Does the use of these connectors require that I separate the
static content files from the files for dynamic content?

Kind regards, Ola

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: den 19 juli 2002 14:09
> To: 'Tomcat Users List'
> Subject: RE: Questions about web solution based on Tomcat & Apache.
> 
> 
> 
> 1)  Yes.  Tomcat can serve images and HTML, that is the 
> purpose of the Coyote HTTP connector, which is installed with 
> tomcat by default.  It was on my installations.
> 
> 2)  The difference is #1.  If you want to divide static 
> content and dynamic content, you want AJP (mod_jk).  The 
> current WARP implementation
> (mod_webapp) does not differentiate between static and 
> dynamic content.  It may in the future.  I hope it does, 
> though I've had zero problems with mod_jk on both tomcat 3 
> and 4.  With mod_webapp, all content is served by tomcat, 
> apache is not involved except as a request receiver.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Ola Theander [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 7:23 AM
> To: [EMAIL PROTECTED]
> Subject: Questions about web solution based on Tomcat & Apache.
> 
> 
> Dear subscribers.
> 
> I have two questions about using Tomcat 4.x & Apache 2.x as a 
> base for web application development:
> 
> 1) A solution typically consists of html, jsp pages and 
> servlets. Is it possible to store html, jsp and servlets 
> based on the logical structure of the solution and have 
> Tomcat process only based on the file extension or must all 
> jsp and servlet files be collected in the folder pointed out 
> by the WebAppDeploy attribute in httpd.conf? I.e. if I have a 
> solution where I store customer data in a database I'll 
> probably have at least a form page for registering a new 
> customer, a list view where I list all customers and a 
> servlet to store submitted customer data in a database. In a 
> simple case the form page would be a html page and the list 
> view an jsp page. If these files where to be grouped 
> logically, i.e. by task, the form page, the jsp list page and 
> the servlet should be in the same directory on disk but as I 
> understand it Apache/Tomcat integration requires me to have 
> the html pages in one directory structure for access by 
> Apache and jsp/servlets in another structure, pointed out by 
> WebAppDeploy, for access by Tomcat. Is this correct? With a 
> logical grouping of files mentioned above I mean a directory 
> structure like
> this:
> 
> Customer Web
> |-|
> |   customers
> || new_customer_from.html
> || list_customers.jsp
> || store_new_user.class
> |
> |-|
> companies
> 
> 2) As far as I know there are two connectors for integrating 
> Tomcat and Apache, Warp and AJP. When I experimented I've 
> used the warp connector, but I don't really know the 
> difference between the two besides that they utilize 
> different protocols. If I can get some more information on 
> this matter I'll be grateful.
> 
> Kind regards, Ola Theander
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


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

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




RE: Questions about web solution based on Tomcat & Apache.

2002-07-19 Thread Ola Theander

Hi John.

Thanks for your answer. Unfortunately I'm not sure that I understand you
completely. Regarding your answer to question 1, I want Apache to serve
html, image and other static content while Tomcat processes the dynamic
content such as jsp pages, i.e. I don't want to use Tomcat to serve
static content, i.e. that means the use of either the AJP or Warp
connector. Does the use of these connectors require that I separate the
static content files from the files for dynamic content?

Kind regards, Ola

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: den 19 juli 2002 14:09
> To: 'Tomcat Users List'
> Subject: RE: Questions about web solution based on Tomcat & Apache.
> 
> 
> 
> 1)  Yes.  Tomcat can serve images and HTML, that is the 
> purpose of the Coyote HTTP connector, which is installed with 
> tomcat by default.  It was on my installations.
> 
> 2)  The difference is #1.  If you want to divide static 
> content and dynamic content, you want AJP (mod_jk).  The 
> current WARP implementation
> (mod_webapp) does not differentiate between static and 
> dynamic content.  It may in the future.  I hope it does, 
> though I've had zero problems with mod_jk on both tomcat 3 
> and 4.  With mod_webapp, all content is served by tomcat, 
> apache is not involved except as a request receiver.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Ola Theander [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 7:23 AM
> To: [EMAIL PROTECTED]
> Subject: Questions about web solution based on Tomcat & Apache.
> 
> 
> Dear subscribers.
> 
> I have two questions about using Tomcat 4.x & Apache 2.x as a 
> base for web application development:
> 
> 1) A solution typically consists of html, jsp pages and 
> servlets. Is it possible to store html, jsp and servlets 
> based on the logical structure of the solution and have 
> Tomcat process only based on the file extension or must all 
> jsp and servlet files be collected in the folder pointed out 
> by the WebAppDeploy attribute in httpd.conf? I.e. if I have a 
> solution where I store customer data in a database I'll 
> probably have at least a form page for registering a new 
> customer, a list view where I list all customers and a 
> servlet to store submitted customer data in a database. In a 
> simple case the form page would be a html page and the list 
> view an jsp page. If these files where to be grouped 
> logically, i.e. by task, the form page, the jsp list page and 
> the servlet should be in the same directory on disk but as I 
> understand it Apache/Tomcat integration requires me to have 
> the html pages in one directory structure for access by 
> Apache and jsp/servlets in another structure, pointed out by 
> WebAppDeploy, for access by Tomcat. Is this correct? With a 
> logical grouping of files mentioned above I mean a directory 
> structure like
> this:
> 
> Customer Web
> |-|
> |   customers
> || new_customer_from.html
> || list_customers.jsp
> || store_new_user.class
> |
> |-|
> companies
> 
> 2) As far as I know there are two connectors for integrating 
> Tomcat and Apache, Warp and AJP. When I experimented I've 
> used the warp connector, but I don't really know the 
> difference between the two besides that they utilize 
> different protocols. If I can get some more information on 
> this matter I'll be grateful.
> 
> Kind regards, Ola Theander
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


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




RE: Questions about web solution based on Tomcat & Apache.

2002-07-19 Thread Turner, John


1)  Yes.  Tomcat can serve images and HTML, that is the purpose of the
Coyote HTTP connector, which is installed with tomcat by default.  It was on
my installations.

2)  The difference is #1.  If you want to divide static content and dynamic
content, you want AJP (mod_jk).  The current WARP implementation
(mod_webapp) does not differentiate between static and dynamic content.  It
may in the future.  I hope it does, though I've had zero problems with
mod_jk on both tomcat 3 and 4.  With mod_webapp, all content is served by
tomcat, apache is not involved except as a request receiver.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Ola Theander [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 7:23 AM
To: [EMAIL PROTECTED]
Subject: Questions about web solution based on Tomcat & Apache.


Dear subscribers.

I have two questions about using Tomcat 4.x & Apache 2.x as a base for
web application development:

1) A solution typically consists of html, jsp pages and servlets. Is it
possible to store html, jsp and servlets based on the logical structure
of the solution and have Tomcat process only based on the file extension
or must all jsp and servlet files be collected in the folder pointed out
by the WebAppDeploy attribute in httpd.conf? I.e. if I have a solution
where I store customer data in a database I'll probably have at least a
form page for registering a new customer, a list view where I list all
customers and a servlet to store submitted customer data in a database.
In a simple case the form page would be a html page and the list view an
jsp page. If these files where to be grouped logically, i.e. by task,
the form page, the jsp list page and the servlet should be in the same
directory on disk but as I understand it Apache/Tomcat integration
requires me to have the html pages in one directory structure for access
by Apache and jsp/servlets in another structure, pointed out by
WebAppDeploy, for access by Tomcat. Is this correct? With a logical
grouping of files mentioned above I mean a directory structure like
this:

Customer Web
|-|
|   customers
|| new_customer_from.html
|| list_customers.jsp
|| store_new_user.class
|
|-|
companies

2) As far as I know there are two connectors for integrating Tomcat and
Apache, Warp and AJP. When I experimented I've used the warp connector,
but I don't really know the difference between the two besides that they
utilize different protocols. If I can get some more information on this
matter I'll be grateful.

Kind regards, Ola Theander


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Questions about TOMCAT

2002-05-22 Thread Anthony Eden



> -Original Message-
> From: haroldorg [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 9:00 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Questions about TOMCAT
>
>
> Hello,
>
> My name is Haroldo and I work in RCS Informatica
> (www.rcs.srv.br), an enterprise that acts in informatics
> area in Brazil.
> We are doing a research to choose a new web application
> server to solve our problems.
> The TOMCAT looks very good, but some details I´d like to
> clarify with you ( if possible).
> So, we have some questions and we appreciate your
> contribution answering these questions:
>
> 1 - Tomcat is a really 100% free?

Yes.  Free as in cost and free as in open (all of the source code is available).

> 2 - Can I build applications that uses Java servlets and
> to install the TOMCAT server in our buyer machine
> without law problems?

Yes.

> 3 - How do I do to acquisite a license term directly
> from Apache?

The Apache license is available at http://apache.org/LICENSE .

> 4 - How are the limitations for the supply and for
> supporting services ( updates, bug corrections, doubts )?

Since Tomcat is an open source project your best avenue for support is probably 
through the mailing list.

> 5 - Can you give me others enterprises that uses tomcat
> (world wide or even in Brazil)?

My company, Signature Domains ( http://www.signaturedomains.com/ ) uses Tomcat 4 for 
all of our servlet engine needs.  I
also use it for other web sites of my own.  Considering that Tomcat is the reference 
implementation for Sun's Servlet
API I imagine there are MANY companies out there using it.

> 6 - Are there some representation office from APACHE in
> Brazil to make contacts to clarify some doubts?
> In case of no office in Brazil, can you give me The
> Apache Help Service number to help me?

Apache doesn't have a "help" number as you are expecting it.  You may want to look at
http://www.apache.org/foundation/faq.html to gain a better understanding of what 
Apache is.

I hope I have answered your questions well.  Please note that I am only giving you 
information which is available on the
Apache and Jakarta web sites.  I am not a representative of the Apache Software 
Foundation, only a very satisfied user
of Apache products.

Sincerely,
Anthony Eden


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Questions about Tomcat and Apache Integration?

2002-04-19 Thread @Basebeans.com

Subject: Re: Questions about Tomcat and Apache Integration?
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Nobody has interests with it?

Well, maybe I should give more information. I believe somebody must have
interests with it also.

I tried to use mod_webapp, but since I can not get apache and tomcat build
successfully on my Windows 2000 box, I used precompiled mod_webapp with
Tomcat 4.0.1. But it worked very unstable, so I go to mod_jk. mod_jk worked
perfect to me. But then I got this question. Now I did more test and
research on it, here is what I got.

To avoid apache pass all request to Tomcat, I need to add something like
this into mod_jk.conf (which will be included in httpd.conf of apache.)

JkMount /myapplication/*.jsp ajp13
JkMount /myapplication/servlet/* ajp13

This is what mod_jk how-to document suggestion. So it will only forward
request for jsp and servlet to tomcat, and all the others (assume to be
static resources) will be handled by apache.

So far so good, but it's for Tomcat 3.x, not Tomcat 4.x. Because with Tomcat
3.x, all servlet will go to servlet directory, but with Tomcat 4.x, by
default it will not. So, a URL like http://x.xxx.xxx/myapplication/list
is very possible to be request of servlet. How can we handle it? We had to
use:

JkMount /myapplication/* ajp13

This will forward all the request to Tomcat, then we got this static
resource problem again.

So, maybe we need to keep using "/servlet" for all servlet request in order
to use mod_jk.

I don't know if mod_webapp.so resolved this kind of problem, because I can
not found document on it.

Any commons, suggestions, notes even a link to some documents are welcomed.

Thanks,

Jack

"Jack Gao" <[EMAIL PROTECTED]> wrote in message
news:a9nmrr$5s0$[EMAIL PROTECTED]...
> Hi, List
>
> I have some questions about Tomcat and Apache integration.
>
> As I remember that the reason of not use Tomcat as a web server but only
> JSP/Servlet engine is because of performance. Tomcat is not as good as
> Apache to handle large number of requests at same time, and handle static
> resources. So, I assume that by integrate Tomcat and Apache together, when
a
> request is for a static resource, like a html file or an image file, the
> request will not go to Tomcat, but been processed by Apache directly.
>
> But when I go through the log files of Tomcat 4.0.3, I found that request
of
> image files also go to Tomcat, it also been logged into
> localhost_access_log..txt file.
>
> So I got confused. Does this mean, this image files also processed by
> Tomcat? or tomcat just log it as a access event, but didn't process it? If
> Tomcat need to handle this kind of static resources, why we still need
> Apache? If Apache just pass through the request to Tomcat, and forward
> response to client, that will not help the performance I think.
>
> Anybody has some info on this?
>
> Thanks and regards,
>
> Jack
>
>



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




Re: Questions about Tomcat and Apache Integration?

2002-04-18 Thread Ken Anderson

Seems to be a common problem.

The webapp Deploy statement (using mod webapp) will run everything in 
the 'deployed' directory tree, including images through tomcat. It's not 
a good idea to put static resources there, IMHO. If you have to put them 
there, but want apache to serve them, then us the Alias directive in 
Apache so that apache grabs them from a different URI, like this:
alias /images/ /$tomcat/webapps/webapp/images/
This way the uri doesn't contain the path that is in the webapp Deploy 
statement, so it wont pass the request to tomcat.
Ken


Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

>Subject: Questions about Tomcat and Apache Integration?
>From: "Jack Gao" <[EMAIL PROTECTED]>
> ===
>Hi, List
>
>I have some questions about Tomcat and Apache integration.
>
>As I remember that the reason of not use Tomcat as a web server but only
>JSP/Servlet engine is because of performance. Tomcat is not as good as
>Apache to handle large number of requests at same time, and handle static
>resources. So, I assume that by integrate Tomcat and Apache together, when a
>request is for a static resource, like a html file or an image file, the
>request will not go to Tomcat, but been processed by Apache directly.
>
>But when I go through the log files of Tomcat 4.0.3, I found that request of
>image files also go to Tomcat, it also been logged into
>localhost_access_log..txt file.
>
>So I got confused. Does this mean, this image files also processed by
>Tomcat? or tomcat just log it as a access event, but didn't process it? If
>Tomcat need to handle this kind of static resources, why we still need
>Apache? If Apache just pass through the request to Tomcat, and forward
>response to client, that will not help the performance I think.
>
>Anybody has some info on this?
>
>Thanks and regards,
>
>Jack
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Questions on tomcat heap usage and garbage collection (avoidingO utOfMemoryError exceptions)

2001-10-26 Thread Craig R. McClanahan

See intermixed.

On Thu, 25 Oct 2001, Bang, Steinar wrote:

> Date: Thu, 25 Oct 2001 15:55:35 +0200
> From: "Bang, Steinar" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Questions on tomcat heap usage and garbage collection (avoiding
> O utOfMemoryError exceptions)
>
> I wrote earlier:
>
> > Craig R. McClanahan [mailto:[EMAIL PROTECTED]] writes:
>
> [snip!]
> > But it doesn't address my real worry at the moment:
> > that a script kiddie armed with nothing more than
> > the httperf testing tool can bring my tomcat to
> > crash.
>
> >> and/or whether your test JSP page can temporarily be
> >> set to not use sessions so that this doesn't happen.
>
> > Hm... yes, but our actual application (not the test
> > page I've done the current tests on), will be Struts
> > based, and I don't think Struts will work without
> > sessions...?
>
> Some things I've tried now, are:
>  1. decrease the  in the web.xml
> of the webapp the .jsp being tested resides in
> from 30 minutes to 1 minute
>

This is a good strategy to counteract the potential for a DOS attack as
outlined in this message thread.

However, you should also remember that the timeout for a particular
session is dynamic -- you can easily set the default value to one minute
(as was suggested here) so that new sessions are created with a short
timeout. Then, once you have a logged in user, you can reset the timeout
for the rest of the session by calling
HttpSession.setMaxInactiveInterval().

>  2. limit the maximum number of threads used by tomcat
> by using the max_threads setting in 
> in the server.xml file, as outlined in
>
> 
> What I thought might happen here was that I could
> trade the crash for a slowdown under heavy load
>
> What happens in 1. is that the tomcat processes don't
> seem to ever get the OutOfMemoryError exception, and
> die.  But the response seems to be seriously slowed
> down over time.  I wonder why?  I'm also wondering if
> a low  will create problems for
> Struts applications?
>

There's nothing specific to Struts that is affected one way or the other
by the session timeout -- it's just a question of making sure your users
are interacting often enough to avoid spurious timeouts.  I would also
suggest you take advantage of the ability to adjust the session timeout to
a longer or shorter value, based on where the user is in your interaction.

> When I limited the maximum number of threads to 30,
> the footprint of the tomcat Java processes seemed
> to level out at 78MB and stay there.  So I thought
> things might be stable.  However with a long enough
> test running, things eventually crashed.

Craig





Re: Questions on tomcat heap usage and garbage collection (avoiding OutOfMemoryError exceptions)

2001-10-25 Thread Bang, Steinar

Craig R. McClanahan [mailto:[EMAIL PROTECTED]] writes:

> The most important task in a situation like this is
> to find out why memory is being consumed in the first
> place.  Generally, this is caused by one of the
> following types of factors:

> * Creating lots and lots of session attributes in your
>   applications (which causes the objects to stay
>   allocated until the session times out or is
>   invalidated)

Ah, OK.  That probably accounts for the increase
in size I see in the processes.

> * Creating a new session on every request from your
>   stress test tool, which causes a new session object
>   to be created each time.

Yes, this is probably what happens.

> The latter case is pretty insidious for doing stress 
> testings, because JSP pages are session-aware by
> default (unless you tell them not to).  This
> behavior is not typical of real users, howevever,
> because they will be returning the same session id
> (and therefore accessing the same session)
> throughout their interaction with the server.

> You should investigate whether httperf (or other
> tool) can let you remember the session id that was
> assigned in the first place and then reuse it on the
> subsequent requests,

It looks like the --session-cookie and --wsess arguments
to httperf may be doing what you suggest.  And using
this argument may give a more realistic test (I'm
running one right now).

But it doesn't address my real worry at the moment:
that a script kiddie armed with nothing more than
the httperf testing tool can bring my tomcat to 
crash.

> and/or whether your test JSP page can temporarily be
> set to not use sessions so that this doesn't happen.

Hm... yes, but our actual application (not the test
page I've done the current tests on), will be Struts
based, and I don't think Struts will work without
sessions...?

Thanx!


- Steinar























This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



RE: Questions on tomcat heap usage and garbage collection (avoidi ng O utOfMemoryError exceptions)

2001-10-25 Thread Bang, Steinar

Randy Layman [mailto:[EMAIL PROTECTED]] writes:

> I think the best thing you can do is to determine
> where the memory is going and fix your leaks.  I say
> your leaks because in my experience, Tomcat doesn't
> leak memory and doesn't take a lot of memory for each
> connection.

I perhaps wasn't too clear about what I was doing.
There is no real application involved in the tests
I'm mentioning.  It's just a simple JSP page _hammered_
by requests.

The usage is atypical, I'm the first to admit, but it
worries me that hammering the server with requests
can make tomcat _crash_ (ref. DOS attacks).

In fact, the crash is the real worry.  Why does a
single OutOfMemoryError cause _all_ tomcat processes
running under apache control to crash?






















This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



Re: Questions on tomcat heap usage and garbage collection(avoiding OutOfMemoryError exceptions)

2001-10-25 Thread Pier Fumagalli

Bang, Steinar at [EMAIL PROTECTED] wrote:

> Which brings us to question 2: tuning apache/tomcat:
> When reading the documentation, I thought that there
> was supposed to be a single tomcat process, serving
> all requests.  However top reports a lot of tomcat
> processes, when I'm stresstesting the server, which
> leads me to belive that there is a separate tomcat
> process for each apache server process running.
> Is this correct?

Nope.. That's the idiotish implementation of Threads under Linux. Under
Linux every thread is seen as a process by "ps" so, if you have an
application using 500 threads, "ps" will report 500 processes (this is
because Linux has just one scheduling table for all, unlike real operating
systems which have two, and differentiate between threads and processes).

Short test to prove it, you know how much ram you have in your machine, do a
"ps" and see the amount of Ram used by each single "java" process, sum it
all up, see how much swap space you're using, and "tad" You have more
memory than you thought

Regarding your OutOfMemoryException, when that's thrown in one thread, all
other threads die too, because all threads reside in the same memory space,
so, if one thread doesn't have memory left, so not even the others. (they're
threads, not processes).

Pier (I hate Linux's threading model)




Re: Questions on tomcat heap usage and garbage collection (avoidingO utOfMemoryError exceptions)

2001-10-24 Thread Craig R. McClanahan

The most important task in a situation like this is to find out why memory
is being consumed in the first place.  Generally, this is caused by one of
the following types of factors:

* Creating lots and lots of session attributes in your
  applications (which causes the objects to stay allocated
  until the session times out or is invalidated)

* Creating a new session on every request from your
  stress test tool, which causes a new session object
  to be created each time.

The latter case is pretty insidious for doing stress testings, because JSP
pages are session-aware by default (unless you tell them not to).  This
behavior is not typical of real users, howevever, because they will be
returning the same session id (and therefore accessing the same session)
throughout their interaction with the server.

You should investigate whether httperf (or other tool) can let you
remember the session id that was assigned in the first place and then
reuse it on the subsequent requests, and/or whether your test JSP page can
temporarily be set to not use sessions so that this doesn't happen.

Craig


On Wed, 24 Oct 2001, Bang, Steinar wrote:

> Date: Wed, 24 Oct 2001 09:21:19 +0200
> From: "Bang, Steinar" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Questions on tomcat heap usage and garbage collection (avoiding
> O utOfMemoryError exceptions)
>
> Platform: Intel PIII 797.499MHz, 256MB RAM
>   Debian Woody GNU/Linux,
>   kernel 2.2.19
>   Blackdown J2SDK 1.3.1
>   apache 1.3.19
>   tomcat 3.2.3
>
> When using httperf[1] to stresstest JSPs on the above
> platform, I'm running into the OutOfMemoryError
> exception problem:
>   
>
> The solution suggested in the URL above, is to increase
> the heap size, but this is just pushing the problem
> ahead.  The important thing for us, is that tomcat doesn't die.
>
> If this is a problem for high load sites, JSP technology
> would be unusable, and obviously it isn't.  So what
> do others do?
>
> Possible alternatives:
>  1. increase the heap size to something astronomical,
> and just hope for the best?
>  2. tune apache/tomcat to restart more often, so that
> the max heap size aren't reached before the tomcat
> processes are restarted?
>  3. catch the exception?
>  4. use some kind of watchdog to restart tomcat?
>
> Question 3 raises more questions:
>  3a. What do you do when you catch the exception?
>  There isn't much you _can_ do if you don't have
>  any memory left.  Maybe force a garbage collection
>  and then re-run the request?
>  3b. Why do all the tomcat processes connected to
>  apache processes die, if one of them gets an
>  OutOfMemoryError exception
>
> Which brings us to question 2: tuning apache/tomcat:
> When reading the documentation, I thought that there
> was supposed to be a single tomcat process, serving
> all requests.  However top reports a lot of tomcat
> processes, when I'm stresstesting the server, which
> leads me to belive that there is a separate tomcat
> process for each apache server process running.
> Is this correct?
>
> In any case; based on this assumption, I reduced
> the number of currently running apache processes
> from the default 150 to 20, with dramatically
> changed behaviour: instead of running with a 20%
> load, the machine was running at an 80%-90% load
> with less physical memory used (restarting processes
> is a lot of work).
>
> However, even with the high load, the end result
> was a lot more stable.  Watching the tomcat processes
> in top, I could watch them grow up to around 82MB,
> before there suddenly was a lot of processes with
> around 19MB.
>
> It wasn't completely stable though.  I set up
> httperf to do 1 million requests, before I left
> last night, and it only got to 51927 before tomcat
> died.
>
> I run httperf from a different machine (PIII 800MHz),
> using the command:
>   httperf --server=no-video2 --port=80 --uri=/tps-sba/Welcome.jsp
> --rate 150 --num-conns=100 --num-calls=1
> (--num-conns varies.  I have mostly been using
> 1).
>
>
> The memory usage observed in top, also raises some
> questions related to my question 1:
>  1a. Why does tomcat processes always start at around
>  19MB, no matter what I've set the initial heap
>  size to be?
>  1b. Why does the initial heap size seem to matter
>  for my stability if the processes always start
>  at 19MB?  Is it all in my head?
>
> I'm interested in all direct experiences, ideas,
> guesses, answers, etc.
>
> Thanx!
>
>
> - Steinar
>
>
> [1] 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
> TANDBERG Television. If received in error please notify the sender and
> destroy the original message and attachments.
>




RE: Questions on tomcat heap usage and garbage collection (avoiding O utOfMemoryError exceptions)

2001-10-24 Thread Randy Layman


I think the best thing you can do is to determine where the memory
is going and fix your leaks.  I say your leaks because in my experience,
Tomcat doesn't leak memory and doesn't take a lot of memory for each
connection.

Randy

> -Original Message-
> From: Bang, Steinar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 3:21 AM
> To: '[EMAIL PROTECTED]'
> Subject: Questions on tomcat heap usage and garbage 
> collection (avoiding
> O utOfMemoryError exceptions)
> 
> 
> Platform: Intel PIII 797.499MHz, 256MB RAM
>   Debian Woody GNU/Linux,
>   kernel 2.2.19
>   Blackdown J2SDK 1.3.1
>   apache 1.3.19
>   tomcat 3.2.3
> 
> When using httperf[1] to stresstest JSPs on the above 
> platform, I'm running into the OutOfMemoryError 
> exception problem:
>   
> 
> The solution suggested in the URL above, is to increase
> the heap size, but this is just pushing the problem
> ahead.  The important thing for us, is that tomcat doesn't die.
> 
> If this is a problem for high load sites, JSP technology
> would be unusable, and obviously it isn't.  So what
> do others do?
> 
> Possible alternatives:
>  1. increase the heap size to something astronomical,
> and just hope for the best? 
>  2. tune apache/tomcat to restart more often, so that
> the max heap size aren't reached before the tomcat
> processes are restarted?
>  3. catch the exception?
>  4. use some kind of watchdog to restart tomcat?
> 
> Question 3 raises more questions:
>  3a. What do you do when you catch the exception?
>  There isn't much you _can_ do if you don't have
>  any memory left.  Maybe force a garbage collection
>  and then re-run the request?
>  3b. Why do all the tomcat processes connected to
>  apache processes die, if one of them gets an
>  OutOfMemoryError exception
> 
> Which brings us to question 2: tuning apache/tomcat:
> When reading the documentation, I thought that there
> was supposed to be a single tomcat process, serving
> all requests.  However top reports a lot of tomcat
> processes, when I'm stresstesting the server, which
> leads me to belive that there is a separate tomcat
> process for each apache server process running.
> Is this correct?
> 
> In any case; based on this assumption, I reduced
> the number of currently running apache processes
> from the default 150 to 20, with dramatically
> changed behaviour: instead of running with a 20%
> load, the machine was running at an 80%-90% load
> with less physical memory used (restarting processes
> is a lot of work).
> 
> However, even with the high load, the end result
> was a lot more stable.  Watching the tomcat processes
> in top, I could watch them grow up to around 82MB,
> before there suddenly was a lot of processes with
> around 19MB.
> 
> It wasn't completely stable though.  I set up
> httperf to do 1 million requests, before I left
> last night, and it only got to 51927 before tomcat
> died.
> 
> I run httperf from a different machine (PIII 800MHz),
> using the command:
>   httperf --server=no-video2 --port=80 --uri=/tps-sba/Welcome.jsp
> --rate 150 --num-conns=100 --num-calls=1
> (--num-conns varies.  I have mostly been using 
> 1).
> 
> 
> The memory usage observed in top, also raises some
> questions related to my question 1:
>  1a. Why does tomcat processes always start at around
>  19MB, no matter what I've set the initial heap
>  size to be?
>  1b. Why does the initial heap size seem to matter
>  for my stability if the processes always start
>  at 19MB?  Is it all in my head?
> 
> I'm interested in all direct experiences, ideas,
> guesses, answers, etc.
> 
> Thanx!
> 
> 
> - Steinar
> 
> 
> [1] 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This email, its content and any attachments is PRIVATE AND 
> CONFIDENTIAL to
> TANDBERG Television. If received in error please notify the sender and
> destroy the original message and attachments.
> 



Re: Questions about Tomcat Cookies

2001-06-06 Thread Bo Xu

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 4:25 AM
> To: [EMAIL PROTECTED]
> Subject: Questions about Tomcat Cookies
>
> Hi,
>
> I have used tomcat as standalone and w/ apache also.
> In my applications , session tracking is working fine.
> To the best of my knowledge , Tomcat does session tracking by combining use
> of
> 1) Cookies
> 2) URL re-writing.
>
> My browser alerts me , when tomcat tries to set the cookie.
> But when i see cookies folder of my Win NT machine
> (C:\Winnt\profiles\Administrator\cookies) , I didn't found any cookie by
> name 'JSESSIONID'
>
> MY QUESTIONS ARE :
> 1) If the cookies are not found in the directory , where are they ?
> 2) If I disable cookies in the browser , still session tracking will work ?
> 3) What exact combination does tomcat uses of cookies + URL re-writing
> 4) If Tomcat is used with Apache , then which one sets the cookies ?
>
> TIA & Regards,
> -Amit.
> Sansui Software Pvt. Ltd.

Hi :-)  about "who is First selected for making-session: cookies or
URLre-writing?",
please see the following email:

<>

n Sun, 20 May 2001, Robert Nicholson wrote:

>
> Question... how I force it to rewrite the URL to support url rewriting even
> if the browser supports cookies?
>

In 3.2, look in "conf/server.xml" for the string

noCookies="false"

and change it to

noCookies="true"

IIRC, this change is global to all webapps in this JVM.

In 4.0, the  element includes a "cookies" attribute that you can
use to turn cookies on or off on a per-webapp basis.  It defaults to
"true", so turn them off like this:



Craig McClanahan




so I think:
- by default,  TOMCAT will cookies
- but I also can ask TOMCAT to use URLre-writing,  no matter
  the browser supports cookies or not


Bo
June 06, 2001






RE: Questions about Tomcat Cookies

2001-06-06 Thread William Kaufman

> 1) If the cookies are not found in the directory , where are they ?

In memory.  The cookie is set with an expiration of -1, which suggests to
the browser that it shouldn't bother writing it to disk.

> 2) If I disable cookies in the browser , still session tracking will work
?

Your servlet needs to call HttpServletResponse.encode[Redirect]URL() on each
URL it outputs, to add the session ID to the URL.

> 3) What exact combination does tomcat uses of cookies + URL re-writing

It uses cookies if enabled, URL re-writing (with the servlet's help) if not.

> 4) If Tomcat is used with Apache , then which one sets the cookies ?

Tomcat, AFAIK.

-- Bill K.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 4:25 AM
To: [EMAIL PROTECTED]
Subject: Questions about Tomcat Cookies


Hi,

I have used tomcat as standalone and w/ apache also.
In my applications , session tracking is working fine.
To the best of my knowledge , Tomcat does session tracking by combining use
of
1) Cookies 
2) URL re-writing.

My browser alerts me , when tomcat tries to set the cookie.
But when i see cookies folder of my Win NT machine
(C:\Winnt\profiles\Administrator\cookies) , I didn't found any cookie by
name 'JSESSIONID'

MY QUESTIONS ARE : 
1) If the cookies are not found in the directory , where are they ?
2) If I disable cookies in the browser , still session tracking will work ?
3) What exact combination does tomcat uses of cookies + URL re-writing
4) If Tomcat is used with Apache , then which one sets the cookies ?

TIA & Regards,
-Amit.
Sansui Software Pvt. Ltd.



RE: Questions

2001-02-07 Thread Vikramjit Singh

yes u can use tomcat with jdk1.2.2. i am using it and till now i have not
face any problems
cheers


> -Original Message-
> From: Cinto [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 10:04 PM
> To:   [EMAIL PROTECTED]
> Subject:  Questions
> 
> Hi, 
>  Presently, I am a student studying in Singapore. I have some
> questions regarding tomcat. 
>  
>  I heard that tomcat is only compatiable with jdk v1.3, is that true?
> Can we use jdk 1.2.2 with tomcat?
>  
>  I would be very grateful if you could answer my questions. Thank you.
>  
> Ivy   
>   
>  

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




Re: Questions

2001-02-07 Thread Pete Ehli



Sure you can use 1.2.2 -- its always best 
in my opinion that you use the most current JDK -- The only thing the JDK does 
for tomcat is compile your JSP source when you first access them. As far as your 
servlet and bean class files go - if you use a current IDE it will have the 
latest JDK bundled with it. JBuilder for instance. There are a lot of 
free IDE's out there. If don't use an IDE. I would upgrade your JDK - your 
going to have to sometime. If it's not your machine don't sweat it - just 
use it.
-- Pete -- 

  - Original Message - 
  From: 
  Cinto 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, February 07, 2001 10:03 
  PM
  Subject: Questions
  
  Hi, 
   Presently, I am a 
  student studying in Singapore. I have some questions regarding tomcat. 
  
   
   I heard that tomcat is only compatiable with jdk v1.3, is that 
  true? Can we use jdk 1.2.2 with tomcat?
   
   I would be very 
  grateful if you could answer my questions. Thank you.
   
  Ivy   
    
   


Re: Questions

2001-02-05 Thread Phillip Kuzma

Ok I did you said and it worked great thanks, but now how about.

i have www.domain1.com:8080 and www.domain2.com:8080 and I want


domain1.com:8080 servlets to be in /www/domain1/servlets/Hello.class

(www.domain1.com:8080/servlets/Hello)

domain2.com:8080 servlets to be in /www/domain2/servlets/Hello.class

(www.domain2.com:8080/servlets/Hello)

I got hello.jsp to work in /www/domain1(or 2)/, but not Hello.class

Thanks


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




Re: Questions

2001-02-05 Thread John Golubenko

Easy. Edit 2 files.
First under 
%TOMCAT_HOME%/conf/server.xml
In ContextManager (you'll see similar stuff)
put this:

 
reloadable = "true"


So, now assuming you have /www/world directory.
You can make up shell script, to do the job next time like this one I 
have,
and execute it in /www/world directory.

#!/bin/sh
# Must be executed in main directory of 
# docBase parameter of servlet.xml.


mkdir WEB-INF;
mkdir WEB-INF/classes;
mkdir META-INF;
ln -s WEB-INF/classes servlets;
cp %TOMCAT_HOME%/webapps/ROOT/META-INF/MANIFEST.MF META-INF/
cp %TOMCAT_HOME%/webapps/ROOT/WEB-INF/web.xml WEB-INF/web.xml


Or do that by hand...
good luck.
John.



>> Original Message <<

On 2/5/01, 12:10:43 PM, "Phillip Kuzma" <[EMAIL PROTECTED]> wrote 
regarding Questions:


> I'm currently running apache + mod_jk + tomcat.

> I put all my servlets in /usr/java/tomcat/webapps/ROOT/web-inf/classes/

> I put all my jsp files in /usr/java/tomcat/webapps/ROOT/

> When i goto my domain I goto www.domain.com/servlet and it reads the
> servlets dir
> When I goto my domain I goto www.domain.com/*.jsp and it reads the jsp
> directory.

> How do I change my servlet directory to say "/www/world/servlets"
>  How do I change my jsp directory to say  "/www/world/jsp"

> please CC me any replies/suggestions/comments.

> THANK-YOU
> Phil



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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




Re: Questions re: Tomcat and IBM VAJ

2000-11-20 Thread Olivier Baillard

Hello,

http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument&p=1&BCT=3&Footer=1


Bye!
Olivier Baillard



At 16:58 20.11.00 -0500, you wrote:
>Hello. I'm trying to get Tomcat running under Windows 'NT with IBM VAJ.
>Unfortunately, I haven't been able to make everything work together just yet,
>and would greatly appreciate your help in resolving what is probably a very
>simple problem.
>
>Environment
>  - MS-Windows 'NT 4.0
>  - IBM VAJ version 3.0 for J2SE 1.2 (the free, up to 750 classes version of
>VAJ)
>  - Tomcat 3.1
>
>All of the above have been downloaded and installed into their "default"
>locations. Environment variables include the following:
>CLASSPATH=C:\IBMVJava2\eab\runtime30
>JAVA_HOME=C:\IBMVJava2\eab\runtime30
>TOMCAT_HOME=C:\jakarta\tomcat
>
>When I enter the following commands:
>C:\jakarta\tomcat\bin>startup
>Starting tomcat in new window
>Using classpath:
>c:\jakarta\tomcat\classes;c:\jakarta\tomcat\lib\webserver.jar;c
>:\jakarta\tomcat\lib\jasper.jar;c:\jakarta\tomcat\lib\xml.jar;c:\jakarta\tomca
>
>t\
>lib\servlet.jar;c:\j2sdkee1.2.1\lib\tools.jar;C:\IBMVJava2\eab\runtime30;
>C:\jakarta\tomcat\bin>
>
>A new MS-DOS Command Prompt window opens with the title
>"c:\WINNT\system32\java.exe". It contains the following output, presumably
>from Tomcat:
>Context log: path="/examples" Adding context path="/examples"
>docBase="webapps/
>examples"
>Context log: path="" Adding context path=""  docBase="webapps/ROOT"
>Context log: path="/test" Adding context path="/test"  docBase="webapps/test"
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat install="c:\jakarta\tomcat" home="C:\jakarta\tomcat"
>classPath="
>c:\jakarta\tomcat\classes;c:\jakarta\tomcat\lib\webserver.jar;c:\jakarta\tomca
>
>t\
>lib\jasper.jar;c:\jakarta\tomcat\lib\xml.jar;c:\jakarta\tomcat\lib\servlet.jar
>
>;c
>:\j2sdkee1.2.1\lib\tools.jar;C:\IBMVJava2\eab\runtime30;"
>Context log: path="/admin" Automatic context load
>docBase="C:\jakarta\tomcat\web
>apps\admin"
>Context log: path="/admin" Adding context path="/admin"
>docBase="C:\jakarta\tom
>cat\webapps\admin"
>
>The logs do not seem to indicate an error message -- the tomcat.log contains
>the following:
>Starting endpoint port="8080"
>handler="org.apache.tomcat.service.http.HttpConnectionHandler" Starting
>endpoint port="8007"
>handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
>
>
>While this seems to indicate that Tomcat is working properly, I know it
>isn't. I have two files, simple.html and simple.jsp (downloaded from Wrox, as
>I'm using their Professional JSP book as a reference).
>begin simple.html 
>
>
>Simple JSP Example
>
>
>
>
>How many times?
>
>
>
>
>
>
>
>
> end simple.html 
> begin simple.jsp 
><%@ page language="java" %>
>
>
>
>Simple JSP Example
>
>
>
>
>
>   <% int numTimes = Integer.parseInt(request.getParameter("numtimes"));
>  for (int i = 0; i < numTimes; i++) {
>   %>
>Hello, world!
>   <% }
>   %>
>
>
><%@ include file="PageFooter.html" %>
>
>
>
> end simple.jsp 
>
>simple.html loads fine. When I enter a number into the resultant form
>simple.jsp is loaded but the JSP servlet code IS NOT executed. What am I
>doing wrong?
>
>Luke Hohmann