On Wed, Mar 11, 2009 at 1:56 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
It's impossible to prevent at least some objects from eventually migrating to
the OldGen, since anything that persists long enough will end up there after
some number of minor GCs.
But by choosing a
From: Cornelius Herzog (CH Software) [mailto:c.her...@chsoftware.net]
Now I want to control Tomcat via an external script and so I
need it to start via command line to adapt the parameters.
If you install Tomcat via the zip (not the exe), you get some scripts to
control its startup and
Caldarale, Charles R wrote:
From: Gregor Schneider [mailto:rc4...@googlemail.com]
Subject: Re: Lazy Virtual Hosting?
However, since I'll have to use Authentication (see my other post),
thus needing SSL, I guess I have to setup a HTTP-Connector for each
of them.
Depends on how much
On 10.03.2009 23:10, André Warnier wrote:
Rainer Jung wrote:
[...]
2) getRemoteAddr() gives you the address of the system, which opened
the connection. In case of an AJP connector, this is not true, because
AJP is meant to be used for reverse proxies. So here you get the
address of the system
Thanks for your reply Chris.
At first i did try to limit using address attribute, but later i removed
it. The config snippets i have shown are complete. You are right, the
exception is coming from the web service call.
My concern is that because i have this security-constraint which makes any
Hi Rainer, thanks for your response.
I tried the config you suggested. It suppose the way of configuring those
parameters is as you said, but skipping manager. from the begining, as
when I tried as you said, I got this in the catalina. log:
10-mar-2009 15:58:19
Hi all,
on one of our websites we have a problem with threads keep hanging in
Tomcat. We first noticed this 1.5 week ago and tried several things to
find a solution. At that moment we were using java 1.4 and Tomcat 5.0.
The symptoms were there after three hours of operation, about 250
Hi.
As part of the beginners rubrique, I have a question which will
undoubtedly show the depth of my lack of knowledge of things Java and
Tomcat. But maybe there will be a sympathetic soul here.
Since I am still missing much of the underlying knowledge, I would beg
that whoever answers does
Washburn, Brian J [IT] wrote:
Also if the application is a web app with any kind of response time
requirements I would strongly suggest that you use
[set of four options]
My suggestion is to first get a feel for the current gc behaviour with
jstat on the server:
jstat -gc -t
André Warnier wrote:
- we have a JVM. That is the real process that is running, at the OS
level. That process can be killed, or decide to stop running, at which
point we don't have a JVM process anymore, and thus no Tomcat and no
webapps at all. That's kind of drastic and definitive.
Yes.
Patrick Plaatje wrote:
Hi all,
on one of our websites we have a problem with threads keep hanging in
Tomcat. We first noticed this 1.5 week ago and tried several things to
find a solution. At that moment we were using java 1.4 and Tomcat 5.0.
The symptoms were there after three hours of
Mark Thomas wrote:
André Warnier wrote:
Now comes the basic question : can a webapp stop itself, without taking
the whole Tomcat and JVM with it ? In other words, in response to
something (a variable being a certain value, or the interception of some
event or whatever), can my webapp decide to
HI ,
I am using apache-tomcat-6.0.18 , I want to access a SRM(storage
resource manager) service endpoint which uses httpg protocol
eg: service endpoint - httpg://srmserver.host:8444/ , by deploying a web
service application using apache-tomcat server
when a client tries to invoke the
Thanks for the swift replies, i have two dump, appr a few seconds apart
uploaded to:
http://www.ipros.nl/uploads/catalina_stripped_1.out
http://www.ipros.nl/uploads/catalina_stripped_2.out
Thanx,
Patrick
Mark Thomas schreef:
Patrick Plaatje wrote:
Hi all,
on one of our websites we
From: shashidhar velagandula
I am using apache-tomcat-6.0.18 , I want to access a SRM(storage
resource manager) service endpoint which uses httpg protocol
eg: service endpoint - httpg://srmserver.host:8444/ , by
deploying a web
service application using apache-tomcat server
when a
My apologies for re-submitting this but I'm getting a little desperate
here. If no one here can assist can anyone suggest where else I could
go for help?
-- Forwarded message --
From: Michael Farah andromedamob...@gmail.com
Date: Mon, Mar 9, 2009 at 7:58 AM
Subject: Cookie not
There was a typo in the code below which has now been corrected
-- Forwarded message --
From: Michael Farah andromedamob...@gmail.com
Date: Mon, Mar 9, 2009 at 7:58 AM
Subject: Cookie not being set
To: users@tomcat.apache.org
Hi all
I’m running two web apps off a single
From: Michael Farah andromedamob...@gmail.com
The Admob code is a JSP file named AdMob.jsp that is imported
into each page
of our webapp via this code snippet
jsp:include page=/AdMob.jsp/
[...]
response.addCookie(c);
Just a thought... where's your include? In order to add the cookie
Chris,
We have 100+ application servers in a loadbalancing (application based,
not tomcat) setup. If servers are removed from the load balancing pool
the others need to be able to pick up the load. So the number of
concurrent users is highly dynamic. You can imagine the problem if we
keep
Hi Peter
The include is actually in the body of the document, right at the
bottom! The thing is the code creates a pixel image and so i wanted to
put this in an area which would not impact the rest of the page. So
should the include be in the head? Do you think this could be the
cause?
Regards
Cookies are sent in the header and tomcat does not wait for the entire
body of the response before starting to send. It just waits for a
buffer to fill up and sends as soon as that occurs. You should be
setting the cookie asap or at least before the first block of response
goes out on the wire.
Hello,
We have a Tomcat Application, which has to communicate through a Proxy
Server with authentication. Should be the authentication done in the Java
Class or it is possible to configure Tomcat for Proxy Authentication?
Alex
smime.p7s
Description: S/MIME cryptographic signature
Hello everybody,
I have following architecture :
2 Server with Apache and Tomcat
Versions :
APACHE
-
httpd -v
Server version: Apache/2.0.52
Server built: May 24 2006 11:45:06
TOMCAT
-
./version.sh
Using JRE_HOME: /opt/jdk1.5.0_10
Server version: Apache
Hi Everyone,
Now i am trying to creating the clustering in
tomcat5.5.17. I have downloaded tomcat 5.5.17.In server.xml i made some
changes.Herewith I have uploaded the server.xml.Then I have downloaded
another tomcat 5.5.17.In that server.xml i made some changes.I have uploaded
I tried moving the include to the head of my document but this does
not appear to have made any difference. Must it be in the head or
should it be even above this?
On Wed, Mar 11, 2009 at 2:16 PM, David Smith d...@cornell.edu wrote:
Cookies are sent in the header and tomcat does not wait for the
From: Andromeda Mobile [mailto:andromedamob...@gmail.com]
I tried moving the include to the head of my document but this does
not appear to have made any difference. Must it be in the head or
should it be even above this?
Ideally it would be wherever AdMob's documentation says it should
Peter Crowther wrote:
From: Andromeda Mobile [mailto:andromedamob...@gmail.com]
I tried moving the include to the head of my document but this does
not appear to have made any difference. Must it be in the head or
should it be even above this?
Ideally it would be wherever AdMob's documentation
Ok ... I feel like a moron but I cannot figure out how to use
disablereuse option. When I google for examples on disablereuse, what I
find is that in my httpd.conf file I need to add the line JkOptions
+DisableReuse. However, reading the information here
From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com]
Subject: Re: Effect of Heap Size on Performance?
I think it also gives short-lived objects (for example short
sessions) a longer time to 'die out', so they won't be moved
to tenure because survivor space is increased and gc frequency
From: Patrick Plaatje [mailto:patr...@ipros.nl]
Subject: hanging threads on Tomcat
- 309 threads overall
- Threads waiting for monitors: 57
- Threads sleeping on monitors: 191
- Threads locking monitors: 225
- Monitors: 225
- Monitors without locking threads: 3
Haven't looked at your
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Tomcat for Dummies
If I am not abusing, how does it do that, schematically ?
I presume it has a more direct way than to itself isue a
HTTP request to the Manager webapp with the appropriate
parameters ?
No, the HTTP request would
From: Patrick Plaatje [mailto:patr...@ipros.nl]
Subject: Re: hanging threads on Tomcat
Thanks for the swift replies, i have two dump, appr a few
seconds apart uploaded to:
You appear to be out of database connections. This is almost always caused by
webapp code not disposing of result
Patrick Plaatje wrote:
Thanks for the swift replies, i have two dump, appr a few seconds
apart uploaded to:
http://www.ipros.nl/uploads/catalina_stripped_1.out
http://www.ipros.nl/uploads/catalina_stripped_2.out
Many threads appear to be waiting on the same instance of
Caldarale, Charles R wrote:
[...]
That should be handled by a ServletContextListener declared in WEB-INF/web.xml,
which will be invoked before the deletion of the webapp's files.
At the risk of sounding heretical and tasteless on this forum, I must
admit that this whole Java and Tomcat
Caldarale, Charles R wrote:
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Tomcat for Dummies
If I am not abusing, how does it do that, schematically ?
I presume it has a more direct way than to itself isue a
HTTP request to the Manager webapp with the appropriate
parameters ?
From: André Warnier [mailto:a...@ice-sa.com]
Caldarale, Charles R wrote:
That should be handled by a ServletContextListener declared
in WEB-INF/web.xml, which will be invoked before the deletion
of the webapp's files.
More seriously thus, there seems to be a problem with this logic :
Let's be frugal and use just 2 instances of a webapp.
How do you run 2 instances of a webapp?
You must deploy them. How do you do that?
You drop a war file for each into webapps.
Whoa! Did you drop 2 copies of myapp.war into webapps?
You can't do that. If they are both named myapp.war, when
hi Mikel,
when setting a property on the Manager you omit the manager. prefix,
just as you stated.
To do thread dumps with JDK 1.5 under windows, you can use the tanuki
service wrapper
http://people.apache.org/~fhanik/wrapper.html
The tomcat team might have added that feature to the Tomcat
hi Brian, this is not really tomcat clustering, but more httpd load
balancing. Disable reuse is available on two modules, mod_jk and
mod_proxy, that is why you get hits for mod_jk as well when you google.
syntax is case sensitive, and yes, you would add it to the end of the
BalancerMember
to test failover
setup a simple load balancer, like 'pen' or more advanced like the
apache web server 'httpd'
and hit the load balancer with requests
Filip
welcome.partha wrote:
Hi Everyone,
Now i am trying to creating the clustering in
tomcat5.5.17. I have downloaded
Filip
I was under the assumption, from my reading, that load balancing was a
component of clustering. At least that's how the O'Reilly book makes me feel.
I added the option to the end of the line and it now looks like this:
BalancerMember http://192.168.1.101:8080 loadfactor=1
On 11.03.2009 14:03, Toni Menendez Lopez wrote:
Hello everybody,
I have following architecture :
2 Server with Apache and Tomcat
Versions :
APACHE
-
httpd -v
Server version: Apache/2.0.52
Server built: May 24 2006 11:45:06
TOMCAT
-
./version.sh
Using JRE_HOME:
On 11.03.2009 16:28, Alston, Brian (US SSA) wrote:
Filip
I was under the assumption, from my reading, that load balancing was a component
of clustering. At least that's how the O'Reilly book makes me feel.
I added the option to the end of the line and it now looks like this:
2009/3/11 Rainer Jung rainer.j...@kippdata.de
On 11.03.2009 14:03, Toni Menendez Lopez wrote:
Hello everybody,
I have following architecture :
2 Server with Apache and Tomcat
Versions :
APACHE
-
httpd -v
Server version: Apache/2.0.52
Server built: May 24 2006 11:45:06
Ken Bowen wrote:
Let's be frugal and use just 2 instances of a webapp.
How do you run 2 instances of a webapp?
You must deploy them. How do you do that?
You drop a war file for each into webapps.
.. etc.. (sound of me being whacked ..)
Sorry, I expressed myself badly I guess.
I meant :
-
Thank you for help this link was really helpful
--- On Tue, 3/10/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:
From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Not able to shutdown tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, March 10, 2009,
From: André Warnier [mailto:a...@ice-sa.com]
Now, how many of these ServletContextListener things are in
existence,
Exactly as many as you have defined in web.xml. Probably one, as you probably
wouldn't want to define more than that - I'm not even sure whether the spec
allows it.
and how
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Tomcat for Dummies
Now, how many of these ServletContextListener things
are in existence, and how many are being called to say
that something is going on ?
Read the servlet spec (section 10). The number in existence is the
I'm having some trouble getting Apache Derby embedded inside Tomcat 6 so I can
access a database threw my webapp. I am receiving the following error in the
catalina.out log file: /Class Not Found: java.lang.ClassNotFoundException:
jdbc:derby/. This is generated in the log when the webapp is
Dear awarnier.
Ok, Now I found such WEB-INF directory (in my app it's
C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the installation
and configuration steps.
1) copied urlrewrite.xml into such WEB-INF
2) edited web.xml with the below lines:
filter
From: Robert K. Vanderhoek [mailto:rob...@nhdeeds.com]
Subject: Tomcat 6 and Apache Derby
/Class Not Found: java.lang.ClassNotFoundException:
jdbc:derby/.
Looks like either your code to create a DB connection is incorrect, or your
Resource config is bad.
I have set the classpath
Rodrigo,
What is the error message in English?
And i think this one is just an example config file coming with urlrewriter.
If you do not need it, you can just delete it.
rule
note
The rule means that requests to /test/status/ will be redirected
to /rewrite-status
From: Rodro [mailto:rodrigo_alle...@ibi.com]
Subject: Re: Tomcat URL Rewrite. Help with configuration.
Though redirection didn't work, but furthermore when I try to see
http://localhost:8080/rewrite-status, I get the below error:
Estado HTTP 404 - /rewrite-status
That would be expected,
According to the documentation, such context should give you a wellcome
page to the urlrewriting service, but yes I don't need it indeed.
The error message in English is:
HTTP Status 404 - /rewrite-status
type
Rainer Jung-3 wrote:
did you find out in the meantime, whether you were using the tcnative (aka
APR) connector?
I was certainly using libtcnative, and removed it at the start of the month.
I haven't seen enough to definitively say that it solved the problem, but my
experience thus far is
hmm, np..
thanks
On Tue, Mar 10, 2009 at 10:17 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
From: kulbir Saini [mailto:kulbir.sai...@gmail.com]
Subject: Re: Tuning worker MPM
Firstly, let me convey my sorry been using this e-mail
thread, i tried to put on httpd list
That is how I do.
1. startup.sh: adding the modification of CATALINA_OPTS
CATALINA_OPTS=-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=6969
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
2. server.xml: adding the modification of
.. etc.. (sound of me being whacked ..)
no, nono domestic violence here :-)
It's often hard enough to understand face to face, much less across
5000+ miles.
I think the following is a fair description Chuck others should
nail me if it's not.
A webapp can be made up of one or
From: Ken Bowen [mailto:kbo...@als.com]
Subject: Re: Tomcat for Dummies
Also, each thread could easily generate other
child threads to run
Only if the webapp chooses to do so; that's not something Tomcat does.
But after that interval, it invokes contextDestroyed
/just once/
That's
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oliver,
On 3/10/2009 2:41 PM, Oliver Schoett wrote:
As far as I know, splitting header and body of POST requests into
separate TCP packets is a peculiarity of IE browsers. This observation
was made using normal HTML forms, but it may well apply
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hisham,
On 3/11/2009 5:52 AM, Hisham wrote:
My concern is that because i have this security-constraint which makes any
url pattern CONFIDENTIAL, that it's causing the web service call to be
redirected as well. And its very frustrating why the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
On 3/10/2009 12:19 PM, Rainer Jung wrote:
1) There is no standard http header named REMOTE_ADDR. Not even within
Tomcat. So whatever you get out of this header depends completely on
whoever set it for you. It might not exist or contain
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
On 3/11/2009 4:51 PM, Christopher Schultz wrote:
Rainer,
On 3/10/2009 12:19 PM, Rainer Jung wrote:
1) There is no standard http header named REMOTE_ADDR. Not even within
Tomcat. So whatever you get out of this header depends completely on
On 11.03.2009 21:51, Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
2) getRemoteAddr() gives you the address of the system, which opened the
connection. In case of an AJP connector, this is not true, because AJP
is meant to be used for reverse proxies. So here you get
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: tomcat w/apr data lost in http post request?
Can MSIE even control which data goes in which packet?
TCP/IP APIs on most platforms allow the Nagle algorithm to be disabled, which
will cause data to be sent out on
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
On 3/11/2009 5:06 PM, Rainer Jung wrote:
No, because [mod_jk] tries to act transparent by default, so it passes the
original client/server situation to Tomcat and Tomcat patches it's
client and server data inside the AJP connector in order
On 11.03.2009 20:19, LukeK wrote:
Rainer Jung-3 wrote:
did you find out in the meantime, whether you were using the tcnative (aka
APR) connector?
I was certainly using libtcnative, and removed it at the start of the month.
I haven't seen enough to definitively say that it solved the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tim,
On 3/7/2009 9:53 PM, Timothy Washington wrote:
'MyClass.class.getResourceAsStream(myresource.xml)'
You might have better luck using ServletContext.getResourceAsStream, if
you have access to the ServletContext.
Check out the javadoc for this
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pierre,
On 3/8/2009 1:05 PM, Pierre Goupil wrote:
Unfortunately it won't work as you will be unable to provide a valid URL for
anything inside WEB-INF. But maybe you can tell us why point 2 (use a
resource stream) doesn't suit you so that we can
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Derek,
On 3/8/2009 4:31 PM, Derek Potts wrote:
JPA allows you to create and configure an EntityManagerFactory, then
store it in a Java Naming and Directory Interface (JNDI) tree for
later retrieval and use.
I would like to do something like
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ken,
On 3/9/2009 4:03 PM, Ken Bowen wrote:
I agree with everything in both posts, but I just don't see what the
/location/ of the jsp files (inside/outside WEB-INF) has to do with it.
It's just an access thing, really: no remote client can request
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gregor,
On 3/9/2009 3:58 PM, Gregor Schneider wrote:
On Mon, Mar 9, 2009 at 8:23 PM, Len Popp len.p...@gmail.com wrote:
What I mean is, clients *never* access a .jsp file by URL, e.g.
http://www.example.com/app/foo.jsp;.
This is definately
Hi Christopher.
On Tue, Mar 10, 2009 at 11:04:43AM -0400, Christopher Schultz wrote:
I
would like to know if they are useful and if not how to lessen their
number.
You should do a thread dump (send a SIG 3
to your process and watch stdout)
Thank you, that has made much clearer.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rodro,
On 3/10/2009 7:54 PM, Rodro wrote:
Dear Chuck.
I tried to implement #2 as you suggested, using urlrewrite as in
http://tuckey.org/urlrewrite/manual/2.6
Under Install I see on STEP 1:“Download the zip (or tar.gz) and
extract it into
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alexey,
On 3/11/2009 6:16 PM, Alexey Vlasov wrote:
On Tue, Mar 10, 2009 at 11:04:43AM -0400, Christopher Schultz wrote:
My thread dump contained 5 JVM threads + 14 Tomcat threads + 1 MySQL
thread = 20 threads. You have 27, and you didn't tell us a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Harcharan,
On 3/8/2009 11:57 PM, Harcharan Singh wrote:
I got the 'syntex error' and 'file not find error' when i use the
include directive for mod_jk in httpd.conf file.
I have created 'mod_jk.conf' in the 'conf' directory of Apache
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
On 3/11/2009 7:37 AM, Andromeda Mobile wrote:
jsp:include page=/AdMob.jsp/
[snip]
Cookie c = new Cookie(admobuu, value);
c.setMaxAge(60*60*24*365*20);
c.setPath(/);
if (cookieDomain != null) {
if
On 11.03.2009 22:22, Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
On 3/11/2009 5:06 PM, Rainer Jung wrote:
No, because [mod_jk] tries to act transparent by default, so it passes the
original client/server situation to Tomcat and Tomcat patches it's
client
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
On 3/11/2009 6:45 PM, Rainer Jung wrote:
On 11.03.2009 22:22, Christopher Schultz wrote:
Your previous message seems to say that mod_jk will provide the IP
address of the server running httpd as the REMOTE_ADDR when seen by
Tomcat.
I
On 11.03.2009 23:52, Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
On 3/11/2009 6:45 PM, Rainer Jung wrote:
On 11.03.2009 22:22, Christopher Schultz wrote:
Your previous message seems to say that mod_jk will provide the IP
address of the server running
Hi,
I'm having problems to start Tomcat in Netbeans. It was working for a
long time until suddenly it stopped. I added a new servlet to the
web.xml file and after that it broke, even after I removed the new
servlet didn't work again. I validated web.xml and got no errors, but
when I
From: Carlos Botto [mailto:carl...@qualitau.com]
Subject: Problem starting Tomcat in Netbeans
when I validated context.xml I got the following: cvc-elt.1:
Cannot find the declaration of element 'Context'. [2]
Since there is no DTD to validate against, that's not surprising.
Context
Chuck,
Thanks for your answer.
I generated the DTD and fixed the config.xml problem.
But the other problem is still there. I didn't touch conf/web.xml, but I
checked it out anyway and didn't find a problem (should be at line 18
column 20).
Here are the first 24 lines from conf/web.xml:
Chuck,
Sorry by mistake I copied the WEB-INF/web.xml. The conf/web.xml is the
following:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
Hi,
I needed to do this for some testing I'm involved in. Thought it
might be useful for others also.
I made the changes in the scripts on trunk and tested the build and
server.
[1]
Index: catalina.sh
===
--- catalina.sh
Hello,
This should really be pretty simple. I'm trying to serve up an mp3 file
without any action mapping. But upon trying to access the file I'm getting
a 404. What's more interesting is that after directory listing is enabled,
the mp3 file is excluded from the listing.
This is on a pretty
86 matches
Mail list logo