IIS + Tomcat jk2 uri mapping

2006-12-08 Thread Low Kwok Leong
Hi all, We are using IIS5.0 as a web server and Tomcat 5.5.17 as application server, and jk2 to redirect request from IIS to Tomcat. Our application is hosted on www.mydomain.com which will default to www.mydomain.com/index.jsp. We also host AWStats for this domain as a virtual directory in IIS

Re: mod_jk failover and preferring localhost

2006-12-08 Thread Rainer Jung
daneturner schrieb: > > Rainer Jung-3 wrote: >> Short answer for your question: >> >> the two lines you tried to use as a distance configuration both have >> typos: >> >>> workers.localhost.distance=10 >>> workers.localhost.distance=20 >> workers -> worker >> localhost -> ritin (once) >> > > Ouch

Re: Web Service Request not passing through Mod_Jk

2006-12-08 Thread Rainer Jung
Hello, Peter Neu schrieb: > Hello, > > I have a strange problem with mod_jk. Until now I never had trouble with > mod_jk but lately I need to pass web service requests through to an Axis > server running on tomcat (5.5.9). So what's the problem? There is no line in your post, telling us what th

Re: IIS + Tomcat jk2 uri mapping

2006-12-08 Thread Rainer Jung
mod_jk2 is not supported any more. Actually this decision was done quite some time ago. Most of the features of mod_jk2 have been ported to mod_jk, which is still fully supported. I don't know enough about mod_jk2, but in mod_jk you would prefix your map with an exclamation mark "!" to make an exc

AW: Web Service Request not passing through Mod_Jk

2006-12-08 Thread Peter Neu
Hi, the problem is that a web service request coming from external client fails with a timeout exception while the same client on the proxy host works. I only see the java.net.SocketTimeout exception in my java stack trace. My assumption is that the tomcat server does receive nothing at all becau

Re: AW: Web Service Request not passing through Mod_Jk

2006-12-08 Thread Rainer Jung
Under Linux you can use tcpdump to sniff network packets. It looks like your mod_jk is pretty old? The log messages don't fit to newer versions. We improved logging and overall maintainability in the meantime. Please switch to 1.2.19 to make debugging easier. Regards, Rainer Peter Neu schrieb:

AW: AW: Web Service Request not passing through Mod_Jk

2006-12-08 Thread Peter Neu
Wow, I was lucky there was a binary version of mod_jk for my httpd version. Here is the new log output. I can send it to you directly as attachment if you like. I think it would improve readability. In the meantime I'll see what I can do with tcpdump. Cheers, Pete map_uri_to_worker::jk_uri_wo

AW: AW: Web Service Request not passing through Mod_Jk

2006-12-08 Thread Peter Neu
Tcpdump gives me a lot of output. I redirected the output to a file. But I can't find any valuable information in it. Do you know what to look for? Cheers, Pete > -Ursprüngliche Nachricht- > Von: Peter Neu [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 8. Dezember 2006 10:39 > An: 'Tomcat

How to restrict number of active logins/sessions to one per user

2006-12-08 Thread Edmon Begoli
Hi, Can someone please suggest an effective way to restrict number of sessions/logins allowed per user. This is a security requirement imposed by the client I currently deal witt. I would like for some Tomcat specialists to suggest some intelligent solution for this. Thanks in advance! Thank

Re: How to restrict number of active logins/sessions to one per user

2006-12-08 Thread Mikolaj Rydzewski
Edmon Begoli wrote: Can someone please suggest an effective way to restrict number of sessions/logins allowed per user. Java Web Parts and a filter similiar to http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/SessionLimiterFilter.html -- Mikolaj Rydzewski <[EMAIL PROTECTED]>

Re: How to restrict number of active logins/sessions to one per user

2006-12-08 Thread Sebastian Hennebrueder
If your intention is Brute Force Attach use Apache Web server, you might try mod_evasive to protect your login forms If you want to keep track, if the user is allready using another session, you might save the information in the database and check for each login if there is an entry in the db and

Re: Tomcat & Log4j

2006-12-08 Thread Dirk Wierdemann
Hi Pierre, I recently ran into the same error. After debugging the application in Eclipse, I saw which package in the classpath led to the error and could savely delete it from CP. Badabing, error gone. Check if it brings you further. Cheers, Dirk Pierre Goupil wrote: > > Hi ! > > No, stil

ISAPI_redirect, IIS6.0 vs TomCat 5.0.28 - multiple websites!

2006-12-08 Thread Florian Nahnsen
Hi everybody, we're successfully running IIS6.0 connected to a TomCat 5.0.28 with an ISAPI_redirect - but just on the default website. Now we want to create some more websites, but it does not seem to work. I deleted the ISAPI filter from the default website and put it to the "main" webfolder (whe

Re: AW: Web Service Request not passing through Mod_Jk

2006-12-08 Thread Martin Gainty
Peter please ask on axis-users Martin --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, propr

Multi processor issue

2006-12-08 Thread Marziou, Gael
Hi, As a preamble, let me say that I am not complaining about Tomcat (as the problem root cause is uncertain) and I don't expect much assistance as we are happy with our workaround. However, our experience could help others or someone may have other ideas. We have recently switched a stable web a

Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread fredk2
Hi, although I have not tested this personally, but I was told that mod_proxy (_ajp) does not have the Auto Flush option that you can set with mod_jk and thus creates problem for streaming applications. I wonder if others came accross this problem ? Rgds - Fred Hassan Schroeder-2 wrote: > >

Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread Hassan Schroeder
On 12/8/06, fredk2 <[EMAIL PROTECTED]> wrote: although I have not tested this personally, but I was told that mod_proxy (_ajp) does not have the Auto Flush option that you can set with mod_jk and thus creates problem for streaming applications. You might want to look at the "flushpackets" par

RE: Multi processor issue

2006-12-08 Thread Peter Crowther
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > So, I don't believe it's a Tomcat, I would rather think to an H/W, or > JRE or OS issue. Fascinating - partly because I may hit the same issue soon and partly to log it on the list for the future, could you tell me 32-bit or 64-bit OS, service pac

Client request times out

2006-12-08 Thread Richard Doust
I have a problem with a servlet running longer than 5 minutes. The client's browser is delivered an error response from somewhere on the server in an Apache/JBoss/Tomcat stack at the 5 minute mark. Does anyone know what properties/attributes in what configuration files might allow the servlet

RE: Multi processor issue

2006-12-08 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: Multi processor issue > > We have recently switched a stable web application from JRun > 4 to Tomcat 5.5.20 on Windows 2003 + Sun's JRE 1.5.0_08, > running some testing for months, but when we moved to > production environment we immedi

RE: Client request times out

2006-12-08 Thread Robert Harper
I think the bigger question is why does it take that long to run? I can't think of too many people that are willing to wait that long for information. Personally I'd give you 30 seconds and then I'll never use something that slow again. If you are accessing data, try adding indexes or a data redes

Re: Multi processor issue

2006-12-08 Thread Martin Gainty
Good Morning Gael- which VM are you using for this test? Thanks, Martin -- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain

RE: Multi processor issue

2006-12-08 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Multi processor issue > > which VM are you using for this test? Try actually reading the message: "We have recently switched a stable web application from JRun 4 to Tomcat 5.5.20 on Windows 2003 + Sun's JRE 1.5.0_08" - Chuck THI

Re: Client request times out

2006-12-08 Thread Richard Doust
Well, it's a complicated report used by a purchaser to generate a purchase order based on need for a product dependent on customer demand. It's accessing a LOT of data. That's not to say that I can't speed it up with indexes, or break it up into a request that's passed off to a server proce

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
Thanks Chuck for your reply, I only cited part of your message where I could follow up. > Within Tomcat, request objects are normally processed by a single thread > at a time, yet you note that two threads are accessing this particular > request - where did the second one come from? Both wer

Re: Multi processor issue

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gael, >> Within Tomcat, request objects are normally processed by a single >> thread at a time, yet you note that two threads are accessing this >> particular request - where did the second one come from? > > Both were web threads and error did occur

Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread fredk2
ooops - I need to spend more time reading the fine manual :-) tx for the reminder :) Hassan Schroeder-2 wrote: > > On 12/8/06, fredk2 <[EMAIL PROTECTED]> wrote: > >> although I have not tested this personally, but I was told that mod_proxy >> (_ajp) does not have the Auto Flush option that y

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
> could you tell me 32-bit or 64-bit OS, service pack levels, and what the hardware is? Peter, I'm not sure it will help you, the only advice I can give you is to test on same configuration as your future production environment. We knew it from the beginning but were not listened. Windows 200

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
> Can you post the stack trace for that IllegalStateException? Sure but that's only one of the symptoms we got. I don't remember if the stack traces below were taken on 5.5.18 or 5.5.20 after we upgraded but as far as I know this part of the code was not changed. java.lang.IllegalStateException:

RE: Multi processor issue

2006-12-08 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > com.hp.swift.portal.state.HttpEventContextObject.getParameter( > HttpEventContextObject.java:64) This looks suspicious - perhaps this portal code is the source of the second thread. - Chuck THIS COMMUNIC

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
This is our code and there's no threading here. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 6:31 PM To: Tomcat Users List Subject: RE: Multi processor issue > From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi p

Re: Multi processor issue

2006-12-08 Thread Leon Rosenberg
looks like Request.getParameterMap() is called twice. The first call locks the request, the second fails. what exactly does your com.hp.swift.portal.state.HttpEventContextObject.getParameter(HttpEventC ontextObject.java:64) ? Could it be that two threads passes through this codepiece concurren

Re: Multi processor issue

2006-12-08 Thread Leon Rosenberg
ApplicationHttpRequest.parseParameters isn't synchronized... thats probably the source of your evil. leon On 12/8/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: looks like Request.getParameterMap() is called twice. The first call locks the request, the second fails. what exactly does your com.h

Relam

2006-12-08 Thread Asare Samuel
HI I have just deployed my web application to a Web host. When ever i try to access the protected page I seem to get the message: HTTP Status 403 - Access to the requested resource has been denied It all worked fine in the development environment-netbeans. I constructed the form

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
First, to clarify in my message, I did put 2 stack traces of 2 independent errors. Tomcat does not synchronize before locking the map but that should not be an issue because the request is guaranteed to be processed by only one thread. HttpEventContextObject.getParameter() does just extract the p

Re: Multi processor issue

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > ApplicationHttpRequest.parseParameters isn't synchronized... > thats probably the source of your evil. That should not really be an issue... the real problem is that it appears that he has two threads accessing this code

RE: Multi processor issue

2006-12-08 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > This is our code and there's no threading here. Does the full stack trace show where the threads originated? You appear to have given us only a partial of each error. Is the request object stored in any s

RE: Multi processor issue

2006-12-08 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > Tomcat does not synchronize before locking the map but that should not > be an issue because the request is guaranteed to be processed by only > one thread. But the evidence seems to show two threads are man

Re: tomcat5.5 service not find jre1.5.0, but startup.bat does

2006-12-08 Thread sb4
Len Popp gmail.com> writes: > > Run the Configure Tomcat program (tomcat5w.exe). Click on the Java > tab. It'll show you what JVM it's using. If it's wrong, turn off "Use > default" and select the correct JVM. Thanks, that solved it. I wasn't clued in to tomcat5w.exe. I'm curious about how To

Re: Multi processor issue

2006-12-08 Thread Leon Rosenberg
On 12/8/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > Tomcat does not synchronize before locking the map but that should not > be an issue because the request is guaranteed to be processed by only > one

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
> Does the full stack trace show where the threads originated? > You appear to have given us only a partial of each error. OK, see below. > Is the request object stored in any session or global structure? No. > Could another thread have found it there and picked it up erroneously? No. > D

RE: Multi processor issue

2006-12-08 Thread Marziou, Gael
> But the evidence seems to show two threads are manipulating the same > request, otherwise you wouldn't get the error on the ParameterMap. > Does a full thread dump show any threads that aren't part of the set > started by Tomcat? > either that, or a Request is reused before recycle() has be

RE: Tomcat and OCSP

2006-12-08 Thread Mark Claassen
Now that I see Tomcat 6.0 is on it's way, I was wondering if OCSP is going to be included? This is being required by more and more people these days (like the US government). If there are no plans to include it yet, how can this issue be escalated? I see that OCSP support is bundled into the new

Re: Multi processor issue

2006-12-08 Thread Martin Gainty
the affinity 'trick' is a replacement dll for the 80 runtime stock libraries The individual most familiar with interfacing to the runtime is mladen turk I would make all attempts to ping him on the solution As a comparison between the 2 dlls Here are the binary characteristics of the stock msvcr

Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread dfelicia
>Not true; see Interesting. I'll need to look into mod_proxy, further. But what about performance? I've not tested it in a long while, but last I tried it was slower that mod_jk. BTW, does Apache 2.2's new mod_proxy_ajp support en

RE: tomcat5.5 service not find jre1.5.0, but startup.bat does

2006-12-08 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of sb4 > Subject: Re: tomcat5.5 service not find jre1.5.0, but startup.bat does > > I'm curious about how Tomcat finds the "default" jvm in the > first place. Tomcat proper doesn't know, but I believe the service installer looks in the registry:

AJP Logging

2006-12-08 Thread Fisher, Mitchell L
I apologize for asking such a basic question here, but how is logging configured for Tomcat's AJP connector? My Tomcat Status page shows an error count of one for jk-8009, and I hope turning logging will show the problem. -Mitch ---

Re: AJP Logging

2006-12-08 Thread Mark Thomas
Fisher, Mitchell L wrote: > I apologize for asking such a basic question here, but how is logging > configured for Tomcat's AJP connector? > > My Tomcat Status page shows an error count of one for jk-8009, and I hope > turning logging will show the problem. > When starting a new thread (ie se

RE: Multi processor issue

2006-12-08 Thread JiaDong Huang
>From the description of the symptom - months' testing experience, we could pretty much confirm that it is a MP issue, not a MT issue. Chasing the stack dump of Java may not get to any significant point. If you try to fix the MP specific issue like this at the high level like Tomcat/JAVA app code,

Re: Client request times out

2006-12-08 Thread Bill Barker
"Richard Doust" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, it's a complicated report used by a purchaser to generate a > purchase order based on need for a product dependent on customer demand. > It's accessing a LOT of data. That's not to say that I can't speed it up

Re: Multi processor issue

2006-12-08 Thread Bill Barker
After the request parameters are parsed, Tomcat makes it's parameter map read-only (i.e. "locked"). I suspect that this is the source of your problems. Having said that, if you really do have two threads accessing a Request instance, then you really really need to re-design your application ;

Re: AJP Logging

2006-12-08 Thread Bill Barker
Depending on whether you are using APR or not, the category is "org.apache.jk" (not using APR), or "org.apache.coyote.ajp" (using APR). The exact directive depends of if you are using log4j or Juli. "Fisher, Mitchell L" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I apologize for

Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread Bill Barker
"dfelicia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >>Not true; see >> > > Interesting. I'll need to look into mod_proxy, further. But what about > performance? I've not tested it in a long while, but last I tr

Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread dfelicia
>Tomcat currently does not support encryption. Huh? Sure it does. I think you mean AJP doesn't support encryption. -- View this message in context: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-tf2776640.html#a7769280 Sent from the Tomcat - User mailing list arch

How to configure multiple context path for a webapps

2006-12-08 Thread Stanley Yue
Hi all: I have one webapps named "webapp1", with context path "/webapp1". This webapps has one servlet with name "TestServlet". I want to be able to access this servlet through the following urls: http://host/webapp1/TestServlet, and http://host/r/TestServlet Is it possible to configure "webapp

RE: Multi processor issue

2006-12-08 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker > Subject: Re: Multi processor issue > > After the request parameters are parsed, Tomcat makes it's > parameter map read-only (i.e. "locked"). This is true, but it's not a simple case of someone calling put() after locking the Param