Objects using thread on Start/Stop of Tomcat

2004-04-07 Thread Namasivayam, Sudhakar (Cognizant)
hi all,
I have a Thread mgr which will create a thread. No if i Start and Stop the 
Tomcat, The older mgr object seems to be still in the JVM and this causes a problem 
because a new mgr is created and i have two copies of threads running simultaneously.. 
  Can any one tell me whether all objects will be destroyed if i do start and stop 
of tomcat? Should i do anything in the  Context Destroyed method od context listener?  
The older object is null in the context destroyed but the thread seems to be alive?

Configuration : Linux + tomcat 4.0.4 + JDK 1.4


thanks in advance
sudhakar
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

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

RE: Tomcat returning absolute http:// URL behind SSL Proxy instead of keeping https://

2004-04-07 Thread Benjamin Armintor
If you're using the JK connector, you can configure this with the scheme attribute of 
the connector in your server.xml.  If you're using an HTTP connector, you're in a bit 
of a bind, as far as I know.  When we did this, I cloned and modified the 
CoyoteConnector class to support a proxyScheme attribute.  It worked, but the other 
implications of the http proxy were enough to get us to run AJP/JK.  Now, if only 
someone would write an NSAPI module for JK2...

- Ben


-Original Message-
From:   Fletcher Cocquyt [mailto:[EMAIL PROTECTED]
Sent:   Wed 4/7/2004 8:51 PM
To: [EMAIL PROTECTED]
Cc: 
Subject:Tomcat returning absolute http:// URL behind SSL Proxy instead of 
keeping https://
Hi,
We have the classic 3 tiered webapp architecture with BigIP
loadbalancers acting as SSL Proxies - such that requests for the webapp:
 
https://server/jkmount/
 
1)   Come into the BigIP - the BigIP Proxies the HTTPS and sends the
same request to the Apache servers on port 80
2)   Apache sees the URI with a matching jkmount and sends the
request to the Tomcat worker
3)   PROBLEM: tomcat constructs the absolute URL to return based on
the assumption its port 80 and returns the insecure
http://server/jkmount/index.jsp
 
Found some relevant docs here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/proxy-howto.html
 
But its unclear how to get tomcat to keep the https:// instead of
returning the absolute http:// 
 
Apache 2.0.48
Tomcat 4.1.30
 
Thanks for any tips!
 
Fletcher Cocquyt
Senior Systems Administrator
[EMAIL PROTECTED]
 




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

Re: Inter Servlet Communication

2004-04-07 Thread QM
On Wed, Apr 07, 2004 at 11:47:50PM +0100, Gareth Western wrote:
: Can someone fill me in as to what I need to do to make objects that are 
: instanstiated in one servlet available to another servlet? I tried using  
: getServletContext().setAttribute("some.name", myObj) however I was unable 
: to retrieve the object in the other servlet. 

Silly question 1:
is "myObj" null in the servlet that calls setAttribute()?
(have to ask)

Silly question 2:
single Tomcat install, or clustered? i.e. are getAttribute()
and setAttribute() being called from the same host, same
webapp?

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: dedicated Tomcat instances

2004-04-07 Thread QM
On Thu, Apr 08, 2004 at 01:41:59AM +0200, wsedio wrote:
: What is the best way to give dedicated Tomcat instances and accomplish 
: the above aims?

I forget the URL, so search the archives and/or Tomcat docs for
"CATALINA_BASE"... There's a doc on doing just this. YMMV but it's
been nothing but wonderful for me. ;)


: How many resources (CPU/memory) does each Tomcat instace require 
: approximately?

As much as they need (CPU) and are given (mem).

You can (sort of) cap the mem by setting JVM heap sizes with -Xmx etc.
I believe the default max heap size is 64m (?128m?).

CPU is a little tougher to restrict.  It's more a game of "spot the
resource hog" and then "use the profiler."

I've found "top" and "ps" great at pinpointing the hogs in large-scale
environments. ;)


-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Kwan, Kenneth Y
Instead of directly redirect to mod_jk, can you just use mod_write to
"insert" a directory prefix which can trigger mod_jk?

Kenneth 
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:28 AM
To: Tomcat Users List
Subject: Apache http / mod_rewrite / mod_jk


All,
The archives show this questions being asked all the time, but with no 
useful responses. Please let me know if this is a known unresolved or 
unresolvable issue.

All solutions posted anywhere for "jsessionid makes Apache go beaindead" 
apparently use a mod_rewrite incantation similar to the following:

   
   RewriteEngine on
   # Force URLs with a jsessionid to go to Tomcat. Necessary because
   # Apache doesn't recognise that the semi-colon is special.
   RewriteRule   ^(/.*;jsessionid=.*)$   $1 [T=jserv-servlet]
   

While I'm sure this worked out great the people using mod_jserv back in 
1997, it does not work for mod_jk. For one thing, it does not even let 
you specify which worker to use :(

Back in the day, Craig responded by pointing to a Tomcat FAQ entry which 
no longer exists, but presumably had something to do with Apache's 
mod_rewrite.

On the other hand, a solution was posted (and confirmed by some readers) 
that the following works:

JkMount /test/*;jsessionid=* ajp13

This seems very obvious, and there's a caveat about how it might not 
work on "older" versions of mod_jk. It apparently does not work for me. 
I'm using mod_jk (not mod_jk2), version 1.2.5 (current release) on 
Apache 2.0.48 as a dynamic module on Linux -- everything compiled myself 
with nothing out of the ordinary.

Can anyone offer any advice? I've just been sucking it up and ignoring 
this problem for a while, now (years). Is there actually a solution out 
there for this? Am I just mistyping the JkMount configuration?

Anyone, please help.

Thanks,
-chris

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


Tomcat returning absolute http:// URL behind SSL Proxy instead of keeping https://

2004-04-07 Thread Fletcher Cocquyt
Hi,
We have the classic 3 tiered webapp architecture with BigIP
loadbalancers acting as SSL Proxies - such that requests for the webapp:
 
https://server/jkmount/
 
1)   Come into the BigIP - the BigIP Proxies the HTTPS and sends the
same request to the Apache servers on port 80
2)   Apache sees the URI with a matching jkmount and sends the
request to the Tomcat worker
3)   PROBLEM: tomcat constructs the absolute URL to return based on
the assumption its port 80 and returns the insecure
http://server/jkmount/index.jsp
 
Found some relevant docs here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/proxy-howto.html
 
But its unclear how to get tomcat to keep the https:// instead of
returning the absolute http:// 
 
Apache 2.0.48
Tomcat 4.1.30
 
Thanks for any tips!
 
Fletcher Cocquyt
Senior Systems Administrator
[EMAIL PROTECTED]
 


RE: Tomcat 5 out of memory

2004-04-07 Thread Angelov, Rossen
That sounds like a reasonable explanation.

Then, the only solution I can see is to set the development environment not
a virtual server per developer but a Tomcat instance per person and if the
OutOfMemory error happens again, restarting that Tomcat instance won't
interfere with the rest of the developers' work.

Do you by any chance have a link to that discussion you mentioned?
I searched the archive and found some opinions, the closest was this one
"...common classloader repositories (as well as shared and server) do not
get discarded on webapp reload.  They can't, as that might destroy other
webapps."

This probably raises the question in what cases the reload should be used.

Thanks,
Ross

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 7:54 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 out of memory


Ross,

If my memory serves me right (which is rarely) there was a discussion on the
list about this. I believe the comment was that during reloads there are
references to objects that don't get released when a context is undeployed.
The memory is lost until a restart. In production this should not be an
issue because of the infrequent occurrence of redeploys.

Doug
www.parsonstechnical.com

- Original Message - 
From: "Angelov, Rossen" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 7:13 PM
Subject: RE: Tomcat 5 out of memory


> I don't understand why rebuilding the cache would take more memory than
what
> was originally required. It just doesn't sound right or it is a memory
leak
> when you use the stop/start or reload options.
>
> Giving a higher priority to this process is not a very good option because
> in our case it is a development UNIX server and there are database and
other
> peoples' processes running.
>
> Increasing the memory heap size will just slow down the occurrence of that
> OutOfMemory error instead of preventing it. I'm actually looking for a
long
> term solution because it may be critical whether to use tomcat for
> production and live web servers.
>
> Thanks,
> Ross
>
> -Original Message-
> From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 5:29 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 out of memory
>
>
> rebuilding the cache, I would imagine. I'm not sure how you would reduce
> it though, it's "a good thing"(tm) -- really, it's reducing the memory
> usage by 2-3MB once the cache is rebuilt.
>
> This is just an (somewhat) educated guess, though. I suppose you could
> give it a higher priority so it could speed it up, and take up more
> resources, for a shorter period of time, or alternately, throw some
> hardware at it, and add some more memory.
>
> On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote:
> > Hi,
> >
> > We are having problems with Tomcat when restarting the virtual servers
or
> > the contexts - the memory usage goes up with about 2-3 MB per restart.
> > We have the following java options when starting Catalina:
> > -Xms128m -Xmx256m -verbose:gc
> >
> > Does anybody know what's causing such a behavior and how it can be
> limited?
> >
> > Thanks,
> > Ross
> >
> > "This communication is intended solely for the addressee and is
> > confidential and not for third party unauthorized distribution."
> -- 
> +---+
> | Nicholas Bernstein| [EMAIL PROTECTED] |
> | UNIX Systems Administrator| http://www.docmagic.com   |
> | Document Systems Inc. |  |
> | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3 |
> +---+
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> "This communication is intended solely for the addressee and is
> confidential and not for third party unauthorized distribution."
>
>



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


"This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."



Re: Tomcat (4.1) doesn't answer

2004-04-07 Thread Parsons Technical Services
Gianni,

Try using the IP. If you can get to it with an IP then your issue is with
the DNS otherwise you have an issue with your network.

What OS are you running?
What error number are you getting?


Doug
www.paarsonstechnical.com


- Original Message - 
From: "Gianni Pucciani" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 5:50 PM
Subject: Tomcat (4.1) doesn't answer


> Hi all,
> I've installed Tomcat 4.1 and it runs well when I browse
> http://localhost:8080.
> With my firewall port open, when I call http://myhost.mydomain.com:8080
> I receive connection refused. I use a dinamic dns, that run correctly.
> When scan my 8080 port with a port scanning (grc.com) the port is open.
> Could anyone give me some advice?
> Thanks
>
> Gianni
>
> -
> 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]



Auto Responder / Auto Annoyer

2004-04-07 Thread Parsons Technical Services
Does anyone else have the pleasure of recieving this as a direct response to
sending emails to the list?

Can we have the offender remove, pleeeaassseee?

When you can get to it.

Thanks

Doug

PS Didn't see any recent post on this but then again you know what they say
about it "If it was a snake..."

Status:  U
Return-Path: <[EMAIL PROTECTED]>
Received: from natgoatfounder.rzone.de ([81.169.145.160])
 by mamo (EarthLink SMTP Server) with ESMTP id 1bbnOs1ip3NZFk70
 for <[EMAIL PROTECTED]>; Wed, 7 Apr 2004 17:54:35 -0700 (PDT)
Received: (from [EMAIL PROTECTED])
 by post.webmailer.de (8.12.10/8.12.10) id i380sX6u025557;
 Thu, 8 Apr 2004 02:54:33 +0200 (MEST)
Date: Thu, 8 Apr 2004 02:54:33 +0200 (MEST)
Message-Id: <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 5 out of memory
Precedence: junk

Das von Ihnen gewählte E-Mail-Postfach ist ungültig. Ihre Email wurde nicht
an den Empfänger weitergeleitet. Für Rückfragen kontaktieren Sie bitte

The email-address you choose does not exist.
The recipient did not receive your email. For more information please
contact

SCI Verkehr GmbH
Hardefuststr. 11 - 13
50677 Köln / Cologne
Germany
Tel. +49 (0) 221 93178 0



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



Re: Tomcat 5 out of memory

2004-04-07 Thread Parsons Technical Services
Ross,

If my memory serves me right (which is rarely) there was a discussion on the
list about this. I believe the comment was that during reloads there are
references to objects that don't get released when a context is undeployed.
The memory is lost until a restart. In production this should not be an
issue because of the infrequent occurrence of redeploys.

Doug
www.parsonstechnical.com

- Original Message - 
From: "Angelov, Rossen" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 7:13 PM
Subject: RE: Tomcat 5 out of memory


> I don't understand why rebuilding the cache would take more memory than
what
> was originally required. It just doesn't sound right or it is a memory
leak
> when you use the stop/start or reload options.
>
> Giving a higher priority to this process is not a very good option because
> in our case it is a development UNIX server and there are database and
other
> peoples' processes running.
>
> Increasing the memory heap size will just slow down the occurrence of that
> OutOfMemory error instead of preventing it. I'm actually looking for a
long
> term solution because it may be critical whether to use tomcat for
> production and live web servers.
>
> Thanks,
> Ross
>
> -Original Message-
> From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 5:29 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 out of memory
>
>
> rebuilding the cache, I would imagine. I'm not sure how you would reduce
> it though, it's "a good thing"(tm) -- really, it's reducing the memory
> usage by 2-3MB once the cache is rebuilt.
>
> This is just an (somewhat) educated guess, though. I suppose you could
> give it a higher priority so it could speed it up, and take up more
> resources, for a shorter period of time, or alternately, throw some
> hardware at it, and add some more memory.
>
> On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote:
> > Hi,
> >
> > We are having problems with Tomcat when restarting the virtual servers
or
> > the contexts - the memory usage goes up with about 2-3 MB per restart.
> > We have the following java options when starting Catalina:
> > -Xms128m -Xmx256m -verbose:gc
> >
> > Does anybody know what's causing such a behavior and how it can be
> limited?
> >
> > Thanks,
> > Ross
> >
> > "This communication is intended solely for the addressee and is
> > confidential and not for third party unauthorized distribution."
> -- 
> +---+
> | Nicholas Bernstein| [EMAIL PROTECTED] |
> | UNIX Systems Administrator| http://www.docmagic.com   |
> | Document Systems Inc. |  |
> | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3 |
> +---+
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> "This communication is intended solely for the addressee and is
> confidential and not for third party unauthorized distribution."
>
>



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



dedicated Tomcat instances

2004-04-07 Thread wsedio
Hi,
I've an hosting server running Red Hat Enterprise Linux 3 ES. and I am 
planning to install Tomcat 4.1.x on it, I am pretty new to Tomcat.

I would like to give dedicated Tomcat instances to some clients.
That way, if an instance crashes, the problem shouldn't affect other 
clients web sites.

The dedicated Tomcat instances should also improve security, by keeping 
each customer's applications separated from others clients.

What is the best way to give dedicated Tomcat instances and accomplish 
the above aims?

How many resources (CPU/memory) does each Tomcat instace require 
approximately?

Thanks!

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


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Bill Bruns
Allen, thanks for pointing me at mod_jk.  It works better than proxy or
rewrite!
I've implemented it here now on Apache 2.0 (under WinXP) connected to Tomcat
4.1.24 (Solaris).
with mod_jk 1.2.5.  Works great!  In case it helps, I'll attach my config
files:

Tomcat's server.xml:
-


workers.properties:
---
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=192.168.1.62
worker.worker1.port=8113
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

Apache httpd.conf:
--
#
# Entries for connection to Tomcat
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module modules/mod_jk.dll
# Declare the module for 
#AddModule mod_jk2.c
# Where to find workers.properties
# Update this path to match your conf directory location (put
workers.properties next to httpd.conf)
JkWorkersFile "C:\Program Files\Apache
Group\Apache2\conf\workers.properties"
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log
next to access_log)
#JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
#JkLogLevel info
# Select the log format
#JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
#JkRequestLogFormat "%w %V %T"
# Send everything for context /examples to worker named worker1 (ajp13)
JkMount /fitmesite/* worker1
jkMount /soap/* worker1
#
# end of Tomcat connection info



-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 1:19 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


Hi.

Can you post the relevant parts of your httpd.conf file?  Also, I missed
this in the thread if it was mentioned, but what version of Apache are
you working with?  I ask, because it looks like from my setup that
Apache ditched the AddModule directive in Apache 2.0.xx.

LoadModule needs to be in your httpd.conf file before the AddModule
directive under Apache 1.3.x as in:

# All the other LoadModule directive here.
LoadModule jk_module  modules/mod_jk.so

# Further down, all the AddModule directives here
AddModule mod_jk.c

It'd be helpful to see the JkWorkersFile directive, JkMount directive,
and the contents of the jk workers file.

--David

Just tack it on to the end of the list of LoadModule directives.  Then
use AddModule at the end of the list of AddModule directives.

Wilson, Allen wrote:

>I think I may have found the problem
>
>I tried to add the line AddModule mod_jk.c in the HTTP server config and
>it gave an error. I could not locate the file within my HTTP or Tomcat
>installation.even though I have the mod_jk.so file in the libexec
>directory.
>
>
>
>-Original Message-
>From: Jon Wingfield [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 2:35 PM
>To: Tomcat Users List
>Subject: Re: Connecting the HTTP Server and Tomcat
>
>
>Assuming the connector is working, what effect does adding an additional
>
>mapping of
>
>/portalajp13
>
>to your existing
>
>/portal/*  ajp13
>
>mapping have?
>
>I just double-checked on our dev box where jk is definitely up. I got a
>404 from apache for / but //stuff got routed through
>to tomcat.
>
>Jon
>
>Wilson, Allen wrote:
>
>
>
>>No you are not way off...at least not from my point of view because
>>
>>
>that
>
>
>>is what I thought would work. But unless I specify the port
>>(http://myserver.com:8080/portal) it will not get there...
>>
>>It makes me think that the connector is not function correctly but I
>>
>>
>do
>
>
>>not know how to tell..when I check the running ports I see the 8009
>>
>>
>port
>
>
>>running but it does not hand to Tomcat
>>
>>-Original Message-
>>From: Jon Wingfield [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, April 07, 2004 2:09 PM
>>To: Tomcat Users List
>>Subject: Re: Connecting the HTTP Server and Tomcat
>>
>>
>>I may be way off but...
>>I don't think
>>http://myserver.com/portal
>>maps to
>>/portal/* ajp13
>>
>>http://myserver.com/portal/
>>or
>>http://myserver.com/portal/whatever.jsp
>>probably will, though.
>>
>>Give it a go, may work,
>>
>>Jon
>>
>>Wilson, Allen wrote:
>>
>>
>>
>>
>>>Bill..thanks for the reply...
>>>
>>>I will read through the link you provide but isn't that what the
>>>connector is supposed to do.
>>>
>>>My understanding what that the Apache HTTP server would detect what
>>>
>>>
>>the
>>
>>
>>
>>>request was (Java or not) and pass it on to Tomcat.
>>>Is this not what the specification of /portal/* ajp13 in the
>>>configuration does.
>>>
>>>This is what

RE: Tomcat 5 out of memory

2004-04-07 Thread Angelov, Rossen
I don't understand why rebuilding the cache would take more memory than what
was originally required. It just doesn't sound right or it is a memory leak
when you use the stop/start or reload options.

Giving a higher priority to this process is not a very good option because
in our case it is a development UNIX server and there are database and other
peoples' processes running.

Increasing the memory heap size will just slow down the occurrence of that
OutOfMemory error instead of preventing it. I'm actually looking for a long
term solution because it may be critical whether to use tomcat for
production and live web servers.

Thanks,
Ross

-Original Message-
From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 5:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 out of memory


rebuilding the cache, I would imagine. I'm not sure how you would reduce
it though, it's "a good thing"(tm) -- really, it's reducing the memory
usage by 2-3MB once the cache is rebuilt. 

This is just an (somewhat) educated guess, though. I suppose you could
give it a higher priority so it could speed it up, and take up more
resources, for a shorter period of time, or alternately, throw some
hardware at it, and add some more memory. 

On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote:
> Hi,
> 
> We are having problems with Tomcat when restarting the virtual servers or
> the contexts - the memory usage goes up with about 2-3 MB per restart.
> We have the following java options when starting Catalina:
> -Xms128m -Xmx256m -verbose:gc
> 
> Does anybody know what's causing such a behavior and how it can be
limited?
> 
> Thanks,
> Ross
> 
> "This communication is intended solely for the addressee and is
> confidential and not for third party unauthorized distribution."
-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


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


"This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."



Re: Cross-site scripting vulnerability

2004-04-07 Thread Rui Lopes
Shapira, Yoav wrote:

Howdy,
Fixed in the latest stable releases, upgrade and test for yourself.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Rui Lopes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 11:05 AM
To: [EMAIL PROTECTED]
Subject: Cross-site scripting vulnerability
Hi,

Running the Nikto security tool on Tomcat 4.1 produces a warning that
   

it
 

is vulnerable to cross-site scripting attacks.  This is the URL it
   

gives
 

https://:443/666%0a%0aalert('Vulnerable');666.jsp
I edited the the server IP above.  I found a reference to this at

http://archives.neohapsis.com/archives/vuln-dev/2002-q3/0482.html

but no solution was provided.  Does anybody know anything more about
this, especially how to fix it?
I am using Tomcat 4.1.24

   

 

Thanks, I downloaded it and indeed it does work.  Can anyone tell me 
what was done to fix it (ie. can you point me to a bug tracking 
number).  I couldn't find one when I looked on Jakarta's bug database, 
but maybe I was looking in the wrong place or using the wrong search term.

Rui.

--
(c) Copyright 2004 Verano Inc. owns copyright content of this document and all attachments 
unless otherwise indicated. All rights reserved. Users of Verano Inc. software and tools 
associated with the software such as sales & marketing collateral, presentations, user 
manuals, training documentation etc. may not republish nor reproduce in whole or in part 
the information, in any form or by any means, in any manner whatsoever without the prior 
written permission of Verano Inc., and any such unauthorized use constitutes copyright 
infringement. An acknowledgement of the source must be included whenever Verano Inc. 
material is copied or published. If you require further information on a permitted use or 
license to reproduce or republish any material, address your inquiry to Verano Inc.Suite 
120, 575 West Street, Mansfield, Massachusetts, 02048-1164. Any infringement of Verano 
Inc. rights  will result in appropriate legal action. Verano Inc. disclaims any and all 
liability for any consequences which may result from any unauthorized reproduction or use 
of this Work whatsoever.


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


Inter Servlet Communication

2004-04-07 Thread Gareth Western
Hi,
Can someone fill me in as to what I need to do to make objects that are instanstiated in one servlet available to another servlet? I tried using  getServletContext().setAttribute("some.name", myObj) however I was unable to retrieve the object in the other servlet. 

I notice there are some 'public' ServletContext attributes such as

org.apache.catalina.jsp_classpath
javax.servlet.context.tempdir
org.apache.catalina.resources
org.apache.catalina.WELCOME_FILES
So where/how does Tomcat define these?

Even just general help on dealing with context is appreciated. Many thanks for any and all help,

~Gareth

PS Running Tomcat 5.0.18. If any other particulars would help then let me know. Thanks!

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


Re: Tomcat 5 out of memory

2004-04-07 Thread Nicholas Bernstein
rebuilding the cache, I would imagine. I'm not sure how you would reduce
it though, it's "a good thing"(tm) -- really, it's reducing the memory
usage by 2-3MB once the cache is rebuilt. 

This is just an (somewhat) educated guess, though. I suppose you could
give it a higher priority so it could speed it up, and take up more
resources, for a shorter period of time, or alternately, throw some
hardware at it, and add some more memory. 

On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote:
> Hi,
> 
> We are having problems with Tomcat when restarting the virtual servers or
> the contexts - the memory usage goes up with about 2-3 MB per restart.
> We have the following java options when starting Catalina:
> -Xms128m -Xmx256m -verbose:gc
> 
> Does anybody know what's causing such a behavior and how it can be limited?
> 
> Thanks,
> Ross
> 
> "This communication is intended solely for the addressee and is
> confidential and not for third party unauthorized distribution."
-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


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



Tomcat 5 out of memory

2004-04-07 Thread Angelov, Rossen
Hi,

We are having problems with Tomcat when restarting the virtual servers or
the contexts - the memory usage goes up with about 2-3 MB per restart.
We have the following java options when starting Catalina:
-Xms128m -Xmx256m -verbose:gc

Does anybody know what's causing such a behavior and how it can be limited?

Thanks,
Ross


"This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."



RE: [OT] getBlob() error in Tomcat

2004-04-07 Thread Kumar Abhay-CAK203C
Hi 

I am using weblog.jar file as suggested by somebody in a forum, 
Can somebody tell me why I am getting Class Cast Error on RUNTIME? I am able to 
compile the code.

SerialOracleBlob cast1 =(SerialOracleBlob)result.getTheRealBlob("FILE_IMAGE"); // 
ERROR IS COMING on runtime
OracleTBlobImpl cast2 =(OracleTBlobImpl)cast1.getTheRealBlob();
myBlob = (oracle.sql.BLOB)cast2.getTheRealBlob();


ERROR:
java.lang.ClassCastException
at 
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(FileDisplayServlet.java:174)
at 
com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.action(FileDisplayServlet.java:90)

SerialOracleBlob.java is attached.

Best Regards
Abhay Kumar

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 7:06 PM
To: Tomcat Users List
Subject: Re: [OT] getBlob() error in Tomcat


Hi,

You can determine the actual Class of 'result' by doing:

String className = result.getClass().getName();

HTH,
Robert


Kumar Abhay-CAK203C wrote:

>Still not working
>
>I am using
>myBlob = ((OracleResultSet)result).getBLOB(1);
>
>It is giving Class Cast Exception
>
>Best Regards
>Abhay Kumar
>
>-Original Message-
>From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 2:35 PM
>To: Tomcat Users List
>Subject: RE: [OT] getBlob() error in Tomcat
>
>
>Unjar the classes12.jar file and look for it.
>There should be some ResultSet class in there.
>
>The jdbc class that come with Java do not implement the getBLOB method, 
>hence the abstract violation. The Oracle driver in the case has the 
>implemented method, of course you are now tied to Oracle in your code.
>
>-Original Message-
>From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 12:15 PM
>To: 'Tomcat Users List'
>Subject: RE: [OT] getBlob() error in Tomcat
>Importance: High
>
>
>Thanks for the suggestions,
>
>My question is how I can check that both the versions are same, I have 
>classes12.jar in common/lib and that is set in system classpath.
>How to find the OracleResultSEt class to cast result?
>
>Best Regards
>Abhay Kumar
>
>-Original Message-
>From: Mike Curwen [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 1:59 PM
>To: 'Tomcat Users List'
>Subject: RE: [OT] getBlob() error in Tomcat
>
>
>The javadoc for that error suggests:
>"this error can only occur at run time if the definition of some class 
>has incompatibly changed since the currently executing method was last compiled."
> 
>So is the version of classes12.jar that you used to compile the code, 
>the exact same version that is being used to run it ?
> 
>As for casting..
>
>OracleResultSetClass foo = (OracleResultSetClass)result;
>
>obviously, you'd need to replace 'OracleResultSetClass' with the actual 
>name of the class.
>
>
>  
>
>>-Original Message-
>>From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 1:43 PM
>>To: 'Tomcat Users List'
>>Subject: RE: [OT] getBlob() error in Tomcat
>>Importance: High
>>
>>
>>I will appreciate you if you can tell me how ?
>>
>>Best Regards
>>Abhay Kumar
>>
>>-Original Message-
>>From: Summers, Bert W. [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 1:05 PM
>>To: Tomcat Users List
>>Subject: RE: [OT] getBlob() error in Tomcat
>>
>>
>>You need to cast the ResultSet to the Oracle specify ResultSet
>>
>>-Original Message-
>>From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 11:01 AM
>>To: Tomcat Users List
>>Subject: [OT] getBlob() error in Tomcat
>>Importance: High
>>
>>
>>Hi,
>>
>>Any idea why this error is coming in runtime?
>>
>>Servlet) - FileDisplayServlet.doPost()
>>java.lang.AbstractMethodError: 
>>oracle.jdbc.driver.OracleResultSetImpl.getBlob(Ljava/lang/Stri
>>ng;)Ljava/sql/
>>Blob;
>>at 
>>org.apache.commons.dbcp.DelegatingResultSet.getBlob(Delegating
>>ResultSet.java
>>:318)
>>at
>>com.mot.iDEN.webapp.oes.servlet.FileDisplayServlet.readBlob(Fi
>>leDisplayServl
>>et.java:169)
>>
>>I am trying to display a image that is stored in a BLOB field in 
>>Oracle. I am using connection pooling and classes12.jar
>>
>>Servlet Code
>>--
>>--
>>--
>>--
>>
>>  private void readBlob
>>  (
>>  HttpServletRequest request,
>>  HttpServletResponse response,
>>  long aFeatureId,
>>  String aFileName,
>>  String aUserId
>>  )
>>  throws SQLException,IOException
>>  {
>>  Connection conn = null;
>>  ResultSet result = null;
>>  PreparedStatement prepStmt = null;
>>

Tomcat (4.1) doesn't answer

2004-04-07 Thread Gianni Pucciani
Hi all,
I've installed Tomcat 4.1 and it runs well when I browse 
http://localhost:8080.
With my firewall port open, when I call http://myhost.mydomain.com:8080 
I receive connection refused. I use a dinamic dns, that run correctly. 
When scan my 8080 port with a port scanning (grc.com) the port is open.
Could anyone give me some advice?
Thanks

Gianni

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


Re: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Tim Funk
You can try to use ExtendedAccessLogValve. It parses the pattern on 
initialization and uses and array and switch statement to determine what to 
print. (In the hope that it would be faster)

OTOH - the problem could be the writing of log data to disk.

-Tim

Dan Barron wrote:
Certainly one understands the costs of adding processing in the 
pipeline, but AccessLogValve seems to come with a large price to 
performance even with DNS lookups turned off and minimal fields being 
saved in the output.  We have turned it off for now and tomcat 
performance is significantly improved.

Any other methods to get access logs out of Tomcat w/o using 
AccessLogValve?  I suppose I could write my own, but would prefer a 
known solution.

Dan Barron
Destination Software LLC
[EMAIL PROTECTED]
At 05:57 AM 4/7/2004, Shapira, Yoav wrote:

Hi,
How can you expect the addition of ANY component to the processing
pipeline NOT to cause a performance hit?  Of course AccessLogValve adds
something, nothing comes for free.  You can control the hit by modifying
what you're logging and disabling DNS lookups, as others have suggested.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Dan Barron [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 2:09 AM
>To: Tomcat Users List
>Cc: Dan Anderson
>Subject: Can AccessLogValve Cause Tomcat Performance Hit?
>
>Hello,
>
>We are seeing a performance hit to our server whenever we turn on
>AccessLogValve for a virtual host in tomcat. Is this common or has
anyone
>else experienced this?  Any suggestions on how to configure for optimal
>performance?
>
>Below is the virtual host entry in server.xml - tomcat is running stand
>alone on a Red Hat 9 Linux box - the box is dedicated to running tomcat
-
>there are two virtual hosts configured for the server, and only one has
any
>real traffic.
>
>   unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>  
>  directory="logs"  prefix="mysite.net." suffix=".txt"
>   timestamp="true"/>
> directory="logs/mysite.net-acesslogs"
>  pattern="%t %a %A %h %m %p %U"
>  prefix="access_log." suffix=".txt"
> timestamp="true"/>
>   
>   
>
>Thanks in advance!
>
>Dan Barron
>[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]

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


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread SH Solutions
Hi

Currently I use
  catalina.sh start | stop
to control tomcat 4.1.x and 5.0.x running as root.

Can I change it easily to use commons-daemon (running as non-root)?
A lot of command line options are set in catalina.sh. Would I need to do
this manually ?

Regards,
  Steffen


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



RE: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Dan Barron
Certainly one understands the costs of adding processing in the pipeline, 
but AccessLogValve seems to come with a large price to performance even 
with DNS lookups turned off and minimal fields being saved in the 
output.  We have turned it off for now and tomcat performance is 
significantly improved.

Any other methods to get access logs out of Tomcat w/o using 
AccessLogValve?  I suppose I could write my own, but would prefer a known 
solution.

Dan Barron
Destination Software LLC
[EMAIL PROTECTED]
At 05:57 AM 4/7/2004, Shapira, Yoav wrote:

Hi,
How can you expect the addition of ANY component to the processing
pipeline NOT to cause a performance hit?  Of course AccessLogValve adds
something, nothing comes for free.  You can control the hit by modifying
what you're logging and disabling DNS lookups, as others have suggested.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Dan Barron [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 2:09 AM
>To: Tomcat Users List
>Cc: Dan Anderson
>Subject: Can AccessLogValve Cause Tomcat Performance Hit?
>
>Hello,
>
>We are seeing a performance hit to our server whenever we turn on
>AccessLogValve for a virtual host in tomcat. Is this common or has
anyone
>else experienced this?  Any suggestions on how to configure for optimal
>performance?
>
>Below is the virtual host entry in server.xml - tomcat is running stand
>alone on a Red Hat 9 Linux box - the box is dedicated to running tomcat
-
>there are two virtual hosts configured for the server, and only one has
any
>real traffic.
>
>   unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>  
>  directory="logs"  prefix="mysite.net." suffix=".txt"
>   timestamp="true"/>
> directory="logs/mysite.net-acesslogs"
>  pattern="%t %a %A %h %m %p %U"
>  prefix="access_log." suffix=".txt"
> timestamp="true"/>
>   
>   
>
>Thanks in advance!
>
>Dan Barron
>[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]


Getting basic Logging up and running

2004-04-07 Thread Jason Palmatier
Hi,

   I've been trying to get basic logging up and
running so I can diagnose an SSL connection problem. 
I've searched the archive and google for a full day
and picked up bits and pieces, which I cobbled
together, but still can't seem to get any more output
then the initial startup (i.e. output up to and
including the "INFO: Server startup in xx ms" in
catalina.out) message.  I'm using tomcat 5.0.19 and
running on an iSeries at v5r2.  Here are the changes
I've made so far:

In server.xml I added:
- debug="10" wherever debug="0" appears in the file
- verbosityLevel="4" wherever a Logger or Valve tag is
defined
- Otherwise server.xml is just the default with an
HTTPS connector uncommented and spiffed up with
keystore and keypassword attributes.

In catalina.sh (it runs as if on Unix when run on an
iSeries) I added -Djavax.net.debug=ssl to JAVA_OPTS.

Here's what my Global Logger tag looks like in
server.xml:

 


I get a catalina_out..txt file but it only
contains 

2004-04-07 21:23:56 EngineConfig: EngineConfig:
Processing START
2004-04-07 21:43:04 EngineConfig: EngineConfig:
Processing STOP 
2004-04-07 21:46:00 EngineConfig: EngineConfig:
Processing START

I would like to get as much debug information as
possible so I can see the complete initialization of
the Tomcat server and any attempted connects (SSL and
non-SSL).  Ultimately I would like to see detailed SSL
trace, hence the use of the -Djavax.net.debug=ssl
command line option.  I know this shouldn't be very
hard but I can't seem to get the output I want. 
Anyone have an idea what I am doing wrong?


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



access ENV variables

2004-04-07 Thread Daniel Gibby
Is it possible to access environment variables in tomcat that were set 
by apache?

Specifically the REDIRECT_ * variables that are set by ErrorDocument 
directives?

Then I can have a servlet return the correct content type.
i.e. if it is a gif that has a 404 I can redirect to a graphic that says 
not found
But if a jsp page is missing or won't compile, I can redirect to a 
different jsp.

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


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Yes...I think this is a better route to go...I will try it...thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 3:43 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat



Hi,

>My reason for the Apache..is that I do not want root to run the Tomcat
>process once I put the server into production and I saw no other way
for
>Tomcat to run on port 80 without using root..

Use commons-daemon for this.  It ships with tomcat5 and works with
tomcat4 as well: http://jakarta.apache.org/commons/daemon/index.html.

Yoav Shapira




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]

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

RE: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Shapira, Yoav

Hi,

>Like this:

OK, that's what I figured.  I wouldn't call once or twice a year "all
the time" but that's besides the point, as the issue undoubtedly exists
;)

>Do you know if this is supposed to work?
>
>JkMount /myapp/*;jsessionid=* workerX
>
>It has allegedly worked for some other people.

I don't know if it's supposed to work.  Is it difficult to test?

Yoav Shapira



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: Filter.init and DefaultContext JNDI resources

2004-04-07 Thread Shapira, Yoav

Hi,
I think JNDI resources have to be associated with an actual context
explicitly, to avoid creating multiple copies.  I'm not a big fan of
DefaultContext anyways.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Sandy McArthur [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 4:19 PM
>To: Tomcat Users List
>Subject: Re: Filter.init and DefaultContext JNDI resources
>
>After further testing on my using a JNDI resource in the
>Filter.init(...) method I found that if I use a DefaultContext to link
>a resource it fails. eg:
>
>
>   type="javax.sql.DataSource"/>
>
>
>But if I link the resource in a Context I can load a JNDI resource in
>my Filter's init(...) method. eg:
>
>
>   type="javax.sql.DataSource"/>
>
>
>
>In both forms of resource linking above the Filter can load the JNDI
>resource from the doFilter(...) method.
>
>Any reasons that there should be a difference in behavior for a
>ResourceLink depending on if you link it in a DefaultContext or a
>Context?
>
>Sandy



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: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Shapira, Yoav

Hi,

>My reason for the Apache..is that I do not want root to run the Tomcat
>process once I put the server into production and I saw no other way
for
>Tomcat to run on port 80 without using root..

Use commons-daemon for this.  It ships with tomcat5 and works with
tomcat4 as well: http://jakarta.apache.org/commons/daemon/index.html.

Yoav Shapira




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: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Christopher Schultz
Yoav,

I have no clue as to your actual question, but I'm curious:

The archives show this questions being asked all the time, but with no
How do you define "all the time" in the statement above?
Like this:

Dubious responses:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg84808.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg74207.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg84936.html
   (references a URL @ Google Groups with a "simple" solution that does 
not appear to work for me)

References Craig's "pointers":
http://www.mail-archive.com/[EMAIL PROTECTED]/msg78826.html
No responses:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg75615.html
That's just in the tomcat-user archives. Similar discussions occur in 
other forums (fora?), like jGuru.

Do you know if this is supposed to work?

JkMount /myapp/*;jsessionid=* workerX

It has allegedly worked for some other people.

-chris


signature.asc
Description: OpenPGP digital signature


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
No a problem...I am using 2.0.48..

I have the LoadModule line and the other directives here...they are 


LoadModule jk_module /usr/WWW/libexec/mod_jk.so


 JkWorkersFile /usr/tomcat-4.1.18/conf/jk/workers.properties
 JkLogFile /usr/tomcat-4.1.18/logs/mod_jk.log
 JkLogLeveldebug
 JkMount  /portal/* ajp13

I was unable to put in the AddModule line because I did not see it (the
mod_jk.c file) loaded when I did the apachectl -l. I am working on
getting that loaded now

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


Hi.

Can you post the relevant parts of your httpd.conf file?  Also, I missed

this in the thread if it was mentioned, but what version of Apache are 
you working with?  I ask, because it looks like from my setup that 
Apache ditched the AddModule directive in Apache 2.0.xx.

LoadModule needs to be in your httpd.conf file before the AddModule 
directive under Apache 1.3.x as in:

# All the other LoadModule directive here.
LoadModule jk_module  modules/mod_jk.so

# Further down, all the AddModule directives here
AddModule mod_jk.c

It'd be helpful to see the JkWorkersFile directive, JkMount directive, 
and the contents of the jk workers file.

--David

Just tack it on to the end of the list of LoadModule directives.  Then 
use AddModule at the end of the list of AddModule directives.

Wilson, Allen wrote:

>I think I may have found the problem
>
>I tried to add the line AddModule mod_jk.c in the HTTP server config
and
>it gave an error. I could not locate the file within my HTTP or Tomcat
>installation.even though I have the mod_jk.so file in the libexec
>directory.
>
>
>
>-Original Message-
>From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, April 07, 2004 2:35 PM
>To: Tomcat Users List
>Subject: Re: Connecting the HTTP Server and Tomcat
>
>
>Assuming the connector is working, what effect does adding an
additional
>
>mapping of
>
>/portalajp13
>
>to your existing
>
>/portal/*  ajp13
>
>mapping have?
>
>I just double-checked on our dev box where jk is definitely up. I got a

>404 from apache for / but //stuff got routed through 
>to tomcat.
>
>Jon
>
>Wilson, Allen wrote:
>
>  
>
>>No you are not way off...at least not from my point of view because
>>
>>
>that
>  
>
>>is what I thought would work. But unless I specify the port 
>>(http://myserver.com:8080/portal) it will not get there...
>>
>>It makes me think that the connector is not function correctly but I
>>
>>
>do
>  
>
>>not know how to tell..when I check the running ports I see the 8009
>>
>>
>port
>  
>
>>running but it does not hand to Tomcat
>>
>>-Original Message-
>>From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
>>Sent: Wednesday, April 07, 2004 2:09 PM
>>To: Tomcat Users List
>>Subject: Re: Connecting the HTTP Server and Tomcat
>>
>>
>>I may be way off but...
>>I don't think
>>http://myserver.com/portal
>>maps to
>>/portal/* ajp13
>>
>>http://myserver.com/portal/
>>or
>>http://myserver.com/portal/whatever.jsp
>>probably will, though.
>>
>>Give it a go, may work,
>>
>>Jon
>>
>>Wilson, Allen wrote:
>>
>>
>>
>>
>>>Bill..thanks for the reply...
>>>
>>>I will read through the link you provide but isn't that what the
>>>connector is supposed to do.
>>>
>>>My understanding what that the Apache HTTP server would detect what
>>>  
>>>
>>the
>>
>>
>>
>>>request was (Java or not) and pass it on to Tomcat.
>>>Is this not what the specification of /portal/* ajp13 in the
>>>configuration does.
>>>
>>>This is what I got from the document at:
>>>
>>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.htm
l
>>>
>>>Here is a little from one of the pages in that area... (
>>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
>>>
>>>In a nutshell a web server is waiting for client HTTP requests. When
>>>these requests arrive the server does whatever is needed to serve the
>>>requests by providing the necessary content. 
>>>
>>>Adding a servlet container may somewhat change this behavior. Now the
>>>web server needs also to perform the following: 
>>>
>>>Load the servlet container adapter library and initialize it (prior
to
>>>serving requests). 
>>>When a request arrives, it needs to check and see if a certain
request
>>>belongs to a servlet, if so it needs to let the adapter take the
>>>  
>>>
>>request
>>
>>
>>
>>>and handle it. 
>>>The adapter on the other hand needs to know what requests it is going
>>>  
>>>
>>to
>>
>>
>>
>>>serve, usually based on some pattern in the request URL, and to where
>>>  
>>>
>>to
>>
>>
>>
>>>direct these requests. 
>>>
>>>
>>>Is this not correct...or am I misunderstanding it
>>>
>>>
>>>
>>>-Original Message-
>>>From: Bill Bruns [mailto:[EMAIL PROTECTED] 
>>>Sent: Wednesday, April 07, 2004 12:26 PM
>>>To: Tomcat Users List
>>>Subj

nativeDispatch SEVERE error with apache ErrorDocument on 404 to a servlet

2004-04-07 Thread Daniel Gibby
Hey all, I just discovered some things that I googled around and 
debugged a bit and couldn't find any help on, so I'm posting it to the 
list so that when I have the problem again, I'll find my own posting via 
google! Maybe it will help someone else as well.

Using: Apache, mod_jk2 tomcat4.1.27
In apache I have ErrorDocument directives that send 404 errors to a servlet.
This was supposed to be setup so that I could forward people who make 
invalid requests to a valid page.
Also I could send errors to a log, and give people a nice looking page 
rather than apache's default.

Here's the tricky part:
I have mod_jk2 setup to forward *.jsp and certain servlets to tomcat, 
but graphics and such come through apache.
If I have a valid request come in to a jsp page or to a servlet... but 
there is a gif/png/jpg missing on that page, then strange things begin 
to happen.
Here's some output:

Normal output complete from jsp page.
Apr 7, 2004 12:53:00 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
Apr 7, 2004 12:53:01 PM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000
Apr 7, 2004 12:53:00 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
Apr 7, 2004 12:53:01 PM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000
CoyoteAdapter  Requested cookie session id is 
6480375D001AF672794CA5AEFFAAAF92
ErrorDocument servlet output. That's  bad!
Apr 7, 2004 12:53:01 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
Apr 7, 2004 12:53:01 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
Apr 7, 2004 12:53:01 PM org.apache.jk.common.JniHandler nativeDispatch

If you have seen errors such as these in your logs, it may be that you 
are using an apache ErrorDocument forwarding to tomcat, and really you 
just have some missing graphics or other files!

So now that I figured out what is going on... does anyone have an idea 
of how to handle this?
I really want to send just jsp and servlet type 404 errors to a servlet 
/ JSP, not missing graphic 404 errors. But there is no way to 
distinguish them on the apache side that I know of... and no way to 
distinguish them on the tomcat side either.
If you look at some of the apache docs they say that they now set some 
additional CGI variables for this purpose, but I don't think they are 
accessible from jsp.
The variables all start with REDIRECT_
ServletConfig / ServletRequest don't provide a way to get at those 
variables, right? This is kind of going off topic, but help!

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


RE: request.getUserPrincipal();

2004-04-07 Thread Yansheng Lin
Hi, how often do you invalidate your sessions?  It's hard to imagine your
application would expire a user's session right after he logs in.  But take a
look at the request header to see if the subsequent session ids are the same as
the first one.  Other than that, without more specific info on how you
implemented the authentication, it's hard to figure out what's going on:).

-Yan


-Original Message-
From: Winter, G (Graeme) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 7:46 AM
To: 'Tomcat Users List'
Subject: request.getUserPrincipal();


Hi All,

I am trying to perform client authentication using certificates, and I have
made some progress - the certificates are now accepted as OK, which is nice.
Obviously I am using https too...

However, the sting is that the methods

request.getAuthType();
request.getRemoteUser();
request.getUserPrincipal();

All return NULL, which is contrary to the documentation, since I know the
user (i.e. me) has authenticated. clientAuth="true" in server.xml.

Anyone else out there had this problem, and more to the point found a
solution?

Cheers,

Graeme

-
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: Connecting the HTTP Server and Tomcat

2004-04-07 Thread David Smith
Hi.

Can you post the relevant parts of your httpd.conf file?  Also, I missed 
this in the thread if it was mentioned, but what version of Apache are 
you working with?  I ask, because it looks like from my setup that 
Apache ditched the AddModule directive in Apache 2.0.xx.

LoadModule needs to be in your httpd.conf file before the AddModule 
directive under Apache 1.3.x as in:

# All the other LoadModule directive here.
LoadModule jk_module  modules/mod_jk.so
# Further down, all the AddModule directives here
AddModule mod_jk.c
It'd be helpful to see the JkWorkersFile directive, JkMount directive, 
and the contents of the jk workers file.

--David

Just tack it on to the end of the list of LoadModule directives.  Then 
use AddModule at the end of the list of AddModule directives.

Wilson, Allen wrote:

I think I may have found the problem

I tried to add the line AddModule mod_jk.c in the HTTP server config and
it gave an error. I could not locate the file within my HTTP or Tomcat
installation.even though I have the mod_jk.so file in the libexec
directory.


-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:35 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat

Assuming the connector is working, what effect does adding an additional

mapping of

/portal	ajp13

to your existing

/portal/*	ajp13

mapping have?

I just double-checked on our dev box where jk is definitely up. I got a 
404 from apache for / but //stuff got routed through 
to tomcat.

Jon

Wilson, Allen wrote:

 

No you are not way off...at least not from my point of view because
   

that
 

is what I thought would work. But unless I specify the port 
(http://myserver.com:8080/portal) it will not get there...

It makes me think that the connector is not function correctly but I
   

do
 

not know how to tell..when I check the running ports I see the 8009
   

port
 

running but it does not hand to Tomcat

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:09 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat

I may be way off but...
I don't think
http://myserver.com/portal
maps to
/portal/* ajp13
http://myserver.com/portal/
or
http://myserver.com/portal/whatever.jsp
probably will, though.
Give it a go, may work,

Jon

Wilson, Allen wrote:

   

Bill..thanks for the reply...

I will read through the link you provide but isn't that what the
connector is supposed to do.
My understanding what that the Apache HTTP server would detect what
 

the

   

request was (Java or not) and pass it on to Tomcat.
Is this not what the specification of /portal/* ajp13 in the
configuration does.
This is what I got from the document at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html

Here is a little from one of the pages in that area... (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
In a nutshell a web server is waiting for client HTTP requests. When
these requests arrive the server does whatever is needed to serve the
requests by providing the necessary content. 

Adding a servlet container may somewhat change this behavior. Now the
web server needs also to perform the following: 

Load the servlet container adapter library and initialize it (prior to
serving requests). 
When a request arrives, it needs to check and see if a certain request
belongs to a servlet, if so it needs to let the adapter take the
 

request

   

and handle it. 
The adapter on the other hand needs to know what requests it is going
 

to

   

serve, usually based on some pattern in the request URL, and to where
 

to

   

direct these requests. 

Is this not correct...or am I misunderstanding it



-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 12:26 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat

Allen,

do you have the web server configured to throw the requests over to
Tomcat?
In other words, have either Proxy support or else URL Rewriting turned
on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten
by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come
 

to

   

by
default.
Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill
-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat
Okay...that looks similar to the tomcat 4 information I haveis
 

your

   

connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat
My configura

Re: Filter.init and DefaultContext JNDI resources

2004-04-07 Thread Sandy McArthur
After further testing on my using a JNDI resource in the 
Filter.init(...) method I found that if I use a DefaultContext to link 
a resource it fails. eg:


  


But if I link the resource in a Context I can load a JNDI resource in 
my Filter's init(...) method. eg:


  


In both forms of resource linking above the Filter can load the JNDI 
resource from the doFilter(...) method.

Any reasons that there should be a difference in behavior for a 
ResourceLink depending on if you link it in a DefaultContext or a 
Context?

Sandy


PGP.sig
Description: This is a digitally signed message part


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
My reason for the Apache..is that I do not want root to run the Tomcat
process once I put the server into production and I saw no other way for
Tomcat to run on port 80 without using root..

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:44 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat



Hi,
The rest of this thread aside, are you sure you even need Apache?  Do
you particular CGI/SSI/PHP scripts you need to serve in a high
concurrency environment?  What's your expected load?  Tomcat standalone
might be good enough for your needs, in which case you could drop all
this connector stuff.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Bill Bruns [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 3:04 PM
>To: Wilson, Allen; Tomcat Users List
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>Allen,
>
>you ask "isn't that what the connector is supposed to do",
>but the connector is in Tomcat, not in your web server.
>It is the web server software that is monitoring port 80,
>and that is where your browser sends requests to by default,
>so the request must get past the web server first.
>To do that you need to tell the web server where to send them, namely
to
>your Tomcat port.
>I think this accounts for the behaviour you told about, namely that
>Tomcat responds fine when you specify the port number in your URL.
>
>-Bill
>
>-Original Message-
>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 11:32 AM
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>
>Bill..thanks for the reply...
>
>I will read through the link you provide but isn't that what the
>connector is supposed to do.
>
>My understanding what that the Apache HTTP server would detect what the
>request was (Java or not) and pass it on to Tomcat.
>Is this not what the specification of /portal/* ajp13 in the
>configuration does.
>
>This is what I got from the document at:
>
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html
>
>Here is a little from one of the pages in that area... (
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
>
>In a nutshell a web server is waiting for client HTTP requests. When
>these requests arrive the server does whatever is needed to serve the
>requests by providing the necessary content.
>
>Adding a servlet container may somewhat change this behavior. Now the
>web server needs also to perform the following:
>
>Load the servlet container adapter library and initialize it (prior to
>serving requests).
>When a request arrives, it needs to check and see if a certain request
>belongs to a servlet, if so it needs to let the adapter take the
request
>and handle it.
>The adapter on the other hand needs to know what requests it is going
to
>serve, usually based on some pattern in the request URL, and to where
to
>direct these requests.
>
>
>Is this not correct...or am I misunderstanding it
>
>
>
>-Original Message-
>From: Bill Bruns [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 12:26 PM
>To: Tomcat Users List
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>
>Allen,
>
>do you have the web server configured to throw the requests over to
>Tomcat?
>In other words, have either Proxy support or else URL Rewriting turned
>on in
>the web server?
>Otherwise your HTTP requests default to port 80, so they will be eaten
>by
>the web server and never reach Tomcat,
>since Tomcat is listening on ports that the HTTP requests do not come
to
>by
>default.
>
>Have you looked at
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
>- Bill
>
>-Original Message-
>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 8:54 AM
>To: Tomcat Users List
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>
>Okay...that looks similar to the tomcat 4 information I haveis your
>connector working correctly?
>
>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 6:06 PM
>To: Tomcat Users List
>Subject: Re: Connecting the HTTP Server and Tomcat
>
>
>My configuration is for tomcat 5:
>
>
> disableUploadTimeout="true" port="8080" redirectPort="8443">
> 
>
> enableLookups="false" redirectPort="8443" debug="0"
>protocol="AJP/1.3" />
>
> 
>   
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>...
>...
>
>Wilson, Allen wrote:
>> Here are the lines.
>>
>> > className="org.apache.catalina.connector.http.HttpConnector"
>>port="8080" minProcessors="5"
>maxProcessors="75"
>>enableLookups="true" redirectPort="8443"
>>acceptCount="100" debug="0"
>> connectionTimeout="2" />
>>
>> 
>> > className="or

RE: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Shapira, Yoav

Howdy,
I have no clue as to your actual question, but I'm curious:

>The archives show this questions being asked all the time, but with no

How do you define "all the time" in the statement above?

Yoav Shapira



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: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Shapira, Yoav

Hi,
The rest of this thread aside, are you sure you even need Apache?  Do
you particular CGI/SSI/PHP scripts you need to serve in a high
concurrency environment?  What's your expected load?  Tomcat standalone
might be good enough for your needs, in which case you could drop all
this connector stuff.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Bill Bruns [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 3:04 PM
>To: Wilson, Allen; Tomcat Users List
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>Allen,
>
>you ask "isn't that what the connector is supposed to do",
>but the connector is in Tomcat, not in your web server.
>It is the web server software that is monitoring port 80,
>and that is where your browser sends requests to by default,
>so the request must get past the web server first.
>To do that you need to tell the web server where to send them, namely
to
>your Tomcat port.
>I think this accounts for the behaviour you told about, namely that
>Tomcat responds fine when you specify the port number in your URL.
>
>-Bill
>
>-Original Message-
>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 11:32 AM
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>
>Bill..thanks for the reply...
>
>I will read through the link you provide but isn't that what the
>connector is supposed to do.
>
>My understanding what that the Apache HTTP server would detect what the
>request was (Java or not) and pass it on to Tomcat.
>Is this not what the specification of /portal/* ajp13 in the
>configuration does.
>
>This is what I got from the document at:
>
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html
>
>Here is a little from one of the pages in that area... (
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
>
>In a nutshell a web server is waiting for client HTTP requests. When
>these requests arrive the server does whatever is needed to serve the
>requests by providing the necessary content.
>
>Adding a servlet container may somewhat change this behavior. Now the
>web server needs also to perform the following:
>
>Load the servlet container adapter library and initialize it (prior to
>serving requests).
>When a request arrives, it needs to check and see if a certain request
>belongs to a servlet, if so it needs to let the adapter take the
request
>and handle it.
>The adapter on the other hand needs to know what requests it is going
to
>serve, usually based on some pattern in the request URL, and to where
to
>direct these requests.
>
>
>Is this not correct...or am I misunderstanding it
>
>
>
>-Original Message-
>From: Bill Bruns [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 12:26 PM
>To: Tomcat Users List
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>
>Allen,
>
>do you have the web server configured to throw the requests over to
>Tomcat?
>In other words, have either Proxy support or else URL Rewriting turned
>on in
>the web server?
>Otherwise your HTTP requests default to port 80, so they will be eaten
>by
>the web server and never reach Tomcat,
>since Tomcat is listening on ports that the HTTP requests do not come
to
>by
>default.
>
>Have you looked at
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
>- Bill
>
>-Original Message-
>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 8:54 AM
>To: Tomcat Users List
>Subject: RE: Connecting the HTTP Server and Tomcat
>
>
>Okay...that looks similar to the tomcat 4 information I haveis your
>connector working correctly?
>
>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 6:06 PM
>To: Tomcat Users List
>Subject: Re: Connecting the HTTP Server and Tomcat
>
>
>My configuration is for tomcat 5:
>
>
> disableUploadTimeout="true" port="8080" redirectPort="8443">
> 
>
> enableLookups="false" redirectPort="8443" debug="0"
>protocol="AJP/1.3" />
>
> 
>   
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>...
>...
>
>Wilson, Allen wrote:
>> Here are the lines.
>>
>> > className="org.apache.catalina.connector.http.HttpConnector"
>>port="8080" minProcessors="5"
>maxProcessors="75"
>>enableLookups="true" redirectPort="8443"
>>acceptCount="100" debug="0"
>> connectionTimeout="2" />
>>
>> 
>> > className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
>> minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
>>
>> Let me know if there is something that is incorrect.
>>
>> -Original Message-
>> From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, April 06, 2004 4:28 PM
>> To: Tomcat Users List
>> Subject: Re: Connecting the HTTP Server and To

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
I think I may have found the problem

I tried to add the line AddModule mod_jk.c in the HTTP server config and
it gave an error. I could not locate the file within my HTTP or Tomcat
installation.even though I have the mod_jk.so file in the libexec
directory.



-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:35 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


Assuming the connector is working, what effect does adding an additional

mapping of

/portal ajp13

to your existing

/portal/*   ajp13

mapping have?

I just double-checked on our dev box where jk is definitely up. I got a 
404 from apache for / but //stuff got routed through 
to tomcat.

Jon

Wilson, Allen wrote:

> No you are not way off...at least not from my point of view because
that
> is what I thought would work. But unless I specify the port 
> (http://myserver.com:8080/portal) it will not get there...
> 
> It makes me think that the connector is not function correctly but I
do
> not know how to tell..when I check the running ports I see the 8009
port
> running but it does not hand to Tomcat
> 
> -Original Message-
> From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 2:09 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
> 
> 
> I may be way off but...
> I don't think
> http://myserver.com/portal
> maps to
> /portal/* ajp13
> 
> http://myserver.com/portal/
> or
> http://myserver.com/portal/whatever.jsp
> probably will, though.
> 
> Give it a go, may work,
> 
> Jon
> 
> Wilson, Allen wrote:
> 
> 
>>Bill..thanks for the reply...
>>
>>I will read through the link you provide but isn't that what the
>>connector is supposed to do.
>>
>>My understanding what that the Apache HTTP server would detect what
> 
> the
> 
>>request was (Java or not) and pass it on to Tomcat.
>>Is this not what the specification of /portal/* ajp13 in the
>>configuration does.
>>
>>This is what I got from the document at:
>>
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html
>>
>>Here is a little from one of the pages in that area... (
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
>>
>>In a nutshell a web server is waiting for client HTTP requests. When
>>these requests arrive the server does whatever is needed to serve the
>>requests by providing the necessary content. 
>>
>>Adding a servlet container may somewhat change this behavior. Now the
>>web server needs also to perform the following: 
>>
>>Load the servlet container adapter library and initialize it (prior to
>>serving requests). 
>>When a request arrives, it needs to check and see if a certain request
>>belongs to a servlet, if so it needs to let the adapter take the
> 
> request
> 
>>and handle it. 
>>The adapter on the other hand needs to know what requests it is going
> 
> to
> 
>>serve, usually based on some pattern in the request URL, and to where
> 
> to
> 
>>direct these requests. 
>>
>>
>>Is this not correct...or am I misunderstanding it
>>
>>
>>
>>-Original Message-
>>From: Bill Bruns [mailto:[EMAIL PROTECTED] 
>>Sent: Wednesday, April 07, 2004 12:26 PM
>>To: Tomcat Users List
>>Subject: RE: Connecting the HTTP Server and Tomcat
>>
>>
>>Allen,
>>
>>do you have the web server configured to throw the requests over to
>>Tomcat?
>>In other words, have either Proxy support or else URL Rewriting turned
>>on in
>>the web server?
>>Otherwise your HTTP requests default to port 80, so they will be eaten
>>by
>>the web server and never reach Tomcat,
>>since Tomcat is listening on ports that the HTTP requests do not come
> 
> to
> 
>>by
>>default.
>>
>>Have you looked at
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
>>- Bill
>>
>>-Original Message-
>>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, April 07, 2004 8:54 AM
>>To: Tomcat Users List
>>Subject: RE: Connecting the HTTP Server and Tomcat
>>
>>
>>Okay...that looks similar to the tomcat 4 information I haveis
> 
> your
> 
>>connector working correctly?
>>
>>-Original Message-
>>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 6:06 PM
>>To: Tomcat Users List
>>Subject: Re: Connecting the HTTP Server and Tomcat
>>
>>
>>My configuration is for tomcat 5:
>>
>>
>> >disableUploadTimeout="true" port="8080" redirectPort="8443">
>> 
>>
>> >enableLookups="false" redirectPort="8443" debug="0"
>>protocol="AJP/1.3" />
>>
>> 
>>   
>> >prefix="localhost_log." suffix=".txt" timestamp="true"/>
>>...
>>...
>>
>>Wilson, Allen wrote:
>>
>>
>>>Here are the lines.
>>>
>>>   >>className="org.apache.catalina.connector.http.HttpConnector"
>>>  port="8080" minProcessors="5"
>>
>>maxProcessors="75"
>>
>>
>>>  enableLookups="true" redirectPort="8443"
>>>  

tools.jar & classpath

2004-04-07 Thread Matthias Lindner
hi everyone,

dumb question time.

here's winXP and tomcat 5.0.19.
after setting up Tomcat as a service it didn't find the tools.jar
and couldn't compile my .jsp's.  the error page told me to copy
tools.jar over from JAVA_HOME/lib/ to TOMCAT_HOME/common/lib and that
works.

but i don't like it.  isn't there a way of telling tomcat or at least
this one context the classpath for tools.jar e.g. via web.xml ?

thanks,
Matthias


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



Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Jon Wingfield
Assuming the connector is working, what effect does adding an additional 
mapping of

/portal	ajp13

to your existing

/portal/*	ajp13

mapping have?

I just double-checked on our dev box where jk is definitely up. I got a 
404 from apache for / but //stuff got routed through 
to tomcat.

Jon

Wilson, Allen wrote:

No you are not way off...at least not from my point of view because that
is what I thought would work. But unless I specify the port 
(http://myserver.com:8080/portal) it will not get there...

It makes me think that the connector is not function correctly but I do
not know how to tell..when I check the running ports I see the 8009 port
running but it does not hand to Tomcat
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:09 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat

I may be way off but...
I don't think
http://myserver.com/portal
maps to
/portal/* ajp13
http://myserver.com/portal/
or
http://myserver.com/portal/whatever.jsp
probably will, though.
Give it a go, may work,

Jon

Wilson, Allen wrote:


Bill..thanks for the reply...

I will read through the link you provide but isn't that what the
connector is supposed to do.
My understanding what that the Apache HTTP server would detect what
the

request was (Java or not) and pass it on to Tomcat.
Is this not what the specification of /portal/* ajp13 in the
configuration does.
This is what I got from the document at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html

Here is a little from one of the pages in that area... (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
In a nutshell a web server is waiting for client HTTP requests. When
these requests arrive the server does whatever is needed to serve the
requests by providing the necessary content. 

Adding a servlet container may somewhat change this behavior. Now the
web server needs also to perform the following: 

Load the servlet container adapter library and initialize it (prior to
serving requests). 
When a request arrives, it needs to check and see if a certain request
belongs to a servlet, if so it needs to let the adapter take the
request

and handle it. 
The adapter on the other hand needs to know what requests it is going
to

serve, usually based on some pattern in the request URL, and to where
to

direct these requests. 

Is this not correct...or am I misunderstanding it



-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 12:26 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat

Allen,

do you have the web server configured to throw the requests over to
Tomcat?
In other words, have either Proxy support or else URL Rewriting turned
on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten
by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come
to

by
default.
Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill
-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat
Okay...that looks similar to the tomcat 4 information I haveis
your

connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat
My configuration is for tomcat 5:






  

...
...
Wilson, Allen wrote:


Here are the lines.

  maxProcessors="75"


 enableLookups="true" redirectPort="8443"
 acceptCount="100" debug="0"
connectionTimeout="2" />
  
  
Let me know if there is something that is incorrect.

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 4:28 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat
You said you can connect through port 8009 through the browser???
The jk protocol is not http, so if the configuration was allright you
can't connect through 8009 as http. Maybe the error is at your
server.xml...
Wilson, Allen wrote:



Thanks but this is on a Windows system and will not help...I am on a
Solaris and I have looked at documents like this before and they
still

do not give me a definitive way of setting everything and testing
it...



Right now I have the HTTP server (port 80), Tomcat (port 8080), and
the



connector (8009) running. I even looked at the netstat to see if each
port was available...and they were.
When a do the home page request (http://myserver.com) it works
fine...but if I request the page for the Jetspeed Portal
(http://myserver.com/portal), I get an error. If I request the po

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Okay...I've read the article and the way it look is that you are doing
the connection without using a connector like mod_jk. You are doing it
with the proxy module...mod_proxy.so

Is that correct

If so, then it provides me another method to go but before I start back
tracking to do something new..I would like to see if I could get the
mod_jk connector working...

-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:04 PM
To: Wilson, Allen; Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Allen,

you ask "isn't that what the connector is supposed to do",
but the connector is in Tomcat, not in your web server.
It is the web server software that is monitoring port 80,
and that is where your browser sends requests to by default,
so the request must get past the web server first.
To do that you need to tell the web server where to send them, namely to
your Tomcat port.
I think this accounts for the behaviour you told about, namely that
Tomcat responds fine when you specify the port number in your URL.

-Bill

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 11:32 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Connecting the HTTP Server and Tomcat


Bill..thanks for the reply...

I will read through the link you provide but isn't that what the
connector is supposed to do.

My understanding what that the Apache HTTP server would detect what the
request was (Java or not) and pass it on to Tomcat.
Is this not what the specification of /portal/* ajp13 in the
configuration does.

This is what I got from the document at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html

Here is a little from one of the pages in that area... (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )

In a nutshell a web server is waiting for client HTTP requests. When
these requests arrive the server does whatever is needed to serve the
requests by providing the necessary content.

Adding a servlet container may somewhat change this behavior. Now the
web server needs also to perform the following:

Load the servlet container adapter library and initialize it (prior to
serving requests).
When a request arrives, it needs to check and see if a certain request
belongs to a servlet, if so it needs to let the adapter take the request
and handle it.
The adapter on the other hand needs to know what requests it is going to
serve, usually based on some pattern in the request URL, and to where to
direct these requests.


Is this not correct...or am I misunderstanding it



-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:26 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Allen,

do you have the web server configured to throw the requests over to
Tomcat?
In other words, have either Proxy support or else URL Rewriting turned
on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten
by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come to
by
default.

Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Okay...that looks similar to the tomcat 4 information I haveis your
connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


My configuration is for tomcat 5:


 
 

 

 
   
 
...
...

Wilson, Allen wrote:
> Here are the lines.
>
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="5"
maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0"
> connectionTimeout="2" />
>
> 
>  className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
> minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
>
> Let me know if there is something that is incorrect.
>
> -Original Message-
> From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 4:28 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
>
>
> You said you can connect through port 8009 through the browser???
> The jk protocol is not http, so if the configuration was allright you
> can't connect through 8009 as http. Maybe the error is at your
> server.xml...
>
> Wilson, Allen wrote:
>
>>Thanks but this is on a Windows system and will not help...I am on a
>>Solaris and I

Howto run tomcat 4.06 as windows service

2004-04-07 Thread baldyeti
Hello,

I have an existing tc4 installation (copied in a hurry from
another system ;-) which works fine when launched via the
startup.bat script. Is there a way to turn it into a proper
windows (XP) service? I know tc5 has service.bat, but short
of upgrading, what would be the equivalent here?
Tia,

--bald



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


Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Christopher Schultz
All,
The archives show this questions being asked all the time, but with no 
useful responses. Please let me know if this is a known unresolved or 
unresolvable issue.

All solutions posted anywhere for "jsessionid makes Apache go beaindead" 
apparently use a mod_rewrite incantation similar to the following:

  
  RewriteEngine on
  # Force URLs with a jsessionid to go to Tomcat. Necessary because
  # Apache doesn't recognise that the semi-colon is special.
  RewriteRule   ^(/.*;jsessionid=.*)$   $1 [T=jserv-servlet]
  
While I'm sure this worked out great the people using mod_jserv back in 
1997, it does not work for mod_jk. For one thing, it does not even let 
you specify which worker to use :(

Back in the day, Craig responded by pointing to a Tomcat FAQ entry which 
no longer exists, but presumably had something to do with Apache's 
mod_rewrite.

On the other hand, a solution was posted (and confirmed by some readers) 
that the following works:

JkMount /test/*;jsessionid=* ajp13

This seems very obvious, and there's a caveat about how it might not 
work on "older" versions of mod_jk. It apparently does not work for me. 
I'm using mod_jk (not mod_jk2), version 1.2.5 (current release) on 
Apache 2.0.48 as a dynamic module on Linux -- everything compiled myself 
with nothing out of the ordinary.

Can anyone offer any advice? I've just been sucking it up and ignoring 
this problem for a while, now (years). Is there actually a solution out 
there for this? Am I just mistyping the JkMount configuration?

Anyone, please help.

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


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
No you are not way off...at least not from my point of view because that
is what I thought would work. But unless I specify the port 
(http://myserver.com:8080/portal) it will not get there...

It makes me think that the connector is not function correctly but I do
not know how to tell..when I check the running ports I see the 8009 port
running but it does not hand to Tomcat

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 2:09 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


I may be way off but...
I don't think
http://myserver.com/portal
maps to
/portal/* ajp13

http://myserver.com/portal/
or
http://myserver.com/portal/whatever.jsp
probably will, though.

Give it a go, may work,

Jon

Wilson, Allen wrote:

> Bill..thanks for the reply...
> 
> I will read through the link you provide but isn't that what the
> connector is supposed to do.
> 
> My understanding what that the Apache HTTP server would detect what
the
> request was (Java or not) and pass it on to Tomcat.
> Is this not what the specification of /portal/* ajp13 in the
> configuration does.
> 
> This is what I got from the document at:
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html
> 
> Here is a little from one of the pages in that area... (
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
> 
> In a nutshell a web server is waiting for client HTTP requests. When
> these requests arrive the server does whatever is needed to serve the
> requests by providing the necessary content. 
> 
> Adding a servlet container may somewhat change this behavior. Now the
> web server needs also to perform the following: 
> 
> Load the servlet container adapter library and initialize it (prior to
> serving requests). 
> When a request arrives, it needs to check and see if a certain request
> belongs to a servlet, if so it needs to let the adapter take the
request
> and handle it. 
> The adapter on the other hand needs to know what requests it is going
to
> serve, usually based on some pattern in the request URL, and to where
to
> direct these requests. 
> 
> 
> Is this not correct...or am I misunderstanding it
> 
> 
> 
> -Original Message-
> From: Bill Bruns [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 12:26 PM
> To: Tomcat Users List
> Subject: RE: Connecting the HTTP Server and Tomcat
> 
> 
> Allen,
> 
> do you have the web server configured to throw the requests over to
> Tomcat?
> In other words, have either Proxy support or else URL Rewriting turned
> on in
> the web server?
> Otherwise your HTTP requests default to port 80, so they will be eaten
> by
> the web server and never reach Tomcat,
> since Tomcat is listening on ports that the HTTP requests do not come
to
> by
> default.
> 
> Have you looked at
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
> - Bill
> 
> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 8:54 AM
> To: Tomcat Users List
> Subject: RE: Connecting the HTTP Server and Tomcat
> 
> 
> Okay...that looks similar to the tomcat 4 information I haveis
your
> connector working correctly?
> 
> -Original Message-
> From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 6:06 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
> 
> 
> My configuration is for tomcat 5:
> 
> 
>   disableUploadTimeout="true" port="8080" redirectPort="8443">
>  
> 
>   enableLookups="false" redirectPort="8443" debug="0"
> protocol="AJP/1.3" />
> 
>  
>
>   prefix="localhost_log." suffix=".txt" timestamp="true"/>
> ...
> ...
> 
> Wilson, Allen wrote:
> 
>>Here are the lines.
>>
>>>className="org.apache.catalina.connector.http.HttpConnector"
>>   port="8080" minProcessors="5"
> 
> maxProcessors="75"
> 
>>   enableLookups="true" redirectPort="8443"
>>   acceptCount="100" debug="0"
>>connectionTimeout="2" />
>>
>>
>>>className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
>>minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
>>
>>Let me know if there is something that is incorrect.
>>
>>-Original Message-
>>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 4:28 PM
>>To: Tomcat Users List
>>Subject: Re: Connecting the HTTP Server and Tomcat
>>
>>
>>You said you can connect through port 8009 through the browser???
>>The jk protocol is not http, so if the configuration was allright you
>>can't connect through 8009 as http. Maybe the error is at your
>>server.xml...
>>
>>Wilson, Allen wrote:
>>
>>
>>>Thanks but this is on a Windows system and will not help...I am on a
>>>Solaris and I have looked at documents like this before and they
stil

Re: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Jon Wingfield
I may be way off but...
I don't think
http://myserver.com/portal
maps to
/portal/* ajp13
http://myserver.com/portal/
or
http://myserver.com/portal/whatever.jsp
probably will, though.
Give it a go, may work,

Jon

Wilson, Allen wrote:

Bill..thanks for the reply...

I will read through the link you provide but isn't that what the
connector is supposed to do.
My understanding what that the Apache HTTP server would detect what the
request was (Java or not) and pass it on to Tomcat.
Is this not what the specification of /portal/* ajp13 in the
configuration does.
This is what I got from the document at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html

Here is a little from one of the pages in that area... (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )
In a nutshell a web server is waiting for client HTTP requests. When
these requests arrive the server does whatever is needed to serve the
requests by providing the necessary content. 

Adding a servlet container may somewhat change this behavior. Now the
web server needs also to perform the following: 

Load the servlet container adapter library and initialize it (prior to
serving requests). 
When a request arrives, it needs to check and see if a certain request
belongs to a servlet, if so it needs to let the adapter take the request
and handle it. 
The adapter on the other hand needs to know what requests it is going to
serve, usually based on some pattern in the request URL, and to where to
direct these requests. 

Is this not correct...or am I misunderstanding it



-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 12:26 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat

Allen,

do you have the web server configured to throw the requests over to
Tomcat?
In other words, have either Proxy support or else URL Rewriting turned
on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten
by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come to
by
default.
Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill
-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat
Okay...that looks similar to the tomcat 4 information I haveis your
connector working correctly?
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat
My configuration is for tomcat 5:


 
 
 
 
   
 
...
...
Wilson, Allen wrote:

Here are the lines.

   maxProcessors="75"

  enableLookups="true" redirectPort="8443"
  acceptCount="100" debug="0"
connectionTimeout="2" />
   
   
Let me know if there is something that is incorrect.

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 4:28 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat
You said you can connect through port 8009 through the browser???
The jk protocol is not http, so if the configuration was allright you
can't connect through 8009 as http. Maybe the error is at your
server.xml...
Wilson, Allen wrote:


Thanks but this is on a Windows system and will not help...I am on a
Solaris and I have looked at documents like this before and they still
do not give me a definitive way of setting everything and testing
it...


Right now I have the HTTP server (port 80), Tomcat (port 8080), and
the


connector (8009) running. I even looked at the netstat to see if each
port was available...and they were.
When a do the home page request (http://myserver.com) it works
fine...but if I request the page for the Jetspeed Portal
(http://myserver.com/portal), I get an error. If I request the portal
page through port 8080 it works fine. If I request the same page on
8009


it works fine.

In all cases there were no entries in my mod_jk.log.

I am looking for something that will outline the steps for me on a
Solaris machine or at least give me a better way to diagnose what I am
doing wrong


-Original Message-
From: kwilding [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 10:55 AM
To: 'Tomcat Users List'
Subject: RE: Connecting the HTTP Server and Tomcat
http://www.greenfieldresearch.ca/technical/jk2_config.html

This was a really good starting point. Ignore the fact it talks abut
windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4
and


5
Kevan
-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: 06 April 2004 16:42
To: Tomcat Users List
Subject: Connecting the HTTP Server and Tomcat
Good morning

C

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Bill Bruns
Allen,

you ask "isn't that what the connector is supposed to do",
but the connector is in Tomcat, not in your web server.
It is the web server software that is monitoring port 80,
and that is where your browser sends requests to by default,
so the request must get past the web server first.
To do that you need to tell the web server where to send them, namely to
your Tomcat port.
I think this accounts for the behaviour you told about, namely that
Tomcat responds fine when you specify the port number in your URL.

-Bill

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 11:32 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Connecting the HTTP Server and Tomcat


Bill..thanks for the reply...

I will read through the link you provide but isn't that what the
connector is supposed to do.

My understanding what that the Apache HTTP server would detect what the
request was (Java or not) and pass it on to Tomcat.
Is this not what the specification of /portal/* ajp13 in the
configuration does.

This is what I got from the document at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html

Here is a little from one of the pages in that area... (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )

In a nutshell a web server is waiting for client HTTP requests. When
these requests arrive the server does whatever is needed to serve the
requests by providing the necessary content.

Adding a servlet container may somewhat change this behavior. Now the
web server needs also to perform the following:

Load the servlet container adapter library and initialize it (prior to
serving requests).
When a request arrives, it needs to check and see if a certain request
belongs to a servlet, if so it needs to let the adapter take the request
and handle it.
The adapter on the other hand needs to know what requests it is going to
serve, usually based on some pattern in the request URL, and to where to
direct these requests.


Is this not correct...or am I misunderstanding it



-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:26 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Allen,

do you have the web server configured to throw the requests over to
Tomcat?
In other words, have either Proxy support or else URL Rewriting turned
on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten
by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come to
by
default.

Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Okay...that looks similar to the tomcat 4 information I haveis your
connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


My configuration is for tomcat 5:


 
 

 

 
   
 
...
...

Wilson, Allen wrote:
> Here are the lines.
>
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="5"
maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0"
> connectionTimeout="2" />
>
> 
>  className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
> minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
>
> Let me know if there is something that is incorrect.
>
> -Original Message-
> From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 4:28 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
>
>
> You said you can connect through port 8009 through the browser???
> The jk protocol is not http, so if the configuration was allright you
> can't connect through 8009 as http. Maybe the error is at your
> server.xml...
>
> Wilson, Allen wrote:
>
>>Thanks but this is on a Windows system and will not help...I am on a
>>Solaris and I have looked at documents like this before and they still
>>do not give me a definitive way of setting everything and testing
>
> it...
>
>>Right now I have the HTTP server (port 80), Tomcat (port 8080), and
>
> the
>
>>connector (8009) running. I even looked at the netstat to see if each
>>port was available...and they were.
>>
>>When a do the home page request (http://myserver.com) it works
>>fine...but if I request the page for the Jetspeed Portal
>>(http://myserver.com/portal), I get an error. If I request the portal
>>page through port 8080 it works fine. If I 

Hello

2004-04-07 Thread tomcat-user
I hope the patch works.



Se eliminó Norton AntiVirus1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Bill..thanks for the reply...

I will read through the link you provide but isn't that what the
connector is supposed to do.

My understanding what that the Apache HTTP server would detect what the
request was (Java or not) and pass it on to Tomcat.
Is this not what the specification of /portal/* ajp13 in the
configuration does.

This is what I got from the document at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk.quickhowto.html

Here is a little from one of the pages in that area... (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html )

In a nutshell a web server is waiting for client HTTP requests. When
these requests arrive the server does whatever is needed to serve the
requests by providing the necessary content. 

Adding a servlet container may somewhat change this behavior. Now the
web server needs also to perform the following: 

Load the servlet container adapter library and initialize it (prior to
serving requests). 
When a request arrives, it needs to check and see if a certain request
belongs to a servlet, if so it needs to let the adapter take the request
and handle it. 
The adapter on the other hand needs to know what requests it is going to
serve, usually based on some pattern in the request URL, and to where to
direct these requests. 


Is this not correct...or am I misunderstanding it



-Original Message-
From: Bill Bruns [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 12:26 PM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Allen,

do you have the web server configured to throw the requests over to
Tomcat?
In other words, have either Proxy support or else URL Rewriting turned
on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten
by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come to
by
default.

Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Okay...that looks similar to the tomcat 4 information I haveis your
connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


My configuration is for tomcat 5:


 
 

 

 
   
 
...
...

Wilson, Allen wrote:
> Here are the lines.
>
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="5"
maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0"
> connectionTimeout="2" />
>
> 
>  className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
> minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
>
> Let me know if there is something that is incorrect.
>
> -Original Message-
> From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 4:28 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
>
>
> You said you can connect through port 8009 through the browser???
> The jk protocol is not http, so if the configuration was allright you
> can't connect through 8009 as http. Maybe the error is at your
> server.xml...
>
> Wilson, Allen wrote:
>
>>Thanks but this is on a Windows system and will not help...I am on a
>>Solaris and I have looked at documents like this before and they still
>>do not give me a definitive way of setting everything and testing
>
> it...
>
>>Right now I have the HTTP server (port 80), Tomcat (port 8080), and
>
> the
>
>>connector (8009) running. I even looked at the netstat to see if each
>>port was available...and they were.
>>
>>When a do the home page request (http://myserver.com) it works
>>fine...but if I request the page for the Jetspeed Portal
>>(http://myserver.com/portal), I get an error. If I request the portal
>>page through port 8080 it works fine. If I request the same page on
>
> 8009
>
>>it works fine.
>>
>>In all cases there were no entries in my mod_jk.log.
>>
>>I am looking for something that will outline the steps for me on a
>>Solaris machine or at least give me a better way to diagnose what I am
>>doing wrong
>>
>>
>>
>>-Original Message-
>>From: kwilding [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 10:55 AM
>>To: 'Tomcat Users List'
>>Subject: RE: Connecting the HTTP Server and Tomcat
>>
>>
>>http://www.greenfieldresearch.ca/technical/jk2_config.html
>>
>>This was a really good starting point. Ignore the fact it talks abut
>>windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4
>
> and
>
>>5
>>Kevan
>>
>>-Original Me

soft linking of directory in tomcat 4.1.27 is not working for me

2004-04-07 Thread Kam Lung Leung
Hi,

I recently upgraded to tomcat 4.1.27. Some how the soft linking of directory
within my web application directory is no longer accessible from a browser. It
must be configuration issue. Can some please let me know how to configure tomcat
4.1.27 so that it will follow the soft linked directory.

Thank you in advance,
  

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



JK2 Load Balancing Algorithms.

2004-04-07 Thread Angus Mezick

Is the only available JK2 load balancing algorithm a weighted round
robin?  I would like to switch to one that has a primary server and then
switches to round robin to reach the secondary server when an error is
thrown.  The reason I would like to do this is because we have 5 web
servers each with a apache/tomcat pair fronted by a Cisco Local
Director.  I would like the request to stay on the machine that cisco
sent the request to as long as the local tomcat is accepting requests.
I currely have annecdotal evidence that the current weight round robin
approach is a little flakey and is sending WebServer01 more requests
then are the server's fair share.  I wrote a logging filter and some
RequestHeader statements in the http.conf to try to get hard evidence
that this is happening.

Thanks,
--Angus

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



Re: [OT] how to save a form field to client

2004-04-07 Thread Justin Ruthenbeck
Yes, that can work.  A small applet with proper permissions granted would 
do the trick as well.

justin

At 06:45 AM 4/7/2004, you wrote:
Hi all,

Not really a Tomcat question but I'm hoping someone has a good
suggestion.  I have a Tomcat app with a chat client talking to a jabber
chat server.  A business requirement is to be able to click a button to
save the chat transcript to the client hard drive.  The only solution
I've come up with so far is basically submitting the text area as an
input to a servlet, that then saves the file to a temporary directory on
the server and redirects the client request to that file, which would
(hopefully) initiate the "save or open" dialog we all know and love.
Can this work?  Other ideas?

Thanks!

Andrew Longley
Senior Developer
MindFlow Technologies, Inc.
(972) 930-9988 x139
http://www.mindflow.com


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


__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Bill Bruns
Allen,

do you have the web server configured to throw the requests over to Tomcat?
In other words, have either Proxy support or else URL Rewriting turned on in
the web server?
Otherwise your HTTP requests default to port 80, so they will be eaten by
the web server and never reach Tomcat,
since Tomcat is listening on ports that the HTTP requests do not come to by
default.

Have you looked at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
- Bill

-Original Message-
From: Wilson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 8:54 AM
To: Tomcat Users List
Subject: RE: Connecting the HTTP Server and Tomcat


Okay...that looks similar to the tomcat 4 information I haveis your
connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


My configuration is for tomcat 5:


 
 

 

 
   
 
...
...

Wilson, Allen wrote:
> Here are the lines.
>
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="5"
maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0"
> connectionTimeout="2" />
>
> 
>  className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
> minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
>
> Let me know if there is something that is incorrect.
>
> -Original Message-
> From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 4:28 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
>
>
> You said you can connect through port 8009 through the browser???
> The jk protocol is not http, so if the configuration was allright you
> can't connect through 8009 as http. Maybe the error is at your
> server.xml...
>
> Wilson, Allen wrote:
>
>>Thanks but this is on a Windows system and will not help...I am on a
>>Solaris and I have looked at documents like this before and they still
>>do not give me a definitive way of setting everything and testing
>
> it...
>
>>Right now I have the HTTP server (port 80), Tomcat (port 8080), and
>
> the
>
>>connector (8009) running. I even looked at the netstat to see if each
>>port was available...and they were.
>>
>>When a do the home page request (http://myserver.com) it works
>>fine...but if I request the page for the Jetspeed Portal
>>(http://myserver.com/portal), I get an error. If I request the portal
>>page through port 8080 it works fine. If I request the same page on
>
> 8009
>
>>it works fine.
>>
>>In all cases there were no entries in my mod_jk.log.
>>
>>I am looking for something that will outline the steps for me on a
>>Solaris machine or at least give me a better way to diagnose what I am
>>doing wrong
>>
>>
>>
>>-Original Message-
>>From: kwilding [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 06, 2004 10:55 AM
>>To: 'Tomcat Users List'
>>Subject: RE: Connecting the HTTP Server and Tomcat
>>
>>
>>http://www.greenfieldresearch.ca/technical/jk2_config.html
>>
>>This was a really good starting point. Ignore the fact it talks abut
>>windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4
>
> and
>
>>5
>>Kevan
>>
>>-Original Message-
>>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>>Sent: 06 April 2004 16:42
>>To: Tomcat Users List
>>Subject: Connecting the HTTP Server and Tomcat
>>
>>
>>Good morning
>>
>>Can any provide some assistance on connecting the HTTP server and
>
> Tomcat
>
>>together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun
>>Solaris
>>machine. I think I have everything in place but when the only way I
>
> can
>
>>reach the Tomcat stuff is my specifying the port number in the URL.
>>
>>Can someone point me in the direction of some "How to connect Apache
>
> and
>
>>Tomcat for Dummies" instructions that will provide me some clear steps
>>and
>>methods for checking everything out.
>>
>>Thanks...and any help is appreciated.
>>
>>Allen
>>
>>
>>
>>
>
>

>
>>This message may contain proprietary or confidential company
>
> information.
>
>>Any unauthorized use or disclosure is prohibited.
>>
>>
>>
>>
>>
>
>

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

>
> This message may contain proprietary or confidential company
information.
> Any unauthorized use or disclosure is prohibited.
>
>
>
>
>

>
> -

session tracking using uri not cookies (was How can I maintain state with Axis

2004-04-07 Thread Paul Mansfield
With recent discussions about session management, I recalled long time
ago reading about URI rewriting for when the client doesn't handle
cookies properly, and found a useful article about it

http://access1.sun.com/techarticles/sessions.iws.html

"URL rewriting is the ability to use sessions and session information if
cookies have been disallowed or are not available on the client.  URL
rewriting can also be useful when, for example, proxy or firewall
servers change or disallow cookies.  Cookies are small bits of data
stored by the client; for example by a Web browser.  "

OK, this is for sun's iplanet, but the information might still be
relevant to tomcat.

Paul


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



reload jk2-settings?

2004-04-07 Thread Stefan Burkard
hi tomcat-users

i set up jk2 with apache and tomcat and it works just fine. but now i 
have changed the uri-definitions in workers2.properties. after this i 
restarted apache and tomcat - and nothing changed!

is there any way to explicitly reload the workers2.properties file?

i can remove an entire uri-mapping in the file, restart both apache and 
tomcat - and the removed uri just works fine. like the module uses an 
old version of the file

thanks and greetings
stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


MX4J 2.0 JRMP on Tomcat 4.1.29

2004-04-07 Thread Boulay Arnaud
I have this exception :

ERROR app MX4j RMI adapter not loaded: javax.management.ReflectionException: null 
nested exception is java.lang.ClassNotFoundException: mx4j.adaptor.rmi.jrmp.JRMPAdaptor

I think it's due to the JSR 160 implementation of MX4 J2.0 that have dropped the 
RMPAdaptor. I can't get an older version of MX4J and I think that RMI adapter for 
using a JMX console like MC4J is a requirement.

I need some help !

Thanks, Regards ,

Arnaud



Re: Your document

2004-04-07 Thread craigmcc
Please read the attached file.

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

RE: hostage to this list

2004-04-07 Thread Yansheng Lin
Hi, This happened to me once when I changed my email address.  But it's wierd
that you didn't get a reply... Maybe tomcat mail server demon doesn't want to
let you go:).

Oh, the address you use to unsubscribe from the list has to be the same as the
one you used to subscribe.

-Yan

-Original Message-
From: Tracy Bost [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 05, 2004 8:16 PM
To: Tomcat Users List
Subject: hostage to this list


I really enjoy this list, but have been trying to unsubscribe several
times today and never receive  a reply back when sending to
[EMAIL PROTECTED] 
  What's the deal here ? Is there no way out ?


-
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: catalina.out log

2004-04-07 Thread Shapira, Yoav

Hi,
Did you grep your code for System.out/System.err print/println
statements?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Rob Wichterman [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 11:19 AM
>To: 'Tomcat Users List'
>Subject: catalina.out log
>
>I am getting these odd logs in the Catalina.out.
>
>
>
>67928 7830 1
>
>67928 7830 1
>
>
>
>I am not sure what they are but I get them often and they always come
in
>groups of three numbers.
>
>
>
>Thanks,




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: Custom session tracking method?

2004-04-07 Thread Mike Curwen
So I'd have a servlet mapped to /login.

Protect it with Basic Auth, so that takes care of the Auth, and then
you're passed on to the /login servlet.  This login servlet creates a
new session, and then does one extra step.
It maps in the ServletContext ('application') the custom session-num
you've just created , to the jsessionid.  


your client does not have cookies. It does not have a jsessionid in the
URL either.  So to Tomcat, any subsequent requests would appear to have
no session.  So...

Construct a filter, mapped to '/*' (everything).  In the filter,
retrieve the session-num from the request parameters, lookup the actual
jsessionid from the application context, and then  
This is where it gets fuzzy for me...

1) 'append' the jsessionid as a parameter and doChain() ? (that probably
won't work, jsessionid in the URL is more special than just 'another
parameter').

2) 'rewrite' the URL yourself, placing the jsessionid where it ought to
be
http://www.foo.com/originalURI;jsessionid=56D49A19C332F095C79CABFC621B50
B1.tomcat2?originalParam1=A&originalParam2=B&etc
And then .forwad() this request, but don't doChain().



Is any of that craziness ??




> -Original Message-
> From: Sandy McArthur [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 10:45 AM
> To: Tomcat Users List
> Subject: Re: Custom session tracking method?
> 
> 
> The first request the legacy app makes is to /login which it 
> uses your 
> normal Basic authentication which is nice because I can use a 
> standard 
> Realm. In the response to /login is a session number the 
> client should 
> use along with some data about the user's account. Unfortunately the 
> session number must fit in a 4 byte integer in the app. :( After that 
> the session is passed around via the session-num query param.
> 
> Sandy McArthur
> 
> On Apr 7, 2004, at 11:33 AM, Mike Curwen wrote:
> 
> > How does your legacy client *first* get the session id ?
> >
> >>> the client passes session ids as a query
> >>> parameter named 'session-num'
> >
> >
> > From whence does the "session-num" query parameter come?  Does the 
> > legacy client create a random number and use it?  Do the 
> cgi scripts 
> > pass it back on a login of some sort, and then from that point, the 
> > legacy app appends it to any further queries?
> >
> >
> >


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



RE: Connecting the HTTP Server and Tomcat

2004-04-07 Thread Wilson, Allen
Okay...that looks similar to the tomcat 4 information I haveis your
connector working correctly?

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 6:06 PM
To: Tomcat Users List
Subject: Re: Connecting the HTTP Server and Tomcat


My configuration is for tomcat 5:


 
 

 

 
   
 
...
...

Wilson, Allen wrote:
> Here are the lines.
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="5"
maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0"
> connectionTimeout="2" /> 
> 
> 
>  className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
> minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/>
> 
> Let me know if there is something that is incorrect.
> 
> -Original Message-
> From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 06, 2004 4:28 PM
> To: Tomcat Users List
> Subject: Re: Connecting the HTTP Server and Tomcat
> 
> 
> You said you can connect through port 8009 through the browser???
> The jk protocol is not http, so if the configuration was allright you 
> can't connect through 8009 as http. Maybe the error is at your
> server.xml...
> 
> Wilson, Allen wrote:
> 
>>Thanks but this is on a Windows system and will not help...I am on a
>>Solaris and I have looked at documents like this before and they still
>>do not give me a definitive way of setting everything and testing
> 
> it...
> 
>>Right now I have the HTTP server (port 80), Tomcat (port 8080), and
> 
> the
> 
>>connector (8009) running. I even looked at the netstat to see if each
>>port was available...and they were.
>>
>>When a do the home page request (http://myserver.com) it works
>>fine...but if I request the page for the Jetspeed Portal
>>(http://myserver.com/portal), I get an error. If I request the portal
>>page through port 8080 it works fine. If I request the same page on
> 
> 8009
> 
>>it works fine.
>>
>>In all cases there were no entries in my mod_jk.log.
>>
>>I am looking for something that will outline the steps for me on a
>>Solaris machine or at least give me a better way to diagnose what I am
>>doing wrong
>>
>>
>>
>>-Original Message-
>>From: kwilding [mailto:[EMAIL PROTECTED] 
>>Sent: Tuesday, April 06, 2004 10:55 AM
>>To: 'Tomcat Users List'
>>Subject: RE: Connecting the HTTP Server and Tomcat
>>
>>
>>http://www.greenfieldresearch.ca/technical/jk2_config.html
>> 
>>This was a really good starting point. Ignore the fact it talks abut
>>windows, I imstaled on SuSE8.2 using apache2.0.48 and both tomcat 4
> 
> and
> 
>>5
>>Kevan
>>
>>-Original Message-
>>From: Wilson, Allen [mailto:[EMAIL PROTECTED] 
>>Sent: 06 April 2004 16:42
>>To: Tomcat Users List
>>Subject: Connecting the HTTP Server and Tomcat
>>
>>
>>Good morning
>> 
>>Can any provide some assistance on connecting the HTTP server and
> 
> Tomcat
> 
>>together. I am using HTTP Server 2.0.48 and Tomcat-4.1.18 on a Sun
>>Solaris
>>machine. I think I have everything in place but when the only way I
> 
> can
> 
>>reach the Tomcat stuff is my specifying the port number in the URL.
>> 
>>Can someone point me in the direction of some "How to connect Apache
> 
> and
> 
>>Tomcat for Dummies" instructions that will provide me some clear steps
>>and
>>methods for checking everything out.
>> 
>>Thanks...and any help is appreciated.
>> 
>>Allen
>>
>>
>>
>>
> 
>

> 
>>This message may contain proprietary or confidential company
> 
> information.
> 
>>Any unauthorized use or disclosure is prohibited.
>>
>>
>>
>>
>>
> 
>

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

> 
> This message may contain proprietary or confidential company
information.
> Any unauthorized use or disclosure is prohibited.
> 
> 
> 
> 
>

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


-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.

RE: JK2 connector built and installed but is there something wrong?

2004-04-07 Thread Kevin Struckhoff
OK, well now I know why. I had added an examples
directory and 1 html page under the htdocs dir of my
Apache Webserver. That's because the port number is
8080, not 80. 

Thanks.

--- Mark Nye <[EMAIL PROTECTED]> wrote:
> Hi,
>   I had a similar problem.  The line for the uri has
> to have a directory
> that is under $TOMCAT_HOME/webapps.  
> 
> [uri:/jsp-examples/*] would require the directory
> $TOMCAT_HOME/webapps/jsp-examples.  As Drew said you
> can try
> servlets-examples instead of jsp-examples.  Those
> directories are under the
> webapps folder by default.
> 
> Mark
> 
> -Original Message-
> From: Hamilton, Andrew
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 8:28 AM
> To: Tomcat Users List
> Subject: RE: JK2 connector built and installed but
> is there something wrong?
> 
> try doing this
> 
> [uri:/jsp-examples/*]
> worker=ajp13:localhost:8009
> 
> There is no examples structure.  You can also try
> servlets-examples.
> 
> Drew
> 
> -Original Message-
> From: Kevin Struckhoff
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 7:22 PM
> To: [EMAIL PROTECTED]
> Subject: JK2 connector built and installed but is
> there something wrong?
> 
> 
> After downloading the source and building it, I
> finally have mod_jk2 at least loaded into Apache Web
> Server 2.0.48.
> 
> However, in the docs, it says to add these 2
> directives to workers2.properties:
> 
> [uri:/examples/*]
> worker=ajp13:localhost:8009
> 
> When I send the browser to
> http://localhost/examples/,
> I get a -404 error (not found).
> 
> What am I missing? Apache starts up just fine.
> 
> TIA.
> 
> =
> Thanks.
> 
> Kevin
> 
> -- Enjoy Life, Drink and Code Java!
> 
> __
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
>
-
> 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]
> 


=
Thanks.

Kevin

-- Enjoy Life, Drink and Code Java!

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



Re: Custom session tracking method?

2004-04-07 Thread Sandy McArthur
The first request the legacy app makes is to /login which it uses your 
normal Basic authentication which is nice because I can use a standard 
Realm. In the response to /login is a session number the client should 
use along with some data about the user's account. Unfortunately the 
session number must fit in a 4 byte integer in the app. :( After that 
the session is passed around via the session-num query param.

Sandy McArthur

On Apr 7, 2004, at 11:33 AM, Mike Curwen wrote:

How does your legacy client *first* get the session id ?

the client passes session ids as a query
parameter named 'session-num'


From whence does the "session-num" query parameter come?  Does the
legacy client create a random number and use it?  Do the cgi scripts
pass it back on a login of some sort, and then from that point, the
legacy app appends it to any further queries?


-Original Message-
From: Sandy McArthur [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 10:21 AM
To: Tomcat Users List
Subject: Re: Custom session tracking method?

Since you're rewriting your CGI scripts as servlets, why not modify
them
to not expect the session-num parameter, and instead get
the session ID
via normal java code (request.getSession().getId())?  It's simpler,
standard, less code for you to write and test...
My problem is the client, which is a desktop app, doesn't support
cookies and uses hardcoded URIs for the cgi's. The app is
what uses the
query parameter session-num for session tracking, otherwise I would
prefer to use the normal session tracking semantics.
Sandy

For those who didn't see the original post on tomcat-dev:

On Apr 7, 2004, at 8:54 AM, Shapira, Yoav wrote:

Hi,
The reason your approach feels ugly and fragile to you is
because it
IS
;)  Session-tracking is mandated by a couple of specs
(J2EE, Servlet),
and tomcat implements it per the spec.  If you do something
different,
you will very likely have misbehaving 3rd party libraries
that rely on
proper session tracking behavior.

Since you're rewriting your CGI scripts as servlets, why not modify
them
to not expect the session-num parameter, and instead get
the session ID
via normal java code (request.getSession().getId())?  It's simpler,
standard, less code for you to write and test...
Please continue this discussion on the tomcat-user list, not
tomcat-dev.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Sandy McArthur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 5:05 PM
To: [EMAIL PROTECTED]
Subject: Custom session tracking method?
Hi all,

Is there a way to implement custom session tracking at the
container
level?

I'm trying to figure out how to implement a custom session
tracking
method. I have a legacy client that interacts with a set of cgi
scripts and I'd like to port those scripts to servlets.
I'm running
into a problem because the client passes session ids as a query
parameter named 'session-num' (e.g.:
/update?session-num=TOKEN). The
client does not support cookies and there is no way to
tell it use a
JSESSIONID encoded in the path.

I've followed the code as best as I can starting at
org.apache.coyote.tomcat5.CoyoteAdapter parses the JSESSIONID from
the request/cookies to where the
org.apache.catalina.Manager fetches
the org.apache.catalina.Session and I don't see anyway to directly
override the session tracking behavior.
The best idea I currently have is to use a Valve and a
custom Manager
and hope none of the Manager.{create,find}Session() methods are
called before my Valve can parse the request and stuff the
"session-num" in a ThreadLocal that Manager can use when
returning a
Session.

That feels ugly and fragile to me. Does anyone have a better
solution?
Sandy McArthur


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]


-
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: Wrapping Requests and jsp:include

2004-04-07 Thread Mike Curwen
I only wanted to know if Tomcat wrapped the request object in a façade
of some sort, when it does a jsp:include.
 
Maybe I should have just asked that much simpler question. ;)  (Or
looked at the source of a compiled jsp page?)  But well... there's still
the question of "that's the way Tomcat does it" vs. "this is how Resin
does the same thing" and whether or not there is a spec mandate to do it
one way or another.

What I'm trying (and succeeding) to do is access a multipart upload from
included jsp files. I just want to make sure this same code would work
'everywhere'.

> -Original Message-
> From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 10:39 AM
> To: 'Tomcat Users List'
> Subject: RE: Wrapping Requests and jsp:include
> 
> 
> Hey, you may want to try the question on the dev list.  But 
> IMHO if tomcat does not follow the spec, then it would be a 
> bug.  um, can you think of any other ways of retrieving the 
> image without using a wrapper?  if you are simply viewing the 
> image, there may be a easier way. But I am not sure what you 
> are doing exactly
> 
> -Yan
> 
> -Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 8:19 AM
> To: 'Tomcat Users List'
> Subject: RE: Wrapping Requests and jsp:include
> 
> 
> I know that works. My main concern was "does tomcat 
> internally construct a new request". Because then I wouldn't 
> be getting my wrapped request in the included page.  But it 
> appears to pass along the original request object (whatever it is).
> 
> > -Original Message-
> > From: Yan Lin [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 07, 2004 12:10 AM
> > To: Tomcat Users List
> > Subject: Re: Wrapping Requests and jsp:include
> > 
> > 
> > Hi, I think that's the correct behaviour for
> >  action. The request is shared among all
> > the included pages.  If you are still in doubt, you
> > can do a simple test by setting a param in your
> > request for you main jsp file, then try to retrieve it
> > in your included jsp file.
> > 
> > Hope this helps:).
> > 
> > -Yan
> > 
> > --- Mike Curwen <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > > 
> > > I'm just wanting to check if something is
> > > "consistent with Spec".  I've
> > > tested code that performs the following, in tomcat
> > > 4.1.29, and it 'works
> > > as expected'. So I'm curious if this is a
> > > 'guaranteed' behaviour across
> > > all containers, or if this is one of those fuzzy
> > > areas, and it just
> > > happily works in Tomcat.
> > >  
> > > I am using com.oreilly.servlet to upload files and
> > > I'm using them
> > > through a file upload filter and
> > > MultipartRequestWrapper class
> > > (borrowing heavily from those available in cos).
> > >  
> > > in process.jsp:
> > > --
> > > <%
> > >   MultipartRequestWrapper multi =
> > > (MultipartRequestWrapper) request;
> > >   filename = multi.getFilesystemName("image_1");
> > >   logger.debug("filename: " + filename);
> > > %>
> > > 
> > > 
> > > --
> > > 
> > > in someOtherJsp.jsp:
> > > --
> > > <%
> > >   MultipartRequestWrapper multi =
> > > (MultipartRequestWrapper) request;
> > >   filename = multi.getFilesystemName("image_1");
> > >   logger.debug("filename: " + filename);
> > > %>
> > > 
> > > 
> > > In my log4j logs:
> > > DEBUG com.gbim.web.FileUploadFilter - [wrapping
> > > request]
> > > DEBUG booster/process.jsp - [filename:
> > > separator.gif]
> > > DEBUG booster/someOtherJsp.jsp - [filename:
> > > separator.gif]
> > > 
> > > 
> > > So: I can access the request again, in the included
> > > file, as a
> > > MultiPartRequestWrapper.  So when Tomcat, the
> > > container, makes its
> > > internal jsp:include request, it passes along the
> > > *existing* request,
> > > wrapped and everything, as is. I seemed to recall
> > > some conversation
> > > about facades getting in the way, but this has been
> > > taken care of since
> > > ? Or was I dreaming? I've googled for this (probably
> > > imagined)
> > > conversation, and can't find it.
> > > 
> > > 
> > > ---
> > > mike curwen
> > > intermediate programmer
> > > globally boundless
> > > 
> > > 204 885-7733  ext 229
> > > www.globallyboundless.com
> > > 
> > > 
> > >
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Small Business $15K Web Design Giveaway
> > http://promotions.yahoo.com/design_giveaway/
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> --

Re: Tomcat and SSL: problem with expiration of VeriSign Global Server ID Intermediate Root

2004-04-07 Thread Jörn Böckenkamp
Hi again,

> Now that the VeriSign Global Server ID Intermediate Root cert
> has expired I have to replace the Intermediate Root cert on the
> server. There is an example on how to replace the cert on an apache
> server on their website (and that works fine), but no instructions
> how to replace it on an standalone tomcat server.

It seems that the only way to solve this problem is to get a new
cert from VeriSign. The german support-team had no problem to give
me a new one for free because they think that the expiration is their
problem, so they do anything to help the customer! To get a new
cert just follow the instructions written down in the tomcat 
documentation (generate key, csr, get csr-response, import response).

Thx again for your replies!

Joern

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



Re: Filter.init and JNDI resources

2004-04-07 Thread Sandy McArthur
On Apr 7, 2004, at 10:40 AM, Shapira, Yoav wrote:

Me too, though I haven't done it in a while.  What tomcat version are
you using?
Tomcat 5.0.19 on Mac OS X.

I just wrote a Filter that uses a JNDI provided datasource.
When I try
to access that datasource from the Filter.init(...) I get a
exception:
Caused by: javax.naming.NamingException: Cannot create
resource instance
Please post the server.xml segment that defines this JNDI resource.
server.xml:

 


  auth="Container"
 scope="Shareable"
  type="javax.sql.DataSource"
   description="JDBC Connection to the DAAP database"/>


factory

org.apache.commons.dbcp.BasicDataSourceFactory





url
jdbc:postgresql://localhost/test2


driverClassName
org.postgresql.Driver


username
[removed]


password
[removed]



 
maxWait
5000




validationQuery
SELECT version();


  

[...trimmed...]


  


web.xml:

  
DataSource for the test2 database.
jdbc/test2

javax.sql.DataSource


I don't think there is a problem with this datasource. I use it both in 
a DataSourceRealm and it works in my webapp except when I try to access 
it in my latest Filter.init(...). I can use it fine in 
Filter.doFilter(...).

I tried reordering my web.xml so that the resource-env-ref
came before the problematic filter to no avail.
This wouldn't make a difference: if your web.xml is valid, it's valid.
If your web.xml is invalid, you would've gotten an error on startup and
not gotten this far.
Yoav Shapira


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


RE: Wrapping Requests and jsp:include

2004-04-07 Thread Yansheng Lin
Hey, you may want to try the question on the dev list.  But IMHO if tomcat does
not follow the spec, then it would be a bug.  um, can you think of any other
ways of retrieving the image without using a wrapper?  if you are simply viewing
the image, there may be a easier way. But I am not sure what you are doing
exactly

-Yan

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 8:19 AM
To: 'Tomcat Users List'
Subject: RE: Wrapping Requests and jsp:include


I know that works. My main concern was "does tomcat internally construct
a new request". Because then I wouldn't be getting my wrapped request in
the included page.  But it appears to pass along the original request
object (whatever it is).

> -Original Message-
> From: Yan Lin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 12:10 AM
> To: Tomcat Users List
> Subject: Re: Wrapping Requests and jsp:include
> 
> 
> Hi, I think that's the correct behaviour for
>  action. The request is shared among all
> the included pages.  If you are still in doubt, you
> can do a simple test by setting a param in your
> request for you main jsp file, then try to retrieve it
> in your included jsp file.  
> 
> Hope this helps:).
> 
> -Yan
> 
> --- Mike Curwen <[EMAIL PROTECTED]> wrote:
> > Hello,
> > 
> > I'm just wanting to check if something is
> > "consistent with Spec".  I've
> > tested code that performs the following, in tomcat
> > 4.1.29, and it 'works
> > as expected'. So I'm curious if this is a
> > 'guaranteed' behaviour across
> > all containers, or if this is one of those fuzzy
> > areas, and it just
> > happily works in Tomcat.
> >  
> > I am using com.oreilly.servlet to upload files and
> > I'm using them
> > through a file upload filter and
> > MultipartRequestWrapper class
> > (borrowing heavily from those available in cos).
> >  
> > in process.jsp:
> > --
> > <%
> >   MultipartRequestWrapper multi =
> > (MultipartRequestWrapper) request;
> >   filename = multi.getFilesystemName("image_1");
> >   logger.debug("filename: " + filename);
> > %>
> > 
> > 
> > --
> > 
> > in someOtherJsp.jsp:
> > --
> > <%
> >   MultipartRequestWrapper multi =
> > (MultipartRequestWrapper) request;
> >   filename = multi.getFilesystemName("image_1");
> >   logger.debug("filename: " + filename);
> > %>
> > 
> > 
> > In my log4j logs:
> > DEBUG com.gbim.web.FileUploadFilter - [wrapping
> > request]
> > DEBUG booster/process.jsp - [filename:
> > separator.gif]
> > DEBUG booster/someOtherJsp.jsp - [filename:
> > separator.gif] 
> > 
> > 
> > So: I can access the request again, in the included
> > file, as a
> > MultiPartRequestWrapper.  So when Tomcat, the
> > container, makes its
> > internal jsp:include request, it passes along the
> > *existing* request,
> > wrapped and everything, as is. I seemed to recall
> > some conversation
> > about facades getting in the way, but this has been
> > taken care of since
> > ? Or was I dreaming? I've googled for this (probably
> > imagined)
> > conversation, and can't find it.
> > 
> > 
> > ---
> > mike curwen
> > intermediate programmer
> > globally boundless
> > 
> > 204 885-7733  ext 229
> > www.globallyboundless.com
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
> -
> 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: TEI Classloading

2004-04-07 Thread Shapira, Yoav

Hi,

>Unfortunately I have not got an EASY SMALL replication the the instance
>where the the class does exists and the exception is thrown - working
on
>it!
>
>Any thoughts will be appreciated.

Thank you for the detailed description.  Make sure you save the message
you sent.  Once you come up with a small WAR that shows the problem,
create a bugzilla issue for it (http://issues.apache.org/bugzilla/),
attach your WAR and the email you just sent.  We will attempt to
reproduce the problem and come up with a solution ;)

Yoav Shapira



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: Custom session tracking method?

2004-04-07 Thread Mike Curwen
How does your legacy client *first* get the session id ?

>> the client passes session ids as a query 
>> parameter named 'session-num'


>From whence does the "session-num" query parameter come?  Does the
legacy client create a random number and use it?  Do the cgi scripts
pass it back on a login of some sort, and then from that point, the
legacy app appends it to any further queries?



> -Original Message-
> From: Sandy McArthur [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 10:21 AM
> To: Tomcat Users List
> Subject: Re: Custom session tracking method?
> 
> 
> > Since you're rewriting your CGI scripts as servlets, why not modify
> > them
> > to not expect the session-num parameter, and instead get 
> the session ID
> > via normal java code (request.getSession().getId())?  It's simpler,
> > standard, less code for you to write and test...
> 
> My problem is the client, which is a desktop app, doesn't support 
> cookies and uses hardcoded URIs for the cgi's. The app is 
> what uses the 
> query parameter session-num for session tracking, otherwise I would 
> prefer to use the normal session tracking semantics.
> 
> Sandy
> 
> For those who didn't see the original post on tomcat-dev:
> 
> On Apr 7, 2004, at 8:54 AM, Shapira, Yoav wrote:
> 
> > Hi,
> > The reason your approach feels ugly and fragile to you is 
> because it 
> > IS
> > ;)  Session-tracking is mandated by a couple of specs 
> (J2EE, Servlet),
> > and tomcat implements it per the spec.  If you do something 
> different,
> > you will very likely have misbehaving 3rd party libraries 
> that rely on
> > proper session tracking behavior.
> >
> > Since you're rewriting your CGI scripts as servlets, why not modify
> > them
> > to not expect the session-num parameter, and instead get 
> the session ID
> > via normal java code (request.getSession().getId())?  It's simpler,
> > standard, less code for you to write and test...
> >
> > Please continue this discussion on the tomcat-user list, not
> > tomcat-dev.
> >
> >
> > Yoav Shapira
> > Millennium Research Informatics
> >
> >
> >> -Original Message-
> >> From: Sandy McArthur [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, April 06, 2004 5:05 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Custom session tracking method?
> >>
> >> Hi all,
> >>
> >> Is there a way to implement custom session tracking at the 
> container 
> >> level?
> >>
> >> I'm trying to figure out how to implement a custom session 
> tracking 
> >> method. I have a legacy client that interacts with a set of cgi 
> >> scripts and I'd like to port those scripts to servlets. 
> I'm running 
> >> into a problem because the client passes session ids as a query 
> >> parameter named 'session-num' (e.g.: 
> /update?session-num=TOKEN). The 
> >> client does not support cookies and there is no way to 
> tell it use a 
> >> JSESSIONID encoded in the path.
> >>
> >> I've followed the code as best as I can starting at 
> >> org.apache.coyote.tomcat5.CoyoteAdapter parses the JSESSIONID from 
> >> the request/cookies to where the 
> org.apache.catalina.Manager fetches 
> >> the org.apache.catalina.Session and I don't see anyway to directly 
> >> override the session tracking behavior.
> >>
> >> The best idea I currently have is to use a Valve and a 
> custom Manager 
> >> and hope none of the Manager.{create,find}Session() methods are 
> >> called before my Valve can parse the request and stuff the 
> >> "session-num" in a ThreadLocal that Manager can use when 
> returning a 
> >> Session.
> >>
> >> That feels ugly and fragile to me. Does anyone have a better 
> >> solution?
> >>
> >> Sandy McArthur
> >
> >
> >
> > 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]
> 


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



TEI Classloading

2004-04-07 Thread Carl Olivier
Hi.
 
With regards the TEI classloading issue I mentioned in my previous mail
(Issues on Tomcat5.0.19) - I *think* that the engine reports this error -
but in previous versions of Tomcat the exception was not thrown (bubbled to
the top) - blocking the running of ANY JSP page referencing the taglib in
question.  Maybe in Tomcat 5.0.19 this exception should be caught and logged
but not thrown all the way to the top?
 
Yoav:  To replicate it is easy of course:
 
Create a custom tag-lib - the tld file and some classes for the tags -
however one or more of your tags MUST have a TEI class in the Tag definition
in the TLD file - but the class file this TEI class entry reference must NOT
exist in the classpath.
 
This *should* cause ANY page that includes/reference the tag library to
throw an exception about not being able to find the TEI class - running in
Tomcat 5.0.19.
 
With regards my reasoning - I deployed a site of ours to JBoss (embedding
Tomcat 4.1.29) today - and noticed that the ENGINE component was reporting
the exception about not finding certain TEI classes - however the webapp
deployment worked fine.
 
Now - I know this is not the error I reported in ym last mail - but it is
related I think.  In my mail I mentioned that on the first request to a site
running on Tomcat 5.0.19 after a restart I SOMETIMES (I would say 30% of the
time) get the same exception - except that the TEI class the exception was
being reported on ACTUALLY DOES exist in the webapp's /WEB-INF/classes path.
 
It seems that the classloader has not finished loading (is that possible?)
at the time that tomcat tries to compile the JSP (which involves parsing any
custom taglibs the page references).
 
Unfortunately I have not got an EASY SMALL replication the the instance
where the the class does exists and the exception is thrown - working on it!
 
Any thoughts will be appreciated.
 
Carl Olivier
Director
tel  +27 21 7955197
fax +27 21 7955212
cell +27 82 7729753
 
[EMAIL PROTECTED]
www.zero-one.co.za
 
developers of the future

01 zero one
-
Confidentiality agreement:  This email contains information which is the
property of Zero One. The information contained herein is confidential and
may not be disclosed to any parties other than the intended recipient
without the express written consent of Zero One.
 


Wiki page on tomcat and PHP

2004-04-07 Thread Shapira, Yoav

Hi,
I've just created a wiki page for integrating tomcat with PHP (without
Apache): http://wiki.apache.org/jakarta-tomcat/UsingPhp.  If you're
interesting in this area, please try it out and report your findings.

Yoav Shapira
Millennium Research Informatics





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: Custom session tracking method?

2004-04-07 Thread Sandy McArthur
Since you're rewriting your CGI scripts as servlets, why not modify 
them
to not expect the session-num parameter, and instead get the session ID
via normal java code (request.getSession().getId())?  It's simpler,
standard, less code for you to write and test...
My problem is the client, which is a desktop app, doesn't support 
cookies and uses hardcoded URIs for the cgi's. The app is what uses the 
query parameter session-num for session tracking, otherwise I would 
prefer to use the normal session tracking semantics.

Sandy

For those who didn't see the original post on tomcat-dev:

On Apr 7, 2004, at 8:54 AM, Shapira, Yoav wrote:

Hi,
The reason your approach feels ugly and fragile to you is because it IS
;)  Session-tracking is mandated by a couple of specs (J2EE, Servlet),
and tomcat implements it per the spec.  If you do something different,
you will very likely have misbehaving 3rd party libraries that rely on
proper session tracking behavior.
Since you're rewriting your CGI scripts as servlets, why not modify 
them
to not expect the session-num parameter, and instead get the session ID
via normal java code (request.getSession().getId())?  It's simpler,
standard, less code for you to write and test...

Please continue this discussion on the tomcat-user list, not 
tomcat-dev.

Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Sandy McArthur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 5:05 PM
To: [EMAIL PROTECTED]
Subject: Custom session tracking method?
Hi all,

Is there a way to implement custom session tracking at the container
level?
I'm trying to figure out how to implement a custom session tracking
method. I have a legacy client that interacts with a set of cgi 
scripts
and I'd like to port those scripts to servlets. I'm running into a
problem because the client passes session ids as a query parameter
named 'session-num' (e.g.: /update?session-num=TOKEN). The client does
not support cookies and there is no way to tell it use a JSESSIONID
encoded in the path.

I've followed the code as best as I can starting at
org.apache.coyote.tomcat5.CoyoteAdapter parses the JSESSIONID from the
request/cookies to where the org.apache.catalina.Manager fetches the
org.apache.catalina.Session and I don't see anyway to directly 
override
the session tracking behavior.

The best idea I currently have is to use a Valve and a custom Manager
and hope none of the Manager.{create,find}Session() methods are called
before my Valve can parse the request and stuff the "session-num" in a
ThreadLocal that Manager can use when returning a Session.
That feels ugly and fragile to me. Does anyone have a better solution?

Sandy McArthur


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]


catalina.out log

2004-04-07 Thread Rob Wichterman
I am getting these odd logs in the Catalina.out.  

 

67928 7830 1

67928 7830 1

 

I am not sure what they are but I get them often and they always come in
groups of three numbers.

 

Thanks,



RE: Filter.init and JNDI resources

2004-04-07 Thread Shapira, Yoav

Hi,
Me too, though I haven't done it in a while.  What tomcat version are
you using?

>> I just wrote a Filter that uses a JNDI provided datasource.
>> When I try
>> to access that datasource from the Filter.init(...) I get a
exception:
>>
>> Caused by: javax.naming.NamingException: Cannot create
>> resource instance

Please post the server.xml segment that defines this JNDI resource.

>> I tried reordering my web.xml so that the resource-env-ref
>> came before the problematic filter to no avail.

This wouldn't make a difference: if your web.xml is valid, it's valid.
If your web.xml is invalid, you would've gotten an error on startup and
not gotten this far.

Yoav Shapira



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]



handling page redirects

2004-04-07 Thread Luc Foisy

I have the following in a jsp file

<%@ include file="applicationimports.inc" %>
<%@ include file="connection.inc" %>
<%@ include file="sessioncheck.inc" %>

<%
CustomerHTTPManagementScreen customerHTTPManagementScreen = 
(CustomerHTTPManagementScreen)session.getAttribute("customerHTTPManagementScreen");
if( customerHTTPManagementScreen == null )
{

response.sendRedirect(tmWebApp.getTMTokenizedPageProcessor().tokenizeLink("main.jsp"));
return;
}
if( request.getParameter("submit") != null )
{
if( request.getParameter("submit").equals("Modify Order") )
{

response.sendRedirect(tmWebApp.getTMTokenizedPageProcessor().tokenizeLink("orderentry.jsp?OpenOrder="
 + customerHTTPManagementScreen.getOrderHeaderID()));
return;
}
String key;
Hashtable parameters = new Hashtable();
for( Enumeration e = request.getParameterNames(); e.hasMoreElements() 
;)
{
key = (String)e.nextElement();
parameters.put(key, request.getParameter(key));
}
customerHTTPManagementScreen.processPerformed( new 
ProcessEvent(request.getParameter("submit"), parameters) );
}

response.sendRedirect(tmWebApp.getTMTokenizedPageProcessor().tokenizeLink("customer.jsp"));
%>

This file handles the processing for its connected jsp page (it is directed here to do 
the processing).
As you can see near the end is calls processPerformed, that sends the submit to the 
parent class. The parent class then does most of the process, then it is redirected 
back to the connected parent jsp (in this case custoner.jsp)
What I want to do here is get the submit of "Modify Order" to be handled by my web 
application. My web application main class is tmWebApp, it already has response and 
request available to it, so I could call the redirect from there.

The problem is, this jsp file will then try to redirect the page again on the last 
call. How do I determine if the application already redirected this?

Is my only option to catch an IllegalStateException or check isCommited()? Not as if 
that is a bad idea, but would there be anything else here that would get in my way, 
like is there anything else that would set that response to be commited?

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



RE: Filter.init and JNDI resources

2004-04-07 Thread Mike Curwen
I've been successful looking up a JNDI datasource from filter init().  I
use Tomcat 4.1.29 on slackware9.  


> -Original Message-
> From: Sandy McArthur [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: Filter.init and JNDI resources
> 
> 
> I just wrote a Filter that uses a JNDI provided datasource. 
> When I try  
> to access that datasource from the Filter.init(...) I get a exception:
> 
> Caused by: javax.naming.NamingException: Cannot create 
> resource instance
>  at  
> org.apache.naming.factory.ResourceEnvFactory.getObjectInstance
> (ResourceE 
> nvFactory.java:146)
>  at  
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java: 
> 301)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:838)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:185)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:826)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:185)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:826)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:185)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:826)
>  at  
> org.apache.naming.NamingContext.lookup(NamingContext.java:198)
>  at  
> org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
>  at 
> javax.naming.InitialContext.lookup(InitialContext.java:347)
>  at  
> net.sf.hibernate.connection.DatasourceConnectionProvider.confi
> gure(Datas 
> ourceConnectionProvider.java:44)
>  ... 23 more
> 
> But when I put the same init code in the Filter.doFilter(...) method  
> such that it only executes once, but delayed until the webapp 
> has been  
> made available I have no problems.
> 
> I skimmed the servlet 2.4 spec and found nothing stating the  
> availability of JNDI resources at the time a filter is instantiated.
> 
> I tried reordering my web.xml so that the resource-env-ref 
> came before  
> the problematic filter to no avail.
> 
> Does this sound like a bug, an ambiguous part of the Servlet 
> spec,  or  
> am I missing something?
> 
> Sandy McArthur
> 
> 
> -
> 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: Where to set JAVA_OPTS

2004-04-07 Thread ldrobertson

We use the setenv.sh. (tomcat 4.1xxx) for all custom environment variables
as well as java options.  catalina.sh references this script:

# Get standard environment variables
PRGDIR=`dirname "$PRG"`
CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
  . "$CATALINA_HOME"/bin/setenv.sh
fi

catalina.bat has a similar reference.



We create a setenv.sh in the bin directory and place ALL environment
variables in it, including CATALINA_OPTS.  Example contents:

export CATALINA_HOME=/usr/local/tomcat

# jvm command line options for tomcat
export CATALINA_OPTS=-mx128m


# db/2 env
export PATH=$PATH:/home/db2inst1/sqllib/bin
export LIBPATH=$LIBPATH:/home/db2inst1/sqllib/lib
export LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib




david




   

  "Shapira, Yoav"  

  <[EMAIL PROTECTED]To:   "Tomcat Users List" <[EMAIL 
PROTECTED]>  
  .com>cc: 

   Subject:  RE: Where to set JAVA_OPTS

  04/07/2004 09:57 

  AM   

  Please respond to

  "Tomcat Users

  List"

   

   






Hi,
Yup, same here.  I don't like to rely on the environment.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Giorgio Ponza [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 9:56 AM
>To: Tomcat Users List
>Subject: Re: Where to set JAVA_OPTS
>
>Jon Wingfield ha scritto:
>> No need to change the script. I normally set an Environment variable
in
>> the same place I define JAVA_HOME
>> Go to Control Panel \ System \ Advanced tab \ Environment
variables...
>> Well, that's where it is on XP, which i'm currently running.
>> HTH,
>> Jon
>
>I don't think is a good approach, at least for me. An environment
>variable is accessible to all java programs. Modifying the script
>affects only tomcat.
>Bye
>
>Giorgio
>
>
>>
>> Giorgio Ponza wrote:
>>
>>> Hi
>>> usually i put my JAVA_OPTS in catalina.sh (in windows is
catalina.bat)
>>> like this
>>>
>>> REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc
>>> -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt
>>> set JAVA_OPTS=-server -Xms64m -Xmx64m
>>>
>>> echo Using CATALINA_BASE:   %CATALINA_BASE%
>>> echo Using CATALINA_HOME:   %CATALINA_HOME%
>>> echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
>>> echo Using JAVA_HOME:   %JAVA_HOME%
>>> echo using JAVA_OPTS:   %JAVA_OPTS%
>>>
>>> it is used later in lines like
>>> %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% 
>>>
>>> Hope i helped u
>>> bye
>>>
>>> Giorgio








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



RE: Wrapping Requests and jsp:include

2004-04-07 Thread Mike Curwen
I know that works. My main concern was "does tomcat internally construct
a new request". Because then I wouldn't be getting my wrapped request in
the included page.  But it appears to pass along the original request
object (whatever it is).

> -Original Message-
> From: Yan Lin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 12:10 AM
> To: Tomcat Users List
> Subject: Re: Wrapping Requests and jsp:include
> 
> 
> Hi, I think that's the correct behaviour for
>  action. The request is shared among all
> the included pages.  If you are still in doubt, you
> can do a simple test by setting a param in your
> request for you main jsp file, then try to retrieve it
> in your included jsp file.  
> 
> Hope this helps:).
> 
> -Yan
> 
> --- Mike Curwen <[EMAIL PROTECTED]> wrote:
> > Hello,
> > 
> > I'm just wanting to check if something is
> > "consistent with Spec".  I've
> > tested code that performs the following, in tomcat
> > 4.1.29, and it 'works
> > as expected'. So I'm curious if this is a
> > 'guaranteed' behaviour across
> > all containers, or if this is one of those fuzzy
> > areas, and it just
> > happily works in Tomcat.
> >  
> > I am using com.oreilly.servlet to upload files and
> > I'm using them
> > through a file upload filter and
> > MultipartRequestWrapper class
> > (borrowing heavily from those available in cos).
> >  
> > in process.jsp:
> > --
> > <%
> >   MultipartRequestWrapper multi =
> > (MultipartRequestWrapper) request;
> >   filename = multi.getFilesystemName("image_1");
> >   logger.debug("filename: " + filename);
> > %>
> > 
> > 
> > --
> > 
> > in someOtherJsp.jsp:
> > --
> > <%
> >   MultipartRequestWrapper multi =
> > (MultipartRequestWrapper) request;
> >   filename = multi.getFilesystemName("image_1");
> >   logger.debug("filename: " + filename);
> > %>
> > 
> > 
> > In my log4j logs:
> > DEBUG com.gbim.web.FileUploadFilter - [wrapping
> > request]
> > DEBUG booster/process.jsp - [filename:
> > separator.gif]
> > DEBUG booster/someOtherJsp.jsp - [filename:
> > separator.gif] 
> > 
> > 
> > So: I can access the request again, in the included
> > file, as a
> > MultiPartRequestWrapper.  So when Tomcat, the
> > container, makes its
> > internal jsp:include request, it passes along the
> > *existing* request,
> > wrapped and everything, as is. I seemed to recall
> > some conversation
> > about facades getting in the way, but this has been
> > taken care of since
> > ? Or was I dreaming? I've googled for this (probably
> > imagined)
> > conversation, and can't find it.
> > 
> > 
> > ---
> > mike curwen
> > intermediate programmer
> > globally boundless
> > 
> > 204 885-7733  ext 229
> > www.globallyboundless.com
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
> -
> 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: Where to set JAVA_OPTS

2004-04-07 Thread Shapira, Yoav

Hi,
Yup, same here.  I don't like to rely on the environment.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Giorgio Ponza [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 9:56 AM
>To: Tomcat Users List
>Subject: Re: Where to set JAVA_OPTS
>
>Jon Wingfield ha scritto:
>> No need to change the script. I normally set an Environment variable
in
>> the same place I define JAVA_HOME
>> Go to Control Panel \ System \ Advanced tab \ Environment
variables...
>> Well, that's where it is on XP, which i'm currently running.
>> HTH,
>> Jon
>
>I don't think is a good approach, at least for me. An environment
>variable is accessible to all java programs. Modifying the script
>affects only tomcat.
>Bye
>
>Giorgio
>
>
>>
>> Giorgio Ponza wrote:
>>
>>> Hi
>>> usually i put my JAVA_OPTS in catalina.sh (in windows is
catalina.bat)
>>> like this
>>>
>>> REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc
>>> -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt
>>> set JAVA_OPTS=-server -Xms64m -Xmx64m
>>>
>>> echo Using CATALINA_BASE:   %CATALINA_BASE%
>>> echo Using CATALINA_HOME:   %CATALINA_HOME%
>>> echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
>>> echo Using JAVA_HOME:   %JAVA_HOME%
>>> echo using JAVA_OPTS:   %JAVA_OPTS%
>>>
>>> it is used later in lines like
>>> %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% 
>>>
>>> Hope i helped u
>>> bye
>>>
>>> Giorgio
>>>
>>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>--
>---
>Giorgio Ponza
>Web Developer
>Opla.com Ltd
>Tel. +39 011 7506233
>Fax. +39 011 746179
>http://www.opla.it
>---
>Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel)
>
>-
>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]



Filter.init and JNDI resources

2004-04-07 Thread Sandy McArthur
I just wrote a Filter that uses a JNDI provided datasource. When I try  
to access that datasource from the Filter.init(...) I get a exception:

Caused by: javax.naming.NamingException: Cannot create resource instance
at  
org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceE 
nvFactory.java:146)
at  
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java: 
301)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:838)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:185)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:826)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:185)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:826)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:185)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:826)
at  
org.apache.naming.NamingContext.lookup(NamingContext.java:198)
at  
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at  
net.sf.hibernate.connection.DatasourceConnectionProvider.configure(Datas 
ourceConnectionProvider.java:44)
... 23 more

But when I put the same init code in the Filter.doFilter(...) method  
such that it only executes once, but delayed until the webapp has been  
made available I have no problems.

I skimmed the servlet 2.4 spec and found nothing stating the  
availability of JNDI resources at the time a filter is instantiated.

I tried reordering my web.xml so that the resource-env-ref came before  
the problematic filter to no avail.

Does this sound like a bug, an ambiguous part of the Servlet spec,  or  
am I missing something?

Sandy McArthur

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


Re: Where to set JAVA_OPTS

2004-04-07 Thread Giorgio Ponza
Jon Wingfield ha scritto:
No need to change the script. I normally set an Environment variable in 
the same place I define JAVA_HOME
Go to Control Panel \ System \ Advanced tab \ Environment variables...
Well, that's where it is on XP, which i'm currently running.
HTH,
Jon
I don't think is a good approach, at least for me. An environment 
variable is accessible to all java programs. Modifying the script 
affects only tomcat.
Bye

Giorgio


Giorgio Ponza wrote:

Hi
usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) 
like this

REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc 
-Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt
set JAVA_OPTS=-server -Xms64m -Xmx64m

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME:   %JAVA_HOME%
echo using JAVA_OPTS:   %JAVA_OPTS%
it is used later in lines like
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% 
Hope i helped u
bye
Giorgio




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




--
---
Giorgio Ponza
Web Developer
Opla.com Ltd
Tel. +39 011 7506233
Fax. +39 011 746179
http://www.opla.it
---
Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to set JAVA_OPTS

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 14:43, Jon Wingfield wrote:
> No need to change the script. I normally set an Environment variable in 
> the same place I define JAVA_HOME
> 
> Go to Control Panel \ System \ Advanced tab \ Environment variables...
> Well, that's where it is on XP, which i'm currently running.

same on Windows 2000




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



request.getUserPrincipal();

2004-04-07 Thread Winter, G (Graeme)
Hi All,

I am trying to perform client authentication using certificates, and I have
made some progress - the certificates are now accepted as OK, which is nice.
Obviously I am using https too...

However, the sting is that the methods

request.getAuthType();
request.getRemoteUser();
request.getUserPrincipal();

All return NULL, which is contrary to the documentation, since I know the
user (i.e. me) has authenticated. clientAuth="true" in server.xml.

Anyone else out there had this problem, and more to the point found a
solution?

Cheers,

Graeme

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



[OT] how to save a form field to client

2004-04-07 Thread Longley, Andrew
Hi all,

Not really a Tomcat question but I'm hoping someone has a good
suggestion.  I have a Tomcat app with a chat client talking to a jabber
chat server.  A business requirement is to be able to click a button to
save the chat transcript to the client hard drive.  The only solution
I've come up with so far is basically submitting the text area as an
input to a servlet, that then saves the file to a temporary directory on
the server and redirects the client request to that file, which would
(hopefully) initiate the "save or open" dialog we all know and love.

Can this work?  Other ideas?

Thanks!

Andrew Longley
Senior Developer
MindFlow Technologies, Inc.
(972) 930-9988 x139
http://www.mindflow.com



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



Re: Where to set JAVA_OPTS

2004-04-07 Thread Jon Wingfield
No need to change the script. I normally set an Environment variable in 
the same place I define JAVA_HOME

Go to Control Panel \ System \ Advanced tab \ Environment variables...
Well, that's where it is on XP, which i'm currently running.
HTH,

Jon

Giorgio Ponza wrote:

[EMAIL PROTECTED] ha scritto:

Hi,
Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am
using Win 2k Pro and Tomcat 5.
Thank you,
Best Regards,
Uma


Hi
usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) 
like this

REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc 
-Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt
set JAVA_OPTS=-server -Xms64m -Xmx64m

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME:   %JAVA_HOME%
echo using JAVA_OPTS:   %JAVA_OPTS%
it is used later in lines like
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% 
Hope i helped u
bye
Giorgio




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


CoyoteConnector startup errors

2004-04-07 Thread Randy Paries
 
hello
 
I have rh9, apache 2.0.49 , tomcat 4.1.30 and  j2 connector,  jk2-2.0.4
 
this is a brand new install.
 
I appears to be working but i am getting errors when it starts
 
CoyoteConnector Coyote can't register jmx for protocol
 
I have seen a couple of references to this in the list archives, but have
not seen any solutions.

Has any one rectified this problem?

Thanks
 
randy



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



Tomcat Configuration: help sun.misc.ServiceConfigurationError

2004-04-07 Thread Farid C
Good Morning

I have an application allowing the export of a canvas
as a image png file.

The application can run in standalone mode or as an
applet.

In standalone mode: export drawing as a png file works
fine.

In applet mode (application server tomcat 5.0.18, java
1.4.1)

When I try to use the applet feature "export drawing
as a png file": it failed

In the Tomcat log:
I noticed the following line written when I tried to
use to "export image" applet feature :
199.99.99.9 - - [06/Apr/2004:13:50:38 +0100] "HEAD
/webApplication/META-INF/services/javax.imageio.spi.ImageTranscoderSpi
HTTP/1.1" 302 -


I have in the java console the following message:
sun.misc.ServiceConfigurationError
javax.imageio.spi.ImageInputStreamSpi:
http://localhost:8080/webApplication/META-INF/services/javax.imageio.spi.ImageInputStreamSpi:4:
Illegal configuration-file syntax
 
at sun.misc.Service.fail(Service.java:129)
 at sun.misc.Service.fail(Service.java:135)
 at sun.misc.Service.parseLine(Service.java:157)
 at sun.misc.Service.parse(Service.java:206)
 at sun.misc.Service.access$100(Service.java:111)
 at
sun.misc.Service$LazyIterator.hasNext(Service.java:257)
 at 
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:173)
 at
javax.imageio.spi.IIORegistry.(IIORegistry.java:113)
 at 
javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:134)
 at javax.imageio.ImageIO.(ImageIO.java:46)

any help would be appreciated
thank you 
F








Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! 
Messenger sur http://fr.messenger.yahoo.com

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



RE: Bad Class Version while compiling JSP Files on Tomcat

2004-04-07 Thread Caldarale, Charles R
> From: JavaNetIn [mailto:[EMAIL PROTECTED]
> Subject: Bad Class Version while compiling JSP Files on Tomcat
> 
> bad class file: D:\j2sdk1.4.2\jre\lib\rt.jar(java/lang/Object.class)
> class file has wrong version 48.0, should be 47.0

This error message is one generated by the javac compiler, and usually indicates that 
you have an old version of tools.jar in the classpath used in starting Tomcat.

 - Chuck


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


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



build from scratch - was Re: Hi

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 14:04, werner S. Teunissen wrote:
> Hi, 
> 
> I  need to setup a tomcat environmet manually,
> 
> I run Redhat 7.3 and I want toinstall from scratch not using the rpm's
> but use the src's build them and install.
> 
> How do I do that?
> 
there were recent postings on this list only yesterday


top tip: make the subject of emails relevant to the topic

next top tip: check the archives before asking the same old question



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



Bad Gateway

2004-04-07 Thread tomcat-user


Norton AntiVirus eliminato1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Multiple Paths in one Context

2004-04-07 Thread Shapira, Yoav

Hi,

>Is it possible to do:
>
>reloadable="true"
>crossContext="true" />

No.  You will need to have one of the contexts simply forward to
another, via methods explained many times on this list including
yesterday.

Yoav Shapira




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: measure memory

2004-04-07 Thread Shapira, Yoav

Hi,
Don't apologize for your English ;)

Use java.lang.Runtime#freeMemory/maxMemory/totalMemory methods.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Salvatierra, Mauricio h (M.H.) [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 8:47 AM
>To: Tomcat Users List
>Subject: measure memory
>
>  Hi people. I need measure the memory use for my application in the
tomcat
>4.1.12. Some body know how do.
>  Thanks and sorry mi inglish
>
>   Saludos !!
>   SALVATIERRA, Mauricio Hugo
>   Information Technology
>   Ford Argentina S.C.A.
>   Phono/Fax: 54-11-4756-8750
>   mailto: [EMAIL PROTECTED]
>Visit our page: http//www.ford.com.ar/
>
>***

>*
>STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments
are
>strictly confidential and property of Ford Argentina S.C.A. They may
not be
>used or disclosed by someone who is not a named recipient. If you have
>received this e-mail in error please notify the sender by replying to
this
>email inserting the word "Misdirected" as the message and delete the
>present message.
>***

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



Hi

2004-04-07 Thread werner S. Teunissen
Hi, 

I  need to setup a tomcat environmet manually,

I run Redhat 7.3 and I want toinstall from scratch not using the rpm's
but use the src's build them and install.

How do I do that?

 

Any suggestions will be very welcome :-)

Thanks in advance

 

 

Wernert 

http://www.de-rommelmarkt.nl  

 

 



RE: Is there a tomcat weblog anywhere?

2004-04-07 Thread Shapira, Yoav

Hi,
We have that in the wiki.  A blog would add nothing IMHO, and since it
has a nonzero maintenance cost, why do it?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 2:40 PM
>To: Tomcat Users List
>Subject: Re: Is there a tomcat weblog anywhere?
>
>A tomcat blog would contain a more compact kind of data, as links to
any
>tomcat article, news about tomcat, tips about configuration (an unified
>jk/jk2 how-to would be great!!), and whatever kind of information that
>would be useful to all tomcat users.
>
>LILES, DAVID (CONTRACTOR) wrote:
>> How would a "blog" be any different then this forum? I'm not very
>familiar with blogs, but from what I've read, they appear to be
basically a
>message board
>>
>> -Original Message-
>> From: Peter Lin [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, April 06, 2004 12:46 PM
>> To: Tomcat Users List; tomcatuser
>> Subject: Re: Is there a tomcat weblog anywhere?
>>
>>
>> some of the tomcat developers have blogs, but they don't necessarily
talk
>about tomcat in their blogs. some do.
>>
>> there is not unified tomcat blog site, unless you are proposing to
create
>one and let everyone use it :)
>>
>>
>> peter
>>
>>
>> tomcatuser <[EMAIL PROTECTED]> wrote:
>> I am talking about a weblog about tomcat.
>>
>>
>>
>> ---Original Message---
>>
>>>From: Emerson Cargnin
>>>Subject: Re: Is there a tomcat weblog anywhere?
>>>Sent: 06 Apr 2004 16:05:48
>>>
>>>you can try a countless of them, i can suggest you personalblog, the
one
>>>I develop and use:
>>>
>>>www.sf.net/projects/personalblog
>>>
>>>http://echofloripa.sytes.net/
>>>
>>>Or you mean a weblog about tomcat?
>>>
>>>:)
>>>
>>>Shapira, Yoav wrote:
>>>
Hi,
Why would we have one?

Yoav Shapira
Millennium Research Informatics




>-Original Message-
>From: tomcatuser [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 06, 2004 11:14 AM
>To: [EMAIL PROTECTED]
>Subject: Is there a tomcat weblog anywhere?
>
>I was wondering if there is any "official" tomcat weblogs on the
net.

I


>have searched and found some peoples individual weblogs, but was

wondering


>if there is a more "official" site.
>





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]


>>>
>>>
>>>--
>>>Emerson Cargnin
>>>Analista de Sistemas
>>>Setor de Desenvolvimento de Sistemas - TRE-SC
>>>tel : (048) - 251-3700 - Ramal 3181
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> ---Original Message---
>>
>>
>>
>>
>> -
>> Do you Yahoo!?
>> Yahoo! Small Business $15K Web Design Giveaway - Enter today
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>-
>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: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Shapira, Yoav

Hi,
How can you expect the addition of ANY component to the processing
pipeline NOT to cause a performance hit?  Of course AccessLogValve adds
something, nothing comes for free.  You can control the hit by modifying
what you're logging and disabling DNS lookups, as others have suggested.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Dan Barron [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 2:09 AM
>To: Tomcat Users List
>Cc: Dan Anderson
>Subject: Can AccessLogValve Cause Tomcat Performance Hit?
>
>Hello,
>
>We are seeing a performance hit to our server whenever we turn on
>AccessLogValve for a virtual host in tomcat. Is this common or has
anyone
>else experienced this?  Any suggestions on how to configure for optimal
>performance?
>
>Below is the virtual host entry in server.xml - tomcat is running stand
>alone on a Red Hat 9 Linux box - the box is dedicated to running tomcat
-
>there are two virtual hosts configured for the server, and only one has
any
>real traffic.
>
>   unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>  
>  directory="logs"  prefix="mysite.net." suffix=".txt"
>   timestamp="true"/>
> directory="logs/mysite.net-acesslogs"
>  pattern="%t %a %A %h %m %p %U"
>  prefix="access_log." suffix=".txt"
> timestamp="true"/>
>   
>   
>
>Thanks in advance!
>
>Dan Barron
>[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: measure memory

2004-04-07 Thread Carl Olivier
Try:

Runtime runtime = Runtime.getRuntime();
long totalMemory = runtime.totalMemory();
long freeMemory = runtime.freeMemory();

Also Thread counting:

ThreadGroup group = Thread.currentThread().getThreadGroup();
while (group.getParent() != null)
group = group.getParent();

int activeCount = group.activeCount();

Regards,

Carl

-Original Message-
From: Salvatierra, Mauricio h (M.H.) [mailto:[EMAIL PROTECTED] 
Sent: 07 April 2004 02:58 PM
To: Tomcat Users List
Subject: measure memory


Hi people. I need measure the memory use for my application in the tomcat
4.1.12. Some body know how do.
  Thanks and sorry mi inglish

Saludos !!
SALVATIERRA, Mauricio Hugo
Information Technology 
Ford Argentina S.C.A.  
Phono/Fax: 54-11-4756-8750 
mailto: [EMAIL PROTECTED]
Visit our page: http//www.ford.com.ar/



STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments are
strictly confidential and property of Ford Argentina S.C.A. They may not be
used or disclosed by someone who is not a named recipient. If you have
received this e-mail in error please notify the sender by replying to this
email inserting the word "Misdirected" as the message and delete the present
message.





-Original Message-
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 09:53
To: 'Tomcat Users List'
Subject: RE: JK2 connector built and installed but is there something wrong?


Hi,
  I had a similar problem.  The line for the uri has to have a directory
that is under $TOMCAT_HOME/webapps.  

[uri:/jsp-examples/*] would require the directory
$TOMCAT_HOME/webapps/jsp-examples.  As Drew said you can try
servlets-examples instead of jsp-examples.  Those directories are under the
webapps folder by default.

Mark

-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 8:28 AM
To: Tomcat Users List
Subject: RE: JK2 connector built and installed but is there something wrong?

try doing this

[uri:/jsp-examples/*]
worker=ajp13:localhost:8009

There is no examples structure.  You can also try servlets-examples.

Drew

-Original Message-
From: Kevin Struckhoff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 7:22 PM
To: [EMAIL PROTECTED]
Subject: JK2 connector built and installed but is there something wrong?


After downloading the source and building it, I
finally have mod_jk2 at least loaded into Apache Web
Server 2.0.48.

However, in the docs, it says to add these 2
directives to workers2.properties:

[uri:/examples/*]
worker=ajp13:localhost:8009

When I send the browser to http://localhost/examples/,
I get a -404 error (not found).

What am I missing? Apache starts up just fine.

TIA.

=
Thanks.

Kevin

-- Enjoy Life, Drink and Code Java!

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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

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



measure memory

2004-04-07 Thread Salvatierra, Mauricio h \(M.H.\)
Hi people. I need measure the memory use for my application in the tomcat 4.1.12. Some 
body know how do.
  Thanks and sorry mi inglish

Saludos !!
SALVATIERRA, Mauricio Hugo
Information Technology 
Ford Argentina S.C.A.  
Phono/Fax: 54-11-4756-8750 
mailto: [EMAIL PROTECTED]
Visit our page: http//www.ford.com.ar/


STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments are strictly 
confidential and property of Ford Argentina S.C.A. They may not be used or disclosed 
by someone who is not a named recipient. If you have received this e-mail in error 
please notify the sender by replying to this email inserting the word "Misdirected" as 
the message and delete the present message.




-Original Message-
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 09:53
To: 'Tomcat Users List'
Subject: RE: JK2 connector built and installed but is there something
wrong?


Hi,
  I had a similar problem.  The line for the uri has to have a directory
that is under $TOMCAT_HOME/webapps.  

[uri:/jsp-examples/*] would require the directory
$TOMCAT_HOME/webapps/jsp-examples.  As Drew said you can try
servlets-examples instead of jsp-examples.  Those directories are under the
webapps folder by default.

Mark

-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 8:28 AM
To: Tomcat Users List
Subject: RE: JK2 connector built and installed but is there something wrong?

try doing this

[uri:/jsp-examples/*]
worker=ajp13:localhost:8009

There is no examples structure.  You can also try servlets-examples.

Drew

-Original Message-
From: Kevin Struckhoff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 7:22 PM
To: [EMAIL PROTECTED]
Subject: JK2 connector built and installed but is there something wrong?


After downloading the source and building it, I
finally have mod_jk2 at least loaded into Apache Web
Server 2.0.48.

However, in the docs, it says to add these 2
directives to workers2.properties:

[uri:/examples/*]
worker=ajp13:localhost:8009

When I send the browser to http://localhost/examples/,
I get a -404 error (not found).

What am I missing? Apache starts up just fine.

TIA.

=
Thanks.

Kevin

-- Enjoy Life, Drink and Code Java!

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

-
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: secure installation

2004-04-07 Thread Gianni Pucciani
Parsons Technical Services wrote:

Gianni,

From my experience:
User tomcat is created for you.

Place it in whatever directory makes sense to you.(Keep it simple)

Keep the permissions on the tomcat directories tight. Make them only
readable by tomcat etc.
 

Ok, thanks!

Gianni

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


RE: JK2 connector built and installed but is there something wrong?

2004-04-07 Thread Mark Nye
Hi,
  I had a similar problem.  The line for the uri has to have a directory
that is under $TOMCAT_HOME/webapps.  

[uri:/jsp-examples/*] would require the directory
$TOMCAT_HOME/webapps/jsp-examples.  As Drew said you can try
servlets-examples instead of jsp-examples.  Those directories are under the
webapps folder by default.

Mark

-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 8:28 AM
To: Tomcat Users List
Subject: RE: JK2 connector built and installed but is there something wrong?

try doing this

[uri:/jsp-examples/*]
worker=ajp13:localhost:8009

There is no examples structure.  You can also try servlets-examples.

Drew

-Original Message-
From: Kevin Struckhoff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 7:22 PM
To: [EMAIL PROTECTED]
Subject: JK2 connector built and installed but is there something wrong?


After downloading the source and building it, I
finally have mod_jk2 at least loaded into Apache Web
Server 2.0.48.

However, in the docs, it says to add these 2
directives to workers2.properties:

[uri:/examples/*]
worker=ajp13:localhost:8009

When I send the browser to http://localhost/examples/,
I get a -404 error (not found).

What am I missing? Apache starts up just fine.

TIA.

=
Thanks.

Kevin

-- Enjoy Life, Drink and Code Java!

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



measure memory

2004-04-07 Thread Salvatierra, Mauricio h \(M.H.\)
  Hi people. I need measure the memory use for my application in the tomcat 4.1.12. 
Some body know how do.
  Thanks and sorry mi inglish

Saludos !!
SALVATIERRA, Mauricio Hugo
Information Technology 
Ford Argentina S.C.A.  
Phono/Fax: 54-11-4756-8750 
mailto: [EMAIL PROTECTED]
Visit our page: http//www.ford.com.ar/


STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments are strictly 
confidential and property of Ford Argentina S.C.A. They may not be used or disclosed 
by someone who is not a named recipient. If you have received this e-mail in error 
please notify the sender by replying to this email inserting the word "Misdirected" as 
the message and delete the present message.


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



Re: Bad Class Version while compiling JSP Files on Tomcat

2004-04-07 Thread David Smith
Hi.

Sounds to me like your jar files are compiled under different JDKs.  Be 
sure when you install j2sdk1.4.2 to completely replace all files in the 
JDK directory.  I'd actually go so far as to clean install in a separate 
directory (ie /usr/java/j2sdk1.4.2_04) and then symlink j2sdk to it.  
Set JAVA_HOME to j2sdk and it'll find the jdk.  Also be sure all your 
webapp files are compiled under the 1.4.2 JDK.

--David

JavaNetIn wrote:

I have j2sdk1.4.2. Exact version information as follows.

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
On Tomcat 4.0-b7, Tomcat 5.0.7 & Tomcat 5.0.19 JSP pages couldn't
compile while servlets works fine. Iknow by shifting to jdk1.3.1 this
problem will solve. But I can not do that. Tomcat 5.0.19 is the latest
release build.
Is the same problem everywhere?

To get rid of this should I download whole source code & other huge
libraries & compile it for j2sdk1.4.2.
Or downloading jikes will solve problem?

Error :

J:\Java\Downloads\Tomcat\jakarta-tomcat-5.0.19\work\Catalina\localhost\OnlineExam\org\apache\jsp\AvailableContext_jsp.java:8: 

cannot access java.lang.Object
bad class file: D:\j2sdk1.4.2\jre\lib\rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
implements org.apache.jasper.runtime.JspSourceDependent {
   ^
1 error


./Nikhil





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


  1   2   >