Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
Hi! and good morning (but probably we 're on different continents) I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll go

Re: Tomcat cluster and redirecting to the same address

2006-03-17 Thread Peter Rossbach
We mark all SessionID with a node marker! Setup with Engine jvmRoute=node1 The mod_jk or mod_proxy_ajp make then the correct routing. The algo extract the worker name from cookie or url rewrite parameter jsessionid. Read Cluster Doc and mod:jk doc

Re: Tomcat clustering

2006-03-17 Thread Peter Rossbach
Yes and no! Speak with your network admin that the multicast send to other global machine. Not working over normal internet ways! I thing clustering is made for local network failover. What you need are cluster domains. Gropus of clusters with a separate loadbalancer to route request

mod_jk missing UTF-8 query (GET)

2006-03-17 Thread hui
look at this: http://www.nxnx.net/mix/%E4%BD%A0%E5%A5%BD and http://www.nxnx.net:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD tomcat standalone is fine, but through mod_jk, it seems missing the UTF-8 param, I tried: = Connector port=8009 enableLookups=false

Re: Tomcat 5.0.28 Clustering and Load Balancing

2006-03-17 Thread Peter Rossbach
Many thanks! But the current tomcat 5.5 documentation find here http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html I thing it exists many good reasons to migrate from 5.0 to tomcat 5.5.16 if really using clustering today :-) Regards Peter Am 16.03.2006 um 21:51 schrieb Filip Hanik -

Re: mod_jk missing UTF-8 query (GET)

2006-03-17 Thread hui
it should be: UTF-8%E4%BD%A0%E5%A5%BD你好. == with the query: http://www.nxnx.net:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD but through mod_jk i can only get: === UTF-8 T__T

Re: How to retrieve an user Principal?

2006-03-17 Thread Tremal Naik
2006/3/16, Mladen Turk [EMAIL PROTECTED]: Yes. Servlet spec 2.4 Thank you very much. Persons like you make me loosing faith in the Open Source. I think I'll call the guys at IBM... -- TREMALNAIK - To unsubscribe, e-mail:

Re: How to retrieve an user Principal?

2006-03-17 Thread Mladen Turk
Tremal Naik wrote: 2006/3/16, Mladen Turk [EMAIL PROTECTED]: Yes. Servlet spec 2.4 Thank you very much. Persons like you make me loosing faith in the Open Source. I think I'll call the guys at IBM... Go and troll somewhere else. I told you that JBoss uses thread local storage. 1. Request

Re: How to retrieve an user Principal?

2006-03-17 Thread Tremal Naik
2006/3/17, Mladen Turk [EMAIL PROTECTED]: Go and troll somewhere else. sorry, I thought you where pissing on me. I didn't understand your real intentions. I will manage the request to get what I'm looking for. Thanks, -- TREMALNAIK

Re: Upgrade problem to Tomcat 5.5.16, login with Realm fails

2006-03-17 Thread Joacim Turesson
Thank you for the help! The problem was that I was using '*' as role name in web.xml, as you probobly guessed. Best Regards Joacim Turesson Velpi wrote: I'm currently running my webapplication using Tomcat 5.5.12 and it works great. When I upgrade to Tomcat 5.5.16 I'm no longer able to

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! and good morning (but probably we 're on different continents) I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! and good morning (but probably we 're on different continents) Assiming you're in italy, we're in the same country.. I don't undertand the last pos where you say. I had the

Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
Hi! again!! Of course I'm Italian, but at moment I'm living in Spain for work, so just the same continent .! At the end I will choose the jsp solution with taglib (I'm gonna write my permission taglib now!) 'cause reference pages in database can be too much work and in some case I have permissions

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! again!! Of course I'm Italian, but at moment I'm living in Spain for work, so just the same continent .! At the end I will choose the jsp solution with taglib (I'm gonna write my permission taglib now!) 'cause reference pages in

Re: Deadlock - Out of Threads - Strange Exception - OutOfMemory - Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?

2006-03-17 Thread Leon Rosenberg
This is called thread hi-jacking :-) However, without knowing anything about your jdo implementation I can't say if org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:645) - waiting to lock 0x5b775de0 (a and TP-Processor17 daemon prio=1

keeping same session via apache2 mod_jk2 and tomcat5

2006-03-17 Thread Vahid Hedayati
Hi All. Have been looking for a few days now for a fix for this one issue that I just cannot get around.. Basically If I run http://www.greenlightproductions.co.uk/servlets/SessionExample The session ID keeps changing if you refresh the page (same goes for all other servlet code I been using

SSL/CGI variables question

2006-03-17 Thread Stefan Zasada
Apologies if this has been asked before: I'm trying to run a perl cgi script in a standalone tomcat container with ssl turned on. With the script running under apache, an environment variable (SSL_CLIENT_S_DN) is set with the DN from the connecting client's certificate. Is is possible to pick

Re: Tomcat clustering

2006-03-17 Thread Filip Hanik - Dev Lists
actually, the answer is no, even if you enable multicast over WAN, you are dealing with some serious security issues, cause the the transmission of the data is not encrypted and you are facing a serious liability. For TC6 we have separated out the comm protocol from the replication logic, and

Re: getting error with native library under Sun Solaris

2006-03-17 Thread Mladen Turk
Stephan Faust wrote: Hi! I use Tomcat 5.5.15 on Sun Solaris 10 with tomcat native library. Address ist already in use... This was fixed with 5.5.16, so use the 5.5.16 and tomcat-native 1.1.2 Regards, Mladen. - To

AW: getting error with native library under Sun Solaris

2006-03-17 Thread Stephan Faust
Hi! Sorry, but the error is still in tomcat 5.5.16 and tomcat-native 1.1.2. Regards, Stephan -Ursprüngliche Nachricht- Von: Mladen Turk [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 17. März 2006 14:17 An: Tomcat Users List Betreff: Re: getting error with native library under Sun

RE: Tomcat clustering

2006-03-17 Thread Tim Lucia
So, wouldn't the answer really be Yes it will work (technically it is feasible), with several caveats, namely, multicast is typically not enabled on WANs, and the transmission protocol for replication is not secure. It boils down to a network problem - and if you had a secure VPN over WAN which

Re: AW: getting error with native library under Sun Solaris

2006-03-17 Thread Mladen Turk
Stephan Faust wrote: Hi! Sorry, but the error is still in tomcat 5.5.16 and tomcat-native 1.1.2. Right. I committed the fix yesterday. See: http://cvs.apache.org/viewcvs.cgi?rev=386278view=rev Just wondering, since you have TC 5.5.16 and native 1.1.2 will you be willing to check the most

Mod JK Connector Error Codes ?

2006-03-17 Thread Neil Sherman
I have Apache(2.0.55) and Tomcat (5.5.12) connected via the Mod JK (1.2.15) connector, setup and running on a Linux RedHat Enterprise Edition. On startup of Apache I get the following error in my Mod_JK.log file: [Fri Mar 17 13:51:46 2006] [error] init_jk::mod_jk.c (2370): Initializing

Re: Problem Starting Tomcat

2006-03-17 Thread Marco Aurélio Seraphim da Silva
Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. I'm using it on Windows XP, and tomcat

Re: installing admin package

2006-03-17 Thread erico
Ok Chuck It seems that I've made too much changes in my tomcat It did what you said and now it's working Thanks for your help []s Érico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Mod JK Connector Error Codes ?

2006-03-17 Thread Neil Sherman
Correct me if I am wrong but I believe I am using the JK module and not the JK2 module I am using version 1.2.15, and believe this is the version recommended by Apache for a production environment ? There is definitely no SHM file located in my logs directory. What does SHM stand for ? And

RE: Mod JK Connector Error Codes ?

2006-03-17 Thread Vanessa Campos
Neil, That's what I was trying to tell you. There is no way to set shm file on mod_jk. It's default location is on apache log directory. Did you check you conf files to see if there is any where a missing / on var/www/tomcat/ROOT? I thought the correct string was /var/www/tomcat/ROOT... Then, if

Re: Problem Starting Tomcat

2006-03-17 Thread Steve Ochani
On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see

Re: Threads

2006-03-17 Thread Leon Rosenberg
On 3/17/06, Morten Andersen [EMAIL PROTECTED] wrote: I need a thread that will write some emails and stuff every night. why not using scheduler? Can this be started from within tomcat. (I'm thinking about starting it from loadOnStartup) you can start a thread from nearly everywhere, just

view context files

2006-03-17 Thread erico
I would like to configure my context to list it´s structure trough tomcat manger . If I copy some index.hmtl or index.jsp and choose my context in manager it works When I delete this index file I receive a message saying that my context is not available.

RE: Mod JK Connector Error Codes ?

2006-03-17 Thread Neil Sherman
My httpd.conf file has a bunch of include statements at the bottom of the file (so that I can keep each virtual hosts configuration separate) e.g. ... Include conf/siteA.conf Include conf/siteB.conf Include conf/siteC.conf ... Each of these include files looks like: VirtualHost 1.1.1.1:80 #

Re: Problem Starting Tomcat

2006-03-17 Thread Nenad Bosanac
Well I had same problem with Tomcat and I use Netbeans 5. I solved this problem by stopping server in NetBeans 5 another Runtime window in NetbBeans 5,and now everything working fine. Yes sometimes i got again this situation but i solved again on the same problem. It happens that Tomcat can`t

Best eclipse plugin for tomcat development

2006-03-17 Thread Dola Woolfe
Hi, Following the advice of the mailing lists members, I'm trying to work with Eclipse. I've learned that to do tomcat development I need to download an appropriate plugin and that there are seveal to choose from. Can someone recommend a good one (or is there a best one, or the most common one)?

Re: Best eclipse plugin for tomcat development

2006-03-17 Thread Bruno Georges
Dola There is a good choice on the market, I have used 2 with success: MyEclipseIDE : http://www.myeclipseide.com/ and JBoss Eclipse IDE : http://www.jboss.com/products/jbosside With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000

RE: Mod JK Connector Error Codes ?

2006-03-17 Thread Vanessa Campos
Neil, I found this on http://www.mail-archive.com/dev@httpd.apache.org/msg31214.html: Re: Your opinion on some logs - Apache/mod_jk/Tomcat Pascal Alberty Thu, 09 Mar 2006 00:35:59 -0800 1. Apache - mod_jk.log [Wed Mar 08 15:34:40 2006] [error] jk_child_init::mod_jk.c (2312): Attachning

Re: Threads

2006-03-17 Thread Filip Hanik - Dev Lists
yes, Quartz, is a nice open source scheduler. best place to start it, is in an init method of a servlet. Filip Leon Rosenberg wrote: On 3/17/06, Morten Andersen [EMAIL PROTECTED] wrote: I need a thread that will write some emails and stuff every night. why not using scheduler?

RE: Mod JK Connector Error Codes ?

2006-03-17 Thread Neil Sherman
Excellent!! That fixed it! Many thanks for your time. May I ask what you searched for and where in order to find that article ? As I have been searching all afternoon with no luck! Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:51 To:

RE: Best eclipse plugin for tomcat development

2006-03-17 Thread Mauricio Fernandez A.
Hi Dola I´m using this one http://www.sysdeo.com/eclipse/tomcatplugin and it works very well. I´m developing on Windows XP but I didn´t test it on linux, maybe it works fine too, perhaps somebody can tell us more info for using it on linux. Mauricio Fernández A. Ingeniero de Sistemas

RE: Best eclipse plugin for tomcat development

2006-03-17 Thread Pitre, Russell
http://www.myeclipseide.com/ +1 -Original Message- From: Bruno Georges [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 11:49 AM To: Tomcat Users List Cc: Tom Cat Subject: Re: Best eclipse plugin for tomcat development Dola There is a good choice on the market, I have used 2

TomCat + mod_jk performance

2006-03-17 Thread Vanessa Campos
Hi, My server is a bit 'slow'. It takes me a while to receive my pages when I hit the site. How fast is tomcat when using apache + mod_jk? Is there any performance test I can apply on my server to check if it is tomcat or my badwidth? Thank you Vanessa Campos [EMAIL PROTECTED] ICQ 35381281

RE: NT Service and JRockit

2006-03-17 Thread Pitre, Russell
That's was the first path I tried and I just tried it again just to make sure I didn't miss it. Still no luck. This is my first attempt working JRockit and tomcat and not going swell so far. I've heard good things with JRockit's performance vs. Sun and I want to see for myself in my

Re: TomCat + mod_jk performance

2006-03-17 Thread Alex Jalali
If you have lots of static html pages then apache is much better at handling them. For other dynamic content like .jsp tomcat has to handle the requests. So thats why you would have apache + the mod_jk connector. If all your files are jsp and you don't need static page serving or other features of

JK Question - Serve all but one context

2006-03-17 Thread Steele, Aaron
I have a question about the JK isapi filter. I am trying to have IIS redirect all but one url (context) to tomcat # uriworkermap.properties - IIS # # This file provides sample mappings for example wlb # worker defined in workermap.properties.minimal # The general syntax for this file is: #

Supporting maximum number of keep-alive connections

2006-03-17 Thread Rajeev Jha
Hi I would like to try out tomcat for new my application. I have used tomcat for quite some time, but the nature of new application is very different from the traditional request-response model. We want to build an application that supports about 1024 keep-alive connections per machine.(2 GB, x86

RE: NT Service and JRockit

2006-03-17 Thread Pitre, Russell
That's what I ended up doing. I was also taking a look at the installer at the same time for sh$%! and giggles! -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 1:41 PM To: Tomcat Users List Subject: Re: NT Service and JRockit On

Re: Problem Starting Tomcat - Now works

2006-03-17 Thread Marco Aurélio Seraphim da Silva
Yes, that was the problem the NetBeans was using the same port... I had to use windows registry to remove the program, the was no evidence of it... Thanks all, Marco - Original Message - From: Nenad Bosanac [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent:

RE: TomCat + mod_jk performance

2006-03-17 Thread Alex Jalali
Interesing article. I've done more basic tests with tomcat 5.0.19 and jdk 1.4.2 and apache 2.0.?? apache was faster. Maybe the problem is when I was testing static pages, it wasn't tomcat as stand-alone vs. apache it was apache vs. tomcat + connector + apache also I run the test locally on a

mod_jk specific configuration problem

2006-03-17 Thread Christian Lete
Hello everyone, I have come accross a problem, I need the following setup apache + mod_jk, but I'd need 2 sets of worker.properties, one per each virtual host, ie, virtual host 1 would forward requests to Tomcat A and Tomcat B, and virtual host 2, would follow the requests to Tomcat C and

Re: mod_jk specific configuration problem

2006-03-17 Thread Ryan McDonald
apache + mod_jk, but I'd need 2 sets of worker.properties, one per each virtual host, ie, virtual host 1 would forward requests to Tomcat A and Tomcat B, and virtual host 2, would follow the requests to Tomcat C and Tomcat D. I have noticed that the JkWorkersFile directive cant be used

RE: TomCat + mod_jk performance

2006-03-17 Thread Mark Eggers
There are lots of reasons to run Apache in front of Tomcat, and lots of reasons not to. This just depends on your use cases and web site. At any rate, here's one way to find out in your case if the Apache -- ajp13 -- Tomcat process is your bottleneck. 1. Get jmeter at

Re: Best eclipse plugin for tomcat development

2006-03-17 Thread Leon Rosenberg
Being in this topic, I'm searching for eclipse 3 plugin similar to solareclipse under eclipse 2. A simple yet powerful jsp/html/xml editor without jsp compilation, tomcat connection or anything. Just a beautifier. Any ideas? Leon On 3/17/06, Pitre, Russell [EMAIL PROTECTED] wrote:

Re: Supporting maximum number of keep-alive connections

2006-03-17 Thread David Rees
On 3/17/06, Leon Rosenberg [EMAIL PROTECTED] wrote: But pushing dynamic content with squid? I doubt it will work. However, squid is using select reads instead of tomcat's blocking reads, and could reduce the number of threads, but I have seriously doubts with keepalives, have you actually

Re: TomCat + mod_jk performance

2006-03-17 Thread David Rees
On 3/17/06, Alex Jalali [EMAIL PROTECTED] wrote: Although i do have this question about non-static pages. Which do you think is faster? let say you have 1GB ram and 2 CPUs. running a) apache + 1 tomcat or b) apache + 2 tomcat in cluster via mod_jk? would having 2 JVM on the same server that

Re: Supporting maximum number of keep-alive connections

2006-03-17 Thread Leon Rosenberg
On 3/17/06, David Rees [EMAIL PROTECTED] wrote: On 3/17/06, Leon Rosenberg [EMAIL PROTECTED] wrote: Have you tried it? ;) Yeah, and it didn't add any performance. However it helped to keep the thread count low. But it was on 2.4.x kernel, where threads were an issue, on 2.6.x its

Re: mod_jk specific configuration problem

2006-03-17 Thread Christian Lete
Thanks for the help, its working now ;) Cheers Christian Ryan McDonald wrote: apache + mod_jk, but I'd need 2 sets of worker.properties, one per each virtual host, ie, virtual host 1 would forward requests to Tomcat A and Tomcat B, and virtual host 2, would follow the requests to

Re: Deadlock - Out of Threads - Strange Exception - OutOfMemory - Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?

2006-03-17 Thread Roger Keays
Hi Leon, Thanks for your tip about the NPTL threads. I tried upgrading to linux 2.6.8 and glibc 2.3.5, but the problem remains :( I've studied a number of stack traces and the locking seems fine - there is evidence of cyclical deadlock. The problem is that a whole lot of threads (including

Re: Deadlock - Out of Threads - Strange Exception - OutOfMemory - Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?

2006-03-17 Thread Roger Keays
I've studied a number of stack traces and the locking seems fine - there is evidence of cyclical deadlock. The problem is that a whole lot of threads (including the ones holding the locks) are listed as 'waiting for monitor' but I can't see why. I found out that it was the garbage

Re: org.apache.ajp.Ajp13 not used?

2006-03-17 Thread Bill Barker
KARNATI, SRINIVASA R [AG/1000] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Contrary to my beliefs org.apache.jk.common.MsgAjp has the code to increase request header size (buffer size) for AJP/1.3 rather than org.apache.ajp.Ajp13. In fact, I was searching for a tomcat's

Re: Tomcat clustering

2006-03-17 Thread Filip Hanik - Dev Lists
David Rees wrote: On 3/17/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: You conveniently left out a crucial part of Tim's note which would address any security concerns as well as having to cooperate with ISPs: no I didn't, had you actually read the whole thread :) It boils

getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Ahmed Ashour
Dear all, I think something is wrong with parsing parameters for get requests with binary encoding, although request.getCharacterEncoding() is null, the output is different in red hat linux, consider the following test case: Servlet code protected void

Re: running SSI on Tomcat 5.5.15

2006-03-17 Thread lee sachs
I'll try to supply as possible so that we don't have to go back and forth. Directory Structure (all seems to be correct, based on unpacking and deploying server to C:\) C:\apache-tomcat-5.5.15 - web.xml is in C:\apache-tomcat-5.5.15\conf\web.xml - servlet-ssi.jar is in

Re: getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Filip Hanik - Dev Lists
getBytes() is deprecated for the reason that different VMs/OSs have different default encoding. could that be the cause of your problem? what if you try getBytes(ISO-8859-1) on both platforms, do you still get diff results? Filip Ahmed Ashour wrote: Dear all, I think something is

Re: getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Ahmed Ashour
Dear Filip, That solves it, many many thanks. Just a comment if others went into same problem: * request.setCharacterEncoding(ISO-8859-1); does not solve the problem * getBytes() is not deprecated, it uses the platform's default charset instead. Thanks again, Ahmed Ashour