Re: Apache filters?

2005-11-03 Thread Bruno Georges
Alex 
There many approach to this, the first one that come to mind is mod-rewrite 
parsing the request and apply some processing if there is a match..
Where do you store credentials? LDAP?
Where is the security boundary in your design?
Hope this helps
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: ALEX HYDE [EMAIL PROTECTED]
Sent: 04.11.2005 00:40
To: users@tomcat.apache.org
Subject: Apache filters?

Hi all,
 
I am using Tomcat to serve up my image content. I was considering moving this 
static content to Apache itself but I'm stuck on how to do dynamic 
authorisation of a directory in Apache. In Tomcat I can restrict access to the 
images directory by adding a filter and in this filter dynamically checking for 
a valid security pin in the url. But how would I do such a thing in Apache? I 
know Apache can do it based on user or requesting machine but this is more 
dynamic.
 
Cheers alot
 
Alex


-
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre.


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.



Re: How to use -security when running as a service under Windows.

2005-11-04 Thread Bruno Georges
FYI
Hp and Dell support a full stack Linux/JBoss at a very competitive price,
with support.
This in my view  is another alternative.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Andoni  |
| |   [EMAIL PROTECTED]|
| |   kom.ie |
| |   |
| |   03.11.05 20:26  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
-|
  | 
|
  |To:  Tomcat Users List users@tomcat.apache.org 
|
  |cc:  
|
  |Subject: Re: How to use -security when running as a service under 
Windows.   |
  | 
|
  |Distribute:  
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  | 
|
  
-|




Ok, as I said to my boss:
1. OpenVMS is still stuck on Java 1.4
2. OpenVMS is still stuck on Tomcat 4.1
3. OpenVMS does not allow 'tail' access to log files!
4. Can't run JBoss, Apache 2, etc.
5. JVM on VMS has more bugs than a roach-infested sewer.
6. .jar files have to be steamed before the can run on OVMS.


I wanted to go to RedHat Linux but unfortunately there is not enough Linux
expertise in my company (we're a small shop) so it had to be a hardened
Windows 2003 box instead.

A.
  - Original Message -
  From: Donovan, JD
  Newsgroups: gmane.comp.jakarta.tomcat.user
  Sent: Thursday, November 03, 2005 2:26 PM
  Subject: RE: How to use -security when running as a service under
Windows.


  You're going from OpenVMS to Windows?!?!? WHY?
  Why go from the most secure system on the planet to the most exposed?
  Just wondering?


  jd
  Sr.  Systems Engineer
  OpenVMS Alpha Support Team
  (813) 366-2359
  OpenVMS: When downtime is not an option

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 01, 2005 2:36 PM
  To: Tomcat Users List
  Subject: How to use -security when running as a service under Windows.

  Hello,

  I am currently running Tomcat under OpenVMS by calling catalina.bat with
  the -security switch to allow it to connect to several RMI servers.

  Now that I am moving this app. to windows I want to be able to call the
  same switch from my service-driven installation of Tomcat 4.1.
  Unfortunately when I go to the properties of the service itself
  everything is greyed out so that I cannot add any switches. Also the
  program it is running is /bin/tomcat.exe.

  What can I do to get this to run with -security option?

  Thanks in advance,
  Andoni.




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: How to disable Tomcat Admin directory

2005-11-14 Thread Bruno Georges
Jarrold,

The latest versions of Tomcat do not include the admin webapp by default.
The /admin page displays:
Tomcat's administration web application is no longer installed by default.
Download and install the admin package to use it. 

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Jarrod Holder |
| |   [EMAIL PROTECTED]|
| |   .k12.ga.us |
| |   |
| |   14.11.05 22:41  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: How to disable Tomcat Admin directory   
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




We have just installed Novell's GroupWise WebAccess 7 on our server.  This
new version uses Tomcat 5.5 to provide service to our users.  However,
Tomcat tries to listen on WEB_ROOT/admin for a non existent admin
interface.  The problem is our main website uses the /admin directory for
it's portal admin files.  Therefore, we can no longer access our admin
files for our portal.

How can we have Tomcat no longer listen for requests to the /admin
directory?

Thank you.

Jarrod


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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: memory limit for tomcat?

2005-12-05 Thread Bruno Georges
Hi Tim

There are limitations imposed by h/w and os, and one should be careful
about the implications of addressing large amount of memory.
There is an interesting thread about this topic on the server side:
http://www.theserverside.com/discussions/thread.tss?thread_id=26347#124481

There is also a link on sun about tuning gc, it is definitely worth reading
prior making any setting on the JVM.
http://java.sun.com/docs/hotspot/gc1.4.2/

Free tools exists to profile the JVM and Memory management, available from
java.net.

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Tim Funk|
| |   [EMAIL PROTECTED]|
| |   org|
| |   |
| |   05.12.05 13:18  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
---|
  | 
  |
  |To:  Tomcat Users List users@tomcat.apache.org 
  |
  |cc:  
  |
  |Subject: Re: memory limit for tomcat?
  |
  | 
  |
  |Distribute:  
  |
  |Personal?   |---|
  |
  || [ ] x |
  |
  ||---|
  |
  | 
  |
  
---|




Not really. A JVM implementation could queue the extra heap memory to a
swap
disk just like an OS can. But the performance tradeoffs are so bad - that
writing such a  jvm would be a bad idea. ;)

-Tim


Bruno Georges wrote:

 Hi Tim
 Correct me if I am wrong, but there is a limit of 2GB in a 32bits
 architecture .
 With Best Regards
 Bruno Georges

 Glencore International AG
 Tel. +41 41 709 3204
 Fax +41 41 709 3000


 - Original Message -
 From: Tim Funk [EMAIL PROTECTED]
 Sent: 05.12.2005 12:48
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: memory limit for tomcat?

 The JVM heap can be as large as you want it. But its up to existing
 implementations on how well the gc implementation is and do you need
 that much heap.

 That being said - if your tomcat application runs fine under the current
 memory limits  - you are not adding more webapps (or or memory hogging
 items) to it - there is no need to increase the heap. Let the OS use
 that memory for other resources. Once the JVM grabs the memory - its
 taken an isn't given back. (Unless newer jvms have become smarter to
 shrink the heap on demand)


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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: memory limit for tomcat?

2005-12-05 Thread Bruno Georges
Tools and JVM specific performance links:
http://java.sun.com/docs/hotspot/

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   Bruno Georges|
| |   [EMAIL PROTECTED]|
| |   encore.com  |
| ||
| |   05.12.05 13:38   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
---|
  | 
  |
  |To:  Tomcat Users List users@tomcat.apache.org   
  |
  |cc:  Tomcat Users List users@tomcat.apache.org 
  |
  |Subject: Re: memory limit for tomcat?
  |
  | 
  |
  |Distribute:  
  |
  |Personal?   |---|
  |
  || [ ] x |
  |
  ||---|
  |
  | 
  |
  
---|




Hi Tim

There are limitations imposed by h/w and os, and one should be careful
about the implications of addressing large amount of memory.
There is an interesting thread about this topic on the server side:
http://www.theserverside.com/discussions/thread.tss?thread_id=26347#124481

There is also a link on sun about tuning gc, it is definitely worth reading
prior making any setting on the JVM.
http://java.sun.com/docs/hotspot/gc1.4.2/

Free tools exists to profile the JVM and Memory management, available from
java.net.

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Tim Funk|
| |   [EMAIL PROTECTED]|
| |   org|
| |   |
| |   05.12.05 13:18  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---

---|

  |
|
  |To:  Tomcat Users List users@tomcat.apache.org
|
  |cc:
|
  |Subject: Re: memory limit for tomcat?
|
  |
|
  |Distribute:
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  |
|

---|





Not really. A JVM implementation could queue the extra heap memory to a
swap
disk just like an OS can. But the performance tradeoffs are so bad - that
writing such a  jvm would be a bad idea. ;)

-Tim


Bruno Georges wrote:

 Hi Tim
 Correct me if I am wrong, but there is a limit of 2GB in a 32bits
 architecture .
 With Best Regards
 Bruno Georges

 Glencore International AG
 Tel. +41 41 709 3204
 Fax +41 41 709 3000


 - Original Message -
 From: Tim Funk [EMAIL PROTECTED]
 Sent: 05.12.2005 12:48
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: memory limit for tomcat?

 The JVM heap can be as large as you want it. But its up to existing
 implementations on how well the gc implementation is and do you need
 that much heap.

 That being said - if your tomcat application runs fine under the current
 memory limits  - you are not adding more webapps (or or memory hogging
 items) to it - there is no need to increase the heap. Let

Re: URL rewriting best practice?

2005-12-15 Thread Bruno Georges
Kristian

you can write a servlet filter for this. It will be easier that way.
mod_rewrite is one way of doing it , but if you are going to target only
your JSP I would recommend to go to the servlet filter way.
You could also use valves, but you can do almost the same things with
servlet filter.

Example of  class is:

public final class URLRewriteFilter implements Filter {

  // you have to implement this method
  public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain)
throws IOException, ServletException {

// you code goes here
chain.doFilter(request, response);
}
}

If you need help implementing it, just let me know.

With Best Regards

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Kristian Rink   |
| |   [EMAIL PROTECTED]|
| |   428.net|
| |   |
| |   15.12.05 11:37  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: URL rewiting best practise? 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|





Hi all;

currently I'm into deploying a small jsp/servlet based application which
more or less utilizes a dispatcher servlet to provide .jsp-based
content. For that, I'm into using URLs like

http://foobar:8080/Site?path=home/users

to, in example, show the site section home - users. For now, I'd like
to do URL rewriting in order to provide users with an URL like

http://foobar:8080/home/users or maybe
http://foobar:8080/Site/home/users


to see the same content. My initial idea was to use apache, mod_jk and
mod_rewrite to do right this, but don't feel too good about that idea
because sooner or later the site URL will also have to carry around a
session ID and in that I am afraid that URL rewriting will get me into
trouble. So, my question: What is the best way of doing URL rewriting in
such a situation? Does tomcat provide any ways of achieving what I want?

TIA and bye,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. (Gandhi)

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: URL rewriting best practise?

2005-12-15 Thread Bruno Georges
Kristian

I forgot to ask if you want the user to see the new URL or not, is this
important in your application? If this is the case then you will have to
consider looking into the HTTP response codes.
Also, do you always plan to have apache in front? If you use IE, you will
have to write an ISAPI Filter to duplicate the mod_rewrite functioanlity
[you can buy one too] as it doesn't come with IIS.

Hope this helps.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Kristian Rink   |
| |   [EMAIL PROTECTED]|
| |   428.net|
| |   |
| |   15.12.05 11:37  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: URL rewiting best practise? 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|





Hi all;

currently I'm into deploying a small jsp/servlet based application which
more or less utilizes a dispatcher servlet to provide .jsp-based
content. For that, I'm into using URLs like

http://foobar:8080/Site?path=home/users

to, in example, show the site section home - users. For now, I'd like
to do URL rewriting in order to provide users with an URL like

http://foobar:8080/home/users or maybe
http://foobar:8080/Site/home/users


to see the same content. My initial idea was to use apache, mod_jk and
mod_rewrite to do right this, but don't feel too good about that idea
because sooner or later the site URL will also have to carry around a
session ID and in that I am afraid that URL rewriting will get me into
trouble. So, my question: What is the best way of doing URL rewriting in
such a situation? Does tomcat provide any ways of achieving what I want?

TIA and bye,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. (Gandhi)

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: implementation difference between Cookie and HttpSession

2005-12-15 Thread Bruno Georges
HttpSession expires after the timeout period you set in your servlet
conatiner. for example if a user is shopping and leave its PC to go for a
walk , when he comes back the session will likely expires.
A cookie on the other end can be set to expire later or never, or always.
when you track user access, you will have to differentiate both, depends on
what you want to achieve.

You can set a specific cookie for the trackingn purpose and use apache log
format to log it. then use normal weblog analyser.
Have a look there for more info:
http://webdesign.about.com/cs/loganalysistools/a/aaloganalysis.htm

You may have to do log it to a database if you want to cross reference with
other things and have nicer reports and better querying facility.
For this you can use a Servlet Filter.



Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   marju jalloh|
| |   [EMAIL PROTECTED]|
| |   oo.com |
| |   |
| |   15.12.05 14:28  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: implementation difference between Cookie and HttpSession
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




 I want to  track the last time a user  visited my website and publish it.I
don`t know the implementation  difference between java Cookies and
HttpSession or is it possible to  use both.

  Byfour



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping



LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: URL rewriting best practice?

2005-12-15 Thread Bruno Georges
Yes it will work that way. The servlet filter process the request it gets
from apache the same way it will without it. Also with mod_jk or mod_proxy
Make sure you don't already have some mod_rewrite rules set in your apache,
they will take precedance over the filter [if applicable of course].


Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Kristian Rink   |
| |   [EMAIL PROTECTED]|
| |   428.net|
| |   |
| |   15.12.05 14:41  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: Re: URL rewriting best practise?
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|





Hi Bruno;

Bruno Georges schrieb:
 I forgot to ask if you want the user to see the new URL or not, is this
 important in your application? If this is the case then you will have to

No, that's not really important. Just want to expose the site using a
more human-readable URL format than one filled up with ='s and
's... ;)


 Also, do you always plan to have apache in front? If you use IE, you will
 have to write an ISAPI Filter to duplicate the mod_rewrite functioanlity
 [you can buy one too] as it doesn't come with IIS.

There'll probably be an apache in front because it's already there being
reverse-proxy for the web client applications of our document management
system, and I'm about to place the tomcat right behind this apache, as
well. Should work this way, shouldn't it?

Cheers,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. (Gandhi)

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Adjusting Memory

2005-12-17 Thread Bruno Georges
Hi Thomas
A quick note:
Correct me if I am wrong , but it looks like this happens not intentionally
when the spell checker modify the spelling in the Subject line.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Mark Thomas |
| |   [EMAIL PROTECTED]|
| |   g  |
| |   |
| |   16.12.05 19:52  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
|
  | 
   |
  |To:  Tomcat Users List users@tomcat.apache.org 
   |
  |cc:  
   |
  |Subject: Re: Adjusting Memory
   |
  | 
   |
  |Distribute:  
   |
  |Personal?   |---|
   |
  || [ ] x |
   |
  ||---|
   |
  | 
   |
  
|




When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner


Stephen Caine wrote:
 All,

 One of our customers has recently purchased a Quad Processor Mac OS X
 (v10.4 Server) for their Tomcat server.  The machine has 8 gigabytes  of
 RAM.  The application they are running is very large and extremely
 complex, containing well over 100 pages.  They are using Tomcat
 v5.5.7.  The JVM is version 1.4.2.

 I need a bit of assistance with how to set the Java OPTS so that the
 memory is fully optimized and all processors are used.  I have done
 some reading, but the advice is, honestly, all over the map.  My
 current settings are:

 JAVA_OPTS=-Djava.awt.headless=true -XX:+UseParallelGC -Xms512m -
 Xmx2048m -server

 Using Apple's Activity Monitor, the maximum amount of 'real' memory I
 could see was 700 megabytes; while the maximum amount of virtual  memory
 was 2.3 gigs.  In fact, once I reached 700 megabytes of 'real'  memory,
 the 'out of memory' error was returned.

 Thank you in advance.

 Stephen Caine
 CommonGround Softworks, Inc.

 -
 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]




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Bruno Georges
Francois

I would use a Servlet Filter to do this. It is a standard, not tomcat
specific and it allows you to decouple the header processing from your
existing servlet and it is also very flexible.
you will be handle to handle both HTTP response and request headers.

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   COURTAULT Francois |
| |   [EMAIL PROTECTED]|
| |   emplus.com  |
| ||
| |   06.01.06 14:02   |
| |   Please respond to|
| |   Tomcat Users List  |
| ||
|-+
  
--|
  | 
 |
  |To:  users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: Way to force Tomcat not to send headers in its http 
response.|
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Hello,

Do you know if there is a way to force Tomcat not to send http headers
in its http response ?

Regards.




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



RE: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Bruno Georges
http://java.sun.com/products/servlet/Filters.html

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   COURTAULT Francois |
| |   [EMAIL PROTECTED]|
| |   emplus.com  |
| ||
| |   06.01.06 16:50   |
| |   Please respond to|
| |   Tomcat Users List  |
| ||
|-+
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: RE: Way to force Tomcat not to send headers in its http 
response.|
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




I don't see in the servlet api a way to clear or reset the headers ?

You can only add a header  so I don't know how you can remove header
with a servlet filter ?

Regards.

-Message d'origine-
De : Bruno Georges [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 6 janvier 2006 15:06
À : Tomcat Users List
Cc : users@tomcat.apache.org
Objet : Re: Way to force Tomcat not to send headers in its http response.

Francois

I would use a Servlet Filter to do this. It is a standard, not tomcat
specific and it allows you to decouple the header processing from your
existing servlet and it is also very flexible.
you will be handle to handle both HTTP response and request headers.

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   COURTAULT Francois |
| |   [EMAIL PROTECTED]|
| |   emplus.com  |
| ||
| |   06.01.06 14:02   |
| |   Please respond to|
| |   Tomcat Users List  |
| ||
|-+

--|

  |
|
  |To:  users@tomcat.apache.org
|
  |cc:
|
  |Subject: Way to force Tomcat not to send headers in its http
response.
|
  |
|
  |Distribute:
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  |
|

--|





Hello,

Do you know if there is a way to force Tomcat not to send http headers in
its http response ?

Regards.




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are
strictly confidential and they may not be used or disclosed by someone who
is not a named recipient.
If you have received this email in error please notify the sender by
replying to this email inserting the word misdirected as the message and
delete this e-mail from your system.


-
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]



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



RE: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Bruno Georges
Francois

I don't know if you have apache in front of tomcat but you can also use
mod_rewrite to do even more handling.

Note that the browser needs a minimum of HTTP headers [response code,
content type, etc..] to process your response properly as an html page [if
this is still what you want].

More ressources:
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Hopes this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   COURTAULT Francois |
| |   [EMAIL PROTECTED]|
| |   emplus.com  |
| ||
| |   06.01.06 16:50   |
| |   Please respond to|
| |   Tomcat Users List  |
| ||
|-+
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: RE: Way to force Tomcat not to send headers in its http 
response.|
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




I don't see in the servlet api a way to clear or reset the headers ?

You can only add a header  so I don't know how you can remove header
with a servlet filter ?

Regards.

-Message d'origine-
De : Bruno Georges [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 6 janvier 2006 15:06
À : Tomcat Users List
Cc : users@tomcat.apache.org
Objet : Re: Way to force Tomcat not to send headers in its http response.

Francois

I would use a Servlet Filter to do this. It is a standard, not tomcat
specific and it allows you to decouple the header processing from your
existing servlet and it is also very flexible.
you will be handle to handle both HTTP response and request headers.

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   COURTAULT Francois |
| |   [EMAIL PROTECTED]|
| |   emplus.com  |
| ||
| |   06.01.06 14:02   |
| |   Please respond to|
| |   Tomcat Users List  |
| ||
|-+

--|

  |
|
  |To:  users@tomcat.apache.org
|
  |cc:
|
  |Subject: Way to force Tomcat not to send headers in its http
response.
|
  |
|
  |Distribute:
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  |
|

--|





Hello,

Do you know if there is a way to force Tomcat not to send http headers in
its http response ?

Regards.




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are
strictly confidential and they may not be used or disclosed by someone who
is not a named recipient.
If you have received this email in error please notify the sender by
replying to this email inserting the word misdirected as the message and
delete this e-mail from your system.


-
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: I need advice about choosing a application server.

2006-01-19 Thread Bruno Georges
Legolas

Tomcat suits such requirements [and heavier loads].
You can deploy tomcat on JBoss [it is embedded] and disable the services
you don't need.
Geronimo is not as mature, and correct me if I am wrong is not a servlet
container, Geronimo uses jetty or tomcat for this.

On a different note, I would still implement connection pooling, [you don't
need a full blown app server for that] look into jakarta commons there is
some projects which addreses this specific need. Spring can help there too.
Also, visit JBoss site, they have a Portal project.

The Hardware you have can support this load [I am not a salesman :-)], also
you proabaly need to think about availability [if this is a requirement]
and growth / capacity planning, in such case you may revisit your hardware.
Hopes this helps.
With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000



  
  Legolas Woodland  
  
  [EMAIL PROTECTED] To:  Tomcat Users List 
users@tomcat.apache.org   
  .comcc:  
  
   Subject: I need advice about 
choosing a application server.
  18.01.06 23:34
  
  Please respond   Distribute:  
  
  to Tomcat Users Personal?   |---|
  
  List| [ ] x |
  
   |---|
  

  

  




I need advice about choosing a application server.
Hi
Thank you for reading my post
I need some advice to choose an application server / srvlet container
for deploying a project.
Application description :
application has two part  which one of them is a portal .
portal itself will have a  2 hit/second . each hit could have 1 select /
1 update and one insert
sql statement. portal itself use hibernate and Derby.
I used plain *JDBC , derby , jsf *to develop my portlets (two portlet
which are runing on the base)
there are about 2 emails /second in peak time of the system , it will
jsut send the emails and store them
in database.

The most busy part of the system is another application which will
handel about 30 hit (each hit has , 2 update , 2 insert , and 2 select
statement)
for this part there will be no email

*I did not implement sending emails as i do not know a good or best
practice for this one , and i think it is something related to
application server ?*

As i did not use any EJB stuff and just some datasource  , JNDI ,
connection pool ,
what will be my choice to deploy the application ?
Tomcat ?
Sun application server 8.* ?
Geronimo ?

Host is a Redhat enterprise Linux , with one p4 processor .
some tables has 1/000/000 records.
Will that hardware handle this load ?










LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Desperate for help with isapi_redirect.dll

2006-02-02 Thread Bruno Georges
Mark

The are few good, comprehensive ressources on the web for ISAPI filters,
MSDN provides API documentation and code examples, but the most helpful was
[for my problems] to look at the .h [isapi, winnet,..] from visual studio.

There is a guy from MS whose online blog helped me a lot when writing ISAPI
filters, David Wang, you can find him on:
http://blogs.msdn.com/david.wang/default.aspx

Hopes this helps.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Mark Thomas |
| |   [EMAIL PROTECTED]|
| |   g  |
| |   |
| |   02.02.06 01:06  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: Re: Desperate for help with isapi_redirect.dll  
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Mark Thomas wrote:
 You will need to send the war directly to me rather than to the list
 as it will get stripped out.

OK. Test war received. IIS installed (I'd be lost without VMWare).
ISAPI 1.2.15 installed. ISAPI configured to talk to Tomcat 5.5.x HEAD.
I can reproduce the problem. (So far so good ;)

Next steps are to see if I can build the .dll locally and then try the
windows equivalent of remote debug.

I warn you now the last time I did anything with C at all was at uni
and that was a long time ago. It was much simpler than the ISAPI code.
It might take me a little while to figure things out.

I'll start looking at this with a fresh pair of eyes tomorrow.

In the mean time, if anyone can point me at a copy of the ISAPI filter
interface spec on the web I would be grateful.

Mark


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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Deployment order strategy

2006-02-03 Thread Bruno Georges
Laurent
I don't know if tomcat standalone can do this, however,
I would deploy tomcat with Jboss and use jboss deployer where you can choose 
between different scheme.
According to jboss doc
implicit behvior is defined by:
Urlcomparator policy
Russian doll policy

Explicit behavior is defined by
Explicitly stating MBean dependencies in MBean definitions

In your case you could use the implicit. Rules prefixdeploymentsorter.
It will be then:
01-File.war, 02-File.war, etc..

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: LE CALVE, Laurent [EMAIL PROTECTED]
Sent: 03.02.2006 14:51
To: users@tomcat.apache.org
Subject: Deployment order strategy

 I have 3 different .war files to deploy under Tomcat 5.5 
 I deploy under Tomcat (under webapps)  these 3 files with Eclipse 3.2 and the 
 order they start under Tomcat is very important for me because they 
 communicate between them with WebServices. 
 
 When Tomcat starts, I want that Tomcat deploy and start first file1.war then 
 file2.war and finally file3.war. 
 
 At the moment, I don't understand the deployment stategy  of Tomcat. Some 
 time it starts file1.war and some times file2.war !!! 
 
 Is there anybody here who have some information about it ? 
 Thanks 
   
 


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.



RE: Commercial Support?

2006-02-05 Thread Bruno Georges
Kirt

I confirm you can get support from Jboss [we do].
We also went through the same path to sell it to Business, and we are now
migrating to Tomcat / JBoss.

As Richard pointed, Tomcat's lead developer Remy Maucherat is a JBoss
employee.

Their support is excellent.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000




  Richard Mixon   

  [EMAIL PROTECTED] To:  'Tomcat Users List' 
users@tomcat.apache.org 
  et  cc:  

   Subject: RE: Commercial Support? 

  03.02.06 23:36

  Please respond   Distribute:  

  to Tomcat Users Personal?   |---|

  List| [ ] x |

   |---|









Not positive, but I believe that Jboss also offers support for just Tomcat.
I attended a webinar a while back and it appears a number of the Tomcat
developers are also affiliated with Jboss.

HTH - Richard

-Original Message-
From: Kirt Dankmyer [mailto:[EMAIL PROTECTED]
Sent: Friday, February 03, 2006 12:39 PM
To: Tomcat Users List
Subject: Commercial Support?

Okay, I know that Tomcat is your basic open-source product, and that
excellent support already comes from the community.

But as I am sure some of you know, that's a tough sell to corporate execs
sometimes.

So, if you were going to purchase support for Tomcat, who would you
purchase
it from? What companies would you recommend?

--
Kirt Loki Dankmyer -- http://ivanhoeunbound.com -- xiomBRAG on AIM cats *
hats * RPGs * love * Eris * Agent Patriot * anime * Dada * poetry Only ONE
MAN can kill this many Russians. Bring his guitar to me! -Death

-
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]




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Bruno Georges
Hi Antony
Such implementation already exist.
Google is your friend there.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Antony Riley [EMAIL PROTECTED]
Sent: 10.02.2006 14:32
To: users@tomcat.apache.org
Subject: pure java mod_rewrite using javax.servlet.Filter

Hiya all,

I'm looking at writing a Filter class which does request rewriting similar
to mod_rewrite in a apache for Tomcat (preferably written so that it will
work with any servlets 2.4 compliant server).

I'm having a little trouble with regards how filters actually work.

The following all happen inside filters (tomcat 5.5, latest stable release):

1) Wrapping the HttpServletRequest with one which modifies
request.getRequestURI(), request.getPathInfo() request.getServletPath() does
not seem to work, as at this point tomcat seems to have already decided what
server will proces the request.

2) using request.getRequestDispatcher(path).forward(request,response)
seems to work, however, this does not cause the Filter to be reapplied as I
would have expected if called at this stage in the request parsing process.

3) When declaring a filter in a web.xml for an application with a
url-mapping of /* seems to break hideously if there is also a default
servlet also declared in the web.xml (the application specific web.xml, not
the server web.xml) [I can and will probably will have to provide further
info on this] seems to break rather horribly causing tomcat to server up
unprocessed jsp pages, and fail to do directory indexes, even though without
the filter mapping it works correctly.

-Antony Riley


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.



Re: Architecture question for all you gurus out there

2006-03-09 Thread Bruno Georges
Dear John
As posted there are different way of supporting your requierements.
Also AJAX came to mind until I attended yesterday a presentation from Christian 
Bauer on JBoss SEAM project. Christian works with Gaving King (hibernate lead) 
on this project.
I suggest you have a look at it on JBoss site.

Hope this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: John MccLain [EMAIL PROTECTED]
Sent: 09.03.2006 22:11
To: Tomcat user list users@tomcat.apache.org
Subject: Architecture question for all you gurus out there

We have a fairly large client/server app that we converted to a java webapp.
The original app was in powerbuilder. there were 2 types of rules applied to
field rendering:

1) any rule that could be handled when the screen loaded was handled via
screen level events, e.g., if a screen had fields with default values, or
hidden fields under certain conditions, then these would be applied at
screen entry via an onchange event for the screen
2) computed fields were handled via onChange events on the field, e.g., if
field x changes, change field y

The 'field rules' could be any valid powerscript expression

What we have done is mimicked this in java. we process the same way as
above, except we dynamically convert (very painfully) the powerscript into
java syntax, then run the rules as above, by passing the converted rules to
an embedded java interpreter (BeanShell)

The problem is if you have sophisticated rules, or rules which affect many
different fields, e.g., if field x changes, change field y, but if field y
changes, change field z, etc... This becomes very slow - up to 15 seconds
for a screen to render or change completely. Not to mention the complexity
of the rules management.

Is there a better way???

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Skepticism is the first step toward truth


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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: version of jintegra and tomcat5.5 compatibility

2006-03-14 Thread Bruno Georges
We use 2.5.0.0 without problems.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   bhavik shah   |
| |   [EMAIL PROTECTED]|
| |   .com   |
| |   |
| |   14.03.06 16:31  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: version of jintegra and tomcat5.5 compatibility 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Hi,
We were using tomcat Version 3i
and we move to 5.5 now its a issue of jintegra compatibility.can
anybody
tell me please which jintegra version i should use with tomcat 5.5
thanks




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Best eclipse plugin for tomcat development

2006-03-17 Thread Bruno Georges
Dola

There is a good choice on the market,  I have used 2 with success:
MyEclipseIDE : http://www.myeclipseide.com/
and
JBoss Eclipse IDE : http://www.jboss.com/products/jbosside


With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Dola Woolfe |
| |   [EMAIL PROTECTED]|
| |   com|
| |   |
| |   17.03.06 17:44  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
-|
  | 
|
  |To:  Tom Cat tomcat-user@jakarta.apache.org
|
  |cc:  
|
  |Subject: Best eclipse plugin for tomcat development  
|
  | 
|
  |Distribute:  
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  | 
|
  
-|




Hi,

Following the advice of the mailing lists members, I'm
trying to work with Eclipse. I've learned that to do
tomcat development I need to download an appropriate
plugin and that there are seveal to choose from. Can
someone recommend a good one (or is there a best one,
or the most common one)?

Thanks!

Dola

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

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Would like to track googlebots, or spiders from site

2006-03-23 Thread Bruno Georges
Hi Scott

I used a robots list in the past in combination with mod_rewrite on apache
= RewriteMap which lookup a list I got from
http://fantomaster.com/fa_SE-LIST.html and other sources.
This is very useful for cloacking :-)
Anyway there different approach to it.
Here are few ideas
a) You could also use Valves or ServeltFilter [or existing Free
implementation of mod_rewrite for Servlet containers or IIS] to log the
robots separately.

b) Also you will find that most Log Anlaysers will provide with some
reports on spider/robots , and you can run them against your existing logs
and see their activities.

c) Instead of maintaining a list of robots you can maitain a list of Real
Web Clients [ie, moz, ns, ..] and do the diff on the logs with a perl
script which will separate them into different logs. then run your log
analyser against it.

there are web sites and newsletters dedicated to this subject as well as
books such as Google hacks.

Hopes this helps.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Scott Purcell |
| |   [EMAIL PROTECTED]|
| |   r.net  |
| |   |
| |   23.03.06 01:59  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
-|
  | 
|
  |To:  Tomcat Users List users@tomcat.apache.org   
|
  |cc:  
|
  |Subject: Would like to track googlebots, or spiders from site
|
  | 
|
  |Distribute:  
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  | 
|
  
-|




Not necessarily a tomcat problem, but I have created a webapp on Tomcat
5.x. I would like to be able to track any robot activity in a log file, but
not really sure where to begin looking for this functionality? If this is
possible, is there  a debug level that could be used so I could find out
what pages it hits, etc? Or is this something that needs to be written and
tired into the container. This is Tomcat standalone, no Apache front end.


If anyone has this knowledge, links, etc. I would certainly appreciate.

Regards
Scott




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Tomcat runs slow on linux

2006-03-27 Thread Bruno Georges
Alex

Are you sure the performance problems comes from Tomcat itself?
What is exactly slow?
Is this a test you run from your XP client, or from the server?

I would start by collecting metrics network/cpu/ram and narrow it down to
the bottleneck.

Do you have similar settings in both environment?
Do you connect to a database?

Let us know

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Alex Jalali   |
| |   [EMAIL PROTECTED]|
| |   com|
| |   |
| |   27.03.06 12:36  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
-|
  | 
|
  |To:  users@tomcat.apache.org   
|
  |cc:  
|
  |Subject: Tomcat runs slow on linux   
|
  | 
|
  |Distribute:  
|
  |Personal?   |---|
|
  || [ ] x |
|
  ||---|
|
  | 
|
  
-|





Hi,

I upgraded tomcat to 5.5 and also jdk to 1.5 and after making changes to my
app everything was great (on my local machine) which is a windows XP. But
after setup on the server it runs sooo slow. I still have the older tomcat
running another application and that one is fine. Both of these tomcat 5
and
5.5 are using the same JDK 1.5. the application running on the 5.0 runs
well
but the one on the 5.5 runs very slow.

I checked all the logs and there no errors. I ran Litmus for testing this
WebDAV server locally on the server against the 5.5 tomcat but the test
takes about 10 time slower then on my windows machine.

Is there anything I am missing?

This is what I have:

J2sdk:
java version 1.5.0_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

Tomcat:
jakarta-tomcat-5.5.16

Redhat 9
2 xeon 2.4GH
1GB ram







LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Does Tomcat provide support for PHP scripts

2006-03-31 Thread Bruno Georges
JBossWeb does. Soon to be released.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Developer  |
| |   Developer  |
| |   [EMAIL PROTECTED]|
| |   ail.com|
| |   |
| |   31.03.06 18:27  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: Re: Does Tomcat provide support for PHP scripts 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




I tried it too in the past , but could not get it working.

Here is a link to some documentation -
http://www.alexander-merz.com/print_21.html

Let me know if you can get it working.


On 3/31/06, Ikonne, Ike [EMAIL PROTECTED] wrote:



 Hi all,





 Does Tomcat provide support for php scripting language?  I have not
 seen anything in Tomcat

 documentation that indicates that it does, I would appreciate it if I
 could be pointed to

 any documentation regarding tomcat support for php.





 Thanks,



 Ike









LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: JVM config in Tomcat

2006-05-07 Thread Bruno Georges

Hi
Just set your JAVA HOME and restart.
Tomcat can be configured to use different JVM and different JVM options as with 
other containers.
I suggest you make an effort to read the documentation.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Martin Gainty [EMAIL PROTECTED]
Sent: 07.05.2006 15:02
To: tomcat-user@jakarta.apache.org
Subject: JVM config in Tomcat

Good Morning Gentlemen-

Dumb Question but I have to ask
Is there a easy way to switch JVM configurations in Tomcat or does one have 
to re-install?


Many Thanks,

Martin Gainty

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.

(mobile) 603-438-5053



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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



RE: JVM config in Tomcat

2006-05-07 Thread Bruno Georges

Martin,

For a reference to all relevant Tomcat documentation please visit:

http://www.jboss.com/products/apache/docs



With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Problems with Tomcat and sessions

2006-05-12 Thread Bruno Georges
Tommy
I don't know if this will be of any value to you but I had a similar case 
including session swapping. Users will see other users screens and data. Fairly 
nasty situation.
We solved this problem by:
Using prefork in apache 2
upgrading to a newer module.

The problem was also occuring during pick activity.
Our code wasn't changed.
We assumed that the issue was the combination of apache mpm config and the old 
module.

We also had DOS attacks from different time zones which contributed to some 
weird behaviour and made it harder to establish the root of the problem.

To help we recreated the same environment as we had in production.
This also helped us solved issues introduced with firewalls and load balancing.
We then used webload, jmeter and proxysniffer to record activity and 
stress/load test our apps.

Hopes this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Tommy Skarateppen [EMAIL PROTECTED]
Sent: 12.05.2006 10:05
To: users@tomcat.apache.org
Subject: Problems with Tomcat and sessions

Hi!
We have a problem with a webapplication we have developed for one of our
coustomers. The problem is that Tomcat is creating new sessions when it
shouldn't.

The sessions does not die, but a new is created and thus loosing access
to the data in the original session. The result of the session
switching is that the user is kicked out of the webapp, and can't log
in until the lost session dies after 30 minutes (timeout). This does
happen 10 - 20 times during the day, and it happens about the same time
every day. At 10 - 11 in the morning and around 14 in the afternoon.
This is when the traffic on the server is at its most.

Our customer has the webapp in a Tomcat webhotel at an ISP, witch uses
some Apache front end servers to proxy requests to the Tomcat server.

We have checked our code thoroughly, and can't find anything there.
Since this problem occure irregularly, and have never occured on our
local test server, we suspect this is a server related problem. But we
are not 100% sure, therefore this post to this list. I've searched the
web to see if anyone else have had a similar problem, but haven't found
anything we can relate to our problem.

We know that there are 3 or 4 other webapps on the Tomcat hotel. The
server has 1GB of physical RAM. Other tecnical info:

Red Hat Linux release 7.3 (Valhalla)
Tomcat 5.0.28
Java 1.4.2_10
maximum Java heap size: 512m

We suspect the problem is either related to the use of front end servers
or lack of memory.

Does anyone of you have any suggestions on what can cause this trouble
or point us in the right direction?

-tommy





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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Object sharing

2006-05-20 Thread Bruno Georges

Arvind
By design I would use an EJB, this way you can also use proper security to 
comtrol access to your bean. You can access the EJB from any webapps, wether it 
runs or not on the same server. And you can also expose it as a web service.
Using JBoss you will have tomcat out of the box as well as transaction, 
security, etc And no license cost.

Hopes this helps.
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Arvind S. [EMAIL PROTECTED]
Sent: 19.05.2006 21:25
To: users@tomcat.apache.org
Subject: Object sharing

Hi,

If a web application wants to access a object being used by another
web-application(with a different context root) running on the same
webserver, is that possible?

If yes, how can it be achieved?Through sharing attributes of ServletContext?
Will getting an attribute from the servletContext, return a copy of the
object or the reference itself?

Thanks  Regards


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.



Re: Istalling Bugzilla on Tomcat

2006-05-25 Thread Bruno Georges
Hi Lessie

Bugzilla is not a Java based  Web App, it is build Perl/CGI, therefore you
need a web server which can parse these requests, map and execute them.
Recently JBoss announced JBoss Web which allows you to do exactly that
along with running Tomcat.
You can also run PHP and .Net.
Have a look at:
http://labs.jboss.com/portal/index.html?ctrl:id=page.default.infoproject=jbossweb

Hopes this helps.
With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Lessie Zoa |
| |   Mitch  |
| |   [EMAIL PROTECTED]|
| |   aii.rr.com |
| |   |
| |   25.05.06 05:52  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: Istalling Bugzilla on Tomcat
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|







Greetings everyone.





I am relatively new and loving Java—Tomcat—Linux—all of it! But being new,
well… please bear with me if I ramble…





Situation:





Due to the nature of our ecommerce software, we do not run Apache.





I have only found one other post here regarding a Bugzilla on Tomcat
install, and the response was most disappointing—as well as a few years
ago.





So, I present the question again…





Has someone tried to install Bugzilla on a straight Tomcat server?





Our box serves 5 separate IPs


  3 are ecommerce sites


  1 is an ftp area


  1 is for development and tools, such as Bugzilla.





I intend to use Bugzilla to help track issues on each of the ecommerce
websites as well as development bugs for new ecommerce solutions.








Complete Environment:


  Linux 2.6.9


  MySQL 5.0.20


  Tomcat 5.5.16


  Bugzilla 2.22 (this is what I want!)








Bugzilla’s ./checksetup.pl ran well and I installed the PERL stuff it
needed. J





Then I went to activate the cgi components of Tomcat.





I have read through the files and did uncomment the cgi servelet and
mapping in the web.xml for Tomcat, then realized that is a global setting –
I only want it to work for Bugzilla. So I went ahead and created a WEB-INF
directory, made a new web.xml. I also set up a context file in the
CATALINA/hosts as I did for my ecommerce sites.





But I am confused. Bugzilla is cgi… will the Tomcat even recognize it?





My Tomcat manager does see the Bugzilla directory as I placed it in the
MYDIR/ipstring/webapps directory, however it does not run (obviously, is
not Java!). When I try to “run it” I get this:
FAIL - Application at context path /bugzilla could not be started





Ok, I can deal with that as Bugzilla is not java.





I go to my webbrowser, and it does not come up.





Am I barking up the wrong tree? Should I seek a more java-esq bug tracker?
Is there one?





Helpful advice would be greatly appreciated.





Mahalo.





LessZoa


Lessie Zoä Mitch
WebMaster
SSH - OSS - BS - MOSS
815C Waiakamilo Rd.
Honolulu, HI  96817
PH-(808) 847-4017
FX-(808) 842-1233
www.SafetySystemsHawaii.com
www.OneShotSupplies.com
www.BrandySigns.com

Re: Tool for monitoring Tomcat from the client side

2006-08-25 Thread Bruno Georges
I agree JMeter is a good choice and offer some recording functionality via the 
workbench, there is another tool for recording lower level traffic: ProxySniffer
It may help in this case.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Tim Lucia [EMAIL PROTECTED]
Sent: 25.08.2006 04:21
To: 'Tomcat Users List' users@tomcat.apache.org
Subject: RE: Tool for monitoring Tomcat from the client side

I would second the use of JMeter.  I have used it pretty extensively and it
is reasonably good.  I wish I could record using it as a proxy and play back
the recording.  Anyone know if this is possible?  How about with another
tool?

Tim

 -Original Message-
 From: Andrés González [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 24, 2006 11:32 AM
 To: users@tomcat.apache.org
 Subject: Re: Tool for monitoring Tomcat from the client side
 
 I think i've found what i was searching for: JMeter.
 
 On 8/24/06, Andrés González [EMAIL PROTECTED] wrote:
  Hi.
 
  I'm searching a tool similar to nagios wich allows me do client-side
  real testing of my Tomcat webapps. Something that lets me do a HTTP
  request say every minute and store the result (OK or FAILED) of each
  request.
 
  Nagios seems to be a good choice, but it requires C programming for the
 plugins.
 
  Any alternatives for java (or groovy)?
 
  Thanks.
 
  --
 
  -=-=-=-=-=-=-=-=-=-=-=-=-
  Andrés González.
 
 
 
 --
 
 -=-=-=-=-=-=-=-=-=-=-=-=-
 Andrés González.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Tomcat monitoring

2006-08-25 Thread Bruno Georges
Rafael

I forgot to mention that JBoss provides JBoss Operations Network which uses
agent to collect metrics no the machine where you deployed your Tomcat
instance. You can access it via  a web front-end and monitor your
apache/tomcat/jboss instances. There is a lot more they support, I suggest
you look at:
http://www.jboss.com/resources/jbon_demos

There is also JProbe [used to be a sitraka's product], now you can get it
from Quest. It is fairly intrusive.
You also have JProfiler and YourKit.
Most of these support JVMPI and some JVMPI.

Use Java 5, it will provide more hooks for profiling your JVM. [along with
JVMTI support]

Hopes this helps.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   [EMAIL PROTECTED]|
| |   tj.gov.br   |
| |   |
| |   24.08.06 18:40  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: Tomcat monitoring   
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Hi;
I attended to an Oracle IAS event and they presented their Enterprise
Manager 10g, and they showed some great monitoring capabilities. Here I
quote some of them from their document
http://www.oracle.com/technology/products/oem/pdf/wp_aslm_10g.pdf:

The tracing functionality provides an on-demand tool that lets
administrators examine in detail all invocation paths of a transaction,
and isolate the exact tier and location of a problem. All invocation paths
of a transaction are traced and hierarchically broken down by servlet/JSP,
EJB, JDBC/SQL times. Further drill-downs into each component identify
response time breakouts by invocation path. Click-to-SQL drill-downs allow
administrators to navigate down from a transaction view and examine the
underlying SQL statements. (Page 6)

URL processing time and load activity graphs provide administrators with
information on the impact of server activity on response times. (Page 7)

Enterprise Manager provides correlation of CPU utilization, memory, and
I/O usage of all Web application components to help administrators
determine where resources are constrained. (Page 8)


Well, my question is if there is any way to do such (or any) monitoring
with Tomcat 5.5.17. If not, is there any monitoring tool that you guys use
to monitor and troubleshoot Tomcat? Maybe just tomcat/java commands that
shows status/monitoring info. Actually we only graph URL response times
and load keep an eye on the logs.
Any info is welcome.
Thanks a lot.

Rafael Sarres de Almeida
Seção de Gerenciamento de Rede
Superior Tribunal de Justiça
Tel: (61) 3319-9342






LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system

Re: Tool for monitoring Tomcat from the client side

2006-08-25 Thread Bruno Georges
Nagios can also accept Perl based puglins as well as Python, curl or GET
from a .sh script, etc..
Perl has a great set of Modules which allow you to perform all HTTP actions
you can think of.


With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Andrés |
| |   González   |
| |   [EMAIL PROTECTED]|
| |   m  |
| |   |
| |   24.08.06 17:20  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: Tool for monitoring Tomcat from the client side 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Hi.

I'm searching a tool similar to nagios wich allows me do client-side
real testing of my Tomcat webapps. Something that lets me do a HTTP
request say every minute and store the result (OK or FAILED) of each
request.

Nagios seems to be a good choice, but it requires C programming for the
plugins.

Any alternatives for java (or groovy)?

Thanks.

--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: moving to linux

2006-09-11 Thread Bruno Georges
Asensio
I think that there are a lot of think to take into consideration before 
choosing your production platform.
For example, what type of document are you serving (ratio static/dynamic).
What is the usage pattern.
Available bandwith.
SLA.
Concurrent connections.
And so on..

If you want professional support from Tomcat and Linux, I suggest you also have 
a look at JBoss / RedHat offering. They will help you 
configuring/optimizing/tuning your environment.
We already use their support, which I highly recommend.

I hope this will help in yoiur decision.


Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Asensio, Rodrigo [EMAIL PROTECTED]
Sent: 11.09.2006 22:19
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: moving to linux

I read that the only difference between fedora and RH enterprise is
support and serveral packages.
I'm not very familiar with linux, thatz why I decided use fedora right
now. Maybe debian is better, but these days I feel more comfortable with
Fed.

Thanks for the tip.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 11, 2006 4:12 PM
To: Tomcat Users List
Subject: Re: moving to linux

Hello,

if performance is your goal bringing an apache in front won't do you any
good.
Fedora is probably as good as anything else, although i think it's a
workstation distribution. For servers I prefer debian.

regards
Leon

On 9/11/06, Asensio, Rodrigo [EMAIL PROTECTED] wrote:
 Hello, since Tomcat on Windows Server 2003 is not satisfying the 
 expected performance whe are thinking about to move to Linux. Fedora 
 Core 5 more precicesly.

 I would like to know what is the better combination, Tomcat as 
 webserver or Apache with Tomcat as mod to execute java.

 Also, there is the posibility of get a brand new AIX, anyone had that 
 experience before ?

 Thanks
 Rodrigo


 ---
 Rodrigo Asensio
 Fuel Management Services
 Gilbarco Veeder Root
 phone: +1 336 547 5023
 email: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]



 This message (including any attachments) contains confidential and/or 
 proprietary information intended only for the addressee.
 Any unauthorized disclosure, copying, distribution or reliance on the 
 contents of this information is strictly prohibited and may constitute

 a violation of law.  If you are not the intended recipient, please 
 notify the sender immediately by responding to this e-mail, and delete

 the message from your system.  If you have any questions about this 
 e-mail please notify the sender immediately.


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


This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately. 

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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Apache httpd + (internal) Tomcat + virtual hosts

2006-09-19 Thread Bruno Georges

Have a look at  mod- rewrite


Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Carlos A. Carnero Delgado [EMAIL PROTECTED]
Sent: 19.09.2006 15:50
To: users@tomcat.apache.org
Subject: Apache httpd + (internal) Tomcat + virtual hosts

Hello,

I have a Tomcat box (running 5.0.30) for production code. There, our
dev team deploys applications as they finish them, under different
contexts. We want these applications to be available under an Apache
httpd (2.0.55) Internet-facing server, each on a virtual host:

 http://dev.box:8180/app-one/
 http://dev.box:8180/app-two/
 etc.

will be seen as:

 http://www.app-one-domain.com
 http://www.app-two-domain.com
 etc.

Using JK we have had success doing the connection, but the best we've
come up with is:

 http://www.app-one-domain.com/app-one/

Is this thing that we want even possible?

Best regards,
Carlos.

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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Monitoring Tomcat load (4.1.30)

2006-09-25 Thread Bruno Georges
I suggest you have a look at jboss.com.

JBoss offers JBoss Operations Network which collect metrics using agent 
technology.
You can monitor tomcat, apache, jboss as, jca, jms , etc..

 
Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Greg Ward [EMAIL PROTECTED]
Sent: 25.09.2006 18:01
To: users@tomcat.apache.org
Subject: Monitoring Tomcat load (4.1.30)

Hi -- we've recently had problems with Tomcat on one server getting
overloaded and then refusing further requests.  What happens is that
more and more request-processing threads get stuck on some slow
operation (eg. database query, opening a socket to another server),
until eventually Tomcat's thread pool is exhausted and it starts
responding with 503 Service temporarily unavailable.

Now, obviously the *real* fix is to get to the root of things and figure
out why those requests are slow (or blocked, or whatever).  But this
keeps happening for various different reasons, and when it does we get
angry customers on the line wanting to know what the hell happened to
the web server.  (We deploy a suite of related web applications on
dedicated servers to a hundred or so customers; one day a deadlock will
affect customer X, a few weeks later a network outage between servers
will affect customer Y, and so on.)

So I want to implement some sort of automatic load monitoring of Tomcat.
This should give us a rough idea of when things are about to go bad
*before* the customer even finds out about it (never mind picks up the
phone) -- and it's independent of what the underlying cause is.

Ideally, I'd like to know if the number of concurrent requests goes
above X for Y minutes, and raise the alarm if so.  This is across *all*
webapps running in the same container.

I've implemented a vile hack that hits Tomcat's process with SIGQUIT to
trigger a thread dump, then parses the thread dump to look for threads
that the JVM says are runnable.  E.g. this:

  Ajp13Processor[8009][33] daemon prio=1 tid=0x0856a528 nid=0x2263 in 
Object.wait() [99bc4000..99bc487c]

is presumed to be an idle thread (it's waiting on a
org.apache.ajp.tomcat4.Ajp13Processor monitor).  But this:

  Ajp13Processor[8009][28] daemon prio=1 tid=0x0856c6d8 nid=0x2263 runnable 
[99dc7000..99dc887c]

is presumed to be processing a request (it's deep in the bowels of our
JDBC driver, reading from the database server ... which is what most of
our requests seem to spend most of their time doing).

This seems to work and it gives a rough-and-ready snapshot of how busy
Tomcat is at the moment.  If I run it every 60 sec for a while, I get
output like this:

  /var/log/tomcat/thread-dump-20060925_112753.log: 20/34
  /var/log/tomcat/thread-dump-20060925_112858.log: 17/34
  /var/log/tomcat/thread-dump-20060925_113003.log: 20/34
  /var/log/tomcat/thread-dump-20060925_113109.log: 20/34
  /var/log/tomcat/thread-dump-20060925_113214.log: 18/34
  /var/log/tomcat/thread-dump-20060925_113319.log: 21/34

where the first number is the count of runnable Ajp13Processor threads
(ie. concurrent requests) and the second number is the total number of
Ajp13Processors.

I have two concerns about this vile hack:

  * well, it *is* a vile hack -- is there a cleaner way to get this
information out of Tomcat? (keeping in mind that we're running
4.1.30)

  * just how hard on the JVM is it to get a thread dump?  I would
probably decrease the frequency to every 10 min in production,
but even so it makes me a bit nervous.

Thanks --

Greg

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


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: the future of Tomcat... (JEE 5 and Tomcat 6)

2006-10-03 Thread Bruno Georges
Paulo

Did you look at Seam http://www.jboss.com/products/seam ?

JBoss Seam is a powerful new application framework to build next
generation Web 2.0 applications by unifying and integrating popular service
oriented architecture (SOA) technologies like Asynchronous JavaScript and
XML(AJAX), Java Server Faces(JSF), Enterprise Java Beans(EJB3), Java
Portlets and Business Process Management(BPM) and workflow.
...

Seam applications can be deployed on Tomcat.
[http://labs.jboss.com/portal/jbossseam/faq]

Q: Can I run Seam outside of JBoss AS?


A: Yes, you can run Seam applications in plain Tomcat 5.5+ or in the Sun
GlassFish application server. To run Seam application in Tomcat, you need a
number of additional library files and a few configuration files to
bootstrap the JBoss EJB3 inside Tomcat. Please refer to the tomcat ANT
build target for the Seam booking example (in the examples/booking
directory of the Seam distribution) for more on how to build a Tomcat WAR
for Seam applications. Refer to this blog post on how to run Seam in Sun's
Glassfish application server.



Hope this helps.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Paulo Alvim   |
| |   [EMAIL PROTECTED]|
| |   c.com.br   |
| |   |
| |   03.10.06 13:11  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  users@tomcat.apache.org   
 |
  |cc:  
 |
  |Subject: the future of Tomcat... (JEE 5 and Tomcat 6)
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Hi!

We're heavy TC 5.x users with lots of sucessfull production cases in Brazil
using Hibernate, Struts and others OSS (after bad EJB 2.x experiences like
many companies)...

But now with EJB 3.0 and JSF 1.2 - and lots of improvements in the JEE
specification - we'll have to migrate to a JEE 5 environment.

Our questions are:

Will Tomcat 6.0 really support JSF 1.2 and JSP 2.1? If so, is there any
date?

We know that Sun is promoting Glassfish also as servlet/jsp reference and
that Craig McClanahan is also commited with that... what can we expected
from Tomcat after this definition? (We'd like to be able to work with both,
since we can already get EJB3 detached 'containers'... and we have many
customers with TC 5.x in production!)

Since Tomcat is a very sucessfull Apache OSS project with lots of strategic
interests around it, these information would be very helpfull for lots of
companies like us.

Thank you in advance!

Paulo Alvim
Powerlogic


--
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.


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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying

Re: RHEL4 with App Server 3 and the missing tomcat5 manager

2006-10-16 Thread Bruno Georges
Hi John

RH is now offering an application stack which bundles: JBoss AS [incl
tomcat] , Apache, LAMP,...
I haven't installed it, therefore I don't know if they have shipped it with
Tomcat's manager front-end.

I suggets you have a look at their page:
http://www.redhat.com/solutions/rhappstack/

And ask their support staff.

Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   John McCoy  |
| |   [EMAIL PROTECTED]|
| |   |
| |   17.10.06 00:49  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: RHEL4 with App Server 3  and the missing tomcat5 manager
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Ok Sys Admin here working for my developers, last time I worked with
Tomcat it was version 1.

My developer asked me to install Manager referring me to this link:
http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html

Ok seems reasonable, however I can find no RPMs from Redhat for it.
I'm googled out and searched the archives for this list too.
Am I blind or just stupid? Ok don't answer the second part.

TIA
John

[EMAIL PROTECTED] tomcat5]# rpm -qa | grep tomcat
tomcat5-servlet-2.4-api-5.5.17-6jpp_2rh
tomcat5-server-lib-5.5.17-6jpp_2rh
tomcat5-common-lib-5.5.17-6jpp_2rh
tomcat5-jsp-2.0-api-5.5.17-6jpp_2rh
tomcat5-jasper-5.5.17-6jpp_2rh
tomcat5-5.5.17-6jpp_2rh

--
*
John McCoy, Jr
Sr. Systems and Network Administrator
Enterprise Technology Services
Golden Gate University
415-442-6560
*


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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.

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