Re: done did not found a worker

2004-02-10 Thread Sergio
Hello, Nicholas.

Maybe I'm wrong that I give you this config, but it works on my
system (Win2003) (the part about pathes I've used before, and about
balancers i've find in the web-documentation):
# Start config-
worker.ajp13.type=ajp13
# more than 1
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.tomcat_home=C:\apache2\tomcat5.0.18
worker.java_home=C:\apache2\j2sdk1.4.2_03
ps=\  #for Win, for Unix = /
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
# End config-

It was Tomcat 4.xx and now its 5.0.18.
If somebody can give comments or suggestions I'll be apreciated too.
Thanks and good luck.


NB I'm hoping someone can give me a bit of insight as to what I might be
NB doing wrong with connecting Apache V.2 w/ Tomcat V.4 using mod_jk
NB v1.2.5. It looks like apache is trying to talk to tomcat when is sees
NB that /examples/ is supposed to be handled by tomcat via mod_jk but when
NB mod_jk tries to use ajp13 to talk to tomcat, it gets confused, and
NB addition, so do I. :) 

NB Instead of putting a boat-load of logs and config files in this email,
NB I've put them on the web @: http://nicholasbernstein.com/tomcat/
NB Hopefully, that will be more convenient for anyone who is willing to
NB take a look. 

NB The mod_jk.log error is:
NB [Fri Feb 06 17:18:20 2004]  [jk_worker.c (136)]:
NB wc_get_worker_for_name, done did not found a worker
NB [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c
NB (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
NB [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c
NB (500)]: Attempting to map URI '/examples/'
NB [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c
NB (514)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact
NB match ajp13 - /examples/
NB [Fri Feb 06 17:21:02 2004]  [mod_jk.c (1709)]: Into
NB handler r-proxyreq=0 r-handler=jakarta-servlet
NB r-notes=136692072 worker=ajp13
NB [Fri Feb 06 17:21:02 2004]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name ajp13
NB [Fri Feb 06 17:21:02 2004]  [jk_worker.c (136)]:
NB wc_get_worker_for_name, done did not found a worker

NB Any help would be appreciated; I've gone through a decent portion of the
NB mailing list archives, as well as google, but the only thing I could
NB find was making workers.properties be a minimal:

NB worker.list=ajp13 
NB worker.ajp13.type=ajp13 
NB worker.ajp13.host=localhost 
NB worker.ajp13.port=8009

NB unfortunately making that change did not modify the error in any way.




-- 
Sincerely yours,
 Sergio  mailto:[EMAIL PROTECTED]


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



Re[2]: Help! Config of multiple hosts and JVM garbage.

2004-02-10 Thread Sergio
Hello, Antonio.
1) You are absolutely right about mounting, but also I figure it out
with jk2 connector (I find it in docs - it seems I was a little tired to find it
before:)). I've tryed to done it with mod_jk, but the problem was that
I want to give access to their sites with FTP and limit this space up
to public_html for each user and do not give them permissions to
access to webapps for example.
2) Thanks it helps!
3) Yeap;) you right its garbage collection. Thanks for suggestions.
I have just 512 RAM (its HP ML330) - I know its not enough but we are
poor people:)

Thank you for help!!!


AFB Sergio wrote:

Hi All! Guys, I need help!
My system is Windows 2003 Enterprise Server with Apache 2.0.48
I need Windows for 3rd part application, but because I hate IIS so I am
using Apache2(the best!!!).

1)Does somebody can help me with configuration of Tomcat 5.0.18
for multiple hosts? I need to deploy
servlets separately for each user. Access will be configured in
httpd.conf of Apache2.0.48 Some people uses multiples instances of Tomcat for each 
user.
Somebody uses one instance of Jboss with various deployed folders (its actually my 
configuration
now). But I need to do that trick with Tomcat. The biggest problem for
me now - its to configure server.xml for two or more hosts. I cant
find it in documentation. If you can help with with any tips and/or your examples of
httpd.conf, workers.prop..s etc. (all related parts of configuration
of the servers) - please help.
  


AFB I have never set up VirtualHosts in Tomcat. But if you do not need to
AFB have a root app, you do not need to (or at list I did not need to).
AFB Just mount the apps you need in the Apache VirtualHosts you need, and
AFB you are done.

2) How I can configure memory management for Tomcat (limits for memory using for each
process/application)? Is it possible somehow?
  


AFB Not possible when using a single JVM.
AFB If you use multiple instances of Tomcat, you can set -Xmx256m (or
AFB whatever amount you need) in JAVA_OPTS environment variable. That will
AFB effectively limit the amount of memory used by your heap.

3) I have a problem with garbage of JVM caching. Any suggestions how I
can organize autocleaning? How can I minimize the usage of the disk
in this case?
  

AFB What do you mean by disk usage? How is that related do autocleaning,
AFB which I understand as garbage collection?

AFB Do you mean swapping? If so, ensure that your JVM is at most as big as
AFB your free _real_ memory. Otherwise, your OS qill start swapping unused
AFB bits. Then, the GC will reclaim them for collection. So, you are 
AFB accessing the disk at least twice for something you could have avoided.
AFB (Side note: Get more RAM ;-)

AFB In any case, profiling your applications is a good way to go: you willl
AFB determine whether your app grows in memory usage with time, or if it
AFB remains constant. (Consider the former a bug.) If memory usage remains
AFB constant, you can stress your app, and determine how much memory it
AFB needs for full load, and then you may allow it (JAVA_OPTS) no more
AFB than that, knowing it will work.


AFB Yours,


AFB Antonio Fiol




-- 
Sincerely yours,
 Sergio  mailto:[EMAIL PROTECTED]


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



Re: Help! Config of multiple hosts and JVM garbage.

2004-02-10 Thread Antonio Fiol BonnĂ­n
Hi Sergio,

1) public_html would be enough, AFAICT.

3) What I meant is: if you have 512Mb RAM, set your JAVA_OPTS=-Xmx256m 
(as I understand that you may have half your RAM free when Tomcat is not 
running). The idea about buying more RAM was a kind of a joke, 
especially because I did not know how much RAM you had. 512Mb should be 
enough in most cases, if you do not have memory leaks in your apps. If 
you do, no amount of RAM will be enough.

Watch your top / free / whatever to see if you are eating up all RAM 
and start swapping. If you do, and it is not a transient peak situation, 
you are eating too much, and should lower the -Xmx to some lower value.

If your apps need more memory, you will get OutOfMemoryError in your 
catalina.out. In that case, raise your -Xmx.

And yes, you understood well, if you have to lower it, and also to raise 
it, that means RAM is not enough ;-)

Yours,

Antonio Fiol

Sergio wrote:

Hello, Antonio.
1) You are absolutely right about mounting, but also I figure it out
with jk2 connector (I find it in docs - it seems I was a little tired to find it
before:)). I've tryed to done it with mod_jk, but the problem was that
I want to give access to their sites with FTP and limit this space up
to public_html for each user and do not give them permissions to
access to webapps for example.
2) Thanks it helps!
3) Yeap;) you right its garbage collection. Thanks for suggestions.
I have just 512 RAM (its HP ML330) - I know its not enough but we are
poor people:)
Thank you for help!!!

AFB Sergio wrote:

 

Hi All! Guys, I need help!
My system is Windows 2003 Enterprise Server with Apache 2.0.48
I need Windows for 3rd part application, but because I hate IIS so I am
using Apache2(the best!!!).
1)Does somebody can help me with configuration of Tomcat 5.0.18
for multiple hosts? I need to deploy
servlets separately for each user. Access will be configured in
httpd.conf of Apache2.0.48 Some people uses multiples instances of Tomcat for each 
user.
Somebody uses one instance of Jboss with various deployed folders (its actually my 
configuration
now). But I need to do that trick with Tomcat. The biggest problem for
me now - its to configure server.xml for two or more hosts. I cant
find it in documentation. If you can help with with any tips and/or your examples of
httpd.conf, workers.prop..s etc. (all related parts of configuration
of the servers) - please help.
 

AFB I have never set up VirtualHosts in Tomcat. But if you do not need to
AFB have a root app, you do not need to (or at list I did not need to).
AFB Just mount the apps you need in the Apache VirtualHosts you need, and
AFB you are done.
 

2) How I can configure memory management for Tomcat (limits for memory using for each
process/application)? Is it possible somehow?
 

AFB Not possible when using a single JVM.
AFB If you use multiple instances of Tomcat, you can set -Xmx256m (or
AFB whatever amount you need) in JAVA_OPTS environment variable. That will
AFB effectively limit the amount of memory used by your heap.
 

3) I have a problem with garbage of JVM caching. Any suggestions how I
can organize autocleaning? How can I minimize the usage of the disk
in this case?
 

AFB What do you mean by disk usage? How is that related do autocleaning,
AFB which I understand as garbage collection?
AFB Do you mean swapping? If so, ensure that your JVM is at most as big as
AFB your free _real_ memory. Otherwise, your OS qill start swapping unused
AFB bits. Then, the GC will reclaim them for collection. So, you are 
AFB accessing the disk at least twice for something you could have avoided.
AFB (Side note: Get more RAM ;-)

AFB In any case, profiling your applications is a good way to go: you willl
AFB determine whether your app grows in memory usage with time, or if it
AFB remains constant. (Consider the former a bug.) If memory usage remains
AFB constant, you can stress your app, and determine how much memory it
AFB needs for full load, and then you may allow it (JAVA_OPTS) no more
AFB than that, knowing it will work.
AFB Yours,

AFB Antonio Fiol



 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: done did not found a worker

2004-02-10 Thread David Rees
Nicholas Bernstein wrote, On 2/9/2004 6:26 PM:
if you've got a minute, take a look @ the configs I posted 
http://nicholasbernstein.com/tomcat/

and let me know if you see anything wrong with the setup. I'd rather
stick to apache2; i'm using redhat ES and it looks like they've made a
lot of RH specific patches to httpd source, so it probably performs a
lot better that compiling 1.x from source. 
It looks like you're trying to use mod_jk with a mod_jk2 configuration 
file.  The configuration files are NOT the same between the two modules.

-Dave

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


Re: done did not found a worker

2004-02-10 Thread David Rees
Dwayne Ghant wrote, On 2/9/2004 7:02 PM:

Dave, I have been having semular issues would it be impossible for to 
post the four files listed below:

1. http.conf
2. ssl.conf
3. server.xml
4. workers2.properties
Here's a sample for setting up Apache.  This will work on either Apache 
2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat will 
work, use the example connector config included with every default 
server.xml as it varies a little between Tomcat versions.

httpd.conf
# This only shows the portions relevant to mod_jk, you should stick the
# lines somewhere in your config file.  This config also works for
# Apache 1.3.X as well as Apache 2.0.X.
---
LoadModule jk_module modules/mod_jk.so
JkWorkersFile path-to-apache-conf/tomcat_workers.properties
JkLogFile path-to-apache-logs/mod_jk.log
JkLogLevel error
VirtualHost *:80
ServerName www.example.com
JkMount /*.jsp tomcat
JkMount /servlet/* tomcat
/VirtualHost
---
path-to-apache-conf/tomcat_workers.properties
---
worker.list=tomcat
worker.tomcat.port=8007
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
---
That's it!

-Dave
 aka the mod_jk expert
 NOT a mod_jk2 expert!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


include files

2004-02-10 Thread Chris Daly
hi

i've tested a new version of my jsp include file (a header which is 
referenced by about 40 pages) on one jsp page, and its wokred ok.  i've 
changed the coding of the include page though none of the other jsp pages 
have picked up the new include and are still looking to teh old one ?  i've 
stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag libraries 
but they are working ok and i cant see why it would be anything other than 
tomcat ?

cheers

chris

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


Re: include files

2004-02-10 Thread De Toffoli Garry
Chris Daly ha scritto:

hi

i've tested a new version of my jsp include file (a header which is 
referenced by about 40 pages) on one jsp page, and its wokred ok.  
i've changed the coding of the include page though none of the other 
jsp pages have picked up the new include and are still looking to teh 
old one ?  i've stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag 
libraries but they are working ok and i cant see why it would be 
anything other than tomcat ?

cheers

chris

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

Have you tried to use the touch cmd on all the file that include you .jsp?



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


RE: include files

2004-02-10 Thread Yiannis Mavroukakis
If you think everything else is working ok, stop tomcat delete everything
under the work directory and start again.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 09:19
To: [EMAIL PROTECTED]
Subject: include files


hi

i've tested a new version of my jsp include file (a header which is 
referenced by about 40 pages) on one jsp page, and its wokred ok.  i've 
changed the coding of the include page though none of the other jsp pages 
have picked up the new include and are still looking to teh old one ?  i've 
stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag libraries 
but they are working ok and i cant see why it would be anything other than 
tomcat ?

cheers

chris


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Native application from servlet (java.net.SocketException: Connection reset by peer: socket write error)

2004-02-10 Thread Veselin Kovacevic
Hi all,
 
We have a servlet based application which open a native application and
read some output from them.
Sometimes we get an error in tomcat logfile but application work fine. 
 
Here is error. Any ideas what is possible problem?
 
2004-02-09 10:02:26 StandardWrapperValve[default]: Servlet.service() for
servlet default threw exception
java.net.SocketException: Connection reset by peer: socket write error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.d
oWrite(InternalOutputBuffer.java:668)
 at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOu
tputFilter.java:160)
 at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff
er.java:523)
 at org.apache.coyote.Response.doWrite(Response.java:524)
 at
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:
384)
 at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
 at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)
 at
org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411)
 at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
 at
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.ja
va:110)
 at
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.jav
a:1996)
 at
org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:174
5)
 at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet
.java:1073)
 at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:50
6)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
 at java.lang.Thread.run(Thread.java:536)

 
 
Veso
 


RE: include files

2004-02-10 Thread Chris Daly
everyhting under the work directory, all the directories

work/Standalone/localhost  etc etc ?  wont this delete the standlone server ?



At 10:09 10.02.2004 +, you wrote:
If you think everything else is working ok, stop tomcat delete everything
under the work directory and start again.
-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 09:19
To: [EMAIL PROTECTED]
Subject: include files
hi

i've tested a new version of my jsp include file (a header which is
referenced by about 40 pages) on one jsp page, and its wokred ok.  i've
changed the coding of the include page though none of the other jsp pages
have picked up the new include and are still looking to teh old one ?  i've
stopped and started tomcat but its till not changed.
does anyone have any ideas ?  i've included a couple of new tag libraries
but they are working ok and i cant see why it would be anything other than
tomcat ?
cheers

chris

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

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


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


Re: include files

2004-02-10 Thread De Toffoli Garry
Chris Daly ha scritto:

everyhting under the work directory, all the directories

work/Standalone/localhost  etc etc ?  wont this delete the standlone 
server ?



At 10:09 10.02.2004 +, you wrote:

If you think everything else is working ok, stop tomcat delete 
everything
under the work directory and start again.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 09:19
To: [EMAIL PROTECTED]
Subject: include files
hi

i've tested a new version of my jsp include file (a header which is
referenced by about 40 pages) on one jsp page, and its wokred ok.  i've
changed the coding of the include page though none of the other jsp 
pages
have picked up the new include and are still looking to teh old one 
?  i've
stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag 
libraries
but they are working ok and i cant see why it would be anything other 
than
tomcat ?

cheers

chris

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

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


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

You would delete only the directory relative of your site, under the 
work directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include 
your include.jsp? I use this mode, and all is OK, and I doesn't delete 
the work directory;

Best regards.



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


Configuration question

2004-02-10 Thread Arnaud Deflorenne
Hello,

I work with Tocat 5.018 on Win2K.

Here is my question: I would like to define two web adresses
(www.adress1.com and www.adress2.com) on the nearly same web site...
In fact, my first adress has to point to my default web page in the root
folder (/index.htm) : no problem for this, it works fine; my second adress
has to point to a page in a subdirecory (like /en/part2/mypage.htm).
I don't know how to define this situation in Tomcat. Could you give me some
idea?
Thanks in advance.

Arnaud



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


Re: Configuration question

2004-02-10 Thread Chris Daly
i think what you mean is run two instances of tomcat.  you do this within 
the conf/server.xml, and make another copy of the context path file where 
docbase is the root directory of your new website, remember to stop and 
start tomcat for the changes to take effect.

   Context path=/.. docBase=.../.../
debug=0 reloadable=false /
i think that should help.

At 11:37 10.02.2004 +0100, you wrote:
Hello,

I work with Tocat 5.018 on Win2K.

Here is my question: I would like to define two web adresses
(www.adress1.com and www.adress2.com) on the nearly same web site...
In fact, my first adress has to point to my default web page in the root
folder (/index.htm) : no problem for this, it works fine; my second adress
has to point to a page in a subdirecory (like /en/part2/mypage.htm).
I don't know how to define this situation in Tomcat. Could you give me some
idea?
Thanks in advance.

Arnaud



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


creating threads in tomcat

2004-02-10 Thread Damjan Majstorovic
Hi all;

I realize this is a 'complex' (for me at least) question, but maybe someone 
can give me
their opinion on it.

I am using Tomcat 5 for my webapp which allows insertion of messages (and 
much more).
I also need to have an independent 'engine' that will look into DB and 
'handle' newly inserted
messages. This engine will, depending on the type of message, do a specific 
task. This
will require arround 7 new threads that I will control (hopefully). Among 
other things I will
need to read information from database in these new threads.

I feel like I have 3 choices:

1. Implement my engine in Tomcat JVM.
2. Implement it in a JVM outside Tomcat and communicate with the webapp only 
thru DB.
  (so almost have 2 independent apps that use the same DB)
3. Implement it in a JVM outside Tomcat and communicate with Tomcat JVM thru 
RMI.

I like 1. because all would be in one place, and I would use DB connection 
pooling provided
by Tomcat.
I like 2. because I understand it is bad to open new threads in Tomcat.
I like 3 because I avoid having threads in Tomcat, but can get to DB thru
classes that are already in my Tomcat JVM via RMI. I do not like it because 
it is more complex.

**
So I have one question:
**
1. How bad (what performance hit, and other negative aspects should I 
expect) is it
   to open new threads in Tomcat, and arround 7 of them.

and I wonder if someone can point me or suggest to me to a solution, 
article, discussion
or anything about this little problem that I have.

Sincerely and thankfully
Damjan
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


AW: Tomcat 5.0.18 with connector to IIS?

2004-02-10 Thread Michael Sudkamp
Daniel

Thanks for the setup. I was looking for a long time for a working combination of 
binary, config files and install instruction.
I have manually installed the old JK connector a lot of times without any problems but 
it never worked for me for JK2 with the install instruction that ships with Tomcat 4.1.
I tested your setup on Windows NT 4 and Windows 2000.
I also tested successfully a manual setup using your config files plus the 2.0.2 
ISAPI-DLL binary from the official jakarta-site.

Thanks a lot!

Michael


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



JK1 vs JK2 connector

2004-02-10 Thread Michael Sudkamp
Hello,

I have used the 'old' JK connector for a long time with Tomcat 4.0 and 4.1 and IIS. I 
had never any problems with stability.
Very recently I figured out how to set up the JK2 connector (thanks Daniel).

Now I wonder if I should from now use JK2 instead. What are the pros and cons?

Best regards

Michael


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



Logging of JK2 ISAPI connector

2004-02-10 Thread Michael Sudkamp
Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But they seem not 
to work with JK2. I also tried logFile and logLevel.

Any ideas?

Michael


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



Snooping on Session data

2004-02-10 Thread Pete Stokes
Hi.

If I have a running Tomcat, am I able to view the actual data in user's 
sessions? Similar to the functionality provided by WebSphere Snoop / ATG 
Dynamo management.

Pete.



***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


Re: JK1 vs JK2 connector

2004-02-10 Thread Tim Funk
Most likely jk1 is more stable than jk2. Both rely on the same wire protocol 
so tomcat really won't know the difference, the difference is in the 
webserver configuration.

If you want to go wiht jk2, there is a new release on the horizon. But if its 
anything like the jk1 release, we thought that too and 3+ months later - it 
popped out.

jk2 seems to have more developer interest in features than jk1. jk1 is 
feature complete for those who are the ones actively maintaining it so there 
aren't any ithces to scratch for them.

-Tim



Michael Sudkamp wrote:
Hello,

I have used the 'old' JK connector for a long time with Tomcat 4.0 and 4.1 and IIS. I 
had never any problems with stability.
Very recently I figured out how to set up the JK2 connector (thanks Daniel).
Now I wonder if I should from now use JK2 instead. What are the pros and cons?



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


Re: Snooping on Session data

2004-02-10 Thread Tim Funk
You can probably snoop if ..
1) You wrote your own webapp
2) AND The webapp was written to use tomcat's internal api to snoop
3) AND The webapp was deployed as a privledged webapp (it uses the server 
classloader)

-Tim

Pete Stokes wrote:

Hi.

If I have a running Tomcat, am I able to view the actual data in user's 
sessions? Similar to the functionality provided by WebSphere Snoop / ATG 
Dynamo management.
 


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


Form Based Authentication - Registration

2004-02-10 Thread Alexander F. Hartner
We have form based authentication working as follows :

1.) Customer requests access to a realm
2.) Redirect to login page
3.) Customer authenticates
4.) Customer redirected to realm as original request
No we want to add registration and have the following happen

1.) Customer requests access to a realm
2.) Redirect to login page
3.) Customer doesn't have an account yet and accesses registration page
4.) Customer registers
5.) On successful registration the customer is redirected to the 
original request

Now to get this working we need the following, both of which we are not 
sure are currently provided by the authentication framework.

-Ability to access the original (SavedRequest) from a JSP / Servlet

-Ability to auto/fake login from within the webapplication

Is this currently possible ?

Thanks
Alex
Alexander F. Hartner
eMail : [EMAIL PROTECTED]
Work :  +27-11-646-6459
Fax :   +27-11-646-5868
The programmers of old were mysterious and profound.  We cannot fathom 
their thoughts, so all we do is describe their appearance.
Aware, like a fox crossing the water.  Alert, like a general on the 
battlefield.  Kind, like a hostess greeting her guests. Simple, like 
uncarved blocks of wood.  Opaque, like black pools in darkened caves. 
Who can tell the secrets of their hearts and minds? The answer exists 
only in the Tao.

	 -- Geoffrey James, The Tao of Programming



Apache 2.x and Tomcat 5.x

2004-02-10 Thread Daniel Thivierge
Hi all,
Sorry if this was ask before, but, I could not find any information on the
NET.

We had Apache 2.x and Tomcat 4.x running find on SuSE Pro 9.0.  Our client
wanted/needed to move to Tomcat 5.x for whatever reason.  We install Tomcat
5.x and start it without any problem, then we started Apache and had
problem.  It complain about a workers.properties file not found.  I copy
the file from Tomcat 4 to the Tomcat 5 and Apache was happy.  The mod_jk
seem to be working find to.

Now the QUESTION, did we just shoot ourself in the foot or was it a little
oops from the Tomcat group?

Thanks.



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



RE: Apache 2.x and Tomcat 5.x

2004-02-10 Thread Yiannis Mavroukakis
Depends :) If mod_jk was looking for workers.properties in the absolute
path Tomcat 4 used to be(and Tomcat 5 is in a different one),
better bandage that leg to stop the bleeding ;)

Yiannis.

-Original Message-
From: Daniel Thivierge [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 12:52
To: [EMAIL PROTECTED]
Subject: Apache 2.x and Tomcat 5.x


Hi all,
Sorry if this was ask before, but, I could not find any information on the
NET.

We had Apache 2.x and Tomcat 4.x running find on SuSE Pro 9.0.  Our client
wanted/needed to move to Tomcat 5.x for whatever reason.  We install Tomcat
5.x and start it without any problem, then we started Apache and had
problem.  It complain about a workers.properties file not found.  I copy
the file from Tomcat 4 to the Tomcat 5 and Apache was happy.  The mod_jk
seem to be working find to.

Now the QUESTION, did we just shoot ourself in the foot or was it a little
oops from the Tomcat group?

Thanks.



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: creating threads in tomcat

2004-02-10 Thread Shapira, Yoav

Howdy,

1. Implement my engine in Tomcat JVM.
2. Implement it in a JVM outside Tomcat and communicate with the webapp
only
thru DB.
   (so almost have 2 independent apps that use the same DB)
3. Implement it in a JVM outside Tomcat and communicate with Tomcat JVM
thru
RMI.

I like 1. because all would be in one place, and I would use DB
connection
pooling provided
by Tomcat.

It's also good because you will be able to easily monitor and manage the
DB threads via a web interface if you'd like.

I like 2. because I understand it is bad to open new threads in Tomcat.

You understand incorrectly.  It's not bad to start new threads in
tomcat.  It's bad to start badly-written threads.  When you use your own
threads, either make them daemons or make sure they terminate properly
when your webapp shuts down.

The performance overhead of creating and running 7 threads is negligible
on a modern machine and JVM.

Yoav Shapira



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


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



RE: Logging of JK2 ISAPI connector

2004-02-10 Thread Krell, Andrew
With JK2 you set the log in the workers2.properties file.  Since you are
using ISAPI, you will want:
 
[logger.win32:]
Level=(EMERG,ERROR,INFO, or DEBUG)

According to the documentation, it normally ends at native Application
Event Log.  You can change the file location of some of the other loggers,
but I never had much success with changing the .win32 logger.  If you figure
that out, let me know.  

Andrew

-Original Message-
From: Michael Sudkamp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 6:13 AM
To: 'Tomcat Users List'
Subject: Logging of JK2 ISAPI connector


Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But
they seem not to work with JK2. I also tried logFile and logLevel.

Any ideas?

Michael


-
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: Servlet thread safety in Tomcat

2004-02-10 Thread Shapira, Yoav

Howdy,

this has made me think a lot about threading , it is really complicated
, I have researched about it but never found a clean solution to

Threading is complicated, yes, and difficult to do well.  Which is why
when possible you should let someone else do the work for you and use a
library like Doug Lea's util.concurrent, which is now
java.util.concurrent in JDK 1.5.  It has thread pools, executors, locks,
etc so you don't have to write any of this sync code yourself.

Yoav Shapira




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


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



RE: Tomcat w Java1.5 beta problem

2004-02-10 Thread Shapira, Yoav

Howdy,

The problem I had, I think, is that my method used an Enumeration and
under 1.5 enum is a new keyword but
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper used enum
many
places as an identifier, as do some classes in
org.apache.tomcat.util.compat

Cool, thanks for researching that and posting your conclusions.

Yoav Shapira




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


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



RE: Weird Problems

2004-02-10 Thread Shapira, Yoav

Howdy,

The first problem is the session counter. It is implemented with the
HttpSessionListener. It works fine until recently. Under the TC5.0.X,
the
counter can be a negative figure.

The problem is obviously in your session counter code: if you posted it,
we could help more.

The second is a quite severe problem. I configure the welcome file to
map a
JSP file. Sometimes, an incoming URL of the default domain leads to the
404
error. After I click the reload button on my browser, the JSP file
shows
up.

You need to do better than sometimes in order to get precise help.
When does it happen, when does it not happen, and what's in the logs in
both cases?

Yoav Shapira



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


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



Help!!! How to get a simple jsp page working

2004-02-10 Thread Avinash Sridhar
hi,
   I am usng Tomcat 5.0.16 And facing the below mentioned problem

I have a directory by name sampleapp,now I have made a directory named ROOT inside 
the sampleapp directory.
I have written a simple MyJsp.jsp jsp file and placed it in the above mentioned 
ROOT ,now my question is 

How does one write the Context /Context for this JSP page in the 
TOMCAT_HOME/conf/server.xml.

Context path=/sampleapp docBase=e:/sampleapp/ROOT debug=0 reloadable=true 
/Context Is this the right way?



Kindly let me know 

Thanking you 
AS 

Apache 2, Tomcat 4.1, RH 9 - servlet/jsp requests return only on second hit

2004-02-10 Thread Brent Parker
My Config: Redhat 9, Apache 2.0.47, mod_jk 1.2.6, Tomcat 4.1.29 

It takes a second request (to port 80) to get a jsp or servlet output to
display in the browser: I type in the url (jsp or servlet) and hit Enter,
the browser (Mozilla and IE) spins indefinitely. I then highlight the
address line and hit Enter a second time, and the page will immediately
load. Restated: All servlets/jsp requests do load - but only on the second
hit (request). However, any static html page (served through apache) loads
immediately on the first hit. 

The println's I put in the jsp/servlet reveal that they are getting hit on
the first request, and they print out repeatedly (thus the browser spin)
until I make the second request.

To isolate tomcat: If I configure the server.xml, and hit the jsp/servlet
through port 8080, it serves immediately. Maybe this isn't a tomcat problem,
but since it does involve tomcat, I figured this forum would have the best
shot at an answer. 

The apache (access_log, error_log), mod_jk, and catalina logs do not show
any errors. The catalina_log.*.txt shows sporadic IOException Broken pipe
errors. 

Any suggestions / advice would be appreciated. I suspect I have configured
something wrong - I would be glad to forward/post my config files if it
would help. I have been writing java apps for a couple of years - some
deployed to tomcat standalone, but this is my first adventure into tomcat
connected to apache. 

Thanks!! 
Brent 


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

RE: Help!!! How to get a simple jsp page working

2004-02-10 Thread Sperati Massimo
Avinash Sridhar wrote:
 hi,
I am usng Tomcat 5.0.16 And facing the below mentioned problem
 
 I have a directory by name sampleapp,now I have made a directory
 named ROOT inside the sampleapp directory. I have written a simple
 MyJsp.jsp jsp file and placed it in the above mentioned ROOT ,now
 my question is  
 
 How does one write the Context /Context for this JSP page in the
 TOMCAT_HOME/conf/server.xml. 
 
 Context path=/sampleapp docBase=e:/sampleapp/ROOT debug=0
 reloadable=true /Context Is this the right way?
 
 

Try to create a directory named WEB-INF  (e:/sampleapp/ROOT/WEB-INF)  and
restart tomcat


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



Re: Logging of JK2 ISAPI connector

2004-02-10 Thread Sam Seaver
Just a note, though this only happened to me in Linux:

If the 'native Application Event Log' gets disrupted somehow, then it 
caused the connector to 'hang' and thus stopped all calls for jsp 
pages.  In Linux what happened to me every sunday was that the 
'logrotate' utiltiy would move my httpd.log to httpd.log.1, and then 
create a new httpd.log.  This was enough to cause my jk2 to stop 
responding...

Just so that you know.
S
Krell, Andrew wrote:

With JK2 you set the log in the workers2.properties file.  Since you are
using ISAPI, you will want:
[logger.win32:]
Level=(EMERG,ERROR,INFO, or DEBUG)
According to the documentation, it normally ends at native Application
Event Log.  You can change the file location of some of the other loggers,
but I never had much success with changing the .win32 logger.  If you figure
that out, let me know.  

Andrew

-Original Message-
From: Michael Sudkamp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 6:13 AM
To: 'Tomcat Users List'
Subject: Logging of JK2 ISAPI connector

Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But
they seem not to work with JK2. I also tried logFile and logLevel.
Any ideas?

Michael

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


Configuration question (part 2)

2004-02-10 Thread Arnaud Deflorenne
Thanks a lot. If I understand your email, I have to add a Context tag in my
host definition?
Host name=www.adress1.com debug=0
appBase=d:\inetpub\wwwroot\mydirecory\ unpackWARs=true  autoDeploy=false
Context path= docBase=. debug=0
/Context
   Valve className=org.apache.catalina.valves.AccessLogValve
directory=d:\logs\ofisa prefix=html_access_log. suffix=.txt
pattern=common resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=d:\logs\ofisa  prefix=file_log. suffix=.txt
timestamp=true verbosity=2 /
/Host
And the context could look like Context path= docBase=en/part2/ debug=0

Three questions:
Where can I define the adress of my second web-application (www.adress2.com).
Where can I define the Welcome-file for this second site (mypage.htm)
Which value must I give to the path attribute?
Thanks a lot

Arnaud

At 10:57 10/02/04 +, you wrote:
i think what you mean is run two instances of tomcat.  you do this within
the conf/server.xml, and make another copy of the context path file where
docbase is the root directory of your new website, remember to stop and
start tomcat for the changes to take effect.
   Context path=/.. docBase=.../.../
debug=0 reloadable=false /
i think that should help.

At 11:37 10.02.2004 +0100, you wrote:
Hello,

I work with Tocat 5.018 on Win2K.

Here is my question: I would like to define two web adresses
(www.adress1.com and www.adress2.com) on the nearly same web site...
In fact, my first adress has to point to my default web page in the root
folder (/index.htm) : no problem for this, it works fine; my second adress
has to point to a page in a subdirecory (like /en/part2/mypage.htm).
I don't know how to define this situation in Tomcat. Could you give me some
idea?
Thanks in advance.

Arnaud



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


DBCP and removeAbandoned

2004-02-10 Thread Eric Prévost
Hi,
 
I'm using Tomcat 5.0.18 on Linux.  My database server is Microsoft SQL Server 2000. 
I'm using Microsoft's JDBC driver. This is my data source definition in server.xml:
 
Resource name=jdbc/intranet type=javax.sql.DataSource/
ResourceParams name=jdbc/intranet
  parameter
namevalidationQuery/name
valueselect getdate()/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value50/value
  /parameter
  parameter
namepassword/name
valuemyPassword/value
  /parameter
  parameter
nameurl/name
valuejdbc:microsoft:sqlserver://myserver;DatabaseName=intranet/value
  /parameter
  parameter
namedriverClassName/name
valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
  /parameter
  parameter
namemaxIdle/name
value30/value
  /parameter
  parameter
nameusername/name
valueMyUsername/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value60/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
/ResourceParams

 
When I stress-test my application with JMeter, I can see over 80 connections on my 
database server, and they are not released until I stop tomcat...  Is removeAbandoned 
parameter not supposed to take care of these connections???
 
Thank you
 
Eric Prévost



-
Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.


Re: include files

2004-02-10 Thread Chris Daly
thanks.

do i delete the name of the app under tomcat, for example 
work/Standalone/localhost/Website ?  and all the $... files and the two 
directories -  Help and WEB-INF under this directory ?

what is the touch cmd ?  i cant find it in my wrox tomcat book ?

cheers

chris

You would delete only the directory relative of your site, under the work 
directory of tomcat;
for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;
probably the name may be different from release;
after delete it, you must restart tomcat;
But have you tried to use the touch cmd on all .jsp file that include your 
include.jsp? I use this mode, and all is OK, and I doesn't delete the work 
directory;

At 11:25 10.02.2004 +0100, you wrote:
You would delete only the directory relative of your site, under the work 
directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include your 
include.jsp? I use this mode, and all is OK, and I doesn't delete the work 
directory;


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


Re: include files

2004-02-10 Thread Milt Epstein
On Tue, 10 Feb 2004, Chris Daly wrote:

 hi

 i've tested a new version of my jsp include file (a header which is
 referenced by about 40 pages) on one jsp page, and its wokred ok.
 i've changed the coding of the include page though none of the other
 jsp pages have picked up the new include and are still looking to
 teh old one ?  i've stopped and started tomcat but its till not
 changed.

 does anyone have any ideas ?  i've included a couple of new tag
 libraries but they are working ok and i cant see why it would be
 anything other than tomcat ?

The problem is that the timestamps on the jsps in question have not
changed, so Tomcat has no reason to recompile them (which is what is
necessary for it to find the new included file).  People have come up
with two suggestions to help:

1. touch the jsps -- touch is a Unix command which updates the
   timestamp on a file.  If you're not using Unix, perhaps your system
   has a similar command.

2. delete everything under Tomcat's work subdirectory -- that's where
   jsps are compiled (first into java source files and then into class
   files).  These files are used as the baseline for the timestamp
   comparison, so if they don't exist, any jsp will be deemed new.

Either of these should do the trick.  The latter one may be the better
way to go though.  Many people routinely delete everything under the
work directory as part of the Tomcat restart process.  I believe these
files are all automatically generated so it shouldn't hurt to delete
them.

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

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



Re: include files

2004-02-10 Thread De Toffoli Garry
You would delete only the  file under the work directory; WEB-INF exist 
on the directory of your web site, and not under work;
if you have installed tomcat in /usr/tomcat, the work directory is: 
/usr/tomcat/work;
with your example: /usr/tomcat/Standalone/localhost/Website

the touch cmd is a unix cmd;
example: touch mytest.jsp;
touch change the date/time of the file mytest.jsp to the current date/time;
under Windows, you can open and save the file, without modify;
so, touching you jsp file where you include, tomcat can detect that 
the page mytest.jsp is changed, so recompile it;

Best regards.



Chris Daly ha scritto:

thanks.

do i delete the name of the app under tomcat, for example 
work/Standalone/localhost/Website ?  and all the $... files and the 
two directories -  Help and WEB-INF under this directory ?

what is the touch cmd ?  i cant find it in my wrox tomcat book ?

cheers

chris

You would delete only the directory relative of your site, under the 
work directory of tomcat;
for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;
probably the name may be different from release;
after delete it, you must restart tomcat;
But have you tried to use the touch cmd on all .jsp file that include 
your include.jsp? I use this mode, and all is OK, and I doesn't delete 
the work directory;

At 11:25 10.02.2004 +0100, you wrote:

You would delete only the directory relative of your site, under the 
work directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include 
your include.jsp? I use this mode, and all is OK, and I doesn't 
delete the work directory;


-
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: include files

2004-02-10 Thread Yiannis Mavroukakis
The touch command is on Unix OS'es. It hasn't got anything to do with
tomcat. What it does is it updates (among other things) the last modified
attribute
of a file, but in your case the purpose is (at least if my head is screwed
on right)
to trigger Tomcat into detecting a file change in the work directory, hence
doing a reload.
If I got the Tomcat bit wrong, shoot at the bright red target on my
forehead :)

Yiannis.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 14:50
To: Tomcat Users List
Subject: Re: include files


thanks.

do i delete the name of the app under tomcat, for example 
work/Standalone/localhost/Website ?  and all the $... files and the two 
directories -  Help and WEB-INF under this directory ?

what is the touch cmd ?  i cant find it in my wrox tomcat book ?

cheers

chris

You would delete only the directory relative of your site, under the work 
directory of tomcat;
for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;
probably the name may be different from release;
after delete it, you must restart tomcat;
But have you tried to use the touch cmd on all .jsp file that include your 
include.jsp? I use this mode, and all is OK, and I doesn't delete the work 
directory;


At 11:25 10.02.2004 +0100, you wrote:
You would delete only the directory relative of your site, under the work 
directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include your 
include.jsp? I use this mode, and all is OK, and I doesn't delete the work 
directory;


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: include files

2004-02-10 Thread Milt Epstein
On Tue, 10 Feb 2004, Chris Daly wrote:

 thanks.

 do i delete the name of the app under tomcat, for example
 work/Standalone/localhost/Website ?  and all the $... files and the two
 directories -  Help and WEB-INF under this directory ?

I don't think there should be a WEB-INF under there.  Are you sure
you're looking in the right place?


 what is the touch cmd ?  i cant find it in my wrox tomcat book ?

touch is a Unix command.  What OS are you using?  If Windows, I don't
know whether it has a similar command.  (Basically touch file
updates the timestamp on file -- it will also create it, as an empty
file, if it doesn't exist.)


 You would delete only the directory relative of your site, under the work
 directory of tomcat;
 for example, if you site is called www.test.org, you must delete the
 directory under tomcat work/www.test.org_8080;
 probably the name may be different from release;
 after delete it, you must restart tomcat;
 But have you tried to use the touch cmd on all .jsp file that include your
 include.jsp? I use this mode, and all is OK, and I doesn't delete the work
 directory;


 At 11:25 10.02.2004 +0100, you wrote:
 You would delete only the directory relative of your site, under the work
 directory of tomcat;
 
 for example, if you site is called www.test.org, you must delete the
 directory under tomcat work/www.test.org_8080;
 
 probably the name may be different from release;
 
 after delete it, you must restart tomcat;
 
 But have you tried to use the touch cmd on all .jsp file that include your
 include.jsp? I use this mode, and all is OK, and I doesn't delete the work
 directory;


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


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

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



Re: DBCP and removeAbandoned

2004-02-10 Thread SMaric
Hi

If I've understood things correctly
removeAbandoned should enable recovery of  'lost' connections - ie your
webApp dies without cleanly releaseing the Connection object, so having
removeAbandoned on tells the container to keep an eye on things

You've also got the timeout set to 60 (secs ??) - did you wait this long
when you were checking

Obviously when you stop Tomcat, the whole JRE gets shutdown so what you've
seen there is correct


Eric Prévost [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I'm using Tomcat 5.0.18 on Linux.  My database server is Microsoft SQL
Server 2000. I'm using Microsoft's JDBC driver. This is my data source
definition in server.xml:

 Resource name=jdbc/intranet type=javax.sql.DataSource/
 ResourceParams name=jdbc/intranet
   parameter
 namevalidationQuery/name
 valueselect getdate()/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value50/value
   /parameter
   parameter
 namepassword/name
 valuemyPassword/value
   /parameter
   parameter
 nameurl/name

valuejdbc:microsoft:sqlserver://myserver;DatabaseName=intranet/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
   parameter
 nameusername/name
 valueMyUsername/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameremoveAbandonedTimeout/name
 value60/value
   /parameter
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
 /ResourceParams


 When I stress-test my application with JMeter, I can see over 80
connections on my database server, and they are not released until I stop
tomcat...  Is removeAbandoned parameter not supposed to take care of these
connections???

 Thank you

 Eric Prévost



 -
 Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.





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



Re: Help!!! How to get a simple jsp page working

2004-02-10 Thread De Toffoli Garry
Avinash Sridhar ha scritto:

hi,
  I am usng Tomcat 5.0.16 And facing the below mentioned problem
I have a directory by name sampleapp,now I have made a directory named ROOT inside the sampleapp directory.
I have written a simple MyJsp.jsp jsp file and placed it in the above mentioned ROOT ,now my question is 

How does one write the Context /Context for this JSP page in the TOMCAT_HOME/conf/server.xml.

Context path=/sampleapp docBase=e:/sampleapp/ROOT debug=0 reloadable=true 
/Context Is this the right way?



Kindly let me know 

Thanking you 
AS 
 

Yes, your example would be ok.

But I write the context file under tomcat/conf/Catalina/localhost, as 
the example present on tomcat.

Best regards.



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


Re: DBCP and removeAbandoned

2004-02-10 Thread Eric Prévost
I did my tests yesterday, and the connections was still alive this morning...  I also 
tested 5 seconds before.

SMaric [EMAIL PROTECTED] wrote:Hi

If I've understood things correctly
removeAbandoned should enable recovery of 'lost' connections - ie your
webApp dies without cleanly releaseing the Connection object, so having
removeAbandoned on tells the container to keep an eye on things

You've also got the timeout set to 60 (secs ??) - did you wait this long
when you were checking

Obviously when you stop Tomcat, the whole JRE gets shutdown so what you've
seen there is correct


Eric Prévost wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I'm using Tomcat 5.0.18 on Linux. My database server is Microsoft SQL
Server 2000. I'm using Microsoft's JDBC driver. This is my data source
definition in server.xml:

 
 
 

 validationQuery
 select getdate()
 

 

 maxWait
 5000
 

 

 maxActive
 50
 

 

 password
 myPassword
 

 

 url

jdbc:microsoft:sqlserver://myserver;DatabaseName=intranet
 

 

 driverClassName
 com.microsoft.jdbc.sqlserver.SQLServerDriver
 

 

 maxIdle
 30
 

 

 username
 MyUsername
 

 

 removeAbandoned
 true
 

 

 removeAbandonedTimeout
 60
 

 

 factory
 org.apache.commons.dbcp.BasicDataSourceFactory
 

 


 When I stress-test my application with JMeter, I can see over 80
connections on my database server, and they are not released until I stop
tomcat... Is removeAbandoned parameter not supposed to take care of these
connections???

 Thank you

 Eric Prévost



 -
 Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.





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




-
Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.


Re: Apache 2, Tomcat 4.1, RH 9 - servlet/jsp requests return only on second hit

2004-02-10 Thread David O'Brien
At 09:18 AM 2/10/2004, Brent Parker wrote:
My Config: Redhat 9, Apache 2.0.47, mod_jk 1.2.6, Tomcat 4.1.29

It takes a second request (to port 80) to get a jsp or servlet output to
display in the browser: I type in the url (jsp or servlet) and hit Enter,
the browser (Mozilla and IE) spins indefinitely. I then highlight the
address line and hit Enter a second time, and the page will immediately
load. Restated: All servlets/jsp requests do load - but only on the second
hit (request). However, any static html page (served through apache) loads
immediately on the first hit.
I had this same problem and never could find a fix...
I reverted back to 1.2.5 of the connectors and all was fine.
-Dave
The println's I put in the jsp/servlet reveal that they are getting hit on
the first request, and they print out repeatedly (thus the browser spin)
until I make the second request.
To isolate tomcat: If I configure the server.xml, and hit the jsp/servlet
through port 8080, it serves immediately. Maybe this isn't a tomcat problem,
but since it does involve tomcat, I figured this forum would have the best
shot at an answer.
The apache (access_log, error_log), mod_jk, and catalina logs do not show
any errors. The catalina_log.*.txt shows sporadic IOException Broken pipe
errors.
Any suggestions / advice would be appreciated. I suspect I have configured
something wrong - I would be glad to forward/post my config files if it
would help. I have been writing java apps for a couple of years - some
deployed to tomcat standalone, but this is my first adventure into tomcat
connected to apache.
Thanks!!
Brent
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource  Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


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


Re: DBCP and removeAbandoned

2004-02-10 Thread Philipp Taprogge
Hi!

Eric Prévost wrote:
I'm using Tomcat 5.0.18 on Linux.  My database server is Microsoft SQL Server 2000. 
I'm using Microsoft's JDBC driver.
When I stress-test my application with JMeter, I can see over 80 connections on my 
database server, and they are not
released until I stop tomcat...  Is removeAbandoned parameter not supposed to take 
care of these connections???
I am not entirely sure here, so please correct me, if I'm wrong, but...

you are using dbcp, right? So, isn't the pool _supposed_ to reuse open 
connections instead of closing them and reopening anew for each request?
I think what you should do is choose a reasonable max number of 
connections and then stress-test while look for a dbcp exception 
indicating that no new connection could be acquired. If you get one, 
either removeabandoned is not working properly, of (more likely) your 
application keeps a hold on connections that therefor are not 
concidered abandoned. If you don't get an exception, you can be quite 
sure you will never see more connections than you specified.

HTH

		Phil

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


Re: DBCP and removeAbandoned

2004-02-10 Thread SMaric
When you say 'the connections was still alive this morning'
How are you testing for connections being abandoned

Also your
maxActive =  50//doesn't this mean you shouldn't get more tahn
50 connections from the pool

if this is true ( working) then HOW do you know that the 80 connections are
from this Pool ???

Are you are the only point of connection to the DB


Eric Prévost [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I did my tests yesterday, and the connections was still alive this
morning...  I also tested 5 seconds before.

 SMaric [EMAIL PROTECTED] wrote:Hi

 If I've understood things correctly
 removeAbandoned should enable recovery of 'lost' connections - ie your
 webApp dies without cleanly releaseing the Connection object, so having
 removeAbandoned on tells the container to keep an eye on things

 You've also got the timeout set to 60 (secs ??) - did you wait this long
 when you were checking

 Obviously when you stop Tomcat, the whole JRE gets shutdown so what you've
 seen there is correct


 Eric Prévost wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  I'm using Tomcat 5.0.18 on Linux. My database server is Microsoft SQL
 Server 2000. I'm using Microsoft's JDBC driver. This is my data source
 definition in server.xml:
 
 
 
 

  validationQuery
  select getdate()
 

 

  maxWait
  5000
 

 

  maxActive
  50
 

 

  password
  myPassword
 

 

  url
 
 jdbc:microsoft:sqlserver://myserver;DatabaseName=intranet
 

 

  driverClassName
  com.microsoft.jdbc.sqlserver.SQLServerDriver
 

 

  maxIdle
  30
 

 

  username
  MyUsername
 

 

  removeAbandoned
  true
 

 

  removeAbandonedTimeout
  60
 

 

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory
 

 
 
 
  When I stress-test my application with JMeter, I can see over 80
 connections on my database server, and they are not released until I stop
 tomcat... Is removeAbandoned parameter not supposed to take care of these
 connections???
 
  Thank you
 
  Eric Prévost
 
 
 
  -
  Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
 




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




 -
 Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.





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



Re: include files

2004-02-10 Thread Chris Daly
thanks to all.

At 09:06 10.02.2004 -0600, you wrote:
On Tue, 10 Feb 2004, Chris Daly wrote:

 thanks.

 do i delete the name of the app under tomcat, for example
 work/Standalone/localhost/Website ?  and all the $... files and the two
 directories -  Help and WEB-INF under this directory ?
I don't think there should be a WEB-INF under there.  Are you sure
you're looking in the right place?
 what is the touch cmd ?  i cant find it in my wrox tomcat book ?

touch is a Unix command.  What OS are you using?  If Windows, I don't
know whether it has a similar command.  (Basically touch file
updates the timestamp on file -- it will also create it, as an empty
file, if it doesn't exist.)
 You would delete only the directory relative of your site, under the work
 directory of tomcat;
 for example, if you site is called www.test.org, you must delete the
 directory under tomcat work/www.test.org_8080;
 probably the name may be different from release;
 after delete it, you must restart tomcat;
 But have you tried to use the touch cmd on all .jsp file that include your
 include.jsp? I use this mode, and all is OK, and I doesn't delete the work
 directory;


 At 11:25 10.02.2004 +0100, you wrote:
 You would delete only the directory relative of your site, under the work
 directory of tomcat;
 
 for example, if you site is called www.test.org, you must delete the
 directory under tomcat work/www.test.org_8080;
 
 probably the name may be different from release;
 
 after delete it, you must restart tomcat;
 
 But have you tried to use the touch cmd on all .jsp file that include your
 include.jsp? I use this mode, and all is OK, and I doesn't delete the work
 directory;


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

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


slowly I'm losing it. JSP not working

2004-02-10 Thread Werner van Mook
Hi all,

My configuration is :
httpd + mod_jk + tomcat 4.1.24
in httpd.conf I have :

IfModule mod_jk.c
 AddModule mod_jk.c
 JkWorkersFile /home/tomcat/conf/workers.properties
 JkLogFile /etc/httpd/logs/mod_jk.log
 JkLogLevelinfo
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
/IfModule
Location ~ .*/WEB-INF/
  AllowOverride None
  deny from all
/Location
Location ~ .*/META-INF/
  AllowOverride None
  deny from all
/Location
and :

NameVirtualHost 193.195.96.175
VirtualHost 193.195.96.175
ServerName www.connecties.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST}!^193.195.96.175(:80)?$
RewriteCond %{HTTP_HOST}!^www.connecties.com(:80)?$
RewriteRule ^/(.*)  http://www.connecties.com/$1 
[L,R]
RewriteOptions inherit
#
# The next line is there for mod_jk
#
JkMount /* ajp13
#
#
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
/VirtualHost

VirtualHost 193.195.96.175
ServerName www.klepreclame.nl
ServerAdmin admin
DocumentRoot /home/sites/site2/web
RewriteEngine on
RewriteCond %{HTTP_HOST}!^193.195.96.175(:80)?$
RewriteCond %{HTTP_HOST}!^www.klepreclame.nl(:80)?$
RewriteRule ^/(.*)  http://www.klepreclame.nl/$1 
[L,R]
RewriteOptions inherit
#
# The ext line is there for mod_jk
#
JkMount /* ajp13
#
#
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
/VirtualHost

VirtualHost 193.195.96.175
ServerName www.karnhuis.nl
ServerAdmin admin
DocumentRoot /home/sites/site1/web
RewriteEngine on
RewriteCond %{HTTP_HOST}!^193.195.96.175(:80)?$
RewriteCond %{HTTP_HOST}!^www.karnhuis.nl(:80)?$
RewriteRule ^/(.*)  http://www.karnhuis.nl/$1 [L,R]
RewriteOptions inherit
#
# The next line is there for mod_jk
#
JkMount /* ajp13
#
#
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
/VirtualHost
#Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf

There is more in there but I did not copy it in.

I also have my server.xml file
In there I have 3 Host/Host parts.
One for every virtual host.
And now the problem.

www.klepreclame.nl has been a complete html site.
No jsp/servlets in there.
There was no JkMount /* ajp13 for this site in my httpd.conf file.
I did not have a Host/Host part in my server.xml.
The other two sites and this html site were working perfectly.
Now I changed the index.html page for www.klepreclame.nl  into 
index.jsp.
I added a taglib declaration to the page like :

%@ taglib prefix=count uri=http://www.klepreclame.nl/taglib; %
as the first line for the index.jsp.
I included JkMount /* ajp13 in httpd.conf (as above)
and copied one of the Host/Host parts in server.xml and changed
it to www.klepreclame.nl wherever necessary
Also changed the doc_rot to point to the correct location.
If I now start my browser and point it to www.klepreclame.nl/index.jsp
It will not be transformed into a servlet. How do I know?
Take a look at the source from the page (in the browser) and I can see 
the taglib declaration.
This should not be possible if tomcat would pick it up.

I do not get any error messages there is nothing in any log file.

Is there someone who can guess (or even better, know) what is going 
wrong?

I think I'm going slightly mad.
Please help.
Kind regards
Werner van Mook
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Weird Problems

2004-02-10 Thread Vernon Wu
Thanks Yoav for your response. 

The first problem is the session counter. It is implemented with the
HttpSessionListener. It works fine until recently. Under the TC5.0.X,
the
counter can be a negative figure.

The problem is obviously in your session counter code: if you posted it,
we could help more.


I wish I can say the same. It, however, doesn' explain why the problem only occurs 
recently. I note it on TC 5.0.x with the same code (I believe). Here is the code 
segment:

public final class MyListener
implements
ServletContextListener,
HttpSessionListener,
HttpSessionActivationListener {


private static int activeSessionCount = 0;

public void contextInitialized(ServletContextEvent evt) {

// ...
}

public void contextDestroyed(ServletContextEvent evt) {

// ...
}

public void sessionCreated(HttpSessionEvent evt) {

activeSessionCount++;
HttpSession session = evt.getSession();
// ...
logger.info(
The session ID: 
+ session.getId()
+ , the total # of active sessions: 
+ activeSessionCount);
}

public void sessionDestroyed(HttpSessionEvent evt) {

activeSessionCount--;
logger.debug(The number of active sessions:  + activeSessionCount);
}

public void sessionWillPassivate(HttpSessionEvent evt) {
// ...
}

public void sessionDidActivate(HttpSessionEvent evt) {
logger.info(sessionDidActivate);
}

public static int getActiveSessionCount() {
return activeSessionCount;
}
}

The second is a quite severe problem. I configure the welcome file to
map a
JSP file. Sometimes, an incoming URL of the default domain leads to the
404
error. After I click the reload button on my browser, the JSP file
shows
up.

You need to do better than sometimes in order to get precise help.
When does it happen, when does it not happen, and what's in the logs in
both cases?

If I could pin point the occasion, I might solve it by now. I don't observe any logs 
from the container during the time when the error occurs, but I would like to know how 
set up logging messages for the problem. I don't know whether it is related with the 
container configuration. The tag pool is disable. 

Also, some users report the 404 error on some other use scenario, but we haven't 
observe the same. The error rate is above 7-8% of the total hits. If a user follows 
the action options on a screen, the error shall never happen. 

Vernon



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Shapira, Yoav

Howdy,

   public void sessionCreated(HttpSessionEvent evt) {

   activeSessionCount++;
   HttpSession session = evt.getSession();
...

   public void sessionDestroyed(HttpSessionEvent evt) {
   activeSessionCount--;
   logger.debug(The number of active sessions:  +
activeSessionCount);
...

What if the container was restarted with several active sessions,
causing their serialization to disk, then deserialization when the
context starts back up, and then they timeout normally?  That will give
you a negative counter.


If I could pin point the occasion, I might solve it by now. I don't
observe
any logs from the container during the time when the error occurs, but
I
would like to know how set up logging messages for the problem. I don't
know whether it is related with the container configuration. The tag
pool
is disable.

For starters, enable the AccessLogValve so that you can see both
requests (the one that fails and the one that succeeds) and their
response codes.  You can also add logging to your JSP page.

If you can't pinpoint the error yourself, it's even harder for us, as
none of us know your system as well as you do ;)

Yoav Shapira



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


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



RE: Weird Problems

2004-02-10 Thread Bodycombe, Andrew
I think the problem with your listener is that you assume the number of
active sessions will be 0 when the server starts up. Tomcat may persist
(passivate) sessions when the server is shut down. These sessions will be
re-activated the next time the server starts up.

If you reduce your session counter in the sessionWillPassivate() method and
increase the session counter in the sessionDidActivate() method, that may
get around your problem.

I think your 404 problem needs further investigation. 7-8% seems a very high
error rate.

Regards,
Andy

-Original Message-
From: Vernon Wu [mailto:[EMAIL PROTECTED] 
Sent: 10 February 2004 16:10
To: Tomcat Users List
Subject: RE: Weird Problems


Thanks Yoav for your response. 

The first problem is the session counter. It is implemented with the
HttpSessionListener. It works fine until recently. Under the TC5.0.X,
the
counter can be a negative figure.

The problem is obviously in your session counter code: if you posted it,
we could help more.


I wish I can say the same. It, however, doesn' explain why the problem only
occurs recently. I note it on TC 5.0.x with the same code (I believe). Here
is the code segment:

public final class MyListener
implements
ServletContextListener,
HttpSessionListener,
HttpSessionActivationListener {


private static int activeSessionCount = 0;

public void contextInitialized(ServletContextEvent evt) {

// ...
}

public void contextDestroyed(ServletContextEvent evt) {

// ...
}

public void sessionCreated(HttpSessionEvent evt) {

activeSessionCount++;
HttpSession session = evt.getSession();
// ...
logger.info(
The session ID: 
+ session.getId()
+ , the total # of active sessions: 
+ activeSessionCount);
}

public void sessionDestroyed(HttpSessionEvent evt) {

activeSessionCount--;
logger.debug(The number of active sessions:  +
activeSessionCount);
}

public void sessionWillPassivate(HttpSessionEvent evt) {
// ...
}

public void sessionDidActivate(HttpSessionEvent evt) {
logger.info(sessionDidActivate);
}

public static int getActiveSessionCount() {
return activeSessionCount;
}
}

The second is a quite severe problem. I configure the welcome file to
map a
JSP file. Sometimes, an incoming URL of the default domain leads to the
404
error. After I click the reload button on my browser, the JSP file
shows
up.

You need to do better than sometimes in order to get precise help.
When does it happen, when does it not happen, and what's in the logs in
both cases?

If I could pin point the occasion, I might solve it by now. I don't observe
any logs from the container during the time when the error occurs, but I
would like to know how set up logging messages for the problem. I don't know
whether it is related with the container configuration. The tag pool is
disable. 

Also, some users report the 404 error on some other use scenario, but we
haven't observe the same. The error rate is above 7-8% of the total hits. If
a user follows the action options on a screen, the error shall never happen.


Vernon



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10

-
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: Logging of JK2 ISAPI connector

2004-02-10 Thread Daniel Schmitt
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html

Default looging on win32 is in
Start - All Programs - Administrative Tools - Event Viewer
to change the loglevel put in your workers2.properties

# Default INFO Supported: EMERG, ERROR, INFO, DEBUG
[logger]
level=DEBUG
(your admin will hate you)

To write to an alternate file instead, add somthing like

# Alternate file logger
[logger.file:0]
level=DEBUG
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\jk2.log
[workerEnv:]
info=Global server options
logger=logger.file:0
With IIS 6 you have to add jk2.log to the jakarta Web Service Extension
and give write Permission for Users at File Properties Security Tab
hope this helps

Michael Sudkamp wrote:

Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But they seem not to work with JK2. I also tried logFile and logLevel.

Any ideas?

Michael

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



--
Daniel Schmitt
http://www.shiftomat.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


IIS + Tomcat running in different machines

2004-02-10 Thread Julian Cardona
Hello list, ¿as i can connect IIS 5.1 and Tomcat 4.0.4
in different machines? Can you give me documentation,
urls... 
I have used worker.ajp13.host=www.superpuertos.gov.co
and worker.ajp13.host=192.168.1.28 and it dont work. 

Thank you. 


_
Do You Yahoo!?
InformaciĂ³n de Estados Unidos y AmĂ©rica Latina, en Yahoo! Noticias.
VisĂ­tanos en http://noticias.espanol.yahoo.com

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



RE: Image download?

2004-02-10 Thread jon yeargers
Can you be more specific as to whats (not) happening? Are you getting
anything? How are you calling it?

-Original Message-
From: Josh G [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: Image download?



Hi, I have a servlet that's trying to send image files instead of a html

response that doesn't seem to be working. Here's the code in question:

 //Set content-type
 ServletContext context = getServletContext();
 
response.setContentType(context.getMimeType(media.getLocation()));

 //Open file
 try {
 FileReader in = new FileReader(new 
File(media.getLocation()));

 char[] buffer = new char[4096];
 int rc;
 PrintWriter out = response.getWriter();

 //dump contents
 for 
(rc=in.read(buffer,0,buffer.length);rc0;rc=in.read(buffer,0,buffer.leng
th))
 out.write(buffer,0,rc);

 //Close file, and finish.

 in.close();
 return;

 } catch (IOException e) {
 Logger.debug(this,IOException on media
read/dump 
:();
 e.printStackTrace();
 return;
 }

Anybody out there know where I'm going wrong? Is it some sort of 
text-binary thing in the java.io functions I didn't take into account?

Any help much appreciated!

Cheers,
-Josh


  He likes to run, And then the thing with the.. person..
... Oh boy, that monkey is going to pay.

[ Josh 'G' McDonald ]  --  [ Pirion Systems, Brisbane]

[ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ]





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



Compile time EL type checking

2004-02-10 Thread Stephen Schaub
Current wisdom in Java web application design says we should abandon Java
scriptlets on JSP pages, in favor of using JSTL/custom actions and embedded
EL expressions. I understand and approve of the reasons for this, but I am
disappointed in the loss of reliability and the reduced performance this
approach produces.

For example, consider a JSP page that, instead of this:

%= mybean.getCustName( ) %

contains the following EL:

${mybean.custName}

This results in a performance hit, because every time the page is hit, the
mybean.custName expression must be parsed, a search performed to find the
bean, and reflection used to invoke the getter. Further, reliability is
reduced; if at runtime ${mybean} contains a reference to a bean that does
not have a custName property, an error occurs. To emphasize the reliability
problem, the error does _not_ occur at page translation time (which would be
preferable), but at page execution time. This is especially a problem on
pages that have conditional logic; if an EL expression is only evaluated
under certain conditions, a simple typo can remain undetected for a long
time.

I know that the EL, as a scripting language, is designed to dynamically
discover properties at runtime. However, the flexibility of runtime
introspection is a drawback when it comes to robustness (which I consider to
be more important than performance -- you can always buy faster hardware); I
want to be able to know when I compile the page successfully that no type
errors will occur at runtime. I can envision being able to provide type
hints to the compiler with a jsp:useBean action, perhaps like this:



jsp:useBean id=mybean class=beans.MyBean scope=request /

${requestScope.mybean.custName}



Once the JSP engine has been told in advance what type mybean is, it can do
things at translation time like verify that mybean actually does have a
custName property. It could even generate more efficient code, avoiding the
need for runtime introspection. (Right now, all EL expressions seem to be
handed off to PageContextImpl.proprietaryEvaluate( ) for evaluation.)

It seems that better compile-time type checking in the EL would be an
important step to increasing the robustness of web applications developed
with JSP technology. Have there been any proposals along this line? I've
searched the mailing list and looked for a roadmap, without success. Are
there any implementations that do this? Tomcat 5 does not appear to, at
least according to my tests.

I have considered researching adding some experimental implementation of
simple EL type checking to jasper2, but don't want to invest the time and
effort if work is already underway, or if this idea has been considered and
rejected. I would appreciate feedback on this from the community.

Stephen Schaub


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



Tomcat 5 and applet

2004-02-10 Thread
How to deplay applet in tomcat ?

Can somebody give a sample ?


When I request a page on tomcat contain a  applet , 
IE tell me can find the applet class,
but when I explore the IE cache dir ,I found the class is there


Can somebody tell me why ?



Sorry for my pool englist



Thanks

zhengjinyuan


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



IIS + Tomcat + Beans

2004-02-10 Thread nrapagnani
I have successfully integrated Tomcat 4.1 and IIS.  I have Tomcat handle all
jsp files that are on the IIS webserver.  Because I'm using IIS, I don't
have the standard WEB-INF directory associated with the directories I'm
using.  I don't know where to put my classes.  I've tried putting them in
the common folder in the apache program directory, but it still does not
find the class.  Any ideas?


Re: done did not found a worker

2004-02-10 Thread Dwayne Ghant
But Dave you didn't address this stuff below?
I think this is where I'm having the most problems.
##=
##Other needed configuratoin(s)
##=
##define the shared memory file
[shm]
file=/usr/local/tomcat-4.1.24/work/jk2.shm
file=1048576
## Define the communication channel

[channel.socket:localhost:8009]
#tomcatId=localhost:8009
port=8009
host=127.0.0.1
#define the worker
[balance_all_workers:localhost:8009]
channel=channel.socket:localhost:8009


#Uri mapping
[uri:saturn.temple.edu/examples/*]
#worker=ajp13:localhost:8009
worker=balance_all_workers:localhost:8009
[uri:saturn.temple.edu/developers/*]
#worker=ajp13:localhost:8009
worker=balance_all_workers:localhost:8009
[uri:saturn.temple.edu/product/*]
#worker=ajp13:localhost:8010
worker=balance_all_workers:localhost:8010
[uri:saturn.temple.edu/uPortal/*]
#worker=ajp13:localhost:8010
worker=balance_all_workers:localhost:8010
#[status:]

#info=Status worker, displays runtime information
channel=channel.socket:localhost:8009
#[uri:/status/*]
#worker=status:localhost:8009
#group=status:
David Rees wrote:

Dwayne Ghant wrote, On 2/9/2004 7:02 PM:

Dave, I have been having semular issues would it be impossible for to 
post the four files listed below:

1. http.conf
2. ssl.conf
3. server.xml
4. workers2.properties


Here's a sample for setting up Apache.  This will work on either 
Apache 2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat 
will work, use the example connector config included with every 
default server.xml as it varies a little between Tomcat versions.

httpd.conf
# This only shows the portions relevant to mod_jk, you should stick the
# lines somewhere in your config file.  This config also works for
# Apache 1.3.X as well as Apache 2.0.X.
---
LoadModule jk_module modules/mod_jk.so
JkWorkersFile path-to-apache-conf/tomcat_workers.properties
JkLogFile path-to-apache-logs/mod_jk.log
JkLogLevel error
VirtualHost *:80
ServerName www.example.com
JkMount /*.jsp tomcat
JkMount /servlet/* tomcat
/VirtualHost
---
path-to-apache-conf/tomcat_workers.properties
---
worker.list=tomcat
worker.tomcat.port=8007
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
---
That's it!

-Dave
 aka the mod_jk expert
 NOT a mod_jk2 expert!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--

Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]




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


Tomcat Manager/Admin authentication

2004-02-10 Thread Pete Stokes
Does any1 know how to turn off the Tomcat prompting for u/p when trying 
to access manager / admin applications ?

Thanks,
Pete.


***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


RE: Tomcat Manager/Admin authentication

2004-02-10 Thread Shapira, Yoav

Howdy,

Does any1 know how to turn off the Tomcat prompting for u/p when trying
to access manager / admin applications ?

It's not possible without modifying the source code for those apps.

Yoav Shapira



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


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



RE: Tomcat Manager/Admin authentication

2004-02-10 Thread Juan de Bravo
I think you can turn it off by deleting the security-constraint
definitions in 
the file /WEB-INF/web.xml of both apps.

Juan.

-Mensaje original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviado el: martes, 10 de febrero de 2004 18:04
Para: Tomcat Users List
Asunto: RE: Tomcat Manager/Admin authentication



Howdy,

Does any1 know how to turn off the Tomcat prompting for u/p when trying
to access manager / admin applications ?

It's not possible without modifying the source code for those apps.

Yoav Shapira



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


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

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

Re: apache-tomcat ssl doc download error in IE

2004-02-10 Thread Mark W. Webb
This fix will only work if you have apache using the mod_headers 
module.  I do not have that module installed on my version of apache, so 
I am not sure if there is any other work around.  Do you have any other 
ideas?  I am quickly running out of ideas myself.
thank you.

Daniel wrote:

Hi,

I actually just got this working and the answer is unbelievably bizarre.

It all sorta boiled down to the Pragma header.  I can't set the pragma
header in my servlet and must do it in the Apache httpd.conf like this:
   Header append Pragma blah
And blah could be anything and would still work, it's just the fact
that it's set in the Apache httpd.conf!  Weird, this isn't scientific, I
must be missing something. :)
Here's the combo I got it working with:

Pragma: no-cache, blah
Cache-Control: private
Content-Length: sizeof(stream)
Content-disposition: attachment; filename=doc.pdf
Regards,
Daniel
On Thu, 5 Feb 2004, Mark W. Webb wrote:

 

I am seeing a very similar problem with Tomcat 4.1.24 and Apache over
SSL on Solaris 9.  I am using Tomcat4.1.24, JDK 1.4.2 Apache
2.0.48(mod_ssl, mod_jk), OpenSSL 0.9.7c.  Everything compiled from
source except JDK.
   

Hi,

I'm really stumped and hope someone can provide insight :(

We got a tomcat server connected behind a an apache web server via mod_jk.

when running without ssl, a user submits a form and is able to
retrieve a pdf document (they can save or open it) using IE6.  But over
ssl they would get this error:
Internet Explorer cannot download doc.pdf from myhost.com.
Internet EXplorer was not able to open this Internet site. The requested
site is either unavailable or cannnot be found. Please try again later.
This doesn't happen with Mozilla and it would work as expected.

Thing is, we've got a *solution* for this when using mod_python and
mod_perl...just not with Java/Tomcat.  The solution for those were to set
special http headers so IE can interpret things correctly:
- Pragma = 'nocache'
- Expires = 'now'
- Cache-Control = 'private'
- Content-Length = sizeof(stream)
- Content-disposition = 'attachment; filename=doc.pdf'
This was done by a co-worker of mine and it worked.  I later saw something
about setting Cache-Control = public cuz IE won't save private stuff.
But even when I explicity setHeader(Cache-Control, public) I still see
Cache-Control = private, public.
So I have 2 questions:

1. Does anyone know why there are two values even when I explicity call
 setHeader(..) for the Cache-Control?  Is Tomcat silently setting this?
 The source doesn't seem to have that though... :(
2. Has anyone run into this and solved it?  I'd be much more interested in
 this answer :))
We're using:
- Tomcat 4.0.6, via mod_jk to Apache 1.3.x with mod_ssl, on Linux.
- Turbine 2.3 framework
- JDK 1.4.x.
TIA,
Daniel
-
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: done did not found a worker

2004-02-10 Thread David O'Brien
If you are using mod_jk and NOT mod_jk2 then this file's content makes no 
difference in your configuration.
You need to tell apache to use the workers.properties NOT the 
workers2.properties in your httpd.conf file
-Dave

At 11:58 AM 2/10/2004, you wrote:
But Dave you didn't address this stuff below?
I think this is where I'm having the most problems.
##=
##Other needed configuratoin(s)
##=
##define the shared memory file
[shm]
file=/usr/local/tomcat-4.1.24/work/jk2.shm
file=1048576
## Define the communication channel

[channel.socket:localhost:8009]
#tomcatId=localhost:8009
port=8009
host=127.0.0.1
#define the worker
[balance_all_workers:localhost:8009]
channel=channel.socket:localhost:8009


#Uri mapping
[uri:saturn.temple.edu/examples/*]
#worker=ajp13:localhost:8009
worker=balance_all_workers:localhost:8009
[uri:saturn.temple.edu/developers/*]
#worker=ajp13:localhost:8009
worker=balance_all_workers:localhost:8009
[uri:saturn.temple.edu/product/*]
#worker=ajp13:localhost:8010
worker=balance_all_workers:localhost:8010
[uri:saturn.temple.edu/uPortal/*]
#worker=ajp13:localhost:8010
worker=balance_all_workers:localhost:8010
#[status:]

#info=Status worker, displays runtime information
channel=channel.socket:localhost:8009
#[uri:/status/*]
#worker=status:localhost:8009
#group=status:
David Rees wrote:

Dwayne Ghant wrote, On 2/9/2004 7:02 PM:

Dave, I have been having semular issues would it be impossible for to 
post the four files listed below:

1. http.conf
2. ssl.conf
3. server.xml
4. workers2.properties


Here's a sample for setting up Apache.  This will work on either Apache 
2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat will 
work, use the example connector config included with every default 
server.xml as it varies a little between Tomcat versions.

httpd.conf
# This only shows the portions relevant to mod_jk, you should stick the
# lines somewhere in your config file.  This config also works for
# Apache 1.3.X as well as Apache 2.0.X.
---
LoadModule jk_module modules/mod_jk.so
JkWorkersFile path-to-apache-conf/tomcat_workers.properties
JkLogFile path-to-apache-logs/mod_jk.log
JkLogLevel error
VirtualHost *:80
ServerName www.example.com
JkMount /*.jsp tomcat
JkMount /servlet/* tomcat
/VirtualHost
---
path-to-apache-conf/tomcat_workers.properties
---
worker.list=tomcat
worker.tomcat.port=8007
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
---
That's it!

-Dave
 aka the mod_jk expert
 NOT a mod_jk2 expert!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--

Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]


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


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource  Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


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


Re: done did not found a worker

2004-02-10 Thread David Rees
All that stuff below is related to mod_jk2, which I am definitely NOT an 
expert as noted in my previous email.  Hope someone else can help you.

-Dave

Dwayne Ghant wrote, On 2/10/2004 8:58 AM:
But Dave you didn't address this stuff below?
I think this is where I'm having the most problems.
##=
##Other needed configuratoin(s)
##=
##define the shared memory file
[shm]
file=/usr/local/tomcat-4.1.24/work/jk2.shm
file=1048576
## Define the communication channel
snip

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


Re: IIS + Tomcat + Beans

2004-02-10 Thread BAO RuiXian


[EMAIL PROTECTED] wrote:

I have successfully integrated Tomcat 4.1 and IIS.  I have Tomcat handle all
 

Although I don't use IIS, but, since you still have problems, how can 
you claim you have successfully integrated Tomcat 4.1 and IIS.

jsp files that are on the IIS webserver.  Because I'm using IIS, I don't
 

How can you make Tomcat to handle all the jsp files on the IIS 
webserver? Shouldn't be all jsp files located in Tomcat server instead?

have the standard WEB-INF directory associated with the directories I'm
 

Not quite understand your question, but WEB-INF is only meaningful for 
Tomcat server.

using.  I don't know where to put my classes.  I've tried putting them in
the common folder in the apache program directory, but it still does not
 

How come apache has a play here? Apache is another web server.

find the class.  Any ideas?
 

I guess you want to use IIS as a frontend for so-called static pages 
while Tomcat as a backend for so-called dynamic pages.

Best

Bao

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


Re: Native application from servlet (java.net.SocketException: Connection reset by peer: socket write error)

2004-02-10 Thread David Rees
Veselin Kovacevic wrote, On 2/10/2004 2:14 AM:
 
We have a servlet based application which open a native application and
read some output from them.
Sometimes we get an error in tomcat logfile but application work fine. 
 
Here is error. Any ideas what is possible problem?
Looks normal.  Appears to be that someone pushed stopped in their 
browser which closed Tomcat's output stream to the user.

-Dave

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


RE: Tomcat Manager/Admin authentication

2004-02-10 Thread Bill Haake
Yes, this works.  I just tested it with each on the current 5.0 from CVS

-Original Message-
From: Juan de Bravo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 12:11 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Manager/Admin authentication


I think you can turn it off by deleting the security-constraint
definitions in
the file /WEB-INF/web.xml of both apps.

Juan.

-Mensaje original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviado el: martes, 10 de febrero de 2004 18:04
Para: Tomcat Users List
Asunto: RE: Tomcat Manager/Admin authentication



Howdy,

Does any1 know how to turn off the Tomcat prompting for u/p when trying
to access manager / admin applications ?

It's not possible without modifying the source code for those apps.

Yoav Shapira



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


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




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



RE: Tomcat Manager/Admin authentication

2004-02-10 Thread Shapira, Yoav

Howdy,
I think you can turn it off by deleting the security-constraint
definitions in
the file /WEB-INF/web.xml of both apps.

Doh! ;)  puts foot in mouth

Well, at least I provided some humor today.  Thanks Juan ;)

Yoav Shapira




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


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



RE: IIS + Tomcat + Beans

2004-02-10 Thread nrapagnani


-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 12:15 PM
To: Tomcat Users List
Subject: Re: IIS + Tomcat + Beans


[EMAIL PROTECTED] wrote:

I have successfully integrated Tomcat 4.1 and IIS.  I have Tomcat handle
all
 

Although I don't use IIS, but, since you still have problems, how can
you claim you have successfully integrated Tomcat 4.1 and IIS.

Because all .jsp pages run on IIS.  I've installed the filter on
IIS and setup the configuration on Tomcat. It was hard as hell, but now the
jsp pages work.

jsp files that are on the IIS webserver.  Because I'm using IIS, I don't
 

How can you make Tomcat to handle all the jsp files on the IIS
webserver? Shouldn't be all jsp files located in Tomcat server instead?

I'm not certain of many Tomcat rules.  I've found walkthroughs for
configuring IIS with Tomcat in a couple of books and have successfully
gotten it to work.

have the standard WEB-INF directory associated with the directories I'm
 

Not quite understand your question, but WEB-INF is only meaningful for
Tomcat server.

This is my problem.  Tomcat Server is serving my jsp pages, but from an
outside directory.
using.  I don't know where to put my classes.  I've tried putting them in
the common folder in the apache program directory, but it still does not
 

How come apache has a play here? Apache is another web server.

Sorry, when you install Tomcat it makes a folder in Program Files called
'APACHE SOFTWARE FOUNDATION'.


find the class.  Any ideas?
 

I guess you want to use IIS as a frontend for so-called static pages
while Tomcat as a backend for so-called dynamic pages.

Yep. Not by choice.


Best

Bao


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



Invalid direct reference from servlet with j_security_check

2004-02-10 Thread Bill Faulk
My original Tomcat application already had a login.jsp which POSTs to a
servlet which sets various session attributes after validating the user,
password, active flag, etc. Now, I've been asked to let some managers
create their own content which will be straight html, pdf's,
spreadsheets, etc. I want to use form authentication to do this. I was
able to set up a realm for SQL Server with no problems. My login.jsp is
now only called when protected resources are accessed. This login page
is NOT called directly anymore. The login page and any images on the
login.jsp page are all outside of the protected areas.

Unfortunately I now get the Invalid direct reference to form login
page error. Originally I tried have the servlet simply redirect to
j_security_check and received this error. Then I figured that perhaps a
form POST is actually required so I changed my code to use HttpClient
and literally http/post to j_security_check. This produces the same
error. If I intentionally pass a bad password to j_security_check then
the redirect to the error form works as I would expect. When the correct
user and password are passed to j_security_check the log records a
successful authentication but returns a status code of 400 for the
invalid direct reference error when the post to j_security_check is
completed. 

A simple jsp with a form which posts directly to j_security_check
without a servlet will redirect the user to the protected content as
expected. Is what I am trying to do simply not possible? I've seen posts
where others have presumably done this but I have had no success.

I am running Tomcat 4.1.29 on Windows 2000 Server with a SQL Server 2000
database. I have the java 1.4.2 sdk installed.

My login.jsp posts to a servlet with the following code used to post to
j_security_check. username and password have been set to the request
parameters. This is not currently using encoding during testing.
Util.writeLog is just a class I have for debugging which does what it
sounds like it does.
 
... I'm using the following libraries from
http://jakarta.apache.org/commons/httpclient/index.html

import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;

...

HttpClient client = new HttpClient();
 
client.getHostConfiguration().setHost(req.getServerName(),req.getServerP
ort(),req.getScheme());
Util.writeLog(client.getHostConfiguration().getHostURL());
PostMethod logPost = new PostMethod(req.getContextPath() +
/j_security_check);
NameValuePair user = new NameValuePair(j_username, username);
NameValuePair pass = new NameValuePair(j_password, password);

Util.writeLog(user= + username + ,pass= + password);
logPost.setRequestBody(new NameValuePair[] { user, pass });
logPost.setFollowRedirects(true);
client.executeMethod(logPost);
logPost.releaseConnection();
int statusCode = logPost.getStatusCode();
Util.writeLog(status= + statusCode + , +
logPost.getStatusText());

The status returned is 400 for the Invalid Direct Reference error so I
never get any further. I originally tried a simple redirect to
j_security_check with the same result. Is there a header I need to add?
Is there a cookie I need to set?

I could post my web.xml or server.xml but I don't think that will matter
since the authentication works if I use a simple login.jsp with no
servlet. My login.jsp just has the usual user and password in an html
form but also has code to check to make sure the database is up before
showing the login form. 

Am I going about this all wrong? Should I just chuck posting to the
servlet from my login.jsp and come up with another way to do what I
need? 

Any help would be appreciated.
---
Bill Faulk

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



RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Yoav and Andrew,

Thanks both for your helpful responses.

What if the container was restarted with several active sessions,
causing their serialization to disk, then deserialization when the
context starts back up, and then they timeout normally?  That will give
you a negative counter.


I didn't know the container save the information when it is down. Is it new for the 
5.0?


If I could pin point the occasion, I might solve it by now. I don't
observe
any logs from the container during the time when the error occurs, but
I
would like to know how set up logging messages for the problem. I don't
know whether it is related with the container configuration. The tag
pool
is disable.

For starters, enable the AccessLogValve so that you can see both
requests (the one that fails and the one that succeeds) and their
response codes.  You can also add logging to your JSP page.


After I enable the AccessLogValve, here is what I get in the access log file:

127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /jsp/templates/stylesheet.css 
HTTP/1.1 200 1558
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /favicon.ico HTTP/1.1 404 3362
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET / HTTP/1.1 200 3738

I don't know what the favicon.ico is. It is not a part of the application. After I 
click the reload button, the log message is the following:

127.0.0.1 - - [10/Feb/2004:09:30:15 -0800] GET /jsp/templates/stylesheet.css 
HTTP/1.1 304 -

So, the cause of the error is still a mystery to me.

What informat in a JSP file can be used to figure out the problem if I insert a log in 
a JSP file?
 
Thanks again. I have taken a big one step to solve the problem with both your helps.
 
- v.



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



Re: DBCP and removeAbandoned

2004-02-10 Thread Eric Prévost
There is only one application on this tomcat server... It's easy to identify these 
connections on SQL server.  Also, there is no explicit database connection in the 
application code: it all pass through JNDI.
 
I also tried to increase my maxActive setting to 100.  It didn't change anything.
 
I set logAbandoned to true. I never see anything related to dbcp in my logs except 
this, in calatina.out:
AbandonedObjectPool is used ([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 10
 
What can it be?  Maybe someone stored a resultset in session?

SMaric [EMAIL PROTECTED] wrote:
When you say 'the connections was still alive this morning'
How are you testing for connections being abandoned

Also your
maxActive = 50 // doesn't this mean you shouldn't get more tahn
50 connections from the pool

if this is true ( working) then HOW do you know that the 80 connections are
from this Pool ???

Are you are the only point of connection to the DB


Eric Prévost wrote in message
news:[EMAIL PROTECTED]
 I did my tests yesterday, and the connections was still alive this
morning... I also tested 5 seconds before.

 SMaric wrote:Hi

 If I've understood things correctly
 removeAbandoned should enable recovery of 'lost' connections - ie your
 webApp dies without cleanly releaseing the Connection object, so having
 removeAbandoned on tells the container to keep an eye on things

 You've also got the timeout set to 60 (secs ??) - did you wait this long
 when you were checking

 Obviously when you stop Tomcat, the whole JRE gets shutdown so what you've
 seen there is correct


 Eric Prévost wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  I'm using Tomcat 5.0.18 on Linux. My database server is Microsoft SQL
 Server 2000. I'm using Microsoft's JDBC driver. This is my data source
 definition in server.xml:
 
 
 
 

  validationQuery
  select getdate()
 

 

  maxWait
  5000
 

 

  maxActive
  50
 

 

  password
  myPassword
 

 

  url
 
 jdbc:microsoft:sqlserver://myserver;DatabaseName=intranet
 

 

  driverClassName
  com.microsoft.jdbc.sqlserver.SQLServerDriver
 

 

  maxIdle
  30
 

 

  username
  MyUsername
 

 

  removeAbandoned
  true
 

 

  removeAbandonedTimeout
  60
 

 

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory
 

 
 
 
  When I stress-test my application with JMeter, I can see over 80
 connections on my database server, and they are not released until I stop
 tomcat... Is removeAbandoned parameter not supposed to take care of these
 connections???
 
  Thank you
 
  Eric Prévost
 
 
 
  -
  Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
 




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




 -
 Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.





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



-
Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.


Re: Tomcat 5 and applet

2004-02-10 Thread Sam Seaver
It's all in the html, it doesnt really matter if its tomcat or not,
because even if you're using JSP, you're still reverting to
html to get the browser to display the applet (i dont trust jsp:plugin
btw, though the latest tomcat might support it better).

I simply use this:

object classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 
width=1000 height=700 
codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab#Version=1,4,0,0;
param name=CODE value=
param name=CODEBASE value=
param name=type value=application/x-java-applet;version=1.4
param name=mayscript value=true
COMMENT
embed type=application/x-java-applet;version=1.4 
width=1000 height=700 pluginspage=http://java.sun.com/products/plugin/; 
CODE= CODEBASE=
mayscript=true
noembed
You do not have Java 1.4.2.
Use the Java button to get it now!
/noembed/embed
/comment
/object


I assume you already know how to use the class and codebase parameters
Cheers
S

 wrote:

How to deplay applet in tomcat ?

Can somebody give a sample ?


When I request a page on tomcat contain a  applet , 
IE tell me can find the applet class,
but when I explore the IE cache dir ,I found the class is there


Can somebody tell me why ?



Sorry for my pool englist



Thanks

zhengjinyuan


-
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 5 and applet

2004-02-10 Thread Vernon Wu
Since an Applet runs on a client box, you first need to place the .class in a client 
accessible directory, not underWEB-INF. 
--

- Original Message -

DATE: Wed, 11 Feb 2004 00:51:30
From: #214;#163;#189;#240;#212;#170; [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: 

How to deplay applet in tomcat ?

Can somebody give a sample ?


When I request a page on tomcat contain a  applet , 
IE tell me can find the applet class,
but when I explore the IE cache dir ,I found the class is there


Can somebody tell me why ?



Sorry for my pool englist



Thanks

zhengjinyuan


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






Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Shapira, Yoav

Howdy,

I didn't know the container save the information when it is down. Is it
new
for the 5.0?

No, it was present in all 4.x versions (and is mandated by the servlet
specification).

127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET
/jsp/templates/stylesheet.css HTTP/1.1 200 1558
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /favicon.ico HTTP/1.1
404
3362
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET / HTTP/1.1 200 3738

I don't know what the favicon.ico is. It is not a part of the
application. After I click the reload button, the log message is the
following:

The favicon request is from Internet Explorer, looking for a little icon
to show by the address bar (and in bookmarks if users bookmark your
page).  You can ignore it.  The 200 responses are fine, no errors.

127.0.0.1 - - [10/Feb/2004:09:30:15 -0800] GET
/jsp/templates/stylesheet.css HTTP/1.1 304 -

So, the cause of the error is still a mystery to me.

304 is fine (and typical for a stylesheet): not modified, telling the
browser to use the copy it has cached.  So all of this looks fine in
your access log.  Repeat the test after clearing your browser's cache.

Yoav Shapira



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


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



RE: IIS + Tomcat + Beans

2004-02-10 Thread Krell, Andrew


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 11:55 AM
To: [EMAIL PROTECTED]
Subject: IIS + Tomcat + Beans


I have successfully integrated Tomcat 4.1 and IIS.  I have Tomcat handle
all jsp files that are on the IIS webserver.  Because I'm using IIS, I
don't have the standard WEB-INF directory associated with the directories
I'm using.  I don't know where to put my classes.  I've tried putting them
in the common folder in the apache program directory, but it still does not
find the class.  Any ideas?



You need to make a web-inf folder in your context's docbase folder (which,
if you've set it up correctly, should also be the place you have your JSP
files).  In that folder, you need to create another folder called classes.
That is where you put your class files for proper reference.  The rest is
dependent upon your server.xml setup and your tomcat version, but I would
also recommend creating a web.xml file.  

-Andrew

 

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



RE: Invalid direct reference from servlet with j_security_check

2004-02-10 Thread Bill Faulk
Ugh! As usual, as soon as I post I find the problem.

My login.jsp still had a custom tag in it which invalidated the current
session. 

[Insert favorite swear words here]

---
Bill Faulk


-Original Message-
From: Bill Faulk 
Sent: Tuesday, February 10, 2004 10:25 AM
To: Tomcat Users List
Subject: Invalid direct reference from servlet with j_security_check


My original Tomcat application already had a login.jsp which POSTs to a
servlet which sets various session attributes after validating the user,
password, active flag, etc. Now, I've been asked to let some managers
create their own content which will be straight html, pdf's,
spreadsheets, etc. I want to use form authentication to do this. I was
able to set up a realm for SQL Server with no problems. My login.jsp is
now only called when protected resources are accessed. This login page
is NOT called directly anymore. The login page and any images on the
login.jsp page are all outside of the protected areas.

Unfortunately I now get the Invalid direct reference to form login
page error. Originally I tried have the servlet simply redirect to
j_security_check and received this error. Then I figured that perhaps a
form POST is actually required so I changed my code to use HttpClient
and literally http/post to j_security_check. This produces the same
error. If I intentionally pass a bad password to j_security_check then
the redirect to the error form works as I would expect. When the correct
user and password are passed to j_security_check the log records a
successful authentication but returns a status code of 400 for the
invalid direct reference error when the post to j_security_check is
completed. 

A simple jsp with a form which posts directly to j_security_check
without a servlet will redirect the user to the protected content as
expected. Is what I am trying to do simply not possible? I've seen posts
where others have presumably done this but I have had no success.

I am running Tomcat 4.1.29 on Windows 2000 Server with a SQL Server 2000
database. I have the java 1.4.2 sdk installed.

My login.jsp posts to a servlet with the following code used to post to
j_security_check. username and password have been set to the request
parameters. This is not currently using encoding during testing.
Util.writeLog is just a class I have for debugging which does what it
sounds like it does.
 
... I'm using the following libraries from
http://jakarta.apache.org/commons/httpclient/index.html

import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;

...

HttpClient client = new HttpClient();
 
client.getHostConfiguration().setHost(req.getServerName(),req.getServerP
ort(),req.getScheme());
Util.writeLog(client.getHostConfiguration().getHostURL());
PostMethod logPost = new PostMethod(req.getContextPath() +
/j_security_check);
NameValuePair user = new NameValuePair(j_username, username);
NameValuePair pass = new NameValuePair(j_password, password);

Util.writeLog(user= + username + ,pass= + password);
logPost.setRequestBody(new NameValuePair[] { user, pass });
logPost.setFollowRedirects(true);
client.executeMethod(logPost);
logPost.releaseConnection();
int statusCode = logPost.getStatusCode();
Util.writeLog(status= + statusCode + , +
logPost.getStatusText());

The status returned is 400 for the Invalid Direct Reference error so I
never get any further. I originally tried a simple redirect to
j_security_check with the same result. Is there a header I need to add?
Is there a cookie I need to set?

I could post my web.xml or server.xml but I don't think that will matter
since the authentication works if I use a simple login.jsp with no
servlet. My login.jsp just has the usual user and password in an html
form but also has code to check to make sure the database is up before
showing the login form. 

Am I going about this all wrong? Should I just chuck posting to the
servlet from my login.jsp and come up with another way to do what I
need? 

Any help would be appreciated.
---
Bill Faulk

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



Compiling isapi_redirector2 with VS 7. How to start?

2004-02-10 Thread Daniel Schmitt
After downloading jakarta-tomcat-connectors-jk2-src-current.zip vs7 
stops with  error PRJ0019 A tool returned an error code from 

Do I have to build all apr.libs from source on my own?

Any hint is welcome.

Sincerely,

--
Daniel Schmitt
http://www.shiftomat.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Yoav:


127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET
/jsp/templates/stylesheet.css HTTP/1.1 200 1558
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET /favicon.ico HTTP/1.1
404
3362
127.0.0.1 - - [10/Feb/2004:09:19:13 -0800] GET / HTTP/1.1 200 3738

I don't know what the favicon.ico is. It is not a part of the
application. After I click the reload button, the log message is the
following:

The favicon request is from Internet Explorer, looking for a little icon
to show by the address bar (and in bookmarks if users bookmark your
page).  You can ignore it.  The 200 responses are fine, no errors.


I got the error handling page at the time. In other words, a user see the error page 
and can't use the application any further when it happens. So, I need do something 
about it. The 404 error handling page is invoked through the configuration in the 
web.xml:

  error-page
error-code404/error-code
location/jsp/notfound.jsp/location
  /error-page
 
How can I change the way the notfound.jsp is invoked so that the type of 404 error is 
ignored?

127.0.0.1 - - [10/Feb/2004:09:30:15 -0800] GET
/jsp/templates/stylesheet.css HTTP/1.1 304 -

So, the cause of the error is still a mystery to me.

304 is fine (and typical for a stylesheet): not modified, telling the
browser to use the copy it has cached.  So all of this looks fine in
your access log.  Repeat the test after clearing your browser's cache.


I can clear my browser's cache, but I can't ask all users to do the same. The too 
sensitive error report drives people away as far as I can tell.

I also enable the access log at the production box and I will observe the log file for 
any other causes.



Thank very much for your helps.

Vernon 




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



RE: Weird Problems

2004-02-10 Thread Shapira, Yoav

Howdy,

  error-page
   error-code404/error-code
   location/jsp/notfound.jsp/location
  /error-page

How can I change the way the notfound.jsp is invoked so that the type
of
404 error is ignored?

I don't understand the question.  If you don't want notfound.jsp to be
invoked for 404 errors, don't declare the error-page in web.xml.

Yoav Shapira



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


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



How to configure Tomcat 5.0+ behind a hardware accelerator?

2004-02-10 Thread Adrian Klingel
Can anyone supply me with a link to a document that contains information on
how to configure Tomcat 5.0+ to sit behind an SSL accelerator machine?  I've
been unable to find specifics on the internet, only the fact that people
have done it.

Thanks very much,
Adrian Klingel




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



Tomcat + IE + pragma tag

2004-02-10 Thread Mark W. Webb
Does anyone know why IE will not allow a file download from tomcat (and 
maybe other sources) when the connection is over SSL and the pragma HTTP 
Header tag is set to no-cache?  I have been experiencing this and am 
puzzled as to why this is happening.  If I set the pragma tag to 
no-cache, blah, the file gets downloaded fine.

thank you. 

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


Running tomcat 5.18 as a service under Windows 2003

2004-02-10 Thread Brian . Scott
Hello friends.   I'm experiencing an issue wherein if we run Tomcat 5 as a
service in windows 2003 there are times when you cannot restart the service
through the service manager.  It dies at stop time and the services panel
will forever report the status of the service as 'stopping'.
Ctl-Alt-Delete will not allow you to kill the tomcat.exe process
(restricted).  Bouncing the machine helps but is obviously not a real
solution.  Tomcat is dying, web requests to the default page return a 404.
You can also restart tomcat from the command line and it runs fine, with
the exception that it still shows as 'stopping' the services manager.

Any and all help is greatly appreciated.  Thank you.

Brian Scott
Web Application Specialist
NCGi
850.219.5159  (Mainline Office)
850.891.8066 (City of Tallahassee Office)
850.322.2410 (Cellular)
This e-mail and files transmitted with it are confidential, and are
intended solely for the use of the individual or entity to whom this e-mail
is addressed.  If you are not the intended recipient, or the employee or
agent responsible to deliver it to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you are not one of the named
recipient(s) or otherwise have reason to believe that you received this
message in error, please immediately notify sender by e-mail, and destroy
the original message.  Thank You.




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



RE: Running tomcat 5.18 as a service under Windows 2003

2004-02-10 Thread Shapira, Yoav

Howdy,
Does it only happen when running as a service?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 1:51 PM
To: [EMAIL PROTECTED]
Subject: Running tomcat 5.18 as a service under Windows 2003

Hello friends.   I'm experiencing an issue wherein if we run Tomcat 5
as a
service in windows 2003 there are times when you cannot restart the
service
through the service manager.  It dies at stop time and the services
panel
will forever report the status of the service as 'stopping'.
Ctl-Alt-Delete will not allow you to kill the tomcat.exe process
(restricted).  Bouncing the machine helps but is obviously not a real
solution.  Tomcat is dying, web requests to the default page return a
404.
You can also restart tomcat from the command line and it runs fine,
with
the exception that it still shows as 'stopping' the services manager.

Any and all help is greatly appreciated.  Thank you.

Brian Scott
Web Application Specialist
NCGi
850.219.5159  (Mainline Office)
850.891.8066 (City of Tallahassee Office)
850.322.2410 (Cellular)
This e-mail and files transmitted with it are confidential, and are
intended solely for the use of the individual or entity to whom this
e-mail
is addressed.  If you are not the intended recipient, or the employee
or
agent responsible to deliver it to the intended recipient, you are
hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you are not one of the named
recipient(s) or otherwise have reason to believe that you received this
message in error, please immediately notify sender by e-mail, and
destroy
the original message.  Thank You.




-
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: done did not found a worker

2004-02-10 Thread Nicholas Bernstein
On Mon, 2004-02-09 at 23:32, David Rees wrote:
 Nicholas Bernstein wrote, On 2/9/2004 6:26 PM:
  
  if you've got a minute, take a look @ the configs I posted 
  http://nicholasbernstein.com/tomcat/
  
  and let me know if you see anything wrong with the setup. I'd rather
  stick to apache2; i'm using redhat ES and it looks like they've made a
  lot of RH specific patches to httpd source, so it probably performs a
  lot better that compiling 1.x from source. 
 
 It looks like you're trying to use mod_jk with a mod_jk2 configuration 
 file.  The configuration files are NOT the same between the two modules.
 
 -Dave
 

right below the workers2.properties is the workers.properties file. I
had been using mod_jk2, and left it in for completeness. Sorry if it
caused confusion. 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


signature.asc
Description: This is a digitally signed message part


URL Rewrite - Please Help

2004-02-10 Thread Apahce Tomact
Hi,
 
I am Using HTTPSession to store the user_id and session_id to validate the session. I 
want to make web site should work even if client browser disables the cookies (Does 
not allow the cookies).
 
For this I am using URLRewrite i.e.. appending jsessionid in to the URL in the form 
tag. 
 
This is showing the jsessionid in Browser URL (Browser Address bar)
 
Is there any way to Hide jsessionid in the URL (Browser Address bar) ?
 
Using Apache2, mod_jk2 and Tomcat4.1.24.
 
If you have any better way of doing this, please advise me.
 
Your help is greatly appreciated.
 
Thanks,
Rama 



-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

Re: done did not found a worker

2004-02-10 Thread Nicholas Bernstein
On Mon, 2004-02-09 at 20:23, David OBrien wrote:
 At 09:26 PM 2/9/2004, Nicholas Bernstein wrote:
 On Mon, 2004-02-09 at 17:37, David Rees wrote:
   On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
   
Give up trying to use Apache2 with mod_jk.  After spending days on the
message boards trying to solve this one, I was ultimately told by the
so-called experts that  I had a network configuration problem and that
some process was likely to be either already using or blocking port 
  8009.
  
   Hmm, I've had no problems at all using mod_jk with Apache2 on both various
   Linux and SGI Irix machines.  I must be a so-called expert.  ;-)
  
   -Dave
 
 if you've got a minute, take a look @ the configs I posted
 http://nicholasbernstein.com/tomcat/
 
 Are you using workers2.properties with mod_jk and not mod_jk2 ??
 
 JkWorkersFile /etc/httpd/conf/workers2.properties
 change to workers.properties

Thanks, that was from a previous configuration that I forgot to edit
when putting on the web. 


 
 Also I have had to define a lvmroute in my server.xml that is the same name 
 as the named worker in your case ajp13
 

Could you please clarify that? 
do you mean
lvmrouteajp13/lvmroute somewhere in server.xml, or does it need to
be in a specific place?


 -Dave
 
 
 and let me know if you see anything wrong with the setup. I'd rather
 stick to apache2; i'm using redhat ES and it looks like they've made a
 lot of RH specific patches to httpd source, so it probably performs a
 lot better that compiling 1.x from source.
 
 
 
 
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 --
 +---+
 | Nicholas Bernstein| [EMAIL PROTECTED] |
 | UNIX Systems Administrator| http://www.docmagic.com   |
 | Document Systems Inc. |   |
 | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
 +---+
-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


signature.asc
Description: This is a digitally signed message part


RE: Running tomcat 5.18 as a service under Windows 2003

2004-02-10 Thread Brian . Scott

Hi Yoav -

We only experience this problem when running as a service.

Brian Scott
Web Application Specialist
NCGi
850.219.5159  (Mainline Office)
850.891.8066 (City of Tallahassee Office)
850.322.2410 (Cellular)


   

  Shapira, Yoav  

  [EMAIL PROTECTED]To:   Tomcat Users List [EMAIL 
PROTECTED]  
  .comcc: 

   Subject:  RE: Running tomcat 5.18 as a 
service under Windows 2003   
  02/10/2004 01:57 

  PM   

  Please respond to

  Tomcat Users

  List

   

   






Howdy,
Does it only happen when running as a service?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 1:51 PM
To: [EMAIL PROTECTED]
Subject: Running tomcat 5.18 as a service under Windows 2003

Hello friends.   I'm experiencing an issue wherein if we run Tomcat 5
as a
service in windows 2003 there are times when you cannot restart the
service
through the service manager.  It dies at stop time and the services
panel
will forever report the status of the service as 'stopping'.
Ctl-Alt-Delete will not allow you to kill the tomcat.exe process
(restricted).  Bouncing the machine helps but is obviously not a real
solution.  Tomcat is dying, web requests to the default page return a
404.
You can also restart tomcat from the command line and it runs fine,
with
the exception that it still shows as 'stopping' the services manager.

Any and all help is greatly appreciated.  Thank you.

Brian Scott
Web Application Specialist
NCGi
850.219.5159  (Mainline Office)
850.891.8066 (City of Tallahassee Office)
850.322.2410 (Cellular)
This e-mail and files transmitted with it are confidential, and are
intended solely for the use of the individual or entity to whom this
e-mail
is addressed.  If you are not the intended recipient, or the employee
or
agent responsible to deliver it to the intended recipient, you are
hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you are not one of the named
recipient(s) or otherwise have reason to believe that you received this
message in error, please immediately notify sender by e-mail, and
destroy
the original message.  Thank You.




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




This e-mail and files transmitted with it are confidential, and are
intended solely for the use of the individual or entity to whom this e-mail
is addressed.  If you are not the intended recipient, or the employee or
agent responsible to deliver it to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you are not one of the named
recipient(s) or otherwise have reason to believe that you received this
message in error, please immediately notify sender by e-mail, and destroy
the original message.  Thank You.

This 

Re: done did not found a worker

2004-02-10 Thread David O'Brien
At 02:24 PM 2/10/2004, you wrote:
On Mon, 2004-02-09 at 20:23, David OBrien wrote:
 At 09:26 PM 2/9/2004, Nicholas Bernstein wrote:
 On Mon, 2004-02-09 at 17:37, David Rees wrote:
   On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
   
Give up trying to use Apache2 with mod_jk.  After spending days 
on the
message boards trying to solve this one, I was ultimately told by the
so-called experts that  I had a network configuration problem 
and that
some process was likely to be either already using or blocking port
  8009.
  
   Hmm, I've had no problems at all using mod_jk with Apache2 on both 
various
   Linux and SGI Irix machines.  I must be a so-called expert.  ;-)
  
   -Dave
 
 if you've got a minute, take a look @ the configs I posted
 http://nicholasbernstein.com/tomcat/

 Are you using workers2.properties with mod_jk and not mod_jk2 ??

 JkWorkersFile /etc/httpd/conf/workers2.properties
 change to workers.properties

Thanks, that was from a previous configuration that I forgot to edit
when putting on the web.

 Also I have had to define a lvmroute in my server.xml that is the same 
name
 as the named worker in your case ajp13


Could you please clarify that?
do you mean
lvmrouteajp13/lvmroute somewhere in server.xml, or does it need to
be in a specific place?
I meant jvmroute sorry

Service name=Tomcat-Standalone
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=50 maxProcessors=75
   acceptCount=25 buffersize=16384 debug=0/
Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=test01  -- HERE

-Dave







 -Dave


 and let me know if you see anything wrong with the setup. I'd rather
 stick to apache2; i'm using redhat ES and it looks like they've made a
 lot of RH specific patches to httpd source, so it probably performs a
 lot better that compiling 1.x from source.
 
 
 
 
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 --
 +---+
 | Nicholas Bernstein| [EMAIL PROTECTED] |
 | UNIX Systems Administrator| http://www.docmagic.com   |
 | Document Systems Inc. |   |
 | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
 +---+
--
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource  Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


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


tldCache.ser

2004-02-10 Thread Pete Stokes
Hi.

What is this file / what does it do ?

Thanks,
Pete.
***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


Re: done did not found a worker

2004-02-10 Thread Nicholas Bernstein

 
 Service name=Tomcat-Standalone
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=50 maxProcessors=75
 acceptCount=25 buffersize=16384 debug=0/
  Engine name=Standalone defaultHost=localhost debug=0 
 jvmRoute=test01  -- HERE
 
 -Dave

cool. I had that part configured correctly. 

-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


signature.asc
Description: This is a digitally signed message part


RE: Weird Problems

2004-02-10 Thread Vernon Wu
Hi, Yoav,

  error-page
  error-code404/error-code
  location/jsp/notfound.jsp/location
  /error-page

How can I change the way the notfound.jsp is invoked so that the type
of
404 error is ignored?

I don't understand the question.  If you don't want notfound.jsp to be
invoked for 404 errors, don't declare the error-page in web.xml.


The current configuration catches all of the 404 error although the final reported 
code is 200. I can remove the error-page from the web.xml. If I do so, how can I still 
catch any other 404 error? A solution I try to find out is to ignore some type of 404 
error, but not others.


Vernon 




Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

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



Re: done did not found a worker

2004-02-10 Thread Nicholas Bernstein
On Mon, 2004-02-09 at 23:48, David Rees wrote:
 Dwayne Ghant wrote, On 2/9/2004 7:02 PM:
 
  Dave, I have been having semular issues would it be impossible for to 
  post the four files listed below:
  
  1. http.conf
  2. ssl.conf
  3. server.xml
  4. workers2.properties
 
 Here's a sample for setting up Apache.  This will work on either Apache 
 2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat will 
 work, use the example connector config included with every default 
 server.xml as it varies a little between Tomcat versions.
 
 httpd.conf
 # This only shows the portions relevant to mod_jk, you should stick the
 # lines somewhere in your config file.  This config also works for
 # Apache 1.3.X as well as Apache 2.0.X.
 ---
 LoadModule jk_module modules/mod_jk.so
 
 JkWorkersFile path-to-apache-conf/tomcat_workers.properties
 JkLogFile path-to-apache-logs/mod_jk.log
 JkLogLevel error
 
 VirtualHost *:80
  ServerName www.example.com
  JkMount /*.jsp tomcat
  JkMount /servlet/* tomcat
 /VirtualHost
 ---
 
 path-to-apache-conf/tomcat_workers.properties
 ---
 worker.list=tomcat
 worker.tomcat.port=8007
 worker.tomcat.host=localhost
 worker.tomcat.type=ajp13
 ---
 
 That's it!
 
 -Dave
   aka the mod_jk expert
   NOT a mod_jk2 expert!
 

Damn. 
That worked. 
Now I've just got to go through both of the old workers.properties that
I was using and see if I can figure out what broke it before. 

Thanks a lot! Send me a shipping address and I'll send you some
http://www.internetwines.com/rws27533.html monty python's holy ail by
way of thanks.


-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


signature.asc
Description: This is a digitally signed message part


RE: tldCache.ser

2004-02-10 Thread Shapira, Yoav

Howdy,

What is this file / what does it do ?

It's a performance-oriented enhancement file, preventing rescanning of
certain files for TLDs (JSP tag library descriptors).

Yoav Shapira



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


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



Starting tomcat when the DB is down

2004-02-10 Thread Bill Faulk
Hi Folks,

I am using SQL Server 2000 via the JDBC realm with forms authentication.
If the database is down when tomcat starts there is an unhandled
LifecycleException generated and tomcat quits. I have the code in place
in my login.jsp to generate a please try again later style message (or
whatever other message I choose) if the database goes down after Tomcat
starts. However, I want to avoid a Cannot find server error if the
database isn't up.

If there's a problem with the database I want the alternative to just
having the site be down because Tomcat won't start. Not all of the site
is actually part of the protected content and I want the unprotected
content still available if the DB is down.

Is there supposed to be any way to allow tomcat to start even with an
unreachable database configured? If this is the expected behavior and is
unavoidable then I guess I'll just live with it. Hopefully it doesn't
happen enough to be an issue. :-)

Catalina.start: LifecycleException:  Exception opening database
connection:
  java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Error establishing socket.
LifecycleException:  Exception opening database connection:
java.sql.SQLException:
 [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
... snip ...
Stopping service salesweb
Catalina.stop: LifecycleException:  Coyote connector has not been
started
LifecycleException:  Coyote connector has not been started
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1
... snip ...

---
Bill Faulk

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



Tomcat, Apache, JK/JK2, mod_backhand

2004-02-10 Thread Pete Stokes
I'm currently playing about with the above bits, and mod_backhand needs
Apache 1.x, so I'm wondering if any1 can save me a little time by
telling me if I'm using Apache 1.3.x with Tomcat 5.0.18, which is the
best connector to use, jk / jk2 for a production environment ?

The jk docco on jakarta tell me loads but don't seem to make a real
distinction ?

Thanks
Pete.


***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


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



Re: Starting tomcat when the DB is down

2004-02-10 Thread Tim Funk
Which version? I thought 4.1.30 was patched to allow tomcat to start up even 
if the database realm connect failed.

-Tim

Bill Faulk wrote:
Hi Folks,

I am using SQL Server 2000 via the JDBC realm with forms authentication.
If the database is down when tomcat starts there is an unhandled
LifecycleException generated and tomcat quits. I have the code in place
in my login.jsp to generate a please try again later style message (or
whatever other message I choose) if the database goes down after Tomcat
starts. However, I want to avoid a Cannot find server error if the
database isn't up.
If there's a problem with the database I want the alternative to just
having the site be down because Tomcat won't start. Not all of the site
is actually part of the protected content and I want the unprotected
content still available if the DB is down.
Is there supposed to be any way to allow tomcat to start even with an
unreachable database configured? If this is the expected behavior and is
unavoidable then I guess I'll just live with it. Hopefully it doesn't
happen enough to be an issue. :-)
Catalina.start: LifecycleException:  Exception opening database
connection:
  java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Error establishing socket.
LifecycleException:  Exception opening database connection:
java.sql.SQLException:
 [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
... snip ...
Stopping service salesweb
Catalina.stop: LifecycleException:  Coyote connector has not been
started
LifecycleException:  Coyote connector has not been started
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1
... snip ...
---


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


RE: IIS + Tomcat + Beans

2004-02-10 Thread nrapagnani
I'll give that a try, thanks.

-Original Message-
From: Krell, Andrew [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 1:08 PM
To: 'Tomcat Users List'
Subject: RE: IIS + Tomcat + Beans


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 11:55 AM
To: [EMAIL PROTECTED]
Subject: IIS + Tomcat + Beans


I have successfully integrated Tomcat 4.1 and IIS.  I have Tomcat handle
all jsp files that are on the IIS webserver.  Because I'm using IIS, I
don't have the standard WEB-INF directory associated with the directories
I'm using.  I don't know where to put my classes.  I've tried putting them
in the common folder in the apache program directory, but it still does not
find the class.  Any ideas?



You need to make a web-inf folder in your context's docbase folder (which,
if you've set it up correctly, should also be the place you have your JSP
files).  In that folder, you need to create another folder called classes.
That is where you put your class files for proper reference.  The rest is
dependent upon your server.xml setup and your tomcat version, but I would
also recommend creating a web.xml file. 

-Andrew



-
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, Apache, JK/JK2, mod_backhand

2004-02-10 Thread Krell, Andrew
This is the link to the Jakarta FAQ that answers the question which
connector should I use?
http://jakarta.apache.org/tomcat/faq/connectors.html#vs

Good luck
-Andrew
-Original Message-
From: Pete Stokes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 3:06 PM
To: Tomcat Users List
Subject: Tomcat, Apache, JK/JK2, mod_backhand


I'm currently playing about with the above bits, and mod_backhand needs
Apache 1.x, so I'm wondering if any1 can save me a little time by telling me
if I'm using Apache 1.3.x with Tomcat 5.0.18, which is the best connector to
use, jk / jk2 for a production environment ?

The jk docco on jakarta tell me loads but don't seem to make a real
distinction ?

Thanks
Pete.



***
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

***
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.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: Weird Problems

2004-02-10 Thread Mike Curwen
There aren't any 'subtypes' of 404, and there is no way for a request to
be 404 at one point in its life, and then finally a 200.
 
To avoid the 404 you're seeing, why not put a favicon.ico gif image in
the root of the web directory?  It can be a transparent gif. It's an
annoyance, courtesy of certain versions of IE.
 

 -Original Message-
 From: Vernon Wu [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 10, 2004 1:47 PM
 To: Tomcat Users List
 Subject: RE: Weird Problems
 
 
 Hi, Yoav,
 
   error-page
 error-code404/error-code
 location/jsp/notfound.jsp/location
   /error-page
 
 How can I change the way the notfound.jsp is invoked so 
 that the type
 of
 404 error is ignored?
 
 I don't understand the question.  If you don't want 
 notfound.jsp to be 
 invoked for 404 errors, don't declare the error-page in web.xml.
 
 
 The current configuration catches all of the 404 error 
 although the final reported code is 200. I can remove the 
 error-page from the web.xml. If I do so, how can I still 
 catch any other 404 error? A solution I try to find out is to 
 ignore some type of 404 error, but not others.
 
 
 Vernon 
 
 
 
 
 Find what you are looking for with the Lycos Yellow Pages 
 http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
om/default.asp?SRC=lycos10

-
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: Starting tomcat when the DB is down

2004-02-10 Thread Bill Faulk
Hi Tim,

Sorry, I forgot to mention I'm running 4.1.29. I didn't see 4.1.30 on
the Tomcat downloads page but I do see a 4.1.30-alpha dated 25-Jan-2004
on the downloads site. Also, I need to continue this in Tomcat-4 for now
rather than 5.

I'll be moving to production soon so I'm a bit leery of anything with
alpha in the name. I can try it and put 4.1.29 back if there's a
problem. Thanks for the info!

---
Bill Faulk



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 1:08 PM
To: Tomcat Users List
Subject: Re: Starting tomcat when the DB is down


Which version? I thought 4.1.30 was patched to allow tomcat to start up
even 
if the database realm connect failed.

-Tim

Bill Faulk wrote:
 Hi Folks,
 
 I am using SQL Server 2000 via the JDBC realm with forms 
 authentication. If the database is down when tomcat starts there is an

 unhandled LifecycleException generated and tomcat quits. I have the 
 code in place in my login.jsp to generate a please try again later 
 style message (or whatever other message I choose) if the database 
 goes down after Tomcat starts. However, I want to avoid a Cannot find

 server error if the database isn't up.
 
 If there's a problem with the database I want the alternative to just 
 having the site be down because Tomcat won't start. Not all of the 
 site is actually part of the protected content and I want the 
 unprotected content still available if the DB is down.
 
 Is there supposed to be any way to allow tomcat to start even with an 
 unreachable database configured? If this is the expected behavior and 
 is unavoidable then I guess I'll just live with it. Hopefully it 
 doesn't happen enough to be an issue. :-)
 
 Catalina.start: LifecycleException:  Exception opening database
 connection:
   java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for 
 JDBC]Error establishing socket.
 LifecycleException:  Exception opening database connection:
 java.sql.SQLException:
  [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
 at
org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681)
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3
 ... snip ...
 Stopping service salesweb
 Catalina.stop: LifecycleException:  Coyote connector has not been 
 started
 LifecycleException:  Coyote connector has not been started
 at 
 org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1
 ... snip ...
 
 ---


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


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



  1   2   >