Sound

2009-03-11 Thread Gabor Kincses
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 va

Remote JMX enabling in start scripts

2009-03-11 Thread David Knox
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 (revisi

Re: Problem starting Tomcat in Netbeans

2009-03-11 Thread Carlos Botto
Chuck, Sorry by mistake I copied the WEB-INF/web.xml. The conf/web.xml is the following: 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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Re: Problem starting Tomcat in Netbeans

2009-03-11 Thread Carlos Botto
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: ht

RE: Problem starting Tomcat in Netbeans

2009-03-11 Thread Caldarale, Charles R
> 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. > path="

Problem starting Tomcat in Netbeans

2009-03-11 Thread Carlos Botto
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 validate

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Rainer Jung
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 httpd

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Christopher Schultz
-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.

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Rainer Jung
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 an

Re: Fwd: Cookie not being set

2009-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 3/11/2009 7:37 AM, Andromeda Mobile wrote: > [snip] > Cookie c = new Cookie("admobuu", value); > c.setMaxAge(60*60*24*365*20); > c.setPath("/"); > if (cookieDomain != null) { > if (cookieDomain.charAt(0)

Re: Syntex error in http with 'Include conf/mod_jk.conf'

2009-03-11 Thread Christopher Schultz
-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 installa

Re: Too many threads

2009-03-11 Thread Christopher Schultz
-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

Re: Tomcat URL masking question...

2009-03-11 Thread Christopher Schultz
-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 i

Re: Too many threads

2009-03-11 Thread Alexey Vlasov
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.

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-11 Thread Christopher Schultz
-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 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 wrong. No, he

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-11 Thread Christopher Schultz
-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 reques

Re: Resource with custom factory

2009-03-11 Thread Christopher Schultz
-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

Re: download a file inside WEB-INF use its URL on server

2009-03-11 Thread Christopher Schultz
-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

Re: java.lang.NullPointerException loading resource from classpath

2009-03-11 Thread Christopher Schultz
-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

Re: Apache/mod_jk serves random files from tomcat

2009-03-11 Thread Rainer Jung
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 problem,

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Christopher Schultz
-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 ord

RE: tomcat w/apr data lost in http post request?

2009-03-11 Thread Caldarale, Charles R
> 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 o

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Rainer Jung
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 t

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Christopher Schultz
-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 complete

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Christopher Schultz
-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 g

Re: Https forwarding problem

2009-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hisham, On 3/11/2009 5:52 AM, Hisham wrote: > My concern is that because i have this 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 following config i

Re: tomcat w/apr data lost in http post request?

2009-03-11 Thread Christopher Schultz
-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

RE: Tomcat for Dummies

2009-03-11 Thread Caldarale, Charles R
> 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/ Tha

Re: Tomcat for Dummies

2009-03-11 Thread Ken Bowen
.. 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 m

RE: className [mx4j.adaptor.http.HttpAdaptor] does not exist

2009-03-11 Thread Stanley Wong
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 o

Re: Tuning worker MPM

2009-03-11 Thread kulbir Saini
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 ht

Re: Apache/mod_jk serves random files from tomcat

2009-03-11 Thread LukeK
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

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Rodro
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 S

RE: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Caldarale, Charles R
> 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 expect

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Ben Hu
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. The rule means that requests to /test/status/ will be redirected to /rewrite-status the url wi

RE: Tomcat 6 and Apache Derby

2009-03-11 Thread Caldarale, Charles R
> 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 config is bad. > I have set the classpath locally

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Rodro
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: UrlRewriteFilter org.tuckey.w

Tomcat 6 and Apache Derby

2009-03-11 Thread Robert K. Vanderhoek
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 a

RE: Tomcat for Dummies

2009-03-11 Thread Caldarale, Charles R
> 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 th

RE: Tomcat for Dummies

2009-03-11 Thread Peter Crowther
> 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

RE: Not able to shutdown tomcat

2009-03-11 Thread Aleksandr Elbakyan
Thank you for help this link was really helpful --- On Tue, 3/10/09, Caldarale, Charles R wrote: From: Caldarale, Charles R Subject: RE: Not able to shutdown tomcat To: "Tomcat Users List" Date: Tuesday, March 10, 2009, 6:02 PM > From: Aleksandr Elbakyan [mailto:ramal...@yahoo.com] > Subjec

Re: Tomcat for Dummies

2009-03-11 Thread André Warnier
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 : - t

Re: Problems with LoadBalancing

2009-03-11 Thread Toni Menendez Lopez
2009/3/11 Rainer Jung > 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 >> TOMC

Re: Need Hellp With Tomcat 6 / Apache 2.2 Cluster Problem

2009-03-11 Thread Rainer Jung
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: Bal

Re: Problems with LoadBalancing

2009-03-11 Thread Rainer Jung
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: /opt

RE: Need Hellp With Tomcat 6 / Apache 2.2 Cluster Problem

2009-03-11 Thread Alston, Brian (US SSA)
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 disa

Re: Regarding Tomcat 5.5 clustering

2009-03-11 Thread Filip Hanik - Dev Lists
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 tomc

Re: Need Hellp With Tomcat 6 / Apache 2.2 Cluster Problem

2009-03-11 Thread Filip Hanik - Dev Lists
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 Fili

Re: Tomcat Clustering trouble when starting up under high load

2009-03-11 Thread Filip Hanik - Dev Lists
hi Mikel, when setting a property on the 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 wrapper to

Re: Tomcat for Dummies

2009-03-11 Thread Ken Bowen
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, w

RE: Tomcat for Dummies

2009-03-11 Thread Peter Crowther
> 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 logi

Re: Tomcat for Dummies

2009-03-11 Thread André Warnier
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 ? No

Re: [OT] Tomcat for Dummies

2009-03-11 Thread André Warnier
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 thing

Re: "hanging" threads on Tomcat

2009-03-11 Thread Oliver Schoett
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 org.apache.tomcat.dbcp

RE: "hanging" threads on Tomcat

2009-03-11 Thread Caldarale, Charles R
> 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 re

RE: Tomcat for Dummies

2009-03-11 Thread Caldarale, Charles R
> 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

RE: "hanging" threads on Tomcat

2009-03-11 Thread Caldarale, Charles R
> 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

RE: Effect of Heap Size on Performance?

2009-03-11 Thread Caldarale, Charles R
> 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 freq

RE: Need Hellp With Tomcat 6 / Apache 2.2 Cluster Problem

2009-03-11 Thread Alston, Brian (US SSA)
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 (http://httpd.apache.org/doc

Re: Cookie not being set

2009-03-11 Thread André Warnier
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

RE: Cookie not being set

2009-03-11 Thread Peter Crowther
> 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 ap

Re: Cookie not being set

2009-03-11 Thread Andromeda Mobile
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 wrote: > Cookies are sent in the header and tomcat does not wait for the entire > body o

Regarding Tomcat 5.5 clustering

2009-03-11 Thread welcome.partha
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

Problems with LoadBalancing

2009-03-11 Thread Toni Menendez Lopez
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 Tomcat/5.5

Tomcat 6.x Proxy Authentication

2009-03-11 Thread Alexander Diedler
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

Re: Cookie not being set

2009-03-11 Thread David Smith
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.

Re: Cookie not being set

2009-03-11 Thread Andromeda Mobile
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 Mi

Re: Effect of Heap Size on Performance?

2009-03-11 Thread Taylan Develioglu
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 the

RE: Cookie not being set

2009-03-11 Thread Peter Crowther
> From: Michael Farah > The Admob code is a JSP file named AdMob.jsp that is imported > into each page > of our webapp via this code snippet > [...] > response.addCookie(c); Just a thought... where's your include? In order to add the cookie (which must go in the header), I think no bytes

Fwd: Cookie not being set

2009-03-11 Thread Andromeda Mobile
There was a typo in the code below which has now been corrected -- Forwarded message -- From: Michael Farah 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 instance of Tomcat 6.0.1.8 on a

Fwd: Cookie not being set

2009-03-11 Thread Andromeda Mobile
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 Date: Mon, Mar 9, 2009 at 7:58 AM Subject: Cookie not being set To: users@tomcat.a

RE: unkown protocol "httpg" - using apache-tomcat-6.0.18

2009-03-11 Thread Peter Crowther
> 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 > > whe

Re: "hanging" threads on Tomcat

2009-03-11 Thread Patrick Plaatje
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 have

unkown protocol "httpg" - using apache-tomcat-6.0.18

2009-03-11 Thread shashidhar velagandula
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 servic

Re: Tomcat for Dummies

2009-03-11 Thread André Warnier
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

Re: "hanging" threads on Tomcat

2009-03-11 Thread Mark Thomas
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 o

Re: Tomcat for Dummies

2009-03-11 Thread Mark Thomas
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

Re: Effect of Heap Size on Performance?

2009-03-11 Thread Oliver Schoett
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 -h25

Tomcat for Dummies

2009-03-11 Thread André Warnier
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

"hanging" threads on Tomcat

2009-03-11 Thread Patrick Plaatje
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 threads

Re: Tomcat Clustering trouble when starting up under high load

2009-03-11 Thread Mikel Ibiricu
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 org.apache.tomcat.util.digester.S

Re: Https forwarding problem

2009-03-11 Thread Hisham
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 which makes any url pattern "CONFI

Re: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-11 Thread Rainer Jung
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 w

Re: Lazy Virtual Hosting?

2009-03-11 Thread Mark Thomas
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 ho

RE: Starting Tomcat6 via command line/Removing registry keys

2009-03-11 Thread Peter Crowther
> 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 shut

Re: Effect of Heap Size on Performance?

2009-03-11 Thread Leon Rosenberg
On Wed, Mar 11, 2009 at 1:56 AM, Caldarale, Charles R 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 large enough heap size (and