Re: Client Real Source IP!

2006-09-21 Thread Alexander Khoo
Thanks for the information,Anyone can provide more detail on how this can be done? how the code is done perhaps? - Original Message From: Li <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, September 22, 2006 1:42:14 PM Subject: Re: Client Real Source IP! Sorry Alexander, Yea

Re: Client Real Source IP!

2006-09-21 Thread Li
Sorry Alexander, Yeah, as Peter said, you can use getHeader(s) from Servlet API. Only if your request header is customized one (like those for telecom), you should read it by yourself. On 9/22/06, Peter Rossbach <[EMAIL PROTECTED]> wrote: You can access the header with ServletRequest.getHead

Re: Client Real Source IP!

2006-09-21 Thread Peter Rossbach
You can access the header with ServletRequest.getHeader, getHeaders, getHeadersNames. Read Servlet Spec 2.4 or 2.5 Headers 4.3 Wrote your own Valve or ServletFilter Regards Peter Am 22.09.2006 um 06:44 schrieb Alexander Khoo: Dear All, We currently have Tomcat Version5 install behi

Re: Client Real Source IP!

2006-09-21 Thread Li
Hi, You need create your own request proecessor to retrieve it. You may have to get http request full length header first and lookup your request header structure and read block by block from the header. A better way is to take a look at few headers and see if the block you need is always after w

Client Real Source IP!

2006-09-21 Thread Alexander Khoo
Dear All, We currently have Tomcat Version5 install behind Pound reverse proxy! Our code cant identify the real source client IP instead the reverse proxy IP everytime, We understand Pound adds the X-Forwarded-for header with the original client address to every requestbut how we can identi

RE: Upload Exception - Time out error

2006-09-21 Thread Sandeep Darvekar
Hello, Is there any limit configuration on tomcat that restricts uploading the files above 2MB size? Thanks Sandeep Darvekar _ From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] Sent: 21 September, 2006 7:54 PM To: 'users@tomcat.apache.org' Cc: 'Sandeep Darvekar' Subject: Uplo

Re: Restrict Session In One Browser!

2006-09-21 Thread Alexander Khoo
Hi, Thanks,This has been resolve by encode the jsessionid into the a frame,Now when user create a new windows the login page will show. Regards, Alexander - Original Message From: Michael Jouravlev <[EMAIL PROTECTED]> To: Tomcat Users List ; Alexander Khoo <[EMAIL PROTECTED]> Sent:

Upload Exception - Time out error

2006-09-21 Thread Sandeep Darvekar
Hello, We have one web application developed on tomcat which is used for uploading the photos from the end users. We are facing one typical issue when we try to upload a big image photo of size 7MB. We get the exception on the applet (client side) as well as on the server (tomcat Catalina.out).

Re: jsvc-src make error

2006-09-21 Thread David Smith
My guess is either a broken jsvc source download or a broken build environment. Try getting the sources (from http://www.apache.org/commons/daemon) again and see what happens. --David Ryan Suarez wrote: Can someone please help? I cannot find the answer in the archives... much appreciated,

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Martin Gainty
I would be interested in seeing a TypeIV JDBC driver for that DB- yeas ago we had a similar situation using a bridge (JDBC-ODBC) that was considerably slow until the vendor supplied driver was supplied .. M- * This email message a

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Steve R Burrus
Well this Microsoft SQL Server 2005 JDBC Driver. is it a Type 4 pure Java driver or not?? I should think that anything from Microsoft would tend to kind of de-emphasize Java. Henry McClain wrote: I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is free. If you need to connec

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Jimmy Lindsey
The Type 4 drivers are available on Microsoft's web site at the following URL: http://search.microsoft.com/results.aspx?mkt=en-US&setlang=en-US&q=JDBC >>> "Henry McClain" <[EMAIL PROTECTED]> 09/21/06 1:35 PM >>> I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is free. If you

Re: jsvc-src make error

2006-09-21 Thread Ryan Suarez
Can someone please help? I cannot find the answer in the archives... much appreciated, Ryan Greetings, I'm trying to compile jsvc-src (from apache-tomcat-5.5.17 binary core distribution) on debian sarge. I've installed jdk-1_5_0_08-linux-i586.bin using make-jpkg. So autoconf and ./config

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Henry McClain
I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is free. If you need to connect to a SQL Server 2000 or 2005, this is a good driver. On 9/21/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Steve R Burrus [mailto:[EMAIL PROTECTED] > Subject: Re: Need Help w. Servle

RE: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Caldarale, Charles R
> From: Steve R Burrus [mailto:[EMAIL PROTECTED] > Subject: Re: Need Help w. Servlets And The JDBC. > > I don't suppose that on the Tomcat site there is a Type 4 > database driver , which I have read is the preferred driver > to get because it is pure Java, is there instead of the 1 > which I as

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Steve R Burrus
I don't suppose that on the Tomcat site there is a Type 4 database driver , which I have read is the preferred driver to get because it is pure Java, is there instead of the 1 which I assume I can always get at java.sun.com? Sameer Acharya wrote: You can configure a tomcat datasource to get

jk_ajp_common.c : Error sending request try another pooled connection

2006-09-21 Thread M . K
Hi, When I start the Tomcat then Apache the application works fine. but after a while if browse the web application * the tomcat crashs*. The system that I have: *linux fedora core 3, apache 2 and tomcat 5.5.9 * This is what I got from mod_jk.log [Wed Sep 20 16:46:18 2006] worker1 www.mysit

directory permissions question

2006-09-21 Thread jason
hey tomcat-heads, I have apache-tomcat-5.5.17 installed on a solaris 10 box. When my users create their applications, they end up in /var/local/user/apache-tomcat-5.5.17/webapps with drwxr-r-x permissions on the directory under webapps. what I want, it for it to show up as drwxrwr-x (group wri

Replication warning with tomcat cluster FastAsyncSockerSender

2006-09-21 Thread Haroon Rafique
Hi all, In a tomcat cluster deployed in production, I'm seeing the following in catalina.out: 2006-09-21 14:31:29,778 WARN FastAsyncSocketSender - Unable to asynchronously send session with id=[A1C6AD293C423C51568CCF24EFBD6064-1158863489776] - message will be ignored. java.net.C

Re: URL Redirection

2006-09-21 Thread Gregor Schneider
hi david, On 9/21/06, David Smith <[EMAIL PROTECTED]> wrote: At most, some links between webapps will have to be updated to reflect the adjustments in path. exactly, and you can save the time updating them I also can't recommend Apache httpd in front unless the site is a mixed bag of techn

RE: System requirements

2006-09-21 Thread Caldarale, Charles R
> From: Stefan Baramov [mailto:[EMAIL PROTECTED] > Subject: Re: System requirements > > Just get a regular AMD64/Pentium Server with at least 2MB Tough to find one that small these days... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus f

Re: System requirements

2006-09-21 Thread Stefan Baramov
DEMESY Nicolas wrote: > Hi, > > I would like to know what are the system requirements for using Tomcat > in a production server, with 50-100 users, on a Red Hat Advanced > Server 3. > Where can I find benchmarks ? > > Thank you for your advices, > Nicolas DEMESY > > > --

Re: URL Redirection

2006-09-21 Thread David Smith
Renaming "everything" is a very simple operation. If the webapp is constructed correctly it should operate regardless of context path and make adjustments as necessary. At most, some links between webapps will have to be updated to reflect the adjustments in path. I also can't recommend Apac

Re: URL Redirection

2006-09-21 Thread Gregor Schneider
Hi David, assuming the client gets his software delivered from different vendors, one day changes his mind to make another app his default application, then what? rename everything over again? The best solution is, leave the web-app it's name and forward with a index.jsp inside the ROOT-context

Re: URL Redirection

2006-09-21 Thread David Smith
I see the gif image is the only one referenced using the '.' current directory operator. I've found it better to code image urls as "${pageContext.request.contextPath}/images/zapisz.gif". This will render the full path relative to the site and will also change automatically as the webapp's co

Re: URL Redirection

2006-09-21 Thread David Smith
Why is renaming a webapp to ROOT the worst solution? It's a perfectly acceptable solution when you want to access your webapp from the top level and the default ROOT is just a placeholder anyway. --David Gregor Schneider wrote: take a look into your access-logs for a 404-error. then you shoul

Re: How to test a tomcat virtual host?

2006-09-21 Thread Samsamoddin Rajaei
Thank you, it should be the answer. I must only find which service or program uses the file "hosts", because I can not modify it (it is not read only)! Sam > If you are using windows you could try added a line like the following > to the c:\WINDOWS\system32\drivers\etc\hosts file. > > 127.0.0.1

RE: HSQLDB and Tomcat ServletContextListener

2006-09-21 Thread Awaneesh Shatmanyu
Also for you information ...the auto-commit of HSQLDB is off by default. -Original Message- From: Awaneesh Shatmanyu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 8:15 PM To: Tomcat Users List Subject: RE: HSQLDB and Tomcat ServletContextListener Hi Feris, I am cu

Re: How to test a tomcat virtual host?

2006-09-21 Thread Hassan Schroeder
On 9/21/06, Samsamoddin Rajaei <[EMAIL PROTECTED]> wrote: I am trying to test my virtual hosts and my tomcat configuration on my local pc (Windows XP). When I start tomcat they are no exceptions and everything seems to be ok. When I call the page "http://127.0.0.1:9080/"; I see the defaultHos

HttpSession loose attributes.

2006-09-21 Thread Dzmitry Ilyin
Hello Everybody, Could anybody help to solve the problem. I have apache Tomcat 5.5 . My web application stores some attributes in HttpSession object, for ex. User object , etc. When i updating some java classes (.class) in application (just copy it to WEB-INF / etc) or resources (for ex .

Re: How to test a tomcat virtual host?

2006-09-21 Thread ben short
If you are using windows you could try added a line like the following to the c:\WINDOWS\system32\drivers\etc\hosts file. 127.0.0.1 www.virtualhost1.com Then open www.virtualhost1.com in your web browser. the same this should be possible from linux but i dont have my linux hat on at the moment.

RE: HSQLDB and Tomcat ServletContextListener

2006-09-21 Thread Awaneesh Shatmanyu
Hi Feris, I am currently working with the HSQLDB for my project. I had similar problem, which got solved. 1. Make sure your jdbc connection is closed every time. 2. Do not run you application as long as you are looking into the HSQLDB, close the DB and then run the application. Regards, Aw

How to test a tomcat virtual host?

2006-09-21 Thread Samsamoddin Rajaei
Hi everybody, (I am newbie in this list!) I am trying to test my virtual hosts and my tomcat configuration on my local pc (Windows XP). I am using tomcat 5.0.28 and have configured following virtual hosts in my server.xml:

Re: Custom Principal casting problem

2006-09-21 Thread Darren Clarke
Well, I'm not 100% sure about this as I've not proven all of it, but what I believe is happening from the various Tomcat docs I've read is: 1) My custom realm's authenticate() method(s) are invoked and these instantiate and return the custom principal objects (this bit is proven). If I do

HSQLDB and Tomcat ServletContextListener

2006-09-21 Thread Feris Thia
Dear All, I'm using HSQLDB as embedded in-process mode for my web application. I used to schedule every 1 minutes to check on the HSQLDB database. I open the db when context initialized and close it when context destroyed. But when the context reloaded I always get Java.lang.NullPointerException

Attempting JAAS Authentication throws ArrayIndexOutOfBoundsException in NTSystem

2006-09-21 Thread Henry McClain
Gentlemen, I am attempting to authenticate users via JAAS NTLoginModule and repeatedly recieve an ArrayIndexOutOfBoundsException wrapped in a LoginException. The error is (packages removed for confidentiality purposes): javax.security.auth.login.LoginException: java.lang.ArrayIndexOutOfBoundsExc

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Using Dtrace , I tried to gather some more information. Here is the output of a Dtrace script called dapptrace. It confirms the fact that the tomcat thread spends its cpu time in the Poll functions however I still don't understand why listening to events on port can't use so much cpu. Any hint

RE: Custom Principal casting problem

2006-09-21 Thread Peter Crowther
> From: Darren Clarke [mailto:[EMAIL PROTECTED] > request.getUserPrincipal().getClass().toString() returns > "poc.security.TestPrincipal" > > (request.getUserPrincipal() instanceof > poc.security.I_TestPrincipal returns false Ah. Are you loading everything through the sa

Deploy tomcat unattended install

2006-09-21 Thread Andrade dos Santos, Jonildo
Hello, I have one problem. I need deploy the apache tomcat to 42 windows computers with full install (core, service, documentation and others) in unattended (silent). But, I have only this command: apache-tomcat-5.5.17.exe /S /D=C:\develop\tomcat5.5 How to I make this? Thanks! Joni

Re: Custom Principal casting problem

2006-09-21 Thread Darren Clarke
Hi Martin Thanks for the speedy response. Re there being no guarantee that the type I'm casting is of the appropriate type, I was actually doing an instanceof test, that I omitted to mention and which fails, i.e. request.getUserPrincipal().getClass().toString() returns "poc.security

Re: URL Redirection

2006-09-21 Thread Ashirvad Uniyal
David Smith wrote: Ok. Can you offer a code snippet showing where you compose the url to the gif image? --David Ashirvad Uniyal wrote: Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application i

Re: URL Redirection

2006-09-21 Thread David Smith
Ok. Can you offer a code snippet showing where you compose the url to the gif image? --David Ashirvad Uniyal wrote: Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application is renamed as ROOT.

Re: Custom Principal casting problem

2006-09-21 Thread Martin Gainty
Good Morning Darren- You can always downcast but upcasting is always problematic request.getUserPrincipal() returns the base class of java.security.Principal you are trying to upcast to your own derived class which is always dangerous since there is no guarantee the object you are passing is of ty

Re: URL Redirection

2006-09-21 Thread Ashirvad Uniyal
Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application is renamed as ROOT. Regards, Ash Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection

Custom Principal casting problem

2006-09-21 Thread Darren Clarke
Hi Apologies in advance if I'm going over old ground here - I have spent a day and a bit searching the web and have found people with the same problem, but I'm not finding the solution anywhere... I've created my own Tomcat Realm that performs custom authentication. The various authentic

Re: No response from server

2006-09-21 Thread SSL
We got no more response from any application after a while, but the processor load was low. Nor did we get any usefull log messages. The problem seems to be solved: We got a deadlock of all the http-connector threads. It was caused by an access to a LONG_RAW field on the oracle database, while

Re: No response from server

2006-09-21 Thread Li
not respond means: it can not process any request of any deployed application or it can not process any request of a specific? ... On 9/21/06, Emre Ersoz <[EMAIL PROTECTED]> wrote: Anything on the logs? $TOMCAT_HOME/logs On 9/19/06, SSL <[EMAIL PROTECTED]> wrote: > > > > Hello there, > >

Re: No response from server

2006-09-21 Thread Emre Ersoz
Anything on the logs? $TOMCAT_HOME/logs On 9/19/06, SSL <[EMAIL PROTECTED]> wrote: Hello there, we experience the situation that our Tomcat server does not respond anymore after some time. We already tried a few things to track the problem, like lambdaProbe, the latest tomcat version, memo

Re: Tomcat Clustering SSH

2006-09-21 Thread Mikolaj Rydzewski
Massimiliano Berruti wrote: You're perfectly right...the problem is we must do this because this is a sample application we're developping for our university and they asked to use ssh tunnel or something else to secure connection in the cluster... Thanx for help! So use VPN to create separate an

Re: Tomcat Clustering SSH

2006-09-21 Thread Massimiliano Berruti
You're perfectly right...the problem is we must do this because this is a sample application we're developping for our university and they asked to use ssh tunnel or something else to secure connection in the cluster... Thanx for help! 2006/9/21, Mikolaj Rydzewski <[EMAIL PROTECTED]>: Massimilia

Re: Tomcat Clustering SSH

2006-09-21 Thread Mikolaj Rydzewski
Massimiliano Berruti wrote: We'd like to make the communications between cluster's members encrypted to prevent sniffing the session's messages. Why? This would slow down operations. Put cluster's nodes in a separate network segment. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Descri

Re: Tomcat Clustering SSH

2006-09-21 Thread Massimiliano Berruti
could please point me to some refs describing ssh tunnels integration on tomcat's cluster members? Thanx 2006/9/21, Peter Rossbach <[EMAIL PROTECTED]>: Use ssh tunnels! but better use an isolate network... Regards Peter Am 21.09.2006 um 11:15 schrieb Massimiliano Berruti: > Hello, > > we

Re: Tomcat Clustering SSH

2006-09-21 Thread Peter Rossbach
Use ssh tunnels! but better use an isolate network... Regards Peter Am 21.09.2006 um 11:15 schrieb Massimiliano Berruti: Hello, we set up a simple web cluster with the following configuration: a Apache ssl server acts as a load balancer towards two tomcat workers in order the support failo

Re: URL Redirection

2006-09-21 Thread Gregor Schneider
take a look into your access-logs for a 404-error. then you should see the access-code where tomcat looks for the pics. you'll have to change the links then. btw., renaming your web-app to ROOT is the worst of all solutions: Since this is a standard-app of tomcat, your client will pretty much lik

Tomcat Clustering SSH

2006-09-21 Thread Massimiliano Berruti
Hello, we set up a simple web cluster with the following configuration: a Apache ssl server acts as a load balancer towards two tomcat workers in order the support failover and high availability. We used the built-in mechanism available from tomcat 5.x to implement clustering. From what we have

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Yes from what I understand a native call is used when you use the apache portable runtime with tomcat. Yann David Delbecq a écrit : Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Nati

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534)

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Here is the jvm thread dump: Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode): "ajp-8009-3" daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait() [0xd4c4b000..0xd4c4bd98] at java.lang.Object.wait(Native Method) - waiting on <0xd5e5c1f8> (a org.apache.tomc

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Could you send us a few jvm thread dumps while the CPU usage, i bet this an be more helpful than an os dump. To generate a Thread dump, simply send the signal 3 to the java process (assuming you use a SUN jvm or derivative) Yann Rouillard a écrit : > Did you tried it with Tomcat 5.5.17? >>> >

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications have been on this area ? Yes, a lots of them, see the: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html The way how Poller is handled has changed, so just try the 5.5.17. Ok, I have tried with 5.5.17 and the

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Sameer Acharya
You can configure a tomcat datasource to get a connection or you can load your database driver and get a connection object. The advantage with using tomcat datasource is that it will handle connection pooling for you. The tomcat docs explain how to define a datasource (you have to do it in contex

Re: use mod_jk

2006-09-21 Thread Raffaele Viola
If I write JkMount /MyApp/* worker1 can I load all the page contained in the directory $CATALINA_HOME/webapps/ MyApp/ or I have a row for every directories? for example: JkMount /MyApp/dir1/* worker1 JkMount /MyApp/dir2/* worker1 thanks Raffo On 9/21/06, Santosh Puranshettiwar <[EMAIL PROTECT

Re: Upgrade from 2000 to 2003; .NET2 ?

2006-09-21 Thread Piero Cavalieri
I found the problem. IIS6 was in IIS5 isolation mode. Turning off, solved. Piero [EMAIL PROTECTED] ha scritto: I haven't done any specific testing, however I am running one of my servers with .Net 1.1 and .Net 2 (two application pools) along with Tomcat. What are you doing with the .Net page

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Mladen Turk
Yann Rouillard wrote: Mladen Turk a écrit : Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? I use version 1.1.3 Did you tried it with Tomcat 5.5.17? No but I can tr

Re: use mod_jk

2006-09-21 Thread Santosh Puranshettiwar
Sorry I didn't get you question well but see if this helps. http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html#adapter_jk_vs_js Santosh. Raffaele Viola wrote: Hi all, I Apache web server with Tomcat and mod_jk. The row JkMount /MyApp/* worker1 in the httpd.conf file is it enough

Re: URL Redirection

2006-09-21 Thread Ashirvad Uniyal
Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection I renamed the application to ROOT and everything works fine except that all the images (gif) have all together vanished How are you referencing the images? Do you have a hard-coded

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Mladen Turk a écrit : Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? I use version 1.1.3 Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications h

use mod_jk

2006-09-21 Thread Raffaele Viola
Hi all, I Apache web server with Tomcat and mod_jk. The row JkMount /MyApp/* worker1 in the httpd.conf file is it enought to allow the loading of all the web application from Apache? Thanks Raffo