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
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
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
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
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
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
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:
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).
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,
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
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
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
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
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
> 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
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
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
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
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
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
> 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
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
>
>
> --
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
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
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
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
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
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
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
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 .
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.
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
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:
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
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
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
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
> 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
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
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
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
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.
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
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
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
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
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,
>
>
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
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
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
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
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
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
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
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
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
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)
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
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?
>>>
>
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
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
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
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
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
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
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
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
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
68 matches
Mail list logo