Re: Tomcat 4 + ssl + client authentication

2003-10-10 Thread Kenneth Westelinck
Client cert verification is done against the TrustStore, not the KeyStore.
Tomcat 5 has some improvements for this.  Tomcat 4 is still a bit limited.
 I have no idea what is goin wrong. Can someone tell me how to make this
 work?

Assuming that you don't want to just import the signing cert into cacerts
(see the JSSE docs for how to do this), then you need to have something
like:
CATALINA_OPTS=-Djavax.net.ssl.trustStore=/path/to/my/truststore 
-Djavax.net
.ssl.trustStorePassword=myTrustStorePassword

At the moment, your TrustStore file has to be in the same format as your
KeyStore file (a nasty limitation that I haven't gotten around to fixing 
:).
Yep, done that. Yesterday after sending this mail I was able to get it to 
work authenticating using the imported client key in Mozilla and putting the 
signed client key in this truststore. So it is working now using Mozilla 
(nice).
So now I found out there is a keyStore property as well (stupid me), and I 
was able to authenticate using my Java client against the server (nice 
again). If someone is interested in the code, this is the client part (just 
for testing):

System.setProperty(javax.net.ssl.trustStore, f:/client.keystore);
   System.setProperty(javax.net.ssl.keyStore, f:/client.keystore);
   System.setProperty(javax.net.ssl.keyStorePassword,changeit);
HttpClient httpclient = new HttpClient();
Protocol myhttps =
new Protocol(
https,
new StrictSSLProtocolSocketFactory(false),
8443);
httpclient.getHostConfiguration().setHost(myhost, 8443, myhttps);
GetMethod httpget = new GetMethod(/);
httpclient.executeMethod(httpget);
with StrictSSLProtocolSocketFactory the same code as the sample code you can 
download from the Apache/HTTPClient site. One question though ... suppose 
the client keyStore has different keys, how can one tell to the code to use 
key A or key B (for the moment there's only one key in this keyStore). Using 
mozilla it is simple, he just asks which key to use.

Thank you for your help.

regards,

Kenneth

_
Mis onze Back To School special niet! http://www.msn.be/backtoschool
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Advice

2003-10-10 Thread Robert Charbonneau
I am trying to build a web application from an already existing multi-threaded 
server.  I have a jar file (for example, server.jar) that contains all the 
classes for my server.  Is there any way for me to run my server through 
Tomcat to allow my JSPs and Servlets to be aware of the running processes 
objects, methods, etc.?

For example, if I have an class called CustomerData and I want to get a copy 
of that class that's currently initialized in the server, I want to be able 
to do the following:

%

Server myServer = somehow get a copy of the currently running Server object;
CustomerData cd = myServer.getCustomerData();

out.println(cd.m_numCustomers);

%

I've seen this done before and have been reading documentation til my eyes 
bleed and can't figure out how to perform such a thing.

The server itself can be accessed directly via a socket, but I would like a 
web application that can examine all of the objects that exist in the server 
while it's running without connecting directly to it's port and performing 
data retrieval steps.

Can this be done?  And if so, could someone point me in the right direction?

--
Robert Charbonneau
[EMAIL PROTECTED]
--


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



RE: Getting exception running examples

2003-10-10 Thread Artin Modaresi
Dear Mr Shapira,

Thank you for helping me out, I have two jdks installed 1.3 and 1.4 and
java_home
was pointing at the wrong one.

best regards
artin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: den 9 oktober 2003 14:47
To: Tomcat Users List
Subject: RE: Getting exception running examples



Howdy,
Do you have the JDK installed on your system?  If so, what version, and
is JAVA_HOME set correctly?

Do you have more than one version of tomcat installed on your system, or
more than one jasper jar in your tomcat installation?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Artin Modaresi [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 6:12 AM
To: '[EMAIL PROTECTED]'
Subject: Getting exception running examples

Hi,

I wanted to install a war file from cfdev activedit when I noticed most
of
their jsp files doesnt work on my tomcat. I have a tomacat 5.0.7
haven't
used it so much, I then tried to run the examples see if they work,
well
most of them do, so it can compile jsp at least but, one doesnt and
gives
me
same error. It is the jsp configuration example. The exception I get
is:

javax.servlet.ServletException
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
java.lang.NoSuchMethodError
   at
org.apache.jasper.compiler.JspUtil.makeJavaPackage(JspUtil.java:948)
   at
org.apache.jasper.JspCompilationContext.getDerivedPackageName(JspCompil
atio
n
Context.java:403)
   at
org.apache.jasper.JspCompilationContext.getServletPackageName(JspCompil
atio
n
Context.java:393)
   at
org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationC
onte
x
t.java:605)
   at
org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationCont
ext.
j
ava:227)
   at
org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilation
Cont
e
xt.java:475)
   at
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:514)
   at
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:484)
   at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:
5
53)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
3
00)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293
)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

So I thought easiet way is to search this archive or/and ask you guys.
Have
you seen this before? what is it?

thanks

artin



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: Tomcat on Netware

2003-10-10 Thread Aziz Yacoub
Still gave the same trouble... I ended up recompiling from source with
the same version of java as on the server (1.3.1_08), and now it works
just fine.
 
thanks for you help.

 Aziz Yacoub [EMAIL PROTECTED] 1/10/2003 5:10:53 pm  
Thanks for the info. Will try them and let you know. I've actually been

using a simple ncf script to start tomcat 4.0.4 (I think it was in some

of the docs off the tomcat site): 

envset CATALINA_HOME=VOL1:\tomcat41 
envset CATALINA_BASE=VOL1:\tomcat41 
envset CATALINA_CLASSPATH=$CATALINA_HOME\bin\bootstrap.jar 
envset CATALINA_CLASSPATH=$CATALINA_CLASSPATH;sys:\java\lib\tools.jar 

java -nsac -snCatalina -envCWD=$CATALINA_HOME -classpath 
$CATALINA_CLASSPATH -Dcatalina.base=$CATALINA_BASE 
-Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap %1

%2 %3 %3 %5 %6 %7 %8 %9 

It looks like the scripts you sent are quite a bit more involved. 

PS yes java is 13.1_08. 

thx 


 Jeff Tulley  [EMAIL PROTECTED]  1/10/2003 5:04:03 am  
There are a few possibilities: 
1) That JVM version has some weird bug that effects Tomcat uniquely 
(But, did you say the version number incorrectly; is it really 
1.3.1_08, 
not 1.1.3.8??). Officially we don't support Tomcat on NetWare 5.x, but


I've seen it work there before I think. 
2) There are some peculiarities that you need to get right for a JVM on


NetWare; namely the current working directory needs to be set. (NetWare


itself has no notion of this). For this, set -envCWD=sys:/tomcat/4 
(for instance) in the startup command line. 

I've attached the startup scripts we used on NetWare 6.5, where we put


Tomcat in sys:/tomcat/4 by default. I've been meaning to get these 
submitted to jakarta, but have not done so yet. If Tomcat is not in 
sys:/tomcat/4 (and the scripts in sys:/tomcat/4/bin), then you will 
have 
to edit each of these files and adjust the paths appropriately. 

Also, I hope that the perl scripts work fine on NetWare 5.1, they have


not had much testing there. 

(oh, rename the scripts from the .txt ending; I added that so that they


wouldn't be stripped from the mail list). 

Let me know if you have further questions and/or concerns with getting


this working. 

Jeff Tulley ( [EMAIL PROTECTED] ) 
(801)861-5322 
Novell, Inc., The Leading Provider of Net Business Solutions 
http://www.novell.com 

 [EMAIL PROTECTED] 9/30/03 8:19:06 AM  
Hi There, 

Sorry I don't, you may have to raise a bug report for this 
problem. 

I am positive that it will be an easy fix so it should be solved 
relatively 
quickly. 

Hope this is ok 

Thanks 

Pete 

-Original Message- 
From: Aziz Yacoub [ mailto:[EMAIL PROTECTED] 
Sent: 30 September 2003 15:08 
To: [EMAIL PROTECTED] 
Subject: RE: Tomcat on Netware 


Thanks... do you know why tomcat would be doing this on startup?? 

 Peter Guyatt  [EMAIL PROTECTED]  30/09/2003 
11:04:36 pm  
Yeah, 

The fact that you need to have the call to the method synchronized its


the 
same as using the wait() method implemented in the Object class 

you need to own the lock before you can call this method eg. 

some method { 
synchronized (this) { 
//this is ok 
wait(); 
} 
} 

where as 

some method { 
wait(); 
} 

would throw an IllegalMonitorStateException. 

Hope this helps 

Pete 

-Original Message- 
From: Aziz Yacoub [ mailto:[EMAIL PROTECTED] 
Sent: 30 September 2003 13:51 
To:  
Subject: Tomcat on Netware 


I've been successfully running Tomcat 4.0.4 on Novell Netware with the



Novell (ie Netscape) Enterprise Server (using nsapi_rd.nlm) for many 
months, and now I want to upgrade to Tomcat 4.1.27. 

I installed and configured 4.1.27 just like 4.0.4 (ajp13, workers 
etc), 

and now it's giving the following error when I try to start it: 

Bootstrap: Class loader creation threw exception 
java.lang.IllegalMonitorStateException: current thread not owner 

The log file shows: 

[Tue Sep 30 22:27:31 2003] [jk_worker.c (88)]: Into wc_open 
[Tue Sep 30 22:27:31 2003] [jk_worker.c (222)]: Into build_worker_map,



creating 1 workers 
[Tue Sep 30 22:27:31 2003] [jk_worker.c (228)]: build_worker_map, 
creating worker worker1 
[Tue Sep 30 22:27:31 2003] [jk_worker.c (148)]: Into wc_create_worker 
[Tue Sep 30 22:27:31 2003] [jk_worker.c (162)]: wc_create_worker, 
about to create instance worker1 of ajp13 
[Tue Sep 30 22:27:31 2003] [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory 
[Tue Sep 30 22:27:31 2003] [jk_worker.c (171)]: wc_create_worker, 
about to validate and init worker1 
[Tue Sep 30 22:27:31 2003] [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate 
[Tue Sep 30 22:27:31 2003] [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker worker1 contact is localhost:8009 
[Tue Sep 30 22:27:31 2003] [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init 
[Tue Sep 30 22:27:31 2003] [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 0 
[Tue Sep 30 22:27:31 2003] [jk_worker.c (187)]: wc_create_worker, 
done 
[Tue Sep 30 22:27:31 2003] [jk_worker.c 

let web tomcat talk 2 lan tomcat

2003-10-10 Thread Swapan Mazumdar
Hi forum,

I am having a difficult scenario where one tomcat sitting on webserver needs
to invoke a servlet from the other tomcat machine which not on web.
How can I let the tomcat on web to communicate with tomcat on LAN.

I would very much appreciate any response and insights from all.

Regards
Swapan Mazumdar



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



Servlet and Beans.

2003-10-10 Thread anunay ashish
If my bean and servlet are as package com.scheduler, then can I use make an
object of the bean class in the servlet?


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



Re: Servlet and Beans.

2003-10-10 Thread Kwok Peng Tuck
Yes, as long as you import the classes and make them available in your 
webapp.

anunay ashish wrote:

If my bean and servlet are as package com.scheduler, then can I use make an
object of the bean class in the servlet?
-
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: Restart automatically Tomcat

2003-10-10 Thread Slimane Amar
Hi Yoav,

When is sheduled this stable version of Tomcat 5.

Thanks.
 
-- Debut du message initial ---

De : Shapira, Yoav [EMAIL PROTECTED]
A  : Tomcat Users List [EMAIL PROTECTED]
Copies : 
Date   : Wed, 8 Oct 2003 08:57:59 -0400
Sujet  : RE: Restart automatically Tomcat


Howdy,
I would also add that the stable version of tomcat 5 is likely to
include this.  We have to modify common daemon first, but that's in the
works.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Slimane Amar [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:31 AM
To: tomcat-user
Subject: Restart automatically Tomcat

Hi all,

I'm using Tomcat 4.1.24 et i want after it fails it restarts
automatically
to have a high availability.

Is it possible with only Tomcat ?

Thanks

--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL : http://www.genigraph.fr
104, rue Castagnary  Tel : +33 01 45 33 64 63
F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63
--


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




--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL : http://www.genigraph.fr
104, rue Castagnary  Tel : +33 01 45 33 64 63
F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63
--


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



Re: [NewBie]Tomcat logs

2003-10-10 Thread Tim Funk
Both can be done by simple exercises in shell scripting.

-Tim

Julie christiana wrote:
Hi,
 
We have tomcat 4.1.24 installed. Thanks to tomcat documentation and email archives, we understood that tomcat logs will be rotated every day.
 
Would like to know if there we can configure the following for tomcat logs :
 
1) Keep a maximum of log files in tomcat/logs directory for AccessLog and other logs configured.
2) Keep a consolidated log file for the webserver and configure the backups and max. size for it.
 


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


Re: let web tomcat talk 2 lan tomcat

2003-10-10 Thread Tim Funk
Tomcat by itslef has no ability to do this. But if on the first server you 
have apache, then you can use JK.

Otherwise - you'll need to poroxy the request yourself. There is a jakarat 
project called HttpClient which makes this easy to do.

-Tim

Swapan Mazumdar wrote:

Hi forum,

I am having a difficult scenario where one tomcat sitting on webserver needs
to invoke a servlet from the other tomcat machine which not on web.
How can I let the tomcat on web to communicate with tomcat on LAN.


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


Re: Restart automatically Tomcat

2003-10-10 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/version.html#when

-Tim

Slimane Amar wrote:

Hi Yoav,



When is sheduled this stable version of Tomcat 5.



Thanks.



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


Re: Servlet and Beans.

2003-10-10 Thread anunay ashish
I am trying to use the bean class in the servlet but at the line in my code
in servlet where I am creating the object for bean class, on compiling the
java file it throws me errrors of Cannot compile the java file.
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 3:04 PM
Subject: Re: Servlet and Beans.


 Yes, as long as you import the classes and make them available in your
 webapp.

 anunay ashish wrote:

 If my bean and servlet are as package com.scheduler, then can I use make
an
 object of the bean class in the servlet?
 
 
 -
 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]



How to use jar files from CLASSPATH

2003-10-10 Thread Zsolt Koppany
Hi,

my application has to use DB2 JDBC that is in the CLASSPATH. How can I get
tomcat-4.1.24 to search for entries from CLASSPATH?

I understand that I could probably copy the entries from CLASSPATH into
.../WEB-INF/lib, but this JDBC driver does use native libraries, thus I
would not like to copy them into .../WEB-INF/lib.

This is how CLASSPATH is defined after DB2 installation:

.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\commo
n.jar

As you can see there is even a directory in CLASSPATH (that contains a lot
of files).


Zsolt



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



Re: [NewBie]Tomcat logs

2003-10-10 Thread Julie christiana
Is it possible to do this configuration in webserver itself ... I mean in server.xml ?
 
Thanks for the help,
Julie Christiana

Tim Funk [EMAIL PROTECTED] wrote:
Both can be done by simple exercises in shell scripting.

-Tim

Julie christiana wrote:
 Hi,
 
 We have tomcat 4.1.24 installed. Thanks to tomcat documentation and email archives, 
 we understood that tomcat logs will be rotated every day.
 
 Would like to know if there we can configure the following for tomcat logs :
 
 1) Keep a maximum of log files in tomcat/logs directory for AccessLog and other logs 
 configured.
 2) Keep a consolidated log file for the webserver and configure the backups and max. 
 size for it.
 


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Setting variables.

2003-10-10 Thread anunay ashish
When we set CLASSPATH variable in windows XP, where should we set it -
1. In user variables for administrator or
2. System variables


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



Re: [NewBie]Tomcat logs

2003-10-10 Thread Tim Funk
The AccessLogValve does not have the ability to perform the deletion of old 
files.

You can have multiple AccessLogValves at the same time. For example: one 
writing to a single non-rotating log file and the other rotating nightly.

-Tim

Julie christiana wrote:
Is it possible to do this configuration in webserver itself ... I mean in server.xml ?
 
Thanks for the help,
Julie Christiana

Tim Funk [EMAIL PROTECTED] wrote:
Both can be done by simple exercises in shell scripting.
-Tim

Julie christiana wrote:

Hi,

We have tomcat 4.1.24 installed. Thanks to tomcat documentation and email archives, we understood that tomcat logs will be rotated every day.

Would like to know if there we can configure the following for tomcat logs :

1) Keep a maximum of log files in tomcat/logs directory for AccessLog and other logs 
configured.
2) Keep a consolidated log file for the webserver and configure the backups and max. 
size for it.



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


RE: let web tomcat talk 2 lan tomcat

2003-10-10 Thread Swapan Mazumdar
Tim,
Tomcat by itslef has no ability to do this. But if on the first server you 
have apache, then you can use JK.

Otherwise - you'll need to poroxy the request yourself. There is a jakarat 
project called HttpClient which makes this easy to do.

The listed features below:
*Transparent connections through HTTP proxies. 
*Tunneled HTTPS connections through HTTP proxies, via the CONNECT method. 
*Transparent connections through SOCKS proxies (version 4  5) using native
Java socket support.

seems to play a vital role in meeting my requirement.
But before I dig my head into this stuff I would like to elaborate my
situtaion.
The web server(external IP) in question is supposed to render a image to be
fetched from an application(ARC MAP) to be run on 
a peer machine in LAN.

Since ARC Map can't be installed in te same machine which is a web server.
What approach would be a neat approach in meeting this requirement.

Kindly let may know what could be your approach in this context.

Regards
Swapan


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



Re: [NewBie]Tomcat logs

2003-10-10 Thread Julie christiana
Sorry to bother you all with so many questions,
 
but could you please send me a sample server.xml which achieves the same.
Any documentation for the same would also be useful.
 
Thanks,
Julie Chritiana

Tim Funk [EMAIL PROTECTED] wrote:
The AccessLogValve does not have the ability to perform the deletion of old 
files.

You can have multiple AccessLogValves at the same time. For example: one 
writing to a single non-rotating log file and the other rotating nightly.

-Tim

Julie christiana wrote:
 Is it possible to do this configuration in webserver itself ... I mean in server.xml 
 ?
 
 Thanks for the help,
 Julie Christiana
 
 Tim Funk wrote:
 Both can be done by simple exercises in shell scripting.
 
 -Tim
 
 Julie christiana wrote:
 
Hi,

We have tomcat 4.1.24 installed. Thanks to tomcat documentation and email archives, 
we understood that tomcat logs will be rotated every day.

Would like to know if there we can configure the following for tomcat logs :

1) Keep a maximum of log files in tomcat/logs directory for AccessLog and other logs 
configured.
2) Keep a consolidated log file for the webserver and configure the backups and max. 
size for it.

 


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


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

mod_jk lbfactor strangeness

2003-10-10 Thread tomcat

All, hope this is the right place for this.

I've an apache servers with 4 backend app servers and using mod_jk to 
balance the load over them.

Two of the machines are a fair bit quicker than the other two, so I've 
adjusted the weighting with lbfactor

app1 (slow) =  lbfactor=100
app2 (slow) =  lbfactor=100
app3 (fast) =  lbfactor=150
app4 (fast) =  lbfactor=150

Yet what I see is that app2 and app3 get most of the load?

I've checked this with snoop(tcpdump) and counted the packets to the 
various app servers. And app2 and app3 defiantly seems to be getting 
more work. I've checked my host file and workers.properties and all 
seems right.

Am I missing something, or is lbfactor not that reliable, both my tomcat 
books seem to contradict the jakarta web site on which way round the 
weighting goes, but that still doesn't explain why two differently 
weighted machines get the same load.

Cheers for any help
Lee


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



Re: [NewBie]Tomcat logs

2003-10-10 Thread Tim Funk
See the javadocs for AccessLogValve (prefereably your local version since the 
site is a version out of date. Any setXXX(stuff) method can be set declared 
in the AccessLogValve decalration. For example, there is a property called 
rotatable as indicated by setRotatable(boolean). This can be set in the vavle 
by this:

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
rotatable='false' pattern=common resolveHosts=false/
You can declare as many Valves as you want. I recommend copy/paste to get as 
many declarations as possible on a test tomcat instance so you can play with 
the different property permutations.

-Tim

Julie christiana wrote:

Sorry to bother you all with so many questions,
 
but could you please send me a sample server.xml which achieves the same.
Any documentation for the same would also be useful.
 
Thanks,
Julie Chritiana

Tim Funk [EMAIL PROTECTED] wrote:
The AccessLogValve does not have the ability to perform the deletion of old 
files.

You can have multiple AccessLogValves at the same time. For example: one 
writing to a single non-rotating log file and the other rotating nightly.

-Tim
  


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


RE: mod_jk lbfactor strangeness

2003-10-10 Thread Ralph Einfeldt

1. mod_jk doesn't balance the load on the base of
   packets.

2. mod_jk works with sticky sessions so only new sessions
   are balanced. I belief but am not shure that it's just 
   round robin.

3. Bill Barker claims that the load balancing is broken 
   as the instances of mod_jk don't know the load of each 
   other. So mod_jk will balance to some extend but not as 
   good as it could/should.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 1:37 PM
 To: [EMAIL PROTECTED]
 Subject: mod_jk lbfactor strangeness
 
 I've an apache servers with 4 backend app servers and using mod_jk to 
 balance the load over them.
 
 Two of the machines are a fair bit quicker than the other 
 two, so I've adjusted the weighting with lbfactor
 
 app1 (slow) =  lbfactor=100
 app2 (slow) =  lbfactor=100
 app3 (fast) =  lbfactor=150
 app4 (fast) =  lbfactor=150
 
 Yet what I see is that app2 and app3 get most of the load?
 
 I've checked this with snoop(tcpdump) and counted the packets to the 
 various app servers. And app2 and app3 defiantly seems to be getting 
 more work. I've checked my host file and workers.properties and all 
 seems right.
 

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



OT How to maintain a version number

2003-10-10 Thread Jim Lynch
I've written an application where I need to keep up with the version 
number.  I'm trying to figure out an elegant way to maintain that in the 
simplest and perhaps the most automated way.  My source is kept in a cvs 
 archive but of course there are dozens of files so it would be 
difficult to base a version number on the version number of a single 
source or would it?

The number would be displayed as part of the title(TITLE My App 
0.92/TITLE) in the index.jsp so it would have to be easily available 
to that file. I suppose I could use JNDI, I could hardwire it into the 
index.jsp file, but I probably want to put it into other .jsp files also 
and it would be harder to keep up with that way.

Anyway I'm looking for good ideas from this very enlightened crowd.

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


RE: OT How to maintain a version number

2003-10-10 Thread Koes, Derrick
Property file?

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 8:17 AM
To: Tomcat Users List
Subject: OT How to maintain a version number

I've written an application where I need to keep up with the version 
number.  I'm trying to figure out an elegant way to maintain that in the 
simplest and perhaps the most automated way.  My source is kept in a cvs 
  archive but of course there are dozens of files so it would be 
difficult to base a version number on the version number of a single 
source or would it?

The number would be displayed as part of the title(TITLE My App 
0.92/TITLE) in the index.jsp so it would have to be easily available 
to that file. I suppose I could use JNDI, I could hardwire it into the 
index.jsp file, but I probably want to put it into other .jsp files also 
and it would be harder to keep up with that way.

Anyway I'm looking for good ideas from this very enlightened crowd.

Thanks,
Jim.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: OT How to maintain a version number

2003-10-10 Thread Euan Guttridge
Easy if you build with ANT - but very OT! Use the increment task to
increment a property file, then a filterset to place that version number
into a JSP/HTML. For more info email me direct or post to ANT mailing list.

Euan

-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2003 13:22
To: 'Tomcat Users List'
Subject: RE: OT How to maintain a version number


Property file?

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 8:17 AM
To: Tomcat Users List
Subject: OT How to maintain a version number

I've written an application where I need to keep up with the version 
number.  I'm trying to figure out an elegant way to maintain that in the 
simplest and perhaps the most automated way.  My source is kept in a cvs 
  archive but of course there are dozens of files so it would be 
difficult to base a version number on the version number of a single 
source or would it?

The number would be displayed as part of the title(TITLE My App 
0.92/TITLE) in the index.jsp so it would have to be easily available 
to that file. I suppose I could use JNDI, I could hardwire it into the 
index.jsp file, but I probably want to put it into other .jsp files also 
and it would be harder to keep up with that way.

Anyway I'm looking for good ideas from this very enlightened crowd.

Thanks,
Jim.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
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: How to use jar files from CLASSPATH

2003-10-10 Thread Cox, Charlie
tomcat doesn't use the classpath. You can copy your jar into /common/lib and
it will be shared by all your webapps. 

see the classloader doc:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie

 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 1:17 AM
 To: Tomcat Users List
 Subject: How to use jar files from CLASSPATH
 
 
 Hi,
 
 my application has to use DB2 JDBC that is in the CLASSPATH. 
 How can I get
 tomcat-4.1.24 to search for entries from CLASSPATH?
 
 I understand that I could probably copy the entries from 
 CLASSPATH into
 .../WEB-INF/lib, but this JDBC driver does use native 
 libraries, thus I
 would not like to copy them into .../WEB-INF/lib.
 
 This is how CLASSPATH is defined after DB2 installation:
 
 .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLL
 IB\java\db2jcc
 .jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLL
 IB\java\db2jcc
 _license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQL
 LIB\java\commo
 n.jar
 
 As you can see there is even a directory in CLASSPATH (that 
 contains a lot
 of files).
 
 
 Zsolt
 
 
 
 -
 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: Setting variables.

2003-10-10 Thread Euan Guttridge
Why do you want to set the classpath? If for tomcat then as previous post -
tomcat doesn't use the classpath, neither for itself nor for the webapps
within it. 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

-Original Message-
From: anunay ashish [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2003 12:14
To: Tomcat Users List
Subject: Setting variables.


When we set CLASSPATH variable in windows XP, where should we set it - 1. In
user variables for administrator or 2. System variables


-
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: mod_jk lbfactor strangeness

2003-10-10 Thread tomcat

1 Understood, it was just to get some ballpark indication

2 Surely then the new session would be balanced to the faster machine, 
and I would see more activity on them.

3 That would explain everything :(

Would a move to mod_jk2 be of any use, or should I get someone to put 
their hand in their pocket and upgrade the other two boxes

Thanks for the reply.

Lee

On Fri, 10 Oct 2003, Ralph Einfeldt wrote:

 
 1. mod_jk doesn't balance the load on the base of
packets.
 
 2. mod_jk works with sticky sessions so only new sessions
are balanced. I belief but am not shure that it's just 
round robin.
 
 3. Bill Barker claims that the load balancing is broken 
as the instances of mod_jk don't know the load of each 
other. So mod_jk will balance to some extend but not as 
good as it could/should.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 10, 2003 1:37 PM
  To: [EMAIL PROTECTED]
  Subject: mod_jk lbfactor strangeness
  
  I've an apache servers with 4 backend app servers and using mod_jk to 
  balance the load over them.
  
  Two of the machines are a fair bit quicker than the other 
  two, so I've adjusted the weighting with lbfactor
  
  app1 (slow) =  lbfactor=100
  app2 (slow) =  lbfactor=100
  app3 (fast) =  lbfactor=150
  app4 (fast) =  lbfactor=150
  
  Yet what I see is that app2 and app3 get most of the load?
  
  I've checked this with snoop(tcpdump) and counted the packets to the 
  various app servers. And app2 and app3 defiantly seems to be getting 
  more work. I've checked my host file and workers.properties and all 
  seems right.
  
 
 -
 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: OT How to maintain a version number

2003-10-10 Thread Shapira, Yoav

Howdy,
You could have a common header jsp that's included in pages, which gets
the version number from a servlet context parameter, or a property file.
JNDI is too heavyweight for this I think.  The purely ant approach is
alright.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 8:29 AM
To: 'Tomcat Users List'
Subject: RE: OT How to maintain a version number

Easy if you build with ANT - but very OT! Use the increment task to
increment a property file, then a filterset to place that version
number
into a JSP/HTML. For more info email me direct or post to ANT mailing
list.

Euan

-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]
Sent: 10 October 2003 13:22
To: 'Tomcat Users List'
Subject: RE: OT How to maintain a version number


Property file?

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 8:17 AM
To: Tomcat Users List
Subject: OT How to maintain a version number

I've written an application where I need to keep up with the version
number.  I'm trying to figure out an elegant way to maintain that in
the
simplest and perhaps the most automated way.  My source is kept in a
cvs
  archive but of course there are dozens of files so it would be
difficult to base a version number on the version number of a single
source or would it?

The number would be displayed as part of the title(TITLE My App
0.92/TITLE) in the index.jsp so it would have to be easily available
to that file. I suppose I could use JNDI, I could hardwire it into the
index.jsp file, but I probably want to put it into other .jsp files
also
and it would be harder to keep up with that way.

Anyway I'm looking for good ideas from this very enlightened crowd.

Thanks,
Jim.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew
and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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




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: Web-app setup

2003-10-10 Thread Shapira, Yoav

Howdy,
As the other dude suggested, your url-pattern is wrong.  It's relative
to your docbase, so you don't need the leading /myapp.  /Login would be
a good URL pattern.  Your JSP form action would then be ./Login (or
/myapp/Login but I prefer relative links for portability).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Duane Kehoe [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 5:03 PM
To: Tomcat Users List
Subject: Re: Web-app setup

Sorry about that the whole web.xml is included.  This is a very simple
app(actually my second app ever, the first was a simple lookup(which
worked)) so the web.xml that I have created thus far is very small

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//SUN Microsystems, Inc.//DTD Web
Application
2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-nameLogin/display-name
  descriptionmy little login app/description
  servlet
servlet-nameLogin/servlet-name
servlet-classcom.mycompany.myapp.Login/servlet-class
  /servlet
  servlet-mapping
servlet-nameLogin/servlet-name
url-pattern/myapp/com/mycompany/myapp/url-pattern
  /servlet-mapping
/web-app

Thanks again

Lee, Paul NYC wrote:

Can you include the relevant part of web.xml?



--

/*Weyco** Group* -/

*/Florsheim, Brass Boot, Nunn Bush, Stacy Adams/*
Duane Kehoe
EC / Programmer / Analyst


Phone # 414.908.1814
Fax # 414.908.1601
Email: [EMAIL PROTECTED]



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



I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-10 Thread Jose Alanya
Hi, 

I post a text XML with  Microsoft.XMLHTTP to servlet,
As I can recover the value of object request from of servlet
This can :
something like  :  Document oDocument = xml.paser(objrequest)

Not getparameter, not getquerystring 

Please  help me!
Thanks,

best regards,
Jose Alanya
From, Lima Peru 

Where to download Tomcat v 4.1.24 from?

2003-10-10 Thread Agarwal, Naresh



Hi

I could not find 
Tomcat v 4.1.24 in packaged form at the Tomcat site. Only place I could find it 
was the cvs.

Could anyone please 
help me out?

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

RE: tomcat jitters, then hangs - please help

2003-10-10 Thread Ryan Lissack
Hi Noam,

Remy pointed out to me previously that RH9 uses a new form of threading and
based on this we have done some investigation.

RH9 uses NTPL (Native POSIX Thread Library)
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-notes/x86/

It is possible to revert to the older form of threading, LinuxThreads, by
setting an environment variable, namely:
LD_ASSUME_KERNEL=kernel-version
- 2.4.1 - Linuxthreads with floating stacks
- 2.2.5 - Linuxthreads without floating stacks

This does not revert back to an older kernel, it just changes the GNU C
library used http://www-106.ibm.com/developerworks/java/library/j-jtc/

We will be testing with these settings starting today and, if we continue to
have problems, we will be trying another distro.

Ryan



More NTPL info http://www.redhat.com/partners/pdf/POSIX_Linux_Threading.pdf


-Original Message-
From: Noam Camiel [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 18:36
To: Tomcat Users List
Subject: Re: tomcat jitters, then hangs - please help


On Thursday, October 09, 2003 5:11 PM Ryan Lissack
[EMAIL PROTECTED] wrote:
 Hi Noam,

 We have experienced similar problems.  You will notice in the thread dump
 that there is no thread from the connectors thread pool waiting on an
 accept

I see your what you mean, I compared the thread dump to a good dump when
the server is operational and there indeed I found a thread from the
connectors thread pool waiting on accept:

3XMTHREADINFO  http80-Processor24 (TID:0x100688E0,
sys_thread_t:0x87810C0, state:R, native ID:0x41CCCF40) prio=5
4XESTACKTRACE  at java.net.PlainSocketImpl.socketAccept(Native
Method)

This does not appear to exist in the bad dump.

 What OS are you on, RH9??

Yes, Im on RH9.

Any ideas why this could happen?  could it be some system resource limit?
Is your application an intensive app? My application is not an intensive one
and the hangs occur hours after i start the server (usually a day later).

Thanks for the info, i'd be happy to hear any suggestions.
Noam

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



Re: Tomcat 4 + Apache 1.3 + mod_jk lb session loss

2003-10-10 Thread Ned Regina
Bingo!  Thanks a million.  It's been so long since I set up the old system 
that I must have forgotten that *minor* detail.  It sure would be nice if 
the term jvmRoute appeared somewhere in the JK docs.

At 05:00 PM 10/9/2003, you wrote:
It's my understanding that the jvmRoute values must match the
worker names in order for mod_jk to know where to route the
request.
In this case, the values should be live2 and live3.

G. Wade

Ned Regina wrote:

The jvmRoute attributes are set to tc1 and tc2 respectively.  The 
jvmRoute suffix on the JSESSIONID cookie alternates between the two 
servers when reloading.  There's no authentication on the page.

At 03:49 PM 10/9/2003, you wrote:

Just as a quick check of the obvious.

You do have jvmRoute set correctly on the Engine/s for each
Tomcat server, don't you?
You aren't using BASIC authentication by any chance are you?

G. Wade

Ned Regina wrote:

I'm trying to load balance multiple Tomcat 4.1.27 servers behind Apache 
1.3.28 using jk(1) on RedHat 9.  It appears that the sessions are not 
being maintained when more than one Tomcat server is running.  A quick 
test page which prints application, session, request, and cookie 
information shows a new JSESSIONID cookie every time the page loads as 
well as alternating Real Path values (for each Tomcat server 
instance).  I've had the same configuration working perfectly for 
nearly a year using Tomcat 4.0.X, Apache 1.3.x, and RedHat 7.2 running 
on three separate servers (one apache+mod_jk+tomcat, the others just tomcat).
Initially, I had set up a multiple server system with the new software 
when I noticed this problem.  To simplify, I've set up a test 
environment on one server with tomcat instance 1 running on ports 
8005,8009,8443,and 8080 and tomcat instance 2 running on ports 
9005,9009,9443, and 9080.  I'm using the default server.xml for each 
with the ROOT context statement un-commented and the ports changed as 
above.  This is what my workers.properties looks like (although it's 
gone through a great many permutations in the debug process).
#
# workers.properties
#
# In Unix, we use forward slashes:
ps=/
# list the workers by name
worker.list=router

# --
# Load Balance remote tomcat server test
# --
worker.router.type=lb
worker.router.balanced_workers=live2,live3
worker.router.sticky_session=1
worker.live2.port=8009
worker.live2.host=192.168.254.102
worker.live2.type=ajp13
worker.live2.lbfactor=100
worker.live3.port=9009
worker.live3.host=192.168.254.102
worker.live3.type=ajp13
worker.live3.lbfactor=100
This has been a very frustrating problem since it was something that 
worked quite well until now.  I'm going to keep removing layers (going 
back to RH7.x, then TC4.0X, etc.), but if anybody has any information 
about this, it would be a great help.  Thanks.
-Ned Regina

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


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


RE: Where to download Tomcat v 4.1.24 from?

2003-10-10 Thread Shapira, Yoav

Howdy,
If you really want, you can find it on mirrors.  But why?  Just get 4.1.27.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 1:50 AM
To: [EMAIL PROTECTED]
Subject: Where to download Tomcat v 4.1.24 from?

Hi
 
I could not find Tomcat v 4.1.24 in packaged form at the Tomcat site. Only place I 
could find it was the cvs.
 
Could anyone please help me out?
 
thanks,
Naresh



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: tomcat jitters, then hangs - please help

2003-10-10 Thread Shapira, Yoav

Howdy,
Please also post an update if you DON'T have any problems, so that the
few good souls who actually search list archives before posting
questions can have a reference in the future ;)  Thanks,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 5:09 AM
To: 'Tomcat Users List'
Subject: RE: tomcat jitters, then hangs - please help

Hi Noam,

Remy pointed out to me previously that RH9 uses a new form of threading
and
based on this we have done some investigation.

RH9 uses NTPL (Native POSIX Thread Library)
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-notes/x86
/

It is possible to revert to the older form of threading,
LinuxThreads, by
setting an environment variable, namely:
LD_ASSUME_KERNEL=kernel-version
- 2.4.1 - Linuxthreads with floating stacks
- 2.2.5 - Linuxthreads without floating stacks

This does not revert back to an older kernel, it just changes the GNU C
library used http://www-106.ibm.com/developerworks/java/library/j-jtc/

We will be testing with these settings starting today and, if we
continue
to
have problems, we will be trying another distro.

Ryan



More NTPL info
http://www.redhat.com/partners/pdf/POSIX_Linux_Threading.pdf


-Original Message-
From: Noam Camiel [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 18:36
To: Tomcat Users List
Subject: Re: tomcat jitters, then hangs - please help


On Thursday, October 09, 2003 5:11 PM Ryan Lissack
[EMAIL PROTECTED] wrote:
 Hi Noam,

 We have experienced similar problems.  You will notice in the thread
dump
 that there is no thread from the connectors thread pool waiting on an
 accept

I see your what you mean, I compared the thread dump to a good dump
when
the server is operational and there indeed I found a thread from the
connectors thread pool waiting on accept:

3XMTHREADINFO  http80-Processor24 (TID:0x100688E0,
sys_thread_t:0x87810C0, state:R, native ID:0x41CCCF40) prio=5
4XESTACKTRACE  at java.net.PlainSocketImpl.socketAccept(Native
Method)

This does not appear to exist in the bad dump.

 What OS are you on, RH9??

Yes, Im on RH9.

Any ideas why this could happen?  could it be some system resource
limit?
Is your application an intensive app? My application is not an
intensive
one
and the hangs occur hours after i start the server (usually a day
later).

Thanks for the info, i'd be happy to hear any suggestions.
Noam

-
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: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-10 Thread Shapira, Yoav

Howdy,
You need to read the whole request into a String.  Then, since you want
a DOM document, use a DOM document builder to get it, e.g.
String xmlInput = ...
Reader reader = new Stringeader(xmlInput);
InputSource inputSource = new InputSource(reader);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(inputSource)

(The above are mixed imports from java.io, javax.xml.parsers,
org.w3c.dom).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jose Alanya [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 6:21 PM
To: [EMAIL PROTECTED]
Subject: I post a text XML with Microsoft.XMLHTTP to servlet

Hi,

I post a text XML with  Microsoft.XMLHTTP to servlet,
As I can recover the value of object request from of servlet
This can :
something like  :  Document oDocument = xml.paser(objrequest)

Not getparameter, not getquerystring

Please  help me!
Thanks,

best regards,
Jose Alanya
From, Lima Peru



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: Tomcat4.1, jk2, and apache 1.3

2003-10-10 Thread Mark Claassen
Well, I figured out how to get jk2 and apache 1.3 working...sort of.  Now I
am getting this error.  I have seen lots of others ask about this, but no
real answers.  Does anyone have one now?

(error) [jk_msg_ajp.c (447)]: msgAjp.receive(): Bad signature 5374
(error) [jk_channel_socket.c (549)]: channelSocket.receive(): Bad header
(error) [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading
reply
(error) [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable
error 21000
(error) [jk_msg_ajp.c (447)]: msgAjp.receive(): Bad signature 5374
(error) [jk_channel_socket.c (549)]: channelSocket.receive(): Bad header
(error) [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading
reply
(error) [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable
error 21000
(error) [jk_worker_ajp13.c (512)]: ajp13.service() Error  forwarding
ajp13:localhost:8019 1 0
(error) [mod_jk2.c (427)]: mod_jk.handler() Error connecting to tomcat 21000

Mark



 -Original Message-
 From: Mark Claassen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 09, 2003 9:06 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat4.1, jk2, and apache 1.3
 
 
 What are the two lines that you mean?  These two in the http.conf?
 
 LoadModule  jk2_module libexec/mod_jk2.so
 Include tomcat/conf/auto/mod_jk.conf
 
 What goes in the mod_jk.conf file?  
 
  -Original Message-
  From: Curley, Thomas [mailto:[EMAIL PROTECTED]
  Sent: Thursday, October 09, 2003 3:39 AM
  To: Tomcat Users List
  Subject: RE: Tomcat4.1, jk2, and apache 1.3
  
  
  Fully agree - the connector tomcat/apache doc is a mess -
  can't understand why the connector developers cannot write a 
  simple doc as part of release procedure or ask for help in 
  documenting this.
  
  I'm alo trying to integrate Apache 1.3, TC 4.1.27 using jk2 on RH7.3
  
  From what I see you need mod_jk2.so (build this),
  jk2.properties, workers2.properties.  Avoid going the auto 
  config route in httpd just add the 2 lines for the jk2 module.
  
  
  Thomas
  
  
  -Original Message-
  From: Mark Claassen [mailto:[EMAIL PROTECTED]
  Sent: 08 October 2003 23:18
  To: [EMAIL PROTECTED]
  Subject: Tomcat4.1, jk2, and apache 1.3
  
  
  Hi.  I am trying to get the mod_jk2 to load into apache 1.3
  and I am slowly going insane.  I have googled my way around 
  the web and have seen lots of people ask the same type of 
  question I am asking, but there are few good answers.  (I 
  feel a bit like that guy in the commercial that finished 
  the internet.)
  
  I have in my httpd.conf file:
  LoadModule  jk2_module libexec/mod_jk2.so
  Include tomcat/conf/auto/mod_jk.conf
  
  I have read that there is a way to get tomcat to produce its
  own mod_jk.conf-auto file, but I cannot find how to do it.  I 
  have looked at the jk2 docs a lot, but it seems that they are 
  for a different
  (incompatible) version.  The JkMount directives cannot be 
  added manually either, since mod_jk2 doesn't seem to 
  understand these.  
  
  What magic do I need to do so that tomcat 4.1 can produce the
  jk2 config file automatically? 
  
  Thanks,
  Mark
  
  
  -
  Nonviolence is the answer to the crucial political and moral
  questions of our time; the need for man to overcome 
  oppression and violence without resorting to oppression and 
  violence. 
  -- Martin Luther King Jr.
  
  Mark Claassen
  Donnell Systems, Inc.
  300 S. St. Louis Blvd. Ste. 203
  South Bend, IN 46617
  E-mail: mailto:[EMAIL PROTECTED]
  Voice: (574)232-3784
  Fax: (574)232-4014
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  **
  ***
  This email and any attachments are confidential and intended
  for the sole use of the intended recipient(s).If you receive 
  this email in error please notify [EMAIL PROTECTED] 
  and delete it from your system. Any unauthorized 
  dissemination, retransmission, or copying of this email and 
  any attachments is prohibited. Euroconex does not accept any 
  responsibility for any breach of confidence, which may arise 
  from the use of email. Please note that any views or opinions 
  presented in this email are solely those of the author and do 
  not necessarily represent those of the Company. This message 
  has been scanned for known computer viruses. 
  **
  ***
  
  
 -
  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: Tomcat4.1, jk2, and apache 1.3

2003-10-10 Thread Mark Claassen
Repost.  I forgot to include some necessary information

Well, I figured out how to get jk2 and apache 1.3 
working...sort of.  Now I am getting this error.  I have seen 
lots of others ask about this, but no real answers.  Does 
anyone have one now?  I get the following error when I try to access
http://blah/examples/

(error) [jk_msg_ajp.c (447)]: msgAjp.receive(): Bad signature 5374
(error) [jk_channel_socket.c (549)]: channelSocket.receive(): Bad header
(error) [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading
reply
(error) [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable
error 21000
(error) [jk_msg_ajp.c (447)]: msgAjp.receive(): Bad signature 5374
(error) [jk_channel_socket.c (549)]: channelSocket.receive(): Bad header
(error) [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading
reply
(error) [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable
error 21000
(error) [jk_worker_ajp13.c (512)]: ajp13.service() Error  forwarding
ajp13:localhost:8019

Part of worker2.properties
--
[logger.file:0]
level=DEBUG
file=${serverRoot}/log/jk2.log

[shm]
file=/opt/OCIEsys/apache/MAC/tmp/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8019] 
tomcatId=localhost:8019 
port=8009
host=localhost

# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019

[status:]
info=Status worker,display runtime information channel.socket:localhost:8019
# Map the Tomcat examples webapp to the Web server uri space

[uri:/examples/*] 
info=Map the whole webapp
group=ajp13:localhost:8019
context=/examples/*
debug=9




 -Original Message-
 From: Mark Claassen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 10, 2003 8:21 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat4.1, jk2, and apache 1.3
 
 
 Well, I figured out how to get jk2 and apache 1.3 
 working...sort of.  Now I am getting this error.  I have seen 
 lots of others ask about this, but no real answers.  Does 
 anyone have one now?
 
 (error) [jk_msg_ajp.c (447)]: msgAjp.receive(): Bad signature 5374
 (error) [jk_channel_socket.c (549)]: channelSocket.receive(): 
 Bad header
 (error) [jk_workerEnv.c (482)]: workerEnv.processCallbacks() 
 Error reading reply
 (error) [jk_worker_ajp13.c (416)]: ajp13.service() 
 ajpGetReply recoverable error 21000
 (error) [jk_msg_ajp.c (447)]: msgAjp.receive(): Bad signature 5374
 (error) [jk_channel_socket.c (549)]: channelSocket.receive(): 
 Bad header
 (error) [jk_workerEnv.c (482)]: workerEnv.processCallbacks() 
 Error reading reply
 (error) [jk_worker_ajp13.c (416)]: ajp13.service() 
 ajpGetReply recoverable error 21000
 (error) [jk_worker_ajp13.c (512)]: ajp13.service() Error  
 forwarding ajp13:localhost:8019 1 0
 (error) [mod_jk2.c (427)]: mod_jk.handler() Error connecting 
 to tomcat 21000
 
 Mark
 
 
 
  -Original Message-
  From: Mark Claassen [mailto:[EMAIL PROTECTED]
  Sent: Thursday, October 09, 2003 9:06 AM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat4.1, jk2, and apache 1.3
  
  
  What are the two lines that you mean?  These two in the http.conf?
  
  LoadModule  jk2_module libexec/mod_jk2.so
  Include tomcat/conf/auto/mod_jk.conf
  
  What goes in the mod_jk.conf file?
  
   -Original Message-
   From: Curley, Thomas [mailto:[EMAIL PROTECTED]
   Sent: Thursday, October 09, 2003 3:39 AM
   To: Tomcat Users List
   Subject: RE: Tomcat4.1, jk2, and apache 1.3
   
   
   Fully agree - the connector tomcat/apache doc is a mess - can't 
   understand why the connector developers cannot write a 
 simple doc as 
   part of release procedure or ask for help in documenting this.
   
   I'm alo trying to integrate Apache 1.3, TC 4.1.27 using 
 jk2 on RH7.3
   
   From what I see you need mod_jk2.so (build this), jk2.properties, 
   workers2.properties.  Avoid going the auto config route in httpd 
   just add the 2 lines for the jk2 module.
   
   
   Thomas
   
   
   -Original Message-
   From: Mark Claassen [mailto:[EMAIL PROTECTED]
   Sent: 08 October 2003 23:18
   To: [EMAIL PROTECTED]
   Subject: Tomcat4.1, jk2, and apache 1.3
   
   
   Hi.  I am trying to get the mod_jk2 to load into apache 
 1.3 and I am 
   slowly going insane.  I have googled my way around the web and 
   have seen lots of people ask the same type of question I 
 am asking, 
   but there are few good answers.  (I feel a bit like that 
 guy in the 
   commercial that finished the internet.)
   
   I have in my httpd.conf file:
   LoadModulejk2_module libexec/mod_jk2.so
   Include   tomcat/conf/auto/mod_jk.conf
   
   I have read that there is a way to get tomcat to produce its own 
   mod_jk.conf-auto file, but I cannot find how to do it.  I have 
   looked at the jk2 docs a lot, but it seems that they are for a 
   different
   (incompatible) version.  The JkMount directives cannot be
   added manually either, since mod_jk2 doesn't seem to 
  

RE: OT How to maintain a version number

2003-10-10 Thread Ralph Einfeldt
We tag our application with each release and use the cvs tag $Name:$ 
in our sources to optain the version number of the application.

 -Original Message-
 From: Jim Lynch [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 2:17 PM
 To: Tomcat Users List
 Subject: OT How to maintain a version number
 
 
 I've written an application where I need to keep up with the version 
 number.  I'm trying to figure out an elegant way to maintain 
 that in the  simplest and perhaps the most automated way.  My source is 
 kept in a cvs archive but of course there are dozens of files so it would 
 be difficult to base a version number on the version number of a single 
 source or would it?
 

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



ssl client authentication again

2003-10-10 Thread Twan Munster
Hello,

I've worked around with using apache+mod_ssl, but i'm running in several problems now 
so please can somebody help me with the next problem:

I've always used apache http server for client authenticatien with ssl. I've installed 
Tomcat now voor mij jsp's.
But I'm not able to get the ssl client authentication working. The problem is getting 
my existing certificates working in tomcat. Is apache http server it was very easy. I 
configured all the stuff in my httpd.conf. 
I also tried to get tomcat working with keytool. But ther's something I do wrong. I 
alwas get handshake error.

Can somebody please tell me how to use keytool. I've got the following certificates:

1 server.crt = server certificate
2 ca.crt = chain certificate
3 ca-bundle.crt = lots of certificates for client authentication
4 server.key = i really don't know how to get this one in keytool

Thnx

Twan Munster

redirect port 8080 to 443

2003-10-10 Thread Twan Munster
Hello,

I'm using apache+mod_ssl+mod_jk to make a secure connection. 
But every time I call a page in cocoon it is called through port 8080. Is it possible 
to redirect a call to port 8080  to port 443? And not for the entire server, but only 
for a certain directory?How is this done?

thnx

Twan

Newbie question

2003-10-10 Thread Jesús Gutiérrez Ramírez
Hi,

I'm new using tomcat (over windows xp) and ANT, I was doing the example
exercise http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html,
using the files included.

When I want to install my app on the tomcat server using the ANT INSTALL
command I receive the next message.

BUILD FAILED
C:\jspsrc\miapl\build.xml:364: java.net.UnknownHostException: C

Somebody has an idea what could be wrong?
If this is not the correct place to put this question, just let me know it.

TIA

Jesus Gutierrez


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



Re: Still needing help with DBCP - slow response time

2003-10-10 Thread Adam Hardy
On 10/09/2003 11:58 PM Jose Euclides da Silva Junior - DATAPREVRJ wrote:
Hi,
i am still having problems with DBCP 1.0 - TomCat 4.18.
Some hints:
1 - I didnt setted the server.xml up.
2 - I am using the Oracle Thin Driver
3 - I ve created my own  connection pooling class, called BeanPoolConn,
which returns a datasource object. See below the main statement:
  DriverAdapterCPDS cpds = new DriverAdapterCPDS();
  cpds.setDriver(oracle.jdbc.driver.OracleDriver);
  cpds.setUrl(jdbc:oracle:thin:@uxrjo038:1526:drj1);
  cpds.setUser(PORTAL_PRATICA);
  cpds.setPassword(PORTAL_PRATICA00);
  Jdbc2PoolDataSource tds = new Jdbc2PoolDataSource();
  tds.setConnectionPoolDataSource(cpds);
  tds.setDefaultMaxActive(10);
  tds.setDefaultMaxWait(50);
  tds.getConnection();
  ds = tds;
  return ds; 

4 -  My main class instances this BeanPoolConn class:

 if ( ds == null )
{
   BeanPoolConn bp = new BeanPoolConn();
   ds = bp.conexao();
}
 con = ds.getConnection();
	... do something...
	pstmt = con.prepareStatement(query);
resultcount = pstmt.executeUpdate();

Question: Is it enough? Are there others steps to be done?   
Thanks again, Euclides.
Hi Euclides,
if you are making a custom connection pool with DBCP, you would get a 
better response by mailing their users  developers on the commons 
mailing list.

Sounds interesting, but I can't help, sorry. What drives you to write a 
custom connection pool anyway? Have you got problems with the commons 
implementation?

Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Where to download Tomcat v 4.1.24 from?

2003-10-10 Thread Agarwal, Naresh
I got it. My web app was initially not working with 4.1.27 but now its working.

thanks,
Naresh

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 6:27 PM
To: Tomcat Users List
Subject: RE: Where to download Tomcat v 4.1.24 from?



Howdy,
If you really want, you can find it on mirrors.  But why?  Just get 4.1.27.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 1:50 AM
To: [EMAIL PROTECTED]
Subject: Where to download Tomcat v 4.1.24 from?

Hi
 
I could not find Tomcat v 4.1.24 in packaged form at the Tomcat site. Only place I 
could find it was the cvs.
 
Could anyone please help me out?
 
thanks,
Naresh



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]



Tomcat webapp is ignoring the system class path

2003-10-10 Thread Agarwal, Naresh



Hi

I'm deploying a web 
app in the Tomcat. This web app reads a properties files through resource 
bundle.

I've put the path of 
this properties file in the class path but while running the web app, I'm 
getting exception that properties file does not 
exist. Thus tomcat 
is ignoring the system class path.

Is there any work to 
make Tomcat read the classpath?

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

RES: Still needing help with DBCP - slow response time

2003-10-10 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thanks Adams. I will try it.

-Mensagem original-
De: Adam Hardy [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 10 de outubro de 2003 11:54
Para: Tomcat Users List
Assunto: Re: Still needing help with DBCP - slow response time


On 10/09/2003 11:58 PM Jose Euclides da Silva Junior - DATAPREVRJ wrote:
 Hi,
 i am still having problems with DBCP 1.0 - TomCat 4.18.
 Some hints:
 1 - I didnt setted the server.xml up.
 2 - I am using the Oracle Thin Driver
 3 - I ve created my own  connection pooling class, called BeanPoolConn,
 which returns a datasource object. See below the main statement:
 
   DriverAdapterCPDS cpds = new DriverAdapterCPDS();
   cpds.setDriver(oracle.jdbc.driver.OracleDriver);
   cpds.setUrl(jdbc:oracle:thin:@uxrjo038:1526:drj1);
   cpds.setUser(PORTAL_PRATICA);
   cpds.setPassword(PORTAL_PRATICA00);
   Jdbc2PoolDataSource tds = new Jdbc2PoolDataSource();
   tds.setConnectionPoolDataSource(cpds);
   tds.setDefaultMaxActive(10);
   tds.setDefaultMaxWait(50);
   tds.getConnection();
   ds = tds;
   return ds; 
 
 4 -  My main class instances this BeanPoolConn class:
 
  if ( ds == null )
 {
BeanPoolConn bp = new BeanPoolConn();
ds = bp.conexao();
 }
  con = ds.getConnection();
   ... do something...
   pstmt = con.prepareStatement(query);
 resultcount = pstmt.executeUpdate();
 
 Question: Is it enough? Are there others steps to be done?   
 Thanks again, Euclides.

Hi Euclides,
if you are making a custom connection pool with DBCP, you would get a 
better response by mailing their users  developers on the commons 
mailing list.

Sounds interesting, but I can't help, sorry. What drives you to write a 
custom connection pool anyway? Have you got problems with the commons 
implementation?

Adam

-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


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

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



RE: Tomcat webapp is ignoring the system class path

2003-10-10 Thread Shapira, Yoav

Howdy,
You can make tomcat read the system classpath, but you don't want to.  Read this: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html.  Then search 
the archives if you're still not convinced you shouldn't make tomcat read the system 
classpath.

Put your resource bundle in WEB-INF/classes of your webapp.

And please subscribe to the list properly -- I keep having to manually approve your 
posts.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 9:39 AM
To: [EMAIL PROTECTED]
Subject: Tomcat webapp is ignoring the system class path

Hi
 
I'm deploying a web app in the Tomcat. This web app reads a properties files through 
resource bundle.
 
I've put the path of this properties file in the class path but while running the web 
app, I'm getting exception that properties file does not
exist. Thus tomcat is ignoring the system class path.
 
Is there any work to make Tomcat read the classpath?
 
thanks,
Naresh



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: Tomcat webapp is ignoring the system class path

2003-10-10 Thread Jay Garala
modify the $Tomcat/bin/setClasspath.bat (sh), ~ Line 41 set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
 
Jay Garala
Senior Analyst
Electrosoft Services, Inc.
7918 Jones Branch Drive, Suite 600
McLean, VA  22102
(703) 918-4907


-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 9:39 AM
To: [EMAIL PROTECTED]
Subject: Tomcat webapp is ignoring the system class path


Hi
 
I'm deploying a web app in the Tomcat. This web app reads a properties files
through resource bundle.
 
I've put the path of this properties file in the class path but while
running the web app, I'm getting exception that properties file does not 
exist. Thus tomcat is ignoring the system class path.
 
Is there any work to make Tomcat read the classpath?
 
thanks,
Naresh



RE: mod_jk lbfactor strangeness

2003-10-10 Thread David Rees
On Fri, October 10, 2003 at 5:47 am, [EMAIL PROTECTED] sent the following
 On Fri, 10 Oct 2003, Ralph Einfeldt wrote:

 2. mod_jk works with sticky sessions so only new sessions
are balanced. I belief but am not shure that it's just
round robin.

 2 Surely then the new session would be balanced to the faster machine,
 and I would see more activity on them.

You can use the manager app to count active sessions on each webapp.  You
will find that you may need to increase the lbfactor on certain instances
to get closer to an even load.  I have found that even new sessions do not
always get evenly distributed.  Rounding error somewhere perhaps?

 3. Bill Barker claims that the load balancing is broken
as the instances of mod_jk don't know the load of each
other. So mod_jk will balance to some extend but not as
good as it could/should.

 3 That would explain everything :(

The real issue is that you have some large number of processes and none of
them share their tomcat load info.  So with more than one Apache process,
things tend to not get distributed as expected.  If you use Apache2 with a
threaded MPM this is supposed to work better.

 Would a move to mod_jk2 be of any use, or should I get someone to put
 their hand in their pocket and upgrade the other two boxes

Better to use that $$$ and convince a Tomcat developer to fix mod_jk so
that it works properly.  ;-)

-Dave

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



2 Questions ..

2003-10-10 Thread Mufaddal Khumri
Hi,

Am running my webapp under tomcat 4.1.18. Everything was fine till  
yesterday. I am facing this issue today. I wrote a new taglib -  
nextPrevLink for a jsp page called PotatoList.jsp.

cw:nextPrevLink listSize='%= getTotalNumberOfPotatoes()%'
 offset='%=offset%'
 
displaySize='%=Constants.POTATO_LIST_DISPLAY_SIZE%'
 link='someLink'/
Now when i change the value of the Constants.POTATO_LIST_DISPLAY_SIZE  
in the Constants.java and reload my webapp thru the tomcat manager  
and go to PotatoList.jsp the taglib takes the old value of displaySize  
(I have a system.out.println() .. inside the class that implements  
the taglib).

Now if i change the PotatoList.jsp and save it again ... tomcat  
recompiles PotatoList.jsp when it comes across it. This time the taglib  
nextPrevLink takes the correct new value of Constants.  
POTATO_LIST_DISPLAY_SIZE.

 
_
QUE 1. How do I have my taglib take the updated values without having  
to recompile my jsp pages ?
 
_

Also I do not know if this is related. But when tomcat recompiles the  
PotatoList.jsp page above it shows me these lines in the log file:

ParserUtils: warning org.xml.sax.SAXParseException: URI was not  
reported to parser for entity [document]
ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope  
URI is absolute: http://java.sun.com/dtd/web-app_2_3.dtd
ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope  
this SYSTEM id is absolute: http://java.sun.com/dtd/web-app_2_3.dtd
ParserUtils: warning org.xml.sax.SAXParseException: URI was not  
reported to parser for entity [dtd]
ParserUtils: warning org.xml.sax.SAXParseException: missing system ID,  
using http://java.sun.com/dtd/web-app_2_3.dtd
ParserUtils: warning org.xml.sax.SAXParseException: URI was not  
reported to parser for entity [document]
ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope  
URI is absolute: http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope  
this SYSTEM id is absolute:  
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
ParserUtils: warning org.xml.sax.SAXParseException: URI was not  
reported to parser for entity [dtd]
ParserUtils: warning org.xml.sax.SAXParseException: missing system ID,  
using http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd

 
_
QUE 2. Why does this happen and how do I resolve this?
 
_

Thanks in advance,

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


Re: 2 Questions ..

2003-10-10 Thread Tim Funk
Its probably the java compiler. If your constant is declared final, the 
compiler may be performing an optimization and taking the value insteadof a 
run-time reference. You can get around this by not using a constant and using 
a get method.

-Tim

Mufaddal Khumri wrote:

Hi,

Am running my webapp under tomcat 4.1.18. Everything was fine till  
yesterday. I am facing this issue today. I wrote a new taglib -  
nextPrevLink for a jsp page called PotatoList.jsp.

cw:nextPrevLink listSize='%= getTotalNumberOfPotatoes()%'
 offset='%=offset%'
 
displaySize='%=Constants.POTATO_LIST_DISPLAY_SIZE%'
 link='someLink'/

Now when i change the value of the Constants.POTATO_LIST_DISPLAY_SIZE  
in the Constants.java and reload my webapp thru the tomcat manager  
and go to PotatoList.jsp the taglib takes the old value of displaySize  
(I have a system.out.println() .. inside the class that implements  
the taglib).

Now if i change the PotatoList.jsp and save it again ... tomcat  
recompiles PotatoList.jsp when it comes across it. This time the taglib  
nextPrevLink takes the correct new value of Constants.  
POTATO_LIST_DISPLAY_SIZE.



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


Re: Newbie question

2003-10-10 Thread Jon Wingfield
Your windoze path is probably being interpreted as a url without a 
protocol. The drive letter C is being interpreted as a hostname.
Try with something like file:///c:\path\to\war\app.war

HTH,

Jon

Jesús Gutiérrez Ramírez wrote:

Hi,

I'm new using tomcat (over windows xp) and ANT, I was doing the example
exercise http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html,
using the files included.
When I want to install my app on the tomcat server using the ANT INSTALL
command I receive the next message.
BUILD FAILED
C:\jspsrc\miapl\build.xml:364: java.net.UnknownHostException: C
Somebody has an idea what could be wrong?
If this is not the correct place to put this question, just let me know it.
TIA

Jesus Gutierrez

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


Why should i use Tomcat vs .NET?

2003-10-10 Thread Eduardo Vazquez
I work for a small company which is seriously considering the .NET route
moving into the future. My mission if I chose to accept is to sway popular
opinion towards Tomcat (Jakarta) for reasons I've yet to summarize because I
can't confidently regurgitate any (I'm new to Linux/Tomcat for the most
part). Is there anyone who has made this argument yet? Are there anyone have
a url with the comparison done already or a list of reasons why .NET isn't
optimal versus the other options or on the flip side of that; why tomcat
rocks? Any help would be appreciated; I'm not looking forward to becoming
even more reliant on one company.

 

Thanks in advance,

Eduardo



RE: Why should i use Tomcat vs .NET?

2003-10-10 Thread Shapira, Yoav

Howdy,
Please let's not turn this into another net versus J2ee debate ;)  There
are many references online, comparisons, case studies, and heated flame
wars.  Just google for them.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Eduardo Vazquez [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: Why should i use Tomcat vs .NET?

I work for a small company which is seriously considering the .NET
route
moving into the future. My mission if I chose to accept is to sway
popular
opinion towards Tomcat (Jakarta) for reasons I've yet to summarize
because
I
can't confidently regurgitate any (I'm new to Linux/Tomcat for the most
part). Is there anyone who has made this argument yet? Are there anyone
have
a url with the comparison done already or a list of reasons why .NET
isn't
optimal versus the other options or on the flip side of that; why
tomcat
rocks? Any help would be appreciated; I'm not looking forward to
becoming
even more reliant on one company.



Thanks in advance,

Eduardo




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: Why should i use Tomcat vs .NET?

2003-10-10 Thread Angus Mezick
Hrm... Tomcat side:
1) $$$
2) If there are bugs, more $$$ for support instead of just being able to
fix the darn things.
3) Tomcat has a HUGE/ACTIVE user community.  You can actually get help
from the people who write this stuff.
4) The dev tools are free too (eclipse/netbeans/jedit/etc)
5) You don't need a training class to learn the ins and outs of the app
(more $$$ to MS)
6) Pretty darn easy to find a java programmer.  Just advertise to this
list and you will get one that likes tomcat too. :)
7) Bugs, Esp bugs that allow evil doers in are fixed IMMEDIATELY!  You
won't have to wait for M$ to get around to realeasing a fix 2 months
after it is reported or telling you that you need to buy the next
version to fix that problem.
8) Free upgrades.

MS Side:
1) if your org has deep pockets they have phone support standing by.
2) Really easy to make a simple app using the wizards.  Click through
programming.
3) Another nice item for your resume when your company goes under
because they spent a significant percentage of their income on the .NET
system.
--Angus

 -Original Message-
 From: Eduardo Vazquez [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 10, 2003 11:48 AM
 To: [EMAIL PROTECTED]
 Subject: Why should i use Tomcat vs .NET?
 
 
 I work for a small company which is seriously considering the 
 .NET route
 moving into the future. My mission if I chose to accept is to 
 sway popular
 opinion towards Tomcat (Jakarta) for reasons I've yet to 
 summarize because I
 can't confidently regurgitate any (I'm new to Linux/Tomcat 
 for the most
 part). Is there anyone who has made this argument yet? Are 
 there anyone have
 a url with the comparison done already or a list of reasons 
 why .NET isn't
 optimal versus the other options or on the flip side of that; 
 why tomcat
 rocks? Any help would be appreciated; I'm not looking forward 
 to becoming
 even more reliant on one company.
 
  
 
 Thanks in advance,
 
 Eduardo
 
 

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



Re: Clustering Tomcat - Loadbalancing and Failover

2003-10-10 Thread Filip Hanik
http://cvs.apache.org/~fhanik/

 how are session states replicated?

once, after the entire request is completed. If the session is not dirty, no
replication will be done

Doesn't use java groups, instead pure UDP/TCP.

Filip

- Original Message -
From: jerome moliere [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 11:34 PM
Subject: Re: Clustering Tomcat - Loadbalancing and Failover


Hanasaki JiJi wrote:

Hello,

 What is available, in Tomcat, or as an add-on, and preferably
 free/open-source to cluster tomcat for:
 load balancing
 fail over

humm filip hanik could answer with more details (or remy maucherat) but
as far as I know new Tomcat 5 code (backported to 4.1) use
 the Javagroups library for replication mechanism. For tomcat 4.1,
adding jars (javagroups + patch) is enough to add theses features...
For tomcat 5, nothing needed because it's one of the new features...


 how are session states replicated?

It's one of the limits of this system, because every put made, induces
replication for the entire object using broadcast (by default). So heavy
traffic...


 Also, in general, and a bit off-topic (my apologies), are there any
 resources for the design, or open source implementation, of load
 balancing / fail-over frameworks?

javagroups :)
google may point you to the current address !!!
I think that this porject recently joined the JBOSS project


 Thanks

Jerome



-
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: Why should i use Tomcat vs .NET?

2003-10-10 Thread Eduardo Vazquez
I'm defiantly not trying tobut even after calling up SUN and asking them
to sell me on their technology I've received very little in terms of
pros/cons either way. I've done my share of googleing with no substantial
returns. That's why I'm pinging the users now, what better place to go than
to the them?




-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 11:58 AM
To: Tomcat Users List
Subject: RE: Why should i use Tomcat vs .NET?


Howdy,
Please let's not turn this into another net versus J2ee debate ;)  There
are many references online, comparisons, case studies, and heated flame
wars.  Just google for them.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Eduardo Vazquez [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: Why should i use Tomcat vs .NET?

I work for a small company which is seriously considering the .NET
route
moving into the future. My mission if I chose to accept is to sway
popular
opinion towards Tomcat (Jakarta) for reasons I've yet to summarize
because
I
can't confidently regurgitate any (I'm new to Linux/Tomcat for the most
part). Is there anyone who has made this argument yet? Are there anyone
have
a url with the comparison done already or a list of reasons why .NET
isn't
optimal versus the other options or on the flip side of that; why
tomcat
rocks? Any help would be appreciated; I'm not looking forward to
becoming
even more reliant on one company.



Thanks in advance,

Eduardo




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


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


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



Re: OT How to maintain a version number

2003-10-10 Thread srevilak
 I've written an application where I need to keep up with the version
 number.  I'm trying to figure out an elegant way to maintain that in the
 simplest and perhaps the most automated way.  My source is kept in a cvs
   archive but of course there are dozens of files so it would be
 difficult to base a version number on the version number of a single
 source or would it?

 The number would be displayed as part of the title(TITLE My App
 0.92/TITLE) in the index.jsp so it would have to be easily available
 to that file. I suppose I could use JNDI, I could hardwire it into the
 index.jsp file, but I probably want to put it into other .jsp files also
 and it would be harder to keep up with that way.

Since you're using cvs, you could also leverage it's keyword facility:

  String ident = $Name$;  # expands to branch name
  String ident = $Revision$;  # expands to cvs's version
  String ident = $Date$;  # expands date of last commit

Where $Revision$ appears in the source file, cvs expands this to
something like $Revision: 1.3 $ each time the file is checked out of
the repository.

You could, for example, make these constants in an interface, and set
up a cron job/scheduled task to force a checkin each day.  cvs will
take care of updating the expansions in the source file.

Just another idea.

-- 
Steve

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



RE: Help root context problem!!!

2003-10-10 Thread JStanczak
Well, I got it to work, but I don't care for it. I'd like to know what's 
wrong if someone knows. Here's the jsp below:

%
java.net.URL url = new 
java.net.URL(request.getRequestURL().append(/PageWorks/servlet/PageMill).toString());
java.net.URLConnection connect = url.openConnection();
connect.connect();

java.io.BufferedReader in = new java.io.BufferedReader(new 
java.io.InputStreamReader(connect.getInputStream()));
String html;
while((html = in.readLine()) != null){
out.write(html);
}
%

This works, but it's not very pretty of a method. Why doesn't the 
jsp:forward/ work? This way it doesn't cache the page forever on the 
server. If I just us jsp:forward it caches the page and never update it's 
information from the servlet.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813

Tomcat 4/5 Clustering.

2003-10-10 Thread Nathan Christiansen
Filip,

Thanks for the link to your site on Tomcat clusters.

Are there any preliminary results about cluster size vs. replication traffic and 
limitations?

If I remember right, the limit for load balancing clusters using an older method was 
about 6 servers in your cluster before the session object replication became the 
bottleneck.

It was this reason alone that I stopped using the session object to store session 
info. I store my persistent objects to a MySQL database, using a session cookie as the 
key to the database row.


Are there plans to support Session Object storage in a database (like my method of 
storing persistent objects)?

This would allow massive scalability in the cluster, since the 'dirty' session object 
only needs to be sent to one place instead of to all the Tomcat servers in the cluster.

I realize that this introduces a problem in that every single server in the cluster 
needs to be running the same version of Tomcat in order to have session objects 
serialize and deserialize properly. Or that you will need to use another storage 
format other than simple serialization and deserialization.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:20 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Clustering Tomcat - Loadbalancing and Failover


http://cvs.apache.org/~fhanik/

 how are session states replicated?

once, after the entire request is completed. If the session is not dirty, no
replication will be done

Doesn't use java groups, instead pure UDP/TCP.

Filip


-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com

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



RE: Why should i use Tomcat vs .NET?

2003-10-10 Thread Wade Chandler
First off JSP/Servlet aren't going to lock you into one company.
JSP/Servlets are standardized.  Sure some differences in servers, but
for deploying an application, if the server you are deploying on accepts
the version of the JSP/Servlet spec your app is in, then you will just
deploy it.  Whether it's BEA, Oracle 9iAS, Websphere, Sun ONE Server, or
even Tomcat.  

You shouldn't be asking the question why should I choose Tomcat vs.
.Net.  You should be asking why should I choose .Net vs. any JSP/Servlet
server I might need for any given task.  .Net you will run on a Windows
server.  JSP/Servlet containers, you can pick up most OS and Hardware.
You also are not locking yourself into one vendor.  If .Net works out
like most MS products you'll think they will be standardized, but they
never will be (if other start creating .Net servers...if they do.).

Also, .Net vs. J2EE.  J2EE has been around a long time.  .Net is new and
you can bet your back pocket on it having bugs for a long time.  Look at
NT4.0 vs XP, or how long it took to go from two kernels to one (Windows
9x vs. XP Home/Pro).  J2EE/JSP/Servlet technologies have a fast paced
standards organization.  .Net was realeased to ISO (I for one feel the
ISO is as slow as a snail, and out of touch in many areas...tooo
political).  Anyone can get in on the JCP.  www.jcp.org.

I also wrote a paper on the subject.  I would claim it to be brutal and
skewed to the java technologies point of view especially considering the
title.  I believe they are simply the better choice for a number of
reasons.  Anyways, you can download and read or throw away from:
http://wadechandler.no-ip.com/~wchan/

Maybe they work for you maybe they don't, but you can make a decision
for yourself.

Wade

-Original Message-
From: Eduardo Vazquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Why should i use Tomcat vs .NET?


I'm defiantly not trying tobut even after calling up SUN and asking
them to sell me on their technology I've received very little in terms
of pros/cons either way. I've done my share of googleing with no
substantial returns. That's why I'm pinging the users now, what better
place to go than to the them?




-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 11:58 AM
To: Tomcat Users List
Subject: RE: Why should i use Tomcat vs .NET?


Howdy,
Please let's not turn this into another net versus J2ee debate ;)  There
are many references online, comparisons, case studies, and heated flame
wars.  Just google for them.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Eduardo Vazquez [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: Why should i use Tomcat vs .NET?

I work for a small company which is seriously considering the .NET
route
moving into the future. My mission if I chose to accept is to sway
popular
opinion towards Tomcat (Jakarta) for reasons I've yet to summarize
because
I
can't confidently regurgitate any (I'm new to Linux/Tomcat for the most

part). Is there anyone who has made this argument yet? Are there anyone

have a url with the comparison done already or a list of reasons why 
.NET
isn't
optimal versus the other options or on the flip side of that; why
tomcat
rocks? Any help would be appreciated; I'm not looking forward to
becoming
even more reliant on one company.



Thanks in advance,

Eduardo




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: Tomcat 4/5 Clustering.

2003-10-10 Thread Filip Hanik
Are there any preliminary results about cluster size vs. replication
traffic and limitations?

if you have a GIGA network, you can go pretty wild!

If I remember right, the limit for load balancing clusters using an older
method was about
6 servers in your cluster before the session object replication became the
bottleneck.

all I said was that I have seen it work on 6 servers, however, with any
cluster, using all-to-all replication, I recommend keeping the clusters
smaller. :)

Are there plans to support Session Object storage in a database
(like my method of storing persistent objects)?

It has been done for years, PersistentManager does that already. It is a
pretty slow way of replication

Or that you will need to use another storage format other than simple
serialization and deserialization.

Run the same version, run different and it may/may not work

Filip


- Original Message -
From: Nathan Christiansen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:17 AM
Subject: Tomcat 4/5 Clustering.


Filip,

Thanks for the link to your site on Tomcat clusters.

Are there any preliminary results about cluster size vs. replication traffic
and limitations?

If I remember right, the limit for load balancing clusters using an older
method was about 6 servers in your cluster before the session object
replication became the bottleneck.

It was this reason alone that I stopped using the session object to store
session info. I store my persistent objects to a MySQL database, using a
session cookie as the key to the database row.


Are there plans to support Session Object storage in a database (like my
method of storing persistent objects)?

This would allow massive scalability in the cluster, since the 'dirty'
session object only needs to be sent to one place instead of to all the
Tomcat servers in the cluster.

I realize that this introduces a problem in that every single server in the
cluster needs to be running the same version of Tomcat in order to have
session objects serialize and deserialize properly. Or that you will need to
use another storage format other than simple serialization and
deserialization.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:20 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Clustering Tomcat - Loadbalancing and Failover


http://cvs.apache.org/~fhanik/

 how are session states replicated?

once, after the entire request is completed. If the session is not dirty, no
replication will be done

Doesn't use java groups, instead pure UDP/TCP.

Filip


-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com

-
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: Help root context problem!!!

2003-10-10 Thread Wade Chandler
I did not see the other posts, but anytime I have a problem with issues
like this I use a meta tag to make the page expire some time ago.  I
usually put stuff like this:
META HTTP-EQUIV=expires CONTENT=Tue, 2 OCT 1996 17:45:00 GMT

in my head.  There is also a header which you can set in your
jsp/servlet code of the same name (Expires)..that is what the HTTP-EQUIV
does.  Says in this html take this to be the same as an http header and
use it as such.

Hope that helps,

Wade


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: Help root context problem!!!


Well, I got it to work, but I don't care for it. I'd like to know what's

wrong if someone knows. Here's the jsp below:

%
java.net.URL url = new 
java.net.URL(request.getRequestURL().append(/PageWorks/servlet/PageMill
).toString());
java.net.URLConnection connect = url.openConnection();
connect.connect();

java.io.BufferedReader in = new java.io.BufferedReader(new 
java.io.InputStreamReader(connect.getInputStream()));
String html;
while((html = in.readLine()) != null){
out.write(html);
}
%

This works, but it's not very pretty of a method. Why doesn't the 
jsp:forward/ work? This way it doesn't cache the page forever on the 
server. If I just us jsp:forward it caches the page and never update
it's 
information from the servlet.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



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



RE: Tomcat 4/5 Clustering.

2003-10-10 Thread Nathan Christiansen
It has been done for years, PersistentManager does that already. It
is a pretty slow way of replication

Thanks, I'll look at PersistentManager.

Slow? I guess so.

I have eliminated most of the database overhead by using DBCP to
create a connection pool. However...

Using my method of persistence, on my development PIII 500Mhz 256MB
RAM RH Linux 7.1 box under a JMeter simulated 25 user load, I only got
340 pages per minute on some simple JSP pages and 100 ppm on the most
computationally intensive JSP page.

I am curious how well my app will perform on our production boxes.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:22 AM
To: Tomcat Users List
Subject: Re: Tomcat 4/5 Clustering.


Are there any preliminary results about cluster size vs. replication
traffic and limitations?

if you have a GIGA network, you can go pretty wild!

If I remember right, the limit for load balancing clusters using an older
method was about
6 servers in your cluster before the session object replication became the
bottleneck.

all I said was that I have seen it work on 6 servers, however, with any
cluster, using all-to-all replication, I recommend keeping the clusters
smaller. :)

Are there plans to support Session Object storage in a database
(like my method of storing persistent objects)?

It has been done for years, PersistentManager does that already. It is a
pretty slow way of replication

Or that you will need to use another storage format other than simple
serialization and deserialization.

Run the same version, run different and it may/may not work

Filip



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



Re: clustering

2003-10-10 Thread Alkesh Badshah
Thanks for the info. To answer your question, I'm using a hardware based loadbalancer.

I've removed the old javagroups jar and added the context element from 
http://cvs.apache.org/~fhanik/.

Looking at the Tomcat window, it seems as if it is storing the session info.
There are informational messages such as:
INFO: [InMemoryReplicationManager] writeObject() storing session ...
INFO: [InMemoryReplicationManager] storing attribute '...' with value '...'

Unfortunately, it still isn't doing what I want - if I switch ports, I get kicked back 
to the login screen.

I think I'm missing something really obvious, any ideas?

Alkesh


remove the old javagroups jars, they are not valid unless you are running
4.0.x.

The new stuff is in http://cvs.apache.org/~fhanik/

also, you will need a loadbalancer in order to not change the URL, because
changing the URL (the port) will cause the browser to not send up the
session cookie.

the new implementation requires JDK 1.4
Filip

 -Original Message-
 From: Alkesh Badshah [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 11:11 AM
 To: [EMAIL PROTECTED]
 Subject: clustering


 I'm trying to run multiple instances of tomcat on a single
 machine listening on different ports. Something to the effect of:

 http://localhost:8000
 http://localhost:8001

 I've modified the server.xml file, placed the javagroups.jar and
 tomcat-javagroups.jar in the server/lib directory, and implement
 java.io.serializable.

 Unfortunately, its not working as I hoped. Once I have a logged
 in session, I'm hoping to be able to simply switch port(8000 -
 8001) and have it be seemless to the user. Any idea on what the
 problem could be?

 AB
-- 
__
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


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



Is the apache directive SetHandler supported in 4.1.x and above?

2003-10-10 Thread Nathan Christiansen
Is the apache directive SetHandler supported in 4.1.24 and above?

All I can find about SetHandler and Tomcat on the Jakarta site is info about Tomcat 
3.x.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com

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



Re: clustering

2003-10-10 Thread Filip Hanik
shutdown tomcat
delete all your log files
startup tomcat
send me the fresh log files to my personal account, (incl, server.xml)

what could be happening is that you are not establishing membership
correctly

Filip
- Original Message -
From: Alkesh Badshah [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:59 AM
Subject: Re: clustering


Thanks for the info. To answer your question, I'm using a hardware based
loadbalancer.

I've removed the old javagroups jar and added the context element from
http://cvs.apache.org/~fhanik/.

Looking at the Tomcat window, it seems as if it is storing the session info.
There are informational messages such as:
INFO: [InMemoryReplicationManager] writeObject() storing session ...
INFO: [InMemoryReplicationManager] storing attribute '...' with value '...'

Unfortunately, it still isn't doing what I want - if I switch ports, I get
kicked back to the login screen.

I think I'm missing something really obvious, any ideas?

Alkesh


remove the old javagroups jars, they are not valid unless you are running
4.0.x.

The new stuff is in http://cvs.apache.org/~fhanik/

also, you will need a loadbalancer in order to not change the URL, because
changing the URL (the port) will cause the browser to not send up the
session cookie.

the new implementation requires JDK 1.4
Filip

 -Original Message-
 From: Alkesh Badshah [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 05, 2003 11:11 AM
 To: [EMAIL PROTECTED]
 Subject: clustering


 I'm trying to run multiple instances of tomcat on a single
 machine listening on different ports. Something to the effect of:

 http://localhost:8000
 http://localhost:8001

 I've modified the server.xml file, placed the javagroups.jar and
 tomcat-javagroups.jar in the server/lib directory, and implement
 java.io.serializable.

 Unfortunately, its not working as I hoped. Once I have a logged
 in session, I'm hoping to be able to simply switch port(8000 -
 8001) and have it be seemless to the user. Any idea on what the
 problem could be?

 AB
--
__
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


-
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: Web-app setup

2003-10-10 Thread Duane Kehoe
Do my webapp name, servlet name, and directory name have to be the same 
name, is this the issue here?  I have tried your suggestion with no 
luck, the only reason I had the extended path was because I had seen 
some examples on the web like that.  My only other thought was that I 
had bad permissions set on these files which I have checked and don't 
see an issue with, I am practically pulling my hair out over here.  This 
morning I went so far as to create a brand new webapp with new web.xml 
and new dirs and still no luck.

[EMAIL PROTECTED] wrote:

Try this

  servlet-mapping
servlet-nameLogin/servlet-name
url-pattern/Login/url-pattern
 /servlet-mapping
Sincerely
Erlis Vidal Santos
 

-Original Message-
From: Duane Kehoe [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 5:03 PM
To: Tomcat Users List
Subject: Re: Web-app setup
Sorry about that the whole web.xml is included.  This is a very simple
app(actually my second app ever, the first was a simple lookup(which
worked)) so the web.xml that I have created thus far is very small
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//SUN Microsystems, Inc.//DTD Web
   

Application
 

2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
 display-nameLogin/display-name
 descriptionmy little login app/description
 servlet
   servlet-nameLogin/servlet-name
   servlet-classcom.mycompany.myapp.Login/servlet-class
 /servlet
 servlet-mapping
   servlet-nameLogin/servlet-name
   url-pattern/myapp/com/mycompany/myapp/url-pattern
 /servlet-mapping
/web-app
Thanks again

Lee, Paul NYC wrote:

   

Can you include the relevant part of web.xml?



 

--

/*Weyco** Group* -/

*/Florsheim, Brass Boot, Nunn Bush, Stacy Adams/*
Duane Kehoe
EC / Programmer / Analyst
Phone # 414.908.1814
Fax # 414.908.1601
Email: [EMAIL PROTECTED]


 



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


Which key alias names to use for SSL?

2003-10-10 Thread Sonny Sukumar
Hi guys,

I'm trying to setup my Tomcat (4.1.27) server to work with SSL.  I got a 
CA-signed cert to go with my private key and CA root cert, but I'm confused 
as to how to name the alias for the CA-signed-cert and my private key.

The Tomcat SSL How-To is confusing me, becuase it says to give the tomcat 
alias to both the private key and the CA-signed key.  I tried it and it 
overwrote my private key (luckily I made a backup of my keystore).

I'm looking at this documentation:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html
It also doesn't seem possible to configure the alias names in server.xml.  
So what alias names should I use? :-)

Thanks!

Sonny

_
Compare Cable, DSL or Satellite plans: As low as $29.95.  
https://broadband.msn.com

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


Tomcat 3.x Question

2003-10-10 Thread Robert Charbonneau
Is there any way that I can have Tomcat automatically pickup additional 
webapps in my webapps directory on startup and auto-configure for it?

For example:

add webapps/MyApp

/usr/local/tomcat/bin/shutdown.sh  /usr/local/tomcat/startup.sh

And have http://host.com/MyApp available to me after restarting Apache?

Thanks,

--
Robert Charbonneau
[EMAIL PROTECTED]
--


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



RE: Why should i use Tomcat vs .NET?

2003-10-10 Thread Shawn Zernik
Linux web servers have a lower cost or ownership - Topcat is a Linux
solution with about the same features as ASPX.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net

-Original Message-
From: Eduardo Vazquez [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: Why should i use Tomcat vs .NET?


I work for a small company which is seriously considering the .NET route
moving into the future. My mission if I chose to accept is to sway popular
opinion towards Tomcat (Jakarta) for reasons I've yet to summarize because I
can't confidently regurgitate any (I'm new to Linux/Tomcat for the most
part). Is there anyone who has made this argument yet? Are there anyone have
a url with the comparison done already or a list of reasons why .NET isn't
optimal versus the other options or on the flip side of that; why tomcat
rocks? Any help would be appreciated; I'm not looking forward to becoming
even more reliant on one company.



Thanks in advance,

Eduardo



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



4.1.27: Manager app 'reload' causing ClassNotFoundException

2003-10-10 Thread Justin Ruthenbeck
Hello All:

Tomcat 4.1.27
JDK 1.4.1_02
OS: Windows 2k
I've thoroughly read:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
This list for the past 16 months  :)
Problem: My (simple demonstration) webapp runs fine if Tomcat is started 
from scratch.  If I use the Manager app from either the html or ant 
interfaces, executing the 'reload' command completes without error, yet all 
servlets are unavailable afterwards.  Hitting a servlet results in the 
following being logged:

2003-10-10 12:05:06 HTMLManager: restart: Reloading web application at '/news'
2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context has started
2003-10-10 12:05:06 StandardWrapper[/news:default]: Loading container 
servlet default
2003-10-10 12:05:06 StandardWrapper[/news:invoker]: Loading container 
servlet invoker
2003-10-10 12:05:06 StandardManager[/news]: Seeding random number generator 
class java.security.SecureRandom
2003-10-10 12:05:06 StandardManager[/news]: Seeding of random number 
generator has been completed
2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context is completed
2003-10-10 12:05:12 
StandardWrapper[/news:com.nextengine.news.servlet.CalculatorServlet]: 
Marking servlet com.nextengine.news.servlet.CalculatorServlet as unavailable
2003-10-10 12:05:12 
StandardWrapperValve[com.nextengine.news.servlet.CalculatorServlet]: 
Allocate exception for servlet com.nextengine.news.servlet.CalculatorServlet
javax.servlet.ServletException: Wrapper cannot find servlet class 
com.nextengine.news.servlet.CalculatorServlet or a class it depends on
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
	at

snip

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.ClassNotFoundException: com.nextengine.news.servlet.CalculatorServlet
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)

CalculatorServlet.class exists only under the directory:
$TOMCAT_HOME/webapps/news/WEB-INF/classes/com/nextengine/news/servlet
The only modifications made to the default installation is the appropriate 
additions to tomcat-users.xml.  No changes were made to server.xml.  Since 
thousands of people use this, I'm assuming there's something simple going 
on here.  Restarting the Tomcat process results in all resources being 
available once again.

Hoping another pair of eyes can see what's wrong...

Thanks,
justin

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]


Attribute attribute invalid according to the specified TLD ??

2003-10-10 Thread Mufaddal Khumri
Hi,

Does anybody know why I would get the following exception:

org.apache.jasper.JasperException: /MyJsp.jsp(103,2) Attribute  
pramValues invalid according to the specified TLD
	at  
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand 
ler.java:94)
	at  
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java 
:428)
	at  
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java 
:186)

MyJsp.jsp has the following tag library:

%
Vector vPName = new Vector();
Vector vPValue = new Vector();

vPName.addElement(selection);
vPValue.addElement(selection);
%
cw:nextPrevLink listSize='%=maxLength%'
 offset='%=offset%'
 
displaySize='%=Constants.USER_LIST_DISPLAY_SIZE%'
 link='/myOther.jsp'
 paramNames='%=vPName%'
 pramValues='%=vPValue%'/
	The tag entry in my .tld file is as below:

tag
namenextPrevLink/name
tag-classcom.cw.NextPrevLink/tag-class
body-contentempty/body-content
descriptionDisplays the next and previous link for any  
list/description
attribute
namelistSize/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameoffset/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
namedisplaySize/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
namelink/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameparamNames/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameparamValues/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
/tag		

Thanks.


RE: Tomcat 3.x Question

2003-10-10 Thread Larry Isaacs
Assuming you are referring to Tomcat 3.3.x, you need to also execute:

/usr/local/tomcat/startup.sh jkconf

prior to restarting Apache.  This will update the mod_jk.conf used
to configure mod_jk.  See:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html

for details about controlling what gets written to mod_jk.conf.

Writing mod_jk.conf was separated from normal Tomcat startup
due to problems with Apache/mod_jk trying to read the file while
Tomcat was writing it, when both are installed as services under
Windows.

Cheers,
Larry

 -Original Message-
 From: Robert Charbonneau [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 10, 2003 3:12 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.x Question
 
 
 Is there any way that I can have Tomcat automatically pickup 
 additional 
 webapps in my webapps directory on startup and auto-configure for it?
 
 For example:
 
 add webapps/MyApp
 
 /usr/local/tomcat/bin/shutdown.sh  /usr/local/tomcat/startup.sh
 
 And have http://host.com/MyApp available to me after 
 restarting Apache?
 
 Thanks,
 
 --
 Robert Charbonneau
 [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: 4.1.27: Manager app 'reload' causing ClassNotFoundException

2003-10-10 Thread Justin Ruthenbeck
My apologies ... this is covered here:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096

Date: Fri, 10 Oct 2003 12:18:03 -0700
To: Tomcat Users List [EMAIL PROTECTED]
From: Justin Ruthenbeck [EMAIL PROTECTED]
Subject: 4.1.27: Manager app 'reload' causing ClassNotFoundException
Hello All:

Tomcat 4.1.27
JDK 1.4.1_02
OS: Windows 2k
I've thoroughly read:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
This list for the past 16 months  :)
Problem: My (simple demonstration) webapp runs fine if Tomcat is started 
from scratch.  If I use the Manager app from either the html or ant 
interfaces, executing the 'reload' command completes without error, yet 
all servlets are unavailable afterwards.  Hitting a servlet results in the 
following being logged:

2003-10-10 12:05:06 HTMLManager: restart: Reloading web application at '/news'
2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context has started
2003-10-10 12:05:06 StandardWrapper[/news:default]: Loading container 
servlet default
2003-10-10 12:05:06 StandardWrapper[/news:invoker]: Loading container 
servlet invoker
2003-10-10 12:05:06 StandardManager[/news]: Seeding random number 
generator class java.security.SecureRandom
2003-10-10 12:05:06 StandardManager[/news]: Seeding of random number 
generator has been completed
2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context is 
completed
2003-10-10 12:05:12 
StandardWrapper[/news:com.nextengine.news.servlet.CalculatorServlet]: 
Marking servlet com.nextengine.news.servlet.CalculatorServlet as unavailable
2003-10-10 12:05:12 
StandardWrapperValve[com.nextengine.news.servlet.CalculatorServlet]: 
Allocate exception for servlet com.nextengine.news.servlet.CalculatorServlet
javax.servlet.ServletException: Wrapper cannot find servlet class 
com.nextengine.news.servlet.CalculatorServlet or a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at

snip

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.ClassNotFoundException: 
com.nextengine.news.servlet.CalculatorServlet
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)

CalculatorServlet.class exists only under the directory:
$TOMCAT_HOME/webapps/news/WEB-INF/classes/com/nextengine/news/servlet
The only modifications made to the default installation is the appropriate 
additions to tomcat-users.xml.  No changes were made to server.xml.  Since 
thousands of people use this, I'm assuming there's something simple going 
on here.  Restarting the Tomcat process results in all resources being 
available once again.

Hoping another pair of eyes can see what's wrong...

Thanks,
justin



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]


SOLVED -- RE: Problems with mod_jk and Apache SetHandler

2003-10-10 Thread Nathan Christiansen
I am posting the solution so that someone else can benefit from my work.

The problem was solved by wrapping the FilesMatch... directive in a 
DirectoryMatch... directive as follows:

# Exclude the Tomcat webapps directory from the Mason handler
DirectoryMatch !/var/tomcat4/webapps/
  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch
/DirectoryMatch


It is interesting that Apache is not forwarding the request to Tomcat after the Mason 
handler declines the request.

Is this a bug in Apache or in the mod_jk connector? 

Where do I submit the bug report?

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Nathan Christiansen 
Sent: Wednesday, October 08, 2003 1:30 PM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk and Apache SetHandler


The http.conf file includes the following directives for the Mason handler:

  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch


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



tomcat and mac os 10.2.8 update

2003-10-10 Thread Augustina Blair
i have a quick question... i had jakarta-tomcat-4.1.27 installed and 
working fine on my system.  after i installed the update i keep getting 
this weird error message (i have a little scripty thing as per apple's 
instructions, that's the first 4 lines of output):

Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
Using JAVA_HOME:   /usr
touch: /usr/local/jakarta-tomcat-4.1.27/logs/catalina.out: Bad file 
descriptor
/usr/local/jakarta-tomcat-4.1.27/bin/catalina.sh: 1: Bad file descriptor

I'm thinking i should just reinstall tomcat and call it a day, but if 
anybody has any ideas.  it seems like it might be a problem with 
the JAVA_HOME value... (no values have changed in the file and this is 
EXACTLY how apple says to do it on the dev page: 
http://developer.apple.com/internet/java/tomcat1.html ).  and like i 
said this was all working fine up until i installed the update... 
grrr...

--augustina

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


locate iis_redirect.dll for Windows 2003 and IIS 6.0

2003-10-10 Thread Tuan Quan
Anyone knows where to get one. THe one i got worked with Windows 2000 and IIS 5.0 but 
does not work w/ Windows 2003 and IIS 6.0.
I'm using Tomcat 4.
 
thanks.
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Is my binary build from Apache optimized for SMP?

2003-10-10 Thread Glenn Parsons
Hello All,

I am a systems administrator with little coding experience. I would like to 
know if the binaries I've downloaded are optimized for SMP? How would I 
know or where could I find out?

TIA,
Glenn


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


RE: NOT SOLVED -- RE: Problems with mod_jk and Apache SetHandler

2003-10-10 Thread Nathan Christiansen
Actually this code prevents Mason from working.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Nathan Christiansen 
Sent: Friday, October 10, 2003 1:34 PM
To: Tomcat Users List
Subject: SOLVED -- RE: Problems with mod_jk and Apache SetHandler


I am posting the solution so that someone else can benefit from my work.

The problem was solved by wrapping the FilesMatch... directive in a 
DirectoryMatch... directive as follows:

# Exclude the Tomcat webapps directory from the Mason handler
DirectoryMatch !/var/tomcat4/webapps/
  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch
/DirectoryMatch


It is interesting that Apache is not forwarding the request to Tomcat after the Mason 
handler declines the request.

Is this a bug in Apache or in the mod_jk connector? 

Where do I submit the bug report?

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Nathan Christiansen 
Sent: Wednesday, October 08, 2003 1:30 PM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk and Apache SetHandler


The http.conf file includes the following directives for the Mason handler:

  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch


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



Struts Configuration

2003-10-10 Thread Issam Katan
Hallo,
 
who can one config the struts Framework in the Tomcat ???
 
thanks
 
 
 



-
Gesendet von http://mail.yahoo.de
Schneller als Mail - der neue Yahoo! Messenger.

Re: Struts Configuration

2003-10-10 Thread Filip Hanik
anyone who wants to!

- Original Message - 
From: Issam Katan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 1:31 PM
Subject: Struts Configuration


Hallo,
 
who can one config the struts Framework in the Tomcat ???
 
thanks
 
 
 



-
Gesendet von http://mail.yahoo.de
Schneller als Mail - der neue Yahoo! Messenger.

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



RE: REALLY SOLVED THIS TIME -- RE: Problems with mod_jk and Apache SetHandler

2003-10-10 Thread Nathan Christiansen
We finally found a solution:

DirectoryMatch /home/httpd/redesign/
  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch
/DirectoryMatch


-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Nathan Christiansen 
Sent: Friday, October 10, 2003 2:49 PM
To: Tomcat Users List
Subject: RE: NOT SOLVED -- RE: Problems with mod_jk and Apache
SetHandler


Actually this code prevents Mason from working.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Nathan Christiansen 
Sent: Friday, October 10, 2003 1:34 PM
To: Tomcat Users List
Subject: SOLVED -- RE: Problems with mod_jk and Apache SetHandler


I am posting the solution so that someone else can benefit from my work.

The problem was solved by wrapping the FilesMatch... directive in a 
DirectoryMatch... directive as follows:

# Exclude the Tomcat webapps directory from the Mason handler
DirectoryMatch !/var/tomcat4/webapps/
  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch
/DirectoryMatch


It is interesting that Apache is not forwarding the request to Tomcat after the Mason 
handler declines the request.

Is this a bug in Apache or in the mod_jk connector? 

Where do I submit the bug report?

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Nathan Christiansen 
Sent: Wednesday, October 08, 2003 1:30 PM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk and Apache SetHandler


The http.conf file includes the following directives for the Mason handler:

  FilesMatch  \.html*$|\.csv$|\.txt$|^[^\.]*$
SetHandler perl-script
PerlHandler Mason::Site::Redesign
PerlLogHandler Mason::Site::Redesign-loghandler
  /FilesMatch


-
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: Why should i use Tomcat vs .NET?

2003-10-10 Thread Werner van Mook
This one is not pro Tomcat.

What about vendor locking?
If you choose .Net you are bound to Mickeysoft.
Can never change or have to do all the work again.
You will tie your customers into .Net too.
Will it be what they want?
If you choose Java/Tomcat you can still run it on Mickeysoft.
But then I think you already know this.

W.

Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Attribute attribute invalid according to the specified TLD ??

2003-10-10 Thread Tim Funk
I think the error is pretty clear that you have a typo. pramValues  should be 
 paramValues

-Tim

Mufaddal Khumri wrote:

Hi,

Does anybody know why I would get the following exception:

org.apache.jasper.JasperException: /MyJsp.jsp(103,2) Attribute  
pramValues invalid according to the specified TLD
at  
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand 
ler.java:94)
at  
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java 
:428)
at  
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java 
:186)

MyJsp.jsp has the following tag library:

%
Vector vPName = new Vector();
Vector vPValue = new Vector();
   
vPName.addElement(selection);
vPValue.addElement(selection);
%

cw:nextPrevLink listSize='%=maxLength%'
 offset='%=offset%'
 
displaySize='%=Constants.USER_LIST_DISPLAY_SIZE%'
 link='/myOther.jsp'
 paramNames='%=vPName%'
 pramValues='%=vPValue%'/

The tag entry in my .tld file is as below:

tag
namenextPrevLink/name
tag-classcom.cw.NextPrevLink/tag-class
body-contentempty/body-content
descriptionDisplays the next and previous link for any  
list/description
attribute
namelistSize/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameoffset/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
namedisplaySize/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
namelink/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameparamNames/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
attribute
nameparamValues/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
/tag   

Thanks.



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


Performance problem?

2003-10-10 Thread Neil Aggarwal
Hello:

We have noticed that in our app, on occasion, a request takes an
inordinately long time to execute even though it is performing a
simple task.

I added some tracing to the org.apache.jasper.servlet.JspServletWrapper
class and get this output immediately before calling service
on the servlet created from my jsp file:

10/10/2003 8:52:08.635 AM [Thread-188] Calling service on
org.apache.jsp.index_jsp

My code is in the call to the service() method of the servlet after
checking
that Tomcat is not running a SingleThreadModel:

if (theServlet instanceof SingleThreadModel) {
   // sync on the wrapper so that the freshness
   // of the page is determined right before servicing
   synchronized (this) {
   theServlet.service(request, response);
}
} else {
 
com.slsideas.pagegen.servlets.BaseControllerServlet.addNote(request,
Calling service on +theServlet.getClass().getName() );
theServlet.service(request, response);
}

My next line of output from the same thread is in my jsp file at the
very top.  It
gave me:

10/10/2003 8:53:49.193 AM [Thread-188] At top of index.jsp

So, you can see that it took over a minute and a half to get from the
invocation of the
service method on my jsp servlet to the actual execution of it.

This seems strange to me, since this is just a method invocation.

I don't believe this is caused by compilation of the jsp file since I
have development
set to false in tomcat's config file and this code is past that point in
the JspServlet
class.

I don't believe this is garbage collection related since I have the
verbose garbage
collection flags turned on and I see that the GC for 100 seconds before
and after
this event look like this:

6467.31: [Full GC 285948K-236784K(460072K), 1.7318340 secs]
6497.1: [GC 287631K-259103K(460072K), 0.0225250 secs]
[My output occurred here]
6497.84: [GC 287775K-259175K(460072K), 0.0198420 secs]
6529.71: [Full GC 382024K-259185K(460072K), 0.7856030 secs]

The garbage collector is not taking very long to run.

Does anyone have any insights to why this is taking so long?

Thanks,
Neil.

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



[OT] tomcat netiquete; please ban autoresponders

2003-10-10 Thread Jens Skripczynski
Arjen van der Weijden:
 I will be out of the office starting  10/10/2003 and will not return until
 11/04/2003.
 
 I will respond to your message when I return.
Since this happens quite often, I think it may be usefull, to add
another etiquette to the general mailinglist page.

I belief autoresponders (on holiday / moved email / ... ) 
in not usefull, if it is replying to a mailinglist.

It is the responsebility of the subscriber to resubscribe with his 
new email or to pause his subscription or subscribe from a different
accout.


For me tomcat-user is the only mainlinglist, where autoresponses
appear. Maybe because of the large number of people subscribed.
They do not hurt too much, but are an anoying background noise
- not neccassary nor informative, but each costs a few cents
transmitting and more people reading and deleting...



Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

In this world there are only two tragedies; one is not getting
what one wants, the other is getting it.
  -- Oscar Wild


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



RE: Struts Configuration

2003-10-10 Thread mike jackson
There's a decent tool available called struts studio.  Google for it and
it'll help you do the configuration.

There's also some plugins for eclipse, easy struts comes to mind.

--mikej
-=--
mike jackson
[EMAIL PROTECTED]



 -Original Message-
 From: Issam Katan [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 12:32 PM
 To: [EMAIL PROTECTED]
 Subject: Struts Configuration
 
 Hallo,
 
 who can one config the struts Framework in the Tomcat ???
 
 thanks
 
 
 
 
 
 
 -
 Gesendet von http://mail.yahoo.de
 Schneller als Mail - der neue Yahoo! Messenger.



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



Re: ssl client authentication again

2003-10-10 Thread Bill Barker
The Tomcat 5 docs have an example for this:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

Since it's just about setting up the KeyStore, this section applies to
Tomcat 4 (or even Tomcat 3 :) as well.

Twan Munster [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,

I've worked around with using apache+mod_ssl, but i'm running in several
problems now so please can somebody help me with the next problem:

I've always used apache http server for client authenticatien with ssl. I've
installed Tomcat now voor mij jsp's.
But I'm not able to get the ssl client authentication working. The problem
is getting my existing certificates working in tomcat. Is apache http server
it was very easy. I configured all the stuff in my httpd.conf.
I also tried to get tomcat working with keytool. But ther's something I do
wrong. I alwas get handshake error.

Can somebody please tell me how to use keytool. I've got the following
certificates:

1 server.crt = server certificate
2 ca.crt = chain certificate
3 ca-bundle.crt = lots of certificates for client authentication
4 server.key = i really don't know how to get this one in keytool

Thnx

Twan Munster




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



Re: redirect port 8080 to 443

2003-10-10 Thread Bill Barker
It's in the FAQ:
http://jakarta.apache.org/tomcat/faq/security.html#https

Twan Munster [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,

I'm using apache+mod_ssl+mod_jk to make a secure connection.
But every time I call a page in cocoon it is called through port 8080. Is it
possible to redirect a call to port 8080  to port 443? And not for the
entire server, but only for a certain directory?How is this done?

thnx

Twan




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



How to use jar files from CLASSPATH

2003-10-10 Thread Zsolt Koppany
Hi,

my application has to use DB2 JDBC that is in the CLASSPATH. How can I get
tomcat-4.1.24 to search for entries from CLASSPATH?

I understand that I could probably copy the entries from CLASSPATH into
.../WEB-INF/lib, but this JDBC driver does use native libraries, thus I
would not like to copy them into .../WEB-INF/lib.

This is how CLASSPATH is defined after DB2 installation:

.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc
_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\commo
n.jar

As you can see there is even a directory in CLASSPATH (that contains a lot
of files).


Zsolt



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



Re: mod_jk lbfactor strangeness

2003-10-10 Thread Bill Barker

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 1 Understood, it was just to get some ballpark indication

 2 Surely then the new session would be balanced to the faster machine,
 and I would see more activity on them.

 3 That would explain everything :(

 Would a move to mod_jk2 be of any use, or should I get someone to put
 their hand in their pocket and upgrade the other two boxes


Unless I've missed a crucial commit-message, mod_jk2 is just as broken using
the 'pre-fork' MPM as mod_jk (and they should work similarly with the
'worker' MPM).  The difference is that mod_jk2 already has a built-in way do
communicate the information to all of the Apache children (via the shm
scoreboard).  At the moment, it just isn't using the scoreboard to do this.

 Thanks for the reply.

 Lee

 On Fri, 10 Oct 2003, Ralph Einfeldt wrote:

 
  1. mod_jk doesn't balance the load on the base of
 packets.
 
  2. mod_jk works with sticky sessions so only new sessions
 are balanced. I belief but am not shure that it's just
 round robin.
 
  3. Bill Barker claims that the load balancing is broken
 as the instances of mod_jk don't know the load of each
 other. So mod_jk will balance to some extend but not as
 good as it could/should.
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Friday, October 10, 2003 1:37 PM
   To: [EMAIL PROTECTED]
   Subject: mod_jk lbfactor strangeness
  
   I've an apache servers with 4 backend app servers and using mod_jk to
   balance the load over them.
  
   Two of the machines are a fair bit quicker than the other
   two, so I've adjusted the weighting with lbfactor
  
   app1 (slow) =  lbfactor=100
   app2 (slow) =  lbfactor=100
   app3 (fast) =  lbfactor=150
   app4 (fast) =  lbfactor=150
  
   Yet what I see is that app2 and app3 get most of the load?
  
   I've checked this with snoop(tcpdump) and counted the packets to the
   various app servers. And app2 and app3 defiantly seems to be getting
   more work. I've checked my host file and workers.properties and all
   seems right.
  
 
  -
  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]