tomcat giving a response without parsing the header at all

2008-07-15 Thread tomcat tom
scenarion

client sends a http request to tomcat
nos, is there anytime tomcat sends a response without parsing the header at
all


Re: How to Set up Role in Tomcat

2008-07-15 Thread Alex Mestiashvili

Guojun Zhu wrote:

Hi,

We are using Tomcat 5.5 in a linux box.  And I am trying to set up the Realm
security for our webapp.   I only want a password and username challenge for
this webapp only.  So I guess I need to set up a role corresponding to it
directly.  I look around and did not find much information about how to do
this.  I found a section in the servlet spec., but it is quite general and
no specific details.  Can anyone give me more specific information on this
please?   I am not minding spend a couple of days to read.  I can program in
java and know the basic things about the language, not as advanced as to the
architecture level.  But I am very much willing to learn it.  Thanks.

Sincerely
zhu, Guojun

  

Have you tried google ?

http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html


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



Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
On Tue, Jul 15, 2008 at 6:35 PM, Rainer Jung <[EMAIL PROTECTED]>
wrote:

What do you expect to be the value of the 'REMOTE_USER' variable? Do you
> expoect something else, than what you get from request.getRemoteUser()? What
> do you mean by variable? Maybe an httpd environment Variable?
>
>
Precisely. I also need the httpd environment variable REMOTE_USER  also
passed to the tomcat  I have this in my httpd.conf ... and I am reading
all the environment variables(apart from the headers) in the jsp but have
these values set to null... am I missing anything specific with these
directives?


  SetHandler jakarta-servlet
  RequestHeader set X_REMOTE_USER %{RU}e
  SetEnv SET_REMOTE_USER %{REMOTE_USER}e
  JkEnvVar JK_REMOTE_USER %{remoteUser}e


RE: Tomcat 5.5 hanged . Thread Dump Analyze

2008-07-15 Thread Caldarale, Charles R
> From: Olivier Fourel [mailto:[EMAIL PROTECTED]
> Subject: Tomcat 5.5 hanged . Thread Dump Analyze
>
> our Tomcat production server hanged again.
> We made 2 thread dumps with few minutes between them.

The only thing I found suspicious is that PermGen is at 99% in both of them.  
(You also have a tonne of non-Tomcat threads running around, but none appear 
hung; I presume your webapps created these and will dispose of them properly at 
an appropriate time.)

If you are filling up the PermGen, you should be getting log entries for the 
OOMEs being thrown - unless something in your webapps is catching them and 
throwing them away.  PermGen exhaustion is frequently caused by poor 
application design, hanging on to references to classes that should be 
discarded.  This link (from the Tomcat FAQ) contains some interesting comments:
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669

You might try increasing the PermGen size, but that is likely only to delay the 
inevitable until you fix the memory leak.  You can monitor the PermGen growth 
with JConsole with little impact on performance.

 - Chuck


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

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



Re: Does mod_jk support chunked encoding?

2008-07-15 Thread Tim Whittington
mod_jk does chunked encoding on all dynamic responses (e.g. From Tomcat)
that don¹t already have some form of response end set (e.g. A Content-Length
header).
To be accurate I think this is more a function of Apache than mod_jk.
All you should need to do is connect Tomcat to Apache using mod_jk and it
should work out of the box.

tim 


From: Adam Gordon <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List 
Date: Tue, 15 Jul 2008 15:29:02 -0600
To: Tomcat Users List 
Subject: Does mod_jk support chunked encoding?

Hi-

We're running Tomcat 5.5.16 behind Apache2 and one functionality of our
web app serves up ZIP files which are created on the fly.

We'd like to implement chunked-encoding to serve up the ZIP file so we
don't have to actually create a temporary file on disk first but also so
that we can immediately begin streaming the content to a user (i.e. a
user doesn't have to wait for the files to be compressed into one
file).  We just can't seem to find any documentation on how to set up
Apache, Tomcat, and mod_jk to support chunked encoding.

Can anyone point us in the right direction?  Thanks.

--adam

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




Does mod_jk support chunked encoding?

2008-07-15 Thread Adam Gordon

Hi-

We're running Tomcat 5.5.16 behind Apache2 and one functionality of our 
web app serves up ZIP files which are created on the fly.


We'd like to implement chunked-encoding to serve up the ZIP file so we 
don't have to actually create a temporary file on disk first but also so 
that we can immediately begin streaming the content to a user (i.e. a 
user doesn't have to wait for the files to be compressed into one 
file).  We just can't seem to find any documentation on how to set up 
Apache, Tomcat, and mod_jk to support chunked encoding.


Can anyone point us in the right direction?  Thanks.

--adam

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



How to Set up Role in Tomcat

2008-07-15 Thread Guojun Zhu
Hi,

We are using Tomcat 5.5 in a linux box.  And I am trying to set up the Realm
security for our webapp.   I only want a password and username challenge for
this webapp only.  So I guess I need to set up a role corresponding to it
directly.  I look around and did not find much information about how to do
this.  I found a section in the servlet spec., but it is quite general and
no specific details.  Can anyone give me more specific information on this
please?   I am not minding spend a couple of days to read.  I can program in
java and know the basic things about the language, not as advanced as to the
architecture level.  But I am very much willing to learn it.  Thanks.

Sincerely
zhu, Guojun


Re: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Leonardo K. Shikida
hooray ;-)

thanks!

[]

Kenji

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



RE: Tomcat seems to have stopped servicing requests behind Apache

2008-07-15 Thread Tim Hunt
I figured out my problem, and I thought I should posted it, although I 
apologize if I'm reducing the signal to noise here, as this is pretty specific, 
and it didn't get a lot of attention to begin with.  Here it is:

I mistakenly had iptables blocking traffic from localhost, which I think 
blocked the communication between apache and tomcat.

I first got a hint, when I couldn't list the active ports with 'nmap -sT -O 
localhost', but I could using the server's LAN IP address in place of 
'localhost'. Then I flushed my iptables rules, and sure enough, jsp pages 
started working again.

I've fixed the problem (it works, not sure optimal), by adding the following 
first iptables rule:

ACCEPT all -- localhost.localdomain anywhere

Please let me know if you suggest doing something different.  I suppose I could 
be more restrictive in what services/ports to permit from localhost, but I'm 
not sure that's necessary, and I don't know what else it might break.

Regards,
Tim

-Original Message-
From: Tim Hunt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 1:49 PM
To: Tomcat Users List
Subject: RE: Tomcat seems to have stopped servicing requests behind Apache

Quick update:

I looked farther back in the logs, and "WARNING: Unable to open config file" 
was in the Catalina log all the time back when it worked, so sorry for the bad 
steer.

I compared my httpd.conf, working_mod_jk2.conf, server.xml, and web.xml files 
to versions on a working server and found very few differences, none of which 
seemed to have any chance of causing my trouble (jsp pages not loading).

'service tomcat status' reports tomcat is running.

If I comment out the 'Include /etc/httpd/conf/working_mod_jk2.conf' line from 
httpd.conf and restart, it serves simple .jsp pages as text (not processed), 
but restoring that line and restarting returns to problem of jsp pages 
returning 503 after long delays.

Please let me know if there are any suggestions to diagnose or fix this.

Thanks,
Tim

-Original Message-
From: Tim Hunt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 10:10 AM
To: Tomcat Users List
Subject: RE: Tomcat seems to have stopped servicing requests behind Apache

Thanks *a lot* for the suggestion, but I was not able to find a file with that 
pattern anywhere on my system.

I tried again to load a few jsp pages, including a very simple one, but they 
all failed, after what seemed like 5 minutes of trying, with 503.  The failed 
requests didn't add anything to the tomcat or apache logs.

Only rebooting added to the logs, but it was the same entry in 
Catalina.[date].log listed below.

Any other suggestions, including ways to diagnose will be *greatly* appreciated!

I'm going to take another look at the config files to see if anything looks odd 
and try to sort out the warning about loading a config file.

Thanks,
Tim

-Original Message-
From: Clovis Wichoski
Sent: Tuesday, July 08, 2008 8:55 PM
To: Tomcat Users List
Subject: Re: Tomcat seems to have stopped servicing requests behind Apache

Hi Tim,

check at your tomcat home if exists a file with the pattern hs_err_pid*.log
maybe your JVM was killed, and in that log you will know the reason.

regards

Clóvis

On Tue, Jul 8, 2008 at 6:26 PM, Tim Hunt <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have a Linux (Centos 4) system running Tomcat (5.5.20) behind
> Apache(2.0.52) via mod_jk, and Tomcat seems to have stopped working. I
> don't know what broke it, and I would really appreciate help diagnosing
> the problem. Here's some more info:
>
> I can still server up static HTML files through just Apache, but jsp
> pages don't work, and eventually return a 503 error.
>
> I'm using the jk adaptor
>
> Checking the catalina.[date].log file shows the following entries during
> start up - note the bit about failing to read the config file about half
> way down:
>
> Jul 8, 2008 3:56:07 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
>
> INFO: The Apache Tomcat Native library which allows optimal performance
> in production environments was not found on the java.library.path:
> /usr/java/jdk1.5.0_09/jre/lib/i386/server:/usr/java/jdk1.5.0_09/jre/lib/
> i386:/usr/java/jdk1.5.0_09/jre/../lib/i386
>
> Jul 8, 2008 3:56:08 PM org.apache.catalina.startup.Catalina load
>
> INFO: Initialization processed in 1555 ms
>
> Jul 8, 2008 3:56:08 PM org.apache.catalina.core.StandardService start
>
> INFO: Starting service Catalina
>
> Jul 8, 2008 3:56:08 PM org.apache.catalina.core.StandardEngine start
>
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
>
> Jul 8, 2008 3:56:08 PM org.apache.catalina.core.StandardHost start
>
> INFO: XML validation disabled
>
> Jul 8, 2008 3:56:10 PM org.apache.jk.config.BaseJkConfig execute
>
> WARNING: Unable to open config file
>
> Jul 8, 2008 3:56:10 PM org.apache.jk.common.ChannelSocket init
>
> INFO: JK: ajp13 listening on /0.0.0.0:8009
>
> Jul 8, 2008 3:56:10 PM org.apache.jk.server.JkMain start
>
> INFO: Jk r

RE: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Caldarale, Charles R
> From: Leonardo K. Shikida [mailto:[EMAIL PROTECTED]
> Subject: Re: memory realm => tomcat 6 => null pointer exception
>
> yes I did

What about the UserDatabase  under ?  That 
should also come out when using the MemoryRealm.

 - Chuck


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

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



Re: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Leonardo K. Shikida
yes I did

:-(

[]

Kenji

On Tue, Jul 15, 2008 at 2:59 PM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
>> From: Leonardo K. Shikida [mailto:[EMAIL PROTECTED]
>> Subject: memory realm => tomcat 6 => null pointer exception
>>
>> when I add to server.xml
>> 
>> right below
>> 
>> I can't start the server and I get the message
>
> Works fine for me - as long as I comment out the existing ; did you do 
> that?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Caldarale, Charles R
> From: Leonardo K. Shikida [mailto:[EMAIL PROTECTED]
> Subject: memory realm => tomcat 6 => null pointer exception
>
> when I add to server.xml
> 
> right below
> 
> I can't start the server and I get the message

Works fine for me - as long as I comment out the existing ; did you do 
that?

 - Chuck


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

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



memory realm => tomcat 6 => null pointer exception

2008-07-15 Thread Leonardo K. Shikida
when I add to server.xml



right below



I can't start the server and I get the message

Jul 15, 2008 2:29:07 PM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)

I am certainly doing something dumb, but I really can't find out what.

Yes, I've already read

http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#MemoryRealm

any idea?

TIA

Kenji

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



Re: Tomcat charset problem

2008-07-15 Thread Mark Thomas

Toby White wrote:

Hi,

I am a newbie in Tomcat so please be patient. =)

I have an application which uses apache tomcat to provide users with browser
access.
To deploy it I copied a war file into webapps directory.

The application uses Cyrillic characters. If I use the windows-based tool
everything is shown OK.
If I use a browser and go to the application via tomcat all the cyrillic
characters are spoilt.


http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

Mark



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



RE: Embedded Tomcat

2008-07-15 Thread Radcliffe, William H.
Joe wrote:

> I'm not getting any exceptions on startup, and the exact war file that I'm
pointing is found because it's serving HTML
> and even my servlet just fine.
> But when I get a ServletContext, it's null. I've got a set of tomcat jars
in the classpath (catalina, annorations-api,
> tomcat-coyote, tomcat-juli, servlet-api)


I don't know if you are crossing contexts or not, but it doesn't look like
you setCrossContext(true) on the context you created.  Should you?

The API only says the following for setCrossContext(boolean crossContext):
"Set the "allow crossing servlet contexts" flag."  However, the Tomcat
configuration reference seems to state that all calls to getContext will
return null unless you set the context's crossContext parameter to true.
When the parameter is true, the configuration reference specifically states
that other contexts will have access through the ServletContext.getContext()
method.  When it is set to false, the reference no longer mentions other
contexts, it states that getContext() will always return null.  I'm assuming
that the setCrossContext method and crossContext parameter have the same
effect.

I don't know if any of this applies in your case.



>From http://tomcat.apache.org/tomcat-6.0-doc/api/index.html:

setCrossContext
public void setCrossContext(boolean crossContext)Set the "allow crossing
servlet contexts" flag. 

Specified by:
setCrossContext in interface Context
Parameters:
crossContext - The new cross contexts flag



>From http://tomcat.apache.org/tomcat-6.0-doc/config/context.html:

crossContex:  Set to true if you want calls within this application to
ServletContext.getContext() to successfully return a request dispatcher for
other web applications running on this virtual host. Set to false (the
default) in security conscious environments, to make getContext() always
return null.
  
Bill

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Joe Walker
Sent: Tuesday, July 15, 2008 10:59 AM
To: users@tomcat.apache.org
Subject: Embedded Tomcat

Maybe I missed some docs somewhere, but my embedded Tomcat isn't working
properly.
I doing essentially this:

Embedded embedded = new Embedded();

embedded.setCatalinaBase(".");

Engine engine = embedded.createEngine();


Host host = embedded.createHost("localhost", ".");

engine.addChild(host);

Context context = embedded.createContext("/dwr", "target/ant/web/demo");

host.addChild(context);


embedded.addEngine(engine);


Connector connector = embedded.createConnector("localhost", 8080, false);

embedded.addConnector(connector);

embedded.start();

And my web-app starts OK, however the ServletContext seems to be null, so the
web-app fails.

I'm not getting any exceptions on startup, and the exact war file that I'm
pointing is found because it's serving HTML and even my servlet just fine.
But when I get a ServletContext, it's null. I've got a set of tomcat jars in
the classpath (catalina, annorations-api, tomcat-coyote, tomcat-juli,
servlet-api)

Any clues where to look?

Joe.

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



Tomcat charset problem

2008-07-15 Thread Toby White
Hi,

I am a newbie in Tomcat so please be patient. =)

I have an application which uses apache tomcat to provide users with browser
access.
To deploy it I copied a war file into webapps directory.

The application uses Cyrillic characters. If I use the windows-based tool
everything is shown OK.
If I use a browser and go to the application via tomcat all the cyrillic
characters are spoilt.

This is from the source code of a webpage -


Let me know if you need any more information.

Thank you for your help.

Regards,
Toby


Re: Connections timing out even with validation query??

2008-07-15 Thread Ken Bowen

Definitely a plan.  I put the following in my context.xml:

validationQuery="select 1"
 testWhileIdle="true"
 timeBetweenEvictionRunsMillis="1000*60"
 removeAbandoned="true"

I set connect_timeout=5 in /etc/my.cnf,  and restarted both mysql and  
tomcat.
After 30min, everything's fine, but that's not much of test.  I'll see  
what it looks like tomorrow morning.


Thanks,
Ken


On Jul 15, 2008, at 10:23 AM, Hassan Schroeder wrote:


On Tue, Jul 15, 2008 at 4:04 AM, Ken Bowen <[EMAIL PROTECTED]> wrote:

The problem: With MySQL connect_timeout = 5, I'm getting timeout  
exceptions

(below)  even though I have a
validation query set; Here's my app's META-INF/context-xml:


type="javax.sql.DataSource"

  maxActive="100" maxIdle="30" maxWait="1"
  username="xx" password="xx"
  driverClassName="com.mysql.jdbc.Driver"
  url="jdbc:mysql://localhost:3306/sb_data"
  validationQuery="select 1"/>




You might try setting testWhileIdle to true (with a reasonable value
for  timeBetweenEvictionRunsMillis) and removeAbandoned to true.

Just to see if that changes/eliminates the symptom...

FWIW,
--
Hassan Schroeder  [EMAIL PROTECTED]

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




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



Embedded Tomcat

2008-07-15 Thread Joe Walker
Maybe I missed some docs somewhere, but my embedded Tomcat isn't working
properly.
I doing essentially this:

Embedded embedded = new Embedded();

embedded.setCatalinaBase(".");

Engine engine = embedded.createEngine();


Host host = embedded.createHost("localhost", ".");

engine.addChild(host);

Context context = embedded.createContext("/dwr", "target/ant/web/demo");

host.addChild(context);


embedded.addEngine(engine);


Connector connector = embedded.createConnector("localhost", 8080, false);

embedded.addConnector(connector);

embedded.start();

And my web-app starts OK, however the ServletContext seems to be null, so
the web-app fails.

I'm not getting any exceptions on startup, and the exact war file that I'm
pointing is found because it's serving HTML and even my servlet just fine.
But when I get a ServletContext, it's null. I've got a set of tomcat jars in
the classpath (catalina, annorations-api, tomcat-coyote, tomcat-juli,
servlet-api)

Any clues where to look?

Joe.


Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith

Thanks, Mark.  When I first saw that security notice, I thought, "this is
it!".  I don't think it is my problem, though, because I don't allow direct
SSL requests to get to the web servers.  All HTTPS gets terminated to HTTP
at the load balancer.  The load balancer sends the HTTP requests to Apache 2
on the web server which sends it to Tomcat via mod_jk.


  # ...

  JkMount / ajp13
  JkMount /* ajp13

  DocumentRoot "/usr/share/tomcat5/webapps/ROOT"


Also, in server.xml, I have the ajp connector on 8009 (protocol AJP/1.3)
with redirectPort to 8443, but never define a connector on 8443.

Furthermore, I spent the last hour trying reproduce the issue with netcat
and was unable to.

Thanks,
Dave


Mark Thomas-18 wrote:
> 
> Rainer Jung wrote:
>> Hi David,
>> 
>> dave.smith schrieb:
>>> Hi Rainer,
>>>
>>> Thanks a lot for the reply.
>>>
>>> I am using Tomcat 5.5.25 (rpm from jpackage.org).  CentOS Linux 2.6.18.
> 
> Could you be seeing  CVE-2007-6286 ?
> 
> See http://tomcat.apache.org/security-5.html for info.
> 
> Mark
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apache-mod_jk-serves-random-files-from-tomcat-tp18385568p18468376.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Apache/Tomcat - mod_jk can't receive response from Tomcat

2008-07-15 Thread Bajbutovic, Zoran
Hi Rainer,

Thanks a lot for responding.

> You mean the number of threads inside Tomcat?
We use prefork mod_jk, so basically it is not the number of
threads but rather the number of processes created by Apache. When the
number of processes (client connections) on Apache side reaches 252,
mod_jk cannot get responses from Tomcat and logs the errors I provided.

Similar problem is explained on this forum:

http://archives.devshed.com/forums/java-118/mod-jk-replacement-2154649.h
tml

However, you may see that I have specified MaxRequestsPerChild, together
with connectionTimeout for both mod_jk and Tomcat. 

>Which version of mod_jk are you using?
>Which version of httpd and Tomcat are you using?
>Which platform?

I will post those later today. 

Zoran



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 5:04 AM
To: Tomcat Users List
Subject: Re: Apache/Tomcat - mod_jk can't receive response from Tomcat

Bajbutovic, Zoran schrieb:
> We have Apache and Tomcat running on different servers, using mod_jk. 
> From time to time we got the following errors from Tomcat.
> 
>   [Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (1250)]:
> Tomcat is down or network problems. No response has been sent to the
> client (yet)
>   [Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (1449)]:
> ERROR: Receiving from tomcat failed, recoverable operation. err=0
>   [Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (783)]:
> ERROR: can't receive the response message from tomcat, network
problems
> or tomcat is down (200.200.1.1
>   :8009), err=-1
>   [Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (1468)]:
> sending request to tomcat failed in send loop. err=0
> 
> We were able to simulate the failure, and found out that Tomcat became
> unresponsive once the number of threads reach 252. We double check all

You mean the number of threads inside Tomcat?
What are those doing? Try to get a thread dump, look at it, and if you 
find it to difficult, provide it to the list.

> our configuration settings but couldn't find anything wrong. Any help
> will be greatly appreciated.

Which version of mod_jk are you using?
Which version of httpd and Tomcat are you using?
Which platform?

Usually the messages would indicate, that your webapp inside Tomcat got 
stuck and ate all the available threads. One can easily check with a 
thread dump.

> Here are our settings:
> 
> AJP connector:
> 
> I suggest setting maxThreads in TOMCAT_HOME/conf/server.xml for AJP
> connector to slightly higher value than Apache's thread limit
> 
> 
> Please see below maxThreads values in  our conf (I don't deleted the
> comments lines) 
> 
>minSpareThreads="5" maxSpareThreads="100" acceptCount="500" debug="0"
> connectionTimeout="6" enableLookups="false"
> disableUploadTimeout="true" useURIValidationHack="false"
> redirectPort="4443" />
> 
> MPM - we use prefork:
> 
> ##
> ## Server-Pool Size Regulation (MPM specific)
> ##
> # prefork MPM
> # StartServers: number of server processes to start
> # MinSpareServers: minimum number of server processes which are kept
> spare
> # MaxSpareServers: maximum number of server processes which are kept
> spare
> # MaxClients: maximum number of server processes allowed to start
> # MaxRequestsPerChild: maximum number of requests a server process
> serves
> 
> 
> StartServers   8
> MinSpareServers5
> MaxSpareServers   20
> MaxClients   250
> MaxRequestsPerChild  1000
> 
> 
> Worker.properties:
> 
> # list the workers by name
> worker.list=app
> 
> # 
> # First tomcat server
> # 
> worker.app.port=8009
> worker.app.host=SERVER_NAME
> worker.app.type=ajp13
> 
> # worker "app" use up to 10 sockets, which will stay no more than 10mn
> in cache
> worker.app.cachesize=10
> 
> # worker "app" ask operating system to send KEEP-ALIVE signal on the
> connection
> worker.app.socket_keepalive=1
> 
> # worker "app" want ajp13 connection to be dropped after 5mn == 300
> (timeout), 10 min == 600
> worker.app.socket_timeout=60
> worker.app.cache_timeout=60
> 
> #This features has been added in jk 1.2.6 to avoid problem with hung
> tomcat's
> worker.app.connect_timeout=60
> 
> #forwarding to it a request. The parameter is the delay in
milliseconds
> to wait for the PONG reply.
> #This features has been added in jk 1.2.6 to avoid problem with hung
> tomcat's
> #worker.app.prepost_timeout=60
> #
> # Specifies the load balance factor when used with
> # a load balancing worker.
> # Note:
> #  > lbfactor must be > 0
> #  > Low lbfactor means less work done by the worker.
> #worker.app.lbfactor=100
> #
> # END workers.properties
> 
> 
> Zoran Bajbutovic 
> Email: [EMAIL PROTECTED]


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

Re: Saving file

2008-07-15 Thread Hassan Schroeder
On Tue, Jul 15, 2008 at 4:49 AM, stasins <[EMAIL PROTECTED]> wrote:
>
> Hi. Is there anybody who can explain me how could i configure tomcat server
> for saving files on its webapp using URLConnection or HttpClient. And in
> URLConnection API what Content-Type and Method must be setted?

Sorry, unclear to me -- are you asking about how build a client to
upload files to Tomcat, or how to handle uploaded files in a Tomcat
webapp?

If the latter, see ; if the former
see Multipart Post ,
though looking at commons-fileupload will probably be useful as well.

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: Connections timing out even with validation query??

2008-07-15 Thread Hassan Schroeder
On Tue, Jul 15, 2008 at 4:04 AM, Ken Bowen <[EMAIL PROTECTED]> wrote:

> The problem: With MySQL connect_timeout = 5, I'm getting timeout exceptions
> (below)  even though I have a
> validation query set; Here's my app's META-INF/context-xml:
>
> 
>  maxActive="100" maxIdle="30" maxWait="1"
>username="xx" password="xx"
>driverClassName="com.mysql.jdbc.Driver"
>url="jdbc:mysql://localhost:3306/sb_data"
>validationQuery="select 1"/>



You might try setting testWhileIdle to true (with a reasonable value
for  timeBetweenEvictionRunsMillis) and removeAbandoned to true.

Just to see if that changes/eliminates the symptom...

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Rainer Jung

dave.smith schrieb:

Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't
have been easier.  It will probably take me a couple of days before I can
get this done in production, though.

I terminate all HTTPS requests before they get to the web server, so from
what you have described, it is probably safe to disable the APR connector. 
How do I disable it, though?  I will look into disabling this after I have

updated mod_jk in production.


Locate the tcnative shared object file (tcnative.so or tcnative-1.so) 
and renme it, so that the linker loader does not find it (e.g. add an 
underscore at the end of the file name).


Then during the next startup, Tomcat should emit an info level log 
message telling you, that it couldn't find the lib.



Here's the full stack trace for that exception, displayed in my Tomcat logs:

Jul 10, 2008 10:06:50 PM org.apache.catalina.connector.Request
parseParameters
WARNING: Exception thrown whilst processing POSTed parameters
java.io.IOException: Socket read failed
at
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
at
org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1158)
at
org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1090)
at
org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1228)
at org.apache.coyote.Request.doRead(Request.java:419)
at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265)
at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:280)
at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
at
org.apache.catalina.connector.Request.readPostBody(Request.java:2400)
at
org.apache.catalina.connector.Request.parseParameters(Request.java:2379)
at
org.apache.catalina.connector.Request.getParameterNames(Request.java:1047)
at
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:369)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1225)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:444)
at
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:472)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Thread.java:595)


OK, thanks. You are sure it is not 5.5.26?

Regards,

Rainer


Rainer Jung-3 wrote:

Hi David,

dave.smith schrieb:

Hi Rainer,

Thanks a lot for the reply.

I am using Tomcat 5.5.25 (rpm from jpackage.org).  CentOS Linux 2.6.18.

httpd was compiled in prefork mode. The prefork settings are:

StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000

I have setup JMeter to run against a test environment, but was unable to
reproduce.  These random responses occur in production about once every
week
or so/more.  The problem will often (temporarily) correct itself, but
sometimes I will need to restart httpd if the problem persists --
restarting
tomcat also works to temporarily correct the problem.

The only thing strange that I see in my logs are in the test_client.log:

WARNING: Exception thrown whilst processing POSTed parameters 
java.io.IOException: Socket read failed

at
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
...
Thanks for the information. What is "test_client.log"? It looks like a 
Tomcat log file? Could you also post a larger part of the stack, or do 
you only get one li

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith

Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't
have been easier.  It will probably take me a couple of days before I can
get this done in production, though.

I terminate all HTTPS requests before they get to the web server, so from
what you have described, it is probably safe to disable the APR connector. 
How do I disable it, though?  I will look into disabling this after I have
updated mod_jk in production.

Here's the full stack trace for that exception, displayed in my Tomcat logs:

Jul 10, 2008 10:06:50 PM org.apache.catalina.connector.Request
parseParameters
WARNING: Exception thrown whilst processing POSTed parameters
java.io.IOException: Socket read failed
at
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
at
org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1158)
at
org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1090)
at
org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1228)
at org.apache.coyote.Request.doRead(Request.java:419)
at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265)
at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:280)
at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
at
org.apache.catalina.connector.Request.readPostBody(Request.java:2400)
at
org.apache.catalina.connector.Request.parseParameters(Request.java:2379)
at
org.apache.catalina.connector.Request.getParameterNames(Request.java:1047)
at
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:369)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1225)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:444)
at
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:472)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Thread.java:595)

Thanks again,
Dave



Rainer Jung-3 wrote:
> 
> Hi David,
> 
> dave.smith schrieb:
>> Hi Rainer,
>> 
>> Thanks a lot for the reply.
>> 
>> I am using Tomcat 5.5.25 (rpm from jpackage.org).  CentOS Linux 2.6.18.
>> 
>> httpd was compiled in prefork mode. The prefork settings are:
>> 
>> StartServers   8
>> MinSpareServers5
>> MaxSpareServers   20
>> ServerLimit  256
>> MaxClients   256
>> MaxRequestsPerChild  4000
>> 
>> I have setup JMeter to run against a test environment, but was unable to
>> reproduce.  These random responses occur in production about once every
>> week
>> or so/more.  The problem will often (temporarily) correct itself, but
>> sometimes I will need to restart httpd if the problem persists --
>> restarting
>> tomcat also works to temporarily correct the problem.
>> 
>> The only thing strange that I see in my logs are in the test_client.log:
>> 
>> WARNING: Exception thrown whilst processing POSTed parameters 
>> java.io.IOException: Socket read failed
>> at
>> org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
>> ...
> 
> Thanks for the information. What is "test_client.log"? It looks like a 
> Tomcat log file? Could you also post a larger part of the stack, or do 
> you only get one line?
> 
> Would you be able to do the following two things, maybe not both at the 
> same time:
> 
> - disable the apr connector (tcnative.so)
> - upgrade jk to 1.2.26
> 
> Concerning the apr connector: If you are using OpenSSL with apr and 
> Tomcat or you have some s

RE: Setting context in tomcat6

2008-07-15 Thread Caldarale, Charles R
> From: vibhuti [mailto:[EMAIL PROTECTED]
> Subject: RE: Setting context in tomcat6
>
> I will not be able to access my application using URL
> http://localhost:8080/myapp/, I'll just be able to access it using
> http://localhost:8080/
> I want the users of my web application to be able to access
> it using both the URLs. This is the requirement of our project.

Sounds like a pointy-haired boss thing.

Do you want the app deployed twice, once as the default and once as myapp?  Or 
do you want both URLs to access the same instance of the app?

If the former, then deploy the app twice, once as ROOT and once as myapp.

If the latter, then write a filter for the lesser-used URL that redirects or 
forwards to the proper one.

 - Chuck


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

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



Re: Setting context in tomcat6

2008-07-15 Thread Mark Thomas

vibhuti wrote:

Thanks a lot for the prompt reply. I have tried doing that but in that case
I will not be able to access my application using URL
http://localhost:8080/myapp/, I'll just be able to access it using
http://localhost:8080/
I want the users of my web application to be able to access it using both
the URLs. This is the requirement of our project.


Simplest solution is to deploy the app twice. Rather than renaming your app 
to ROOT, copy it to ROOT.


Mark



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



Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Mark Thomas

Rainer Jung wrote:

Hi David,

dave.smith schrieb:

Hi Rainer,

Thanks a lot for the reply.

I am using Tomcat 5.5.25 (rpm from jpackage.org).  CentOS Linux 2.6.18.


Could you be seeing  CVE-2007-6286 ?

See http://tomcat.apache.org/security-5.html for info.

Mark



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



RE: Setting context in tomcat6

2008-07-15 Thread vibhuti
Thanks a lot for the prompt reply. I have tried doing that but in that case
I will not be able to access my application using URL
http://localhost:8080/myapp/, I'll just be able to access it using
http://localhost:8080/
I want the users of my web application to be able to access it using both
the URLs. This is the requirement of our project.

Thanks
Vibhuti

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 6:44 PM
To: Tomcat Users List
Subject: Re: Setting context in tomcat6

Rename your app ROOT (case is important here) and it will become the 
default webapp. 

--David

vibhuti wrote:
> Hi
>
>  
>
> I've been trying to set my application as default application using
tomcat6
> but none of the approaches I tried  worked. 
>
>  
>
> First, I created a file .xml in /tomcat/conf/Catalina/localhost
> folder but this did not make my application default. It worked on tomcat5
> but not on tomcat6. Following are the entries of my myapp.xml file:
>
>  
>
> 
>
>  
>
> I want to access my application as: http://localhost:8080/ instead of
> http://localhost:8080/myapp
>
>  
>
> Second, I tried creating context.xml in /webapps/myapp/META-INF folder
with
> same contents as given above but that didn't work.
>
>  
>
> It is written in tomcat docs that the  tag should not be used in
> server.xml, but adding the tag to server.xml seemed the only solution.
Also,
> when I added  tag to server.xml it worked but the context seemed
to
> be loaded twice by tomcat.
>
>  
>
> Is there any alternative to adding  tag to server.xml file?  Why
is
> it not advisable to add the  tag in server.xml?
>
>  
>
> Please provide a workaround for this. It is urgent.
>
>  
>
> Thanks
>
>  
>
>
>   


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



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



Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Rainer Jung

Hi David,

dave.smith schrieb:

Hi Rainer,

Thanks a lot for the reply.

I am using Tomcat 5.5.25 (rpm from jpackage.org).  CentOS Linux 2.6.18.

httpd was compiled in prefork mode. The prefork settings are:

StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000

I have setup JMeter to run against a test environment, but was unable to
reproduce.  These random responses occur in production about once every week
or so/more.  The problem will often (temporarily) correct itself, but
sometimes I will need to restart httpd if the problem persists -- restarting
tomcat also works to temporarily correct the problem.

The only thing strange that I see in my logs are in the test_client.log:

WARNING: Exception thrown whilst processing POSTed parameters 
java.io.IOException: Socket read failed

at
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
...


Thanks for the information. What is "test_client.log"? It looks like a 
Tomcat log file? Could you also post a larger part of the stack, or do 
you only get one line?


Would you be able to do the following two things, maybe not both at the 
same time:


- disable the apr connector (tcnative.so)
- upgrade jk to 1.2.26

Concerning the apr connector: If you are using OpenSSL with apr and 
Tomcat or you have some similar reason you really need it, then don't 
switch. But if you use it without a very specific reason, disabling it 
for a week or two would help us isolate the problem.


Concerning mod_jk upgrade: That should be very easy, apart from the 
following: if your httpd uses VirtualHost in the configuration, you have 
to include your JkMount inside the VirtualHost, not in the global part, 
or you add JkMountCopy On to the VirtualHost.


Regards,

Rainer


Rainer Jung-3 wrote:

dave.smith schrieb:

Wow. That's weird. Is Tomcat serving the file, or is httpd serving it?

Not too weird.  I am experiencing the same thing with Tomcat 5.5 and
mod_jk
1.2.23.  I have Tomcat serving everything.

I am also using a load balancer that sends an OPTION every 2 seconds to
each
web server to make sure that the server is alive.

This intermittent random response issue is really killing me.

Could you please also add some info:

Tomcat version?

And from my previous mail:

What's you platform and which httpd MPM (prefork orworker or something 
else) do you use? For some platforms (e.g. AIX) the detection of 
multi-threading in httpd during mpod_jk build-time was broken. Starting 
with 1.2.24 we build always including multi-thread support unless 
explicitely stated via a configure option. If you 1.2.23 build is not 
thread safe, but your httpd uses threads (like with worker mpm), then 
such trouble is possible, although more likely you would see crashes 
etc. For most platforms like Linux and Solaris the threading detection 
was OK already before 1.2.24.


Another possible (but not very likely) cause could be bug 44494 of 
Tomcat 6.0.16/5.5.26 which under certain circumstances could leave data 
in the request object after request handling completed. You could try 
either downgrading to 6.0.15/5.5.25 or upgrading to the soon to be 
expected 6.0.17/5.5.27.


I would also add the access log on the Tomcat side. If you find the same 
phenomenon there, then it's unlikely, that httpd/mod_jk are responsible 
and the reason should be inside Tomcat or the webapp.


Can you reproduce the problem on a test system?

Regards,

Rainer



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



Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith

Hi Rainer,

Thanks a lot for the reply.

I am using Tomcat 5.5.25 (rpm from jpackage.org).  CentOS Linux 2.6.18.

httpd was compiled in prefork mode. The prefork settings are:

StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000

I have setup JMeter to run against a test environment, but was unable to
reproduce.  These random responses occur in production about once every week
or so/more.  The problem will often (temporarily) correct itself, but
sometimes I will need to restart httpd if the problem persists -- restarting
tomcat also works to temporarily correct the problem.

The only thing strange that I see in my logs are in the test_client.log:

WARNING: Exception thrown whilst processing POSTed parameters 
java.io.IOException: Socket read failed
at
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
...


Rainer Jung-3 wrote:
> 
> dave.smith schrieb:
>>> Wow. That's weird. Is Tomcat serving the file, or is httpd serving it?
>> 
>> Not too weird.  I am experiencing the same thing with Tomcat 5.5 and
>> mod_jk
>> 1.2.23.  I have Tomcat serving everything.
>> 
>> I am also using a load balancer that sends an OPTION every 2 seconds to
>> each
>> web server to make sure that the server is alive.
>> 
>> This intermittent random response issue is really killing me.
> 
> Could you please also add some info:
> 
> Tomcat version?
> 
> And from my previous mail:
> 
> What's you platform and which httpd MPM (prefork orworker or something 
> else) do you use? For some platforms (e.g. AIX) the detection of 
> multi-threading in httpd during mpod_jk build-time was broken. Starting 
> with 1.2.24 we build always including multi-thread support unless 
> explicitely stated via a configure option. If you 1.2.23 build is not 
> thread safe, but your httpd uses threads (like with worker mpm), then 
> such trouble is possible, although more likely you would see crashes 
> etc. For most platforms like Linux and Solaris the threading detection 
> was OK already before 1.2.24.
> 
> Another possible (but not very likely) cause could be bug 44494 of 
> Tomcat 6.0.16/5.5.26 which under certain circumstances could leave data 
> in the request object after request handling completed. You could try 
> either downgrading to 6.0.15/5.5.25 or upgrading to the soon to be 
> expected 6.0.17/5.5.27.
> 
> I would also add the access log on the Tomcat side. If you find the same 
> phenomenon there, then it's unlikely, that httpd/mod_jk are responsible 
> and the reason should be inside Tomcat or the webapp.
> 
> Can you reproduce the problem on a test system?
> 
> Regards,
> 
> Rainer
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apache-mod_jk-serves-random-files-from-tomcat-tp18385568p18465349.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Setting context in tomcat6

2008-07-15 Thread David Smith
Rename your app ROOT (case is important here) and it will become the 
default webapp. 


--David

vibhuti wrote:

Hi

 


I've been trying to set my application as default application using tomcat6
but none of the approaches I tried  worked. 

 


First, I created a file .xml in /tomcat/conf/Catalina/localhost
folder but this did not make my application default. It worked on tomcat5
but not on tomcat6. Following are the entries of my myapp.xml file:

 




 


I want to access my application as: http://localhost:8080/ instead of
http://localhost:8080/myapp

 


Second, I tried creating context.xml in /webapps/myapp/META-INF folder with
same contents as given above but that didn't work.

 


It is written in tomcat docs that the  tag should not be used in
server.xml, but adding the tag to server.xml seemed the only solution. Also,
when I added  tag to server.xml it worked but the context seemed to
be loaded twice by tomcat.

 


Is there any alternative to adding  tag to server.xml file?  Why is
it not advisable to add the  tag in server.xml?

 


Please provide a workaround for this. It is urgent.

 


Thanks

 



  



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



Setting context in tomcat6

2008-07-15 Thread vibhuti
Hi

 

I've been trying to set my application as default application using tomcat6
but none of the approaches I tried  worked. 

 

First, I created a file .xml in /tomcat/conf/Catalina/localhost
folder but this did not make my application default. It worked on tomcat5
but not on tomcat6. Following are the entries of my myapp.xml file:

 



 

I want to access my application as: http://localhost:8080/ instead of
http://localhost:8080/myapp

 

Second, I tried creating context.xml in /webapps/myapp/META-INF folder with
same contents as given above but that didn't work.

 

It is written in tomcat docs that the  tag should not be used in
server.xml, but adding the tag to server.xml seemed the only solution. Also,
when I added  tag to server.xml it worked but the context seemed to
be loaded twice by tomcat.

 

Is there any alternative to adding  tag to server.xml file?  Why is
it not advisable to add the  tag in server.xml?

 

Please provide a workaround for this. It is urgent.

 

Thanks

 



Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Rainer Jung

Thats right and clueful. Yes, I modifued my httpd.conf to include the webapp
location that I was going through and it updated the remote user, I was able
to use have the result now properly set from the request.getRemoteUser call.


Fine.


BUT, again, I was not able to pass the 'REMOTE_USER' variable. How can I do
that in my httpd.conf.. any ideas what else do I need to add more in my
httpd.conf ?


I don't understand, what you mean by "pass the 'REMOTE_USER' variable". 
If you want to pass the name of the authenticated user, that's 
request.getRemoteUser(), which now works.


What do you expect to be the value of the 'REMOTE_USER' variable? Do you 
expoect something else, than what you get from request.getRemoteUser()? 
What do you mean by variable? Maybe an httpd environment Variable?


Regards,

Rainer

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



Re: Connections timing out even with validation query??

2008-07-15 Thread Ken Bowen

David...see below...

On Jul 15, 2008, at 8:28 AM, David Smith wrote:

Looks like for some reason your mysql db is closing the connection  
in the middle of your query reads.  This isn't normal behavior in a  
tomcat/mysql setup.  Setting connect_timeout only impacts the  
initial handshake and validationQuery just tests the connection  
before you borrow it.  I wouldn't expect either to make a difference  
in this problem.


If you use the command line client, can you hold a connection open  
long enough to query the database?

Yes:
mysql> select * from user;
+-+--+-+--+
| userNum | lastName | firstName   | acctType |
+-+--+-+--+
|   1 | User | Anonymous   |0 |
|   2 | User | Test|0 |
etc

Also have you made any non-standard changes in the config of your  
mysql server?


The only change I've made at all is to change the timeout (several  
days ago) to 12 hrs.
BUT, thls is a mysql provided by the ISP as a package under the CentOS/ 
Virtuozzo combination.
The entries in both /etc/my.cnf and /root/.my.cnf are completely  
vanilla:


[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
connect_timeout=43200

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


and


[client]
 password=xxx

The system works fine except when I let it go over 12 hrs (night  
before last), and then I got the same exception.




--David

Ken Bowen wrote:

Hi All,

I get the feeling this was lost over the weekend when I sent it  
last Saturday.

Does anyone have any thoughts on this?

Using: Tomcat 5.5.26 ; Java 1.5 ; MySQL 5.0.51 running on CentOs  
5.0 hosted in a Virtuozzo container.


The problem: With MySQL connect_timeout = 5, I'm getting timeout  
exceptions (below)  even though I have a

validation query set; Here's my app's META-INF/context-xml:


 type="javax.sql.DataSource"

   maxActive="100" maxIdle="30" maxWait="1"
   username="xx" password="xx"
   driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://localhost:3306/sb_data"
   validationQuery="select 1"/>
 type="javax.sql.DataSource"

   maxActive="100" maxIdle="30" maxWait="1"
   username="xx" password="xx"
   driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://localhost:3306/sb_users"
   validationQuery="select 1"/>


My understanding is that if a closed connection is detected, it  
should automatically be replaced by a new connection??


The exception trace is below.  Any guidance would be greatly  
appreciated.

Thanks in advance,
Ken Bowen

-
javax.servlet.ServletException: No operations allowed after  
connection closed.Connection was implicitly closed due to  
underlying exception/error:



** BEGIN NESTED EXCEPTION **

com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:
java.io.EOFException
  at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1934)
  at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
  at com.mysql.jdbc.Connection.execSQL(Connection.java:3020)
  at com.mysql.jdbc.Connection.execSQL(Connection.java:2949)
  at com.mysql.jdbc.Statement.executeQuery(Statement.java:959)
  at  
com.mysql.jdbc.DatabaseMetaData.getUserName(DatabaseMetaData.java: 
5986)
  at  
org 
.apache 
.tomcat 
.dbcp.dbcp.DelegatingConnection.toString(DelegatingConnection.java: 
104)
  at org.apache.tomcat.dbcp.dbcp.PoolingDataSource 
$PoolGuardConnectionWrapper.toString(PoolingDataSourc

e.java:344)
  at java.lang.String.valueOf(String.java:2615)
  at java.lang.StringBuilder.append(StringBuilder.java:116)
  at  
com 
.strongbrain.database.DAOBaseUsers.getConnection(DAOBaseUsers.java: 
38)
  at  
com 
.strongbrain.database.UserManager.getUserFromLogin(UserManager.java: 
276)
  at  
com 
.strongbrain.auth.LoggedInUser.loggedInFromCookie(LoggedInUser.java: 
59)
  at com.strongbrain.actions.BaseAction.execute(BaseAction.java: 
105)
  at  
org 
.apache 
.struts 
.action.RequestProcessor.processActionPerform(RequestProcessor.java: 
419)
  at  
org 
.apache 
.struts.action.RequestProcessor.process(RequestProcessor.java:224)
  at  
org.apache.struts.action.ActionServlet.process(ActionServlet.java: 
1194)
  at  
org.apache.st

Re: Connections timing out even with validation query??

2008-07-15 Thread David Smith
Looks like for some reason your mysql db is closing the connection in 
the middle of your query reads.  This isn't normal behavior in a 
tomcat/mysql setup.  Setting connect_timeout only impacts the initial 
handshake and validationQuery just tests the connection before you 
borrow it.  I wouldn't expect either to make a difference in this problem.


If you use the command line client, can you hold a connection open long 
enough to query the database?  Also have you made any non-standard 
changes in the config of your mysql server?


--David

Ken Bowen wrote:

Hi All,

I get the feeling this was lost over the weekend when I sent it last 
Saturday.

Does anyone have any thoughts on this?

Using: Tomcat 5.5.26 ; Java 1.5 ; MySQL 5.0.51 running on CentOs 5.0 
hosted in a Virtuozzo container.


The problem: With MySQL connect_timeout = 5, I'm getting timeout 
exceptions (below)  even though I have a

validation query set; Here's my app's META-INF/context-xml:


  type="javax.sql.DataSource"

maxActive="100" maxIdle="30" maxWait="1"
username="xx" password="xx"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/sb_data"
validationQuery="select 1"/>
  type="javax.sql.DataSource"

maxActive="100" maxIdle="30" maxWait="1"
username="xx" password="xx"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/sb_users"
validationQuery="select 1"/>


My understanding is that if a closed connection is detected, it should 
automatically be replaced by a new connection??


The exception trace is below.  Any guidance would be greatly appreciated.
Thanks in advance,
Ken Bowen

-
javax.servlet.ServletException: No operations allowed after connection 
closed.Connection was implicitly closed due to underlying 
exception/error:



** BEGIN NESTED EXCEPTION **

com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:
java.io.EOFException
   at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1934)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:3020)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:2949)
   at com.mysql.jdbc.Statement.executeQuery(Statement.java:959)
   at 
com.mysql.jdbc.DatabaseMetaData.getUserName(DatabaseMetaData.java:5986)
   at 
org.apache.tomcat.dbcp.dbcp.DelegatingConnection.toString(DelegatingConnection.java:104) 

   at 
org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.toString(PoolingDataSourc 


e.java:344)
   at java.lang.String.valueOf(String.java:2615)
   at java.lang.StringBuilder.append(StringBuilder.java:116)
   at 
com.strongbrain.database.DAOBaseUsers.getConnection(DAOBaseUsers.java:38)
   at 
com.strongbrain.database.UserManager.getUserFromLogin(UserManager.java:276) 

   at 
com.strongbrain.auth.LoggedInUser.loggedInFromCookie(LoggedInUser.java:59) 


   at com.strongbrain.actions.BaseAction.execute(BaseAction.java:105)
   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 

   at 
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) 

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 

   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) 

   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) 

   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) 

   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) 

   at 
org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176) 

   a

Re: howto stop crawler and bots according to their user agent string

2008-07-15 Thread Markus Fischer

Hello Mathias,

Mathias Walter wrote:

I don't know it exactly. The problem is that the sites are linked from
anywhere. I'm not sure, if a crawler that follows the link
http://mydomain:port/servlet/page.jsp, looks for the robots.txt in the ROOT
webapp.


Just last week we've installed a robots.txt where none was before and it 
took more than 24 hours until most bots (GoogleBot, MsnBot, Yahoo Slurp) 
re-read it again. Yes, Bots are supposed to read the file /robots.txt 
when accessing /some/thing/here.jsp . If it's a malicious bot, you're 
out of luck anyway.


HTH,
- Markus

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



Saving file

2008-07-15 Thread stasins

Hi. Is there anybody who can explain me how could i configure tomcat server
for saving files on its webapp using URLConnection or HttpClient. And in
URLConnection API what Content-Type and Method must be setted?
-- 
View this message in context: 
http://www.nabble.com/Saving-file-tp18462771p18462771.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: does tomcat use any kind of parser

2008-07-15 Thread Mark Thomas

tomcat tom wrote:

I'm looking for a scenario like;
mod_rewrite and forbidden flag, wherein the server gives the 403 response

pls give me the link


Try searching the archives.

http://tomcat.apache.org/lists.html


On 7/15/08, Mark Thomas <[EMAIL PROTECTED]> wrote:

tomcat tom wrote:


does tomcat do header parsing?


Yes.




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








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



Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
On Tue, Jul 15, 2008 at 2:23 PM, Rainer Jung <[EMAIL PROTECTED]>
wrote:

> Nikhil schrieb:
>
>> [Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (607): Service
>> protocol=HTTP/1.1 method=GET host=(null) addr=149.77.175.155 name=
>> is3.hyd.deshaw.com port=8080 auth=(null) user=(null)
>> laddr=149.77.160.20raddr=
>> 149.77.175.155
>>
>> --
>>
>> If noticed, auth=(null) and user=(null) are being set ... but I wonder
>> why?
>> Do I have to look somewhere else to make any changes too ?
>>
>
> That means, Apache httpd did not provide any authentication information.
> Looks like your authentication setup doesn't even work inside httpd.
>
> If it does work, the user name should get logged in your access log.
> Usually the default log format for the access log of httpd is "common",
> which contains the authenticated user name in the third column ("%u").
>
> If it isn't shown in the httpd access log, then you need to fix your
> authentication setup in httpd first.
>
> Regards,
>
>
> Rainer
>


Thats right and clueful. Yes, I modifued my httpd.conf to include the webapp
location that I was going through and it updated the remote user, I was able
to use have the result now properly set from the request.getRemoteUser call.
BUT, again, I was not able to pass the 'REMOTE_USER' variable. How can I do
that in my httpd.conf.. any ideas what else do I need to add more in my
httpd.conf ?

Thanks again, Rainer.


Re: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Buddy wu
t

2008/7/15 Antonio Petrelli <[EMAIL PROTECTED]>:
> 2008/7/15 Buddy wu <[EMAIL PROTECTED]>:
>> I'm so sorry.
>> but i don't find a websphere list. So I try  fortune.
>
> Well, google "Websphere mailing list" and press "I'm feeling lucky",
> or simply go to:
> http://www.websphere.org/websphere/jsp/listserv.jsp
>
> Antonio
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Thanks Antonio

but that list is a empty list. I have tried. it's has nothing in it

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



Re: does tomcat use any kind of parser

2008-07-15 Thread tomcat tom
hi mark



I'm looking for a scenario like;
mod_rewrite and forbidden flag, wherein the server gives the 403 response

pls give me the link



On 7/15/08, Mark Thomas <[EMAIL PROTECTED]> wrote:
>
> tomcat tom wrote:
>
>> does tomcat do header parsing?
>>
>
> Yes.
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Antonio Petrelli
2008/7/15 Buddy wu <[EMAIL PROTECTED]>:
> I'm so sorry.
> but i don't find a websphere list. So I try  fortune.

Well, google "Websphere mailing list" and press "I'm feeling lucky",
or simply go to:
http://www.websphere.org/websphere/jsp/listserv.jsp

Antonio

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




Re: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Buddy wu
I'm so sorry.
but i don't find a websphere list. So I try  fortune.
or is anyone can give me a list of websphere? I searched a lot , but
not found a working one yet

2008/7/15 Peter Crowther <[EMAIL PROTECTED]>:
> Why are you asking this on a Tomcat list?
>
>- Peter
>
>> -Original Message-
>> From: Buddy wu [mailto:[EMAIL PROTECTED]
>> Sent: 15 July 2008 11:43
>> To: Tomcat Users List
>> Subject: is there anyone use websphere. ibm http server? I
>> have a question for it of cluster
>>
>> I installed ihs, plugins and was.
>>  and I create a cluster named testCluster. and in the cluster, I
>> have created two mebers, named s1 ,s2. and the weight set to 2.
>>  when I visite the site. the plugin, send my request to the two
>> servers alternatly. it means when i have 4 request, It send first and
>> third to server s1, and sent sencond and the forth to server s2 . but
>> I want it sent all the request to only one server, like s1.
>>  I don't know where was wrong.
>>  can anyone help me?
>> I wish I can receive answer.
>> thanks a lot
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Connections timing out even with validation query??

2008-07-15 Thread Ken Bowen

Hi All,

I get the feeling this was lost over the weekend when I sent it last  
Saturday.

Does anyone have any thoughts on this?

Using: Tomcat 5.5.26 ; Java 1.5 ; MySQL 5.0.51 running on CentOs 5.0  
hosted in a Virtuozzo container.


The problem: With MySQL connect_timeout = 5, I'm getting timeout  
exceptions (below)  even though I have a

validation query set; Here's my app's META-INF/context-xml:


  type="javax.sql.DataSource"

maxActive="100" maxIdle="30" maxWait="1"
username="xx" password="xx"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/sb_data"
validationQuery="select 1"/>
  type="javax.sql.DataSource"

maxActive="100" maxIdle="30" maxWait="1"
username="xx" password="xx"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/sb_users"
validationQuery="select 1"/>


My understanding is that if a closed connection is detected, it should  
automatically be replaced by a new connection??


The exception trace is below.  Any guidance would be greatly  
appreciated.

Thanks in advance,
Ken Bowen

-
javax.servlet.ServletException: No operations allowed after connection  
closed.Connection was implicitly closed due to underlying exception/ 
error:



** BEGIN NESTED EXCEPTION **

com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:
java.io.EOFException
   at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1934)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:3020)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:2949)
   at com.mysql.jdbc.Statement.executeQuery(Statement.java:959)
   at  
com.mysql.jdbc.DatabaseMetaData.getUserName(DatabaseMetaData.java:5986)
   at  
org 
.apache 
.tomcat 
.dbcp.dbcp.DelegatingConnection.toString(DelegatingConnection.java:104)
   at org.apache.tomcat.dbcp.dbcp.PoolingDataSource 
$PoolGuardConnectionWrapper.toString(PoolingDataSourc

e.java:344)
   at java.lang.String.valueOf(String.java:2615)
   at java.lang.StringBuilder.append(StringBuilder.java:116)
   at  
com.strongbrain.database.DAOBaseUsers.getConnection(DAOBaseUsers.java: 
38)
   at  
com.strongbrain.database.UserManager.getUserFromLogin(UserManager.java: 
276)
   at  
com.strongbrain.auth.LoggedInUser.loggedInFromCookie(LoggedInUser.java: 
59)
   at com.strongbrain.actions.BaseAction.execute(BaseAction.java: 
105)
   at  
org 
.apache 
.struts 
.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
   at  
org 
.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 
224)
   at  
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
   at  
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at  
org 
.apache 
.catalina 
.core 
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
269)
   at  
org 
.apache 
.catalina 
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at  
org 
.tuckey 
.web 
.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
   at  
org 
.apache 
.catalina 
.core 
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
215)
   at  
org 
.apache 
.catalina 
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at  
org 
.apache 
.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java: 
679)
   at  
org 
.apache 
.catalina 
.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java: 
461)
   at  
org 
.apache 
.catalina 
.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
   at  
org 
.apache 
.catalina 
.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
   at  
org 
.tuckey 
.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
   at  
org 
.tuckey 
.web 
.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
   at  
org 
.apache 
.catalina 
.core 
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
215)
   at  
org 
.apache 
.catalina 
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at  
com 
.strongbrain 
.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:42)
   at  
org 
.apache 
.catalina 
.core 
.Applicatio

RE: is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Peter Crowther
Why are you asking this on a Tomcat list?

- Peter

> -Original Message-
> From: Buddy wu [mailto:[EMAIL PROTECTED]
> Sent: 15 July 2008 11:43
> To: Tomcat Users List
> Subject: is there anyone use websphere. ibm http server? I
> have a question for it of cluster
>
> I installed ihs, plugins and was.
>  and I create a cluster named testCluster. and in the cluster, I
> have created two mebers, named s1 ,s2. and the weight set to 2.
>  when I visite the site. the plugin, send my request to the two
> servers alternatly. it means when i have 4 request, It send first and
> third to server s1, and sent sencond and the forth to server s2 . but
> I want it sent all the request to only one server, like s1.
>  I don't know where was wrong.
>  can anyone help me?
> I wish I can receive answer.
> thanks a lot
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



is there anyone use websphere. ibm http server? I have a question for it of cluster

2008-07-15 Thread Buddy wu
I installed ihs, plugins and was.
 and I create a cluster named testCluster. and in the cluster, I
have created two mebers, named s1 ,s2. and the weight set to 2.
 when I visite the site. the plugin, send my request to the two
servers alternatly. it means when i have 4 request, It send first and
third to server s1, and sent sencond and the forth to server s2 . but
I want it sent all the request to only one server, like s1.
 I don't know where was wrong.
 can anyone help me?
I wish I can receive answer.
thanks a lot

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



RE: howto stop crawler and bots according to their user agent string

2008-07-15 Thread Mathias Walter
Hi,

> > I've put a robots.txt in webapps/ROOT, but this file is not
> > read again.
> 
> So, to check, the crawlers are not reading your robots.txt 
> and are crawling your site anyway?

I don't know it exactly. The problem is that the sites are linked from
anywhere. I'm not sure, if a crawler that follows the link
http://mydomain:port/servlet/page.jsp, looks for the robots.txt in the ROOT
webapp.

> 
> > I'd like to stop crawlers by their useragent string.
> 
> What do you mean by "stop"?  Do you want to return 404s or 
> similar when a request with a particular user agent string is 
> received?  If so, the obvious approach would be to write a 

I'd like the same behaviour like in Apache Webserver Deny/Allow rules. Is
there no common way to set this up with Tomcat?

--
Regards,
Mathias

> Filter that is placed in front of your webapp, or a Valve 
> that is placed in the request processing chain, that examines 
> the user agent string in the request and returns an 
> appropriate response if you don't like the agent.
> 
> - Peter
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: howto stop crawler and bots according to their user agent string

2008-07-15 Thread Peter Crowther
> From: Mathias Walter [mailto:[EMAIL PROTECTED]
> How can I prevent crawler and bots according to their user agent?
>
> I've put a robots.txt in webapps/ROOT, but this file is not
> read again.

So, to check, the crawlers are not reading your robots.txt and are crawling 
your site anyway?

> I'd like to stop crawlers by their useragent string.

What do you mean by "stop"?  Do you want to return 404s or similar when a 
request with a particular user agent string is received?  If so, the obvious 
approach would be to write a Filter that is placed in front of your webapp, or 
a Valve that is placed in the request processing chain, that examines the user 
agent string in the request and returns an appropriate response if you don't 
like the agent.

- Peter

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



howto stop crawler and bots according to their user agent string

2008-07-15 Thread Mathias Walter
Hi,

I'm using Tomcat without the Apache Web Server. Now, some bots are crawling
my database driven website.

How can I prevent crawler and bots according to their user agent?

I've put a robots.txt in webapps/ROOT, but this file is not read again. I'd
like to stop crawlers by their useragent string.


--
Mit freundlichen Grüßen,
Mathias Walter


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



Re: does tomcat have a rewrite engine of its own

2008-07-15 Thread Mark Thomas

tomcat tom wrote:

does tomcat have a rewrite engine of its own other then mod_rewrite of
apache?


No. There are filters available to do this. More info is available in the 
archives.



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



Re: does tomcat use any kind of parser

2008-07-15 Thread Mark Thomas

tomcat tom wrote:

does tomcat do header parsing?


Yes.




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



Re: Apache/Tomcat - mod_jk can't receive response from Tomcat

2008-07-15 Thread Rainer Jung

Bajbutovic, Zoran schrieb:
We have Apache and Tomcat running on different servers, using mod_jk. 
From time to time we got the following errors from Tomcat.


[Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (1250)]:
Tomcat is down or network problems. No response has been sent to the
client (yet)
[Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (1449)]:
ERROR: Receiving from tomcat failed, recoverable operation. err=0
[Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (783)]:
ERROR: can't receive the response message from tomcat, network problems
or tomcat is down (200.200.1.1
:8009), err=-1
[Thu Jul 10 16:43:21 2008]  [jk_ajp_common.c (1468)]:
sending request to tomcat failed in send loop. err=0

We were able to simulate the failure, and found out that Tomcat became
unresponsive once the number of threads reach 252. We double check all


You mean the number of threads inside Tomcat?
What are those doing? Try to get a thread dump, look at it, and if you 
find it to difficult, provide it to the list.



our configuration settings but couldn't find anything wrong. Any help
will be greatly appreciated.


Which version of mod_jk are you using?
Which version of httpd and Tomcat are you using?
Which platform?

Usually the messages would indicate, that your webapp inside Tomcat got 
stuck and ate all the available threads. One can easily check with a 
thread dump.



Here are our settings:

AJP connector:

I suggest setting maxThreads in TOMCAT_HOME/conf/server.xml for AJP
connector to slightly higher value than Apache's thread limit


Please see below maxThreads values in  our conf (I don't deleted the
comments lines) 


  

MPM - we use prefork:

##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept
spare
# MaxSpareServers: maximum number of server processes which are kept
spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process
serves


StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   250
MaxRequestsPerChild  1000


Worker.properties:

# list the workers by name
worker.list=app

# 
# First tomcat server
# 
worker.app.port=8009
worker.app.host=SERVER_NAME
worker.app.type=ajp13

# worker "app" use up to 10 sockets, which will stay no more than 10mn
in cache
worker.app.cachesize=10

# worker "app" ask operating system to send KEEP-ALIVE signal on the
connection
worker.app.socket_keepalive=1

# worker "app" want ajp13 connection to be dropped after 5mn == 300
(timeout), 10 min == 600
worker.app.socket_timeout=60
worker.app.cache_timeout=60

#This features has been added in jk 1.2.6 to avoid problem with hung
tomcat's
worker.app.connect_timeout=60

#forwarding to it a request. The parameter is the delay in milliseconds
to wait for the PONG reply.
#This features has been added in jk 1.2.6 to avoid problem with hung
tomcat's
#worker.app.prepost_timeout=60
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
#worker.app.lbfactor=100
#
# END workers.properties


Zoran Bajbutovic 
Email: [EMAIL PROTECTED]



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



does tomcat use any kind of parser

2008-07-15 Thread tomcat tom
does tomcat do header parsing?


does tomcat have a rewrite engine of its own

2008-07-15 Thread tomcat tom
does tomcat have a rewrite engine of its own other then mod_rewrite of
apache?
Tom


Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Rainer Jung

Nikhil schrieb:

[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (607): Service
protocol=HTTP/1.1 method=GET host=(null) addr=149.77.175.155 name=
is3.hyd.deshaw.com port=8080 auth=(null) user=(null) laddr=149.77.160.20raddr=
149.77.175.155

--

If noticed, auth=(null) and user=(null) are being set ... but I wonder why?
Do I have to look somewhere else to make any changes too ?


That means, Apache httpd did not provide any authentication information. 
Looks like your authentication setup doesn't even work inside httpd.


If it does work, the user name should get logged in your access log. 
Usually the default log format for the access log of httpd is "common", 
which contains the authenticated user name in the third column ("%u").


If it isn't shown in the httpd access log, then you need to fix your 
authentication setup in httpd first.


Regards,

Rainer

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



Re: Unsubsribe

2008-07-15 Thread Mark Thomas

Frank Fischer wrote:
 


To unsubscribe, send an e-mail to:

[EMAIL PROTECTED]

and reply to the automated confirmation message.

Mark


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



Re: Tomcat INFO message

2008-07-15 Thread Mark Thomas

w.delacruz wrote:

Hi...when i deploy a java web application in Tomcat 6 i got this error
message, 


Jul 14, 2008 10:30:00 PM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load java.lang.Object.  The eventual following stack
trace is caused by an error thrown for debugging purposes as well as to
attempt to terminate the thread which caused the illegal access, and has no
functional impact.
java.lang.IllegalStateException
...

But the application works anyway, what means that message???...is there
something wrong i'm doing in my web application?


It indicates that after a web application has been stopped, an attempt was 
made to load a class using the classloader for the stopped web application.


In an ideal world, you shouldn't see these. It usually indicates something 
is holding a reference to the classloader that really shouldn't. If you are 
sure all is well, you can ignore it. However, I would check, with a 
profiler, to make sure you haven't got a memory leak.


Mark


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



Unsubsribe

2008-07-15 Thread Frank Fischer
 


Re: tomcat based webmail

2008-07-15 Thread Mikolaj Rydzewski

AngeloChen960 wrote:

Is there a web based email system that can be used with tomcat without the
need of a regular web server like Apache? thanks.
  

http://java-source.net/open-source/web-mail


--
Mikolaj Rydzewski <[EMAIL PROTECTED]>


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



Re: Tomcat 5.5.25 freezes

2008-07-15 Thread Anthony Chamas
We disabled the keep alive connections and our problem is gone...
Thanks guys

Tony

2008/7/4 Johnny Kewl <[EMAIL PROTECTED]>:
> Tony... just another thought...
> I want to change the philosophy a little
>
> If YOU open a stream... ie File f = new File Buffered streams etc...
> Then make absolutey sure you close them...
>
> BUT
>
> If you GET a stream from TC...
> ie
> OutputStream out = response.getOutputStream();
>
> DONT CLOSE IT...
>
> Its an issue we've had, but I didnt see it as a bug, just a feature ;)
> ie let TC decide when "it" wants to close its own streams.
>
> The theory I have on this is that if you bang the stream shut before all the
> data is sent... you get the browser waiting for TC problem... and it only
> shows itself under load... it seems.
>
> So its a little contradiction... close only YOUR streams... in theory this
> is wrong I think, but TC checks it own buffers and will close them at some
> stage... naturally the stream must not be in a global scope, or TC wont be
> able to release it it doesnt feel good, but its worth a try...
>
> Ok... now I'm fresh out of guesses ;)
>
> ---
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
While I am at it, I found this interesting information from the jk_logs:

[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_uri_worker_map.c (589):
Attempting to map URI '/examples/jsp/rheaders.jsp' from 0 maps
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_uri_worker_map.c (589):
Attempting to map URI '/examples/jsp/rheaders.jsp' from 0 maps
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (2092): Single
worker (default) configuration for /examples/jsp/rheaders.jsp
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (2111): Into
handler jakarta-servlet worker=default r->proxyreq=0
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_worker.c (114): found a
worker default
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_worker.c (321):
Maintaining worker default
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] jk_worker.c (290): Found
worker type 'ajp13'
[Tue Jul 15 12:57:40 2008] [20026:0001] [debug] mod_jk.c (607): Service
protocol=HTTP/1.1 method=GET host=(null) addr=149.77.175.155 name=
is3.hyd.deshaw.com port=8080 auth=(null) user=(null) laddr=149.77.160.20raddr=
149.77.175.155

--

If noticed, auth=(null) and user=(null) are being set ... but I wonder why?
Do I have to look somewhere else to make any changes too ?

On Tue, Jul 15, 2008 at 12:39 PM, Nikhil <[EMAIL PROTECTED]> wrote:

> I am still not able to get this straight. Looking at the server.xml tells
> me there is a userDatabase resource that is looked which I may need  to
> comment? Could you please confirm?
> I am posting my server.xml (tomcat-6.0.16) for thoroughness so I do not
> miss any points here : Please let me know if I need to make any changes to
> configuration file.
>
> Thanks, Nikhil
>
> -
> 
> 
> 
> 
>
>   
>SSLEngine="on" />
>   
>   
>   
>/>
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
>
>   
>   
> 
>type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved"
>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>   pathname="conf/tomcat-users.xml" />
>   
>
>   
>   
>
> 
> 
>
>
> 
> connectionTimeout="2"
>redirectPort="8443" />
> 
> 
> 
> 
>
> 
>  tomcatAuthentication="false" redirectPort="8443" />
>
>
> 
>
> 
> 
>
>   
>   
>
>   
>   
>
>   
> resourceName="UserDatabase"/>
>
>   
>unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
> 
> 
>
> 
> 
>
>   
> 
>   
> 
> =
>
>
>
>


-- 
Nikhil

Google is Great !


Re: tomcat, apache with mod_jk and mod_auth_kerb

2008-07-15 Thread Nikhil
I am still not able to get this straight. Looking at the server.xml tells me
there is a userDatabase resource that is looked which I may need  to
comment? Could you please confirm?
I am posting my server.xml (tomcat-6.0.16) for thoroughness so I do not miss
any points here : Please let me know if I need to make any changes to
configuration file.

Thanks, Nikhil

-





  
  
  
  
  
  
  

  
  


  

  
  





















  
  

  
  

  
  

  
  







  

  

=