Starting Tomcat6 via command line/Removing registry keys

2009-03-10 Thread Cornelius Herzog (CH Software)
Hi, I successfully installed Tomcat 6 with Apache 2.2 on Vista. All runs smoothly. Now I want to control Tomcat via an external script and so I need it to start via command line to adapt the parameters. This is my command line: tomcat6.exe //TS//Tomcat6 --StartParams=start --StartClass=org.

Re: Tomcat Shutdown

2009-03-10 Thread Kees Jan Koster
Dear Aleksandr, So how to ping to application so that tomcat is going to be shutdown? http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContextListener.html Register it in web.xml -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 The secret of success li

RE: Tomcat error while starting related to java

2009-03-10 Thread selvajava
Sorry.. I have mistaken I am not using any Classpath.. its inside tomcat webapps folder.. I am using tomcat 5.0.28 .. Actually this is old project and production its running properly. I try to create development env. Caldarale, Charles R wrote: > >> From: selvajava [mailto:selvar...@headstro

RE: Tomcat Shutdown

2009-03-10 Thread Caldarale, Charles R
> From: Aleksandr Elbakyan [mailto:ramal...@yahoo.com] > Subject: RE: Tomcat Shutdown > > So how to ping to application so that tomcat is going to be shutdown? I'm not sure I understand your question. When Tomcat receives a shutdown request (message on the shutdown port, ctrl-c on Windows, or

RE: Tuning worker MPM

2009-03-10 Thread Caldarale, Charles R
> 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 but i think thread > is breaking there. Apology not accepted. Please do not post httpd-specific questions to

Re: Tuning worker MPM

2009-03-10 Thread kulbir Saini
Hi Tony, Firstly, let me convey my sorry been using this e-mail thread, i tried to put on httpd list but i think thread is breaking there. i made changes as - Hi, I have applied following changes to worker threads- ServerLimit 250 StartServers 2 MaxClients 6000 MinSpareT

RE: Tomcat Shutdown

2009-03-10 Thread Aleksandr Elbakyan
So how to ping to application so that tomcat is going to be shutdown? --- On Tue, 3/10/09, Caldarale, Charles R wrote: From: Caldarale, Charles R Subject: RE: Tomcat Shutdown To: "Tomcat Users List" Date: Tuesday, March 10, 2009, 6:05 PM > From: André Warnier [mailto:a...@ice-sa.com] > Sub

RE: Lazy Virtual Hosting?

2009-03-10 Thread Caldarale, Charles R
> 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 separation you want. If you'r

RE: Tomcat Shutdown

2009-03-10 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat Shutdown > > (I also have this lingering doubt about the very wisdom of "setting a > static variable", but that may just be my lack of Java knowledge). No lingering needed; the very concept smacks of bad C programming... highl

RE: Not able to shutdown tomcat

2009-03-10 Thread Caldarale, Charles R
> From: Aleksandr Elbakyan [mailto:ramal...@yahoo.com] > Subject: Not able to shutdown tomcat > > So I need somehow shut down thread pool manually from > some other tomcat shutdown listener thread. You need to implement a ServletContextListener that will terminate your threads when the associa

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: Effect of Heap Size on Performance? > > any rules of thumb to follow for restricting heap to eden > (and not jumping the fence to permgen)? I think you're confusing PermGen with the old (aka tenured) generation. Only instances

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-10 Thread André Warnier
Rodro wrote: Dear Tomcat Users. I'm trying to do a URL masking on Tomcat 5.5.25. What I specifically want to do is: I execute (call) an app with the following URL: http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst Now, I need to mask the URL to get the same result calling the app as:

Re: Tomcat Shutdown

2009-03-10 Thread André Warnier
AlexElba wrote: Hello, Are they any static variables that tomcat will set when user will try to shutdown tomcat? And how do you think a user would try to do that ? And just assuming the user would succeed in such an attempt, and Tomcat would shutdown, what good would it do if it set a static

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

2009-03-10 Thread André Warnier
Gregor Schneider wrote: On Tue, Mar 10, 2009 at 10:53 PM, Harcharan Singh wrote: If i am on the wrong mailing-list. Could you please let me know which is correct mailing-list for this question. Take this one: http://httpd.apache.org/userslist.html Well, it's a bit more complicated.. The m

Tomcat URL Rewrite. Help with configuration.

2009-03-10 Thread Rodro
Dear Tomcat Users. I'm trying to do a URL masking on Tomcat 5.5.25. What I specifically want to do is: I execute (call) an app with the following URL: http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst Now, I need to mask the URL to get the same result calling the app as: http://local

RE: Tomcat URL masking question...

2009-03-10 Thread Rodro
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 your context'sdirectory ie, so that urlrewrite.xml goes into the WEB-INF directory”. However,

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

2009-03-10 Thread Harcharan Singh
thanks. Solved my problem by removing .txt entension from mod_jk.conf.txt. thanks, - Original Message From: Gregor Schneider To: Tomcat Users List Sent: Tuesday, March 10, 2009 3:12:03 PM Subject: Re: Syntex error in http.conf with 'Include conf/mod_jk.conf' On Tue, Mar 10, 2009 a

Not able to shutdown tomcat

2009-03-10 Thread Aleksandr Elbakyan
Hello, I have tomcat running with thread pool inside which has Callable threads in it. And there are not daemon threads When I am shutting down tomcat the tomcat is not getting shutdown and is waiting until all threads in the pool will be done. But there there are threads which are never done.

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

2009-03-10 Thread André Warnier
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 which opened the connection to the web ser

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

2009-03-10 Thread Gregor Schneider
On Tue, Mar 10, 2009 at 10:53 PM, Harcharan Singh wrote: > > > If i am on the wrong mailing-list. Could you please let me know which is > correct mailing-list for this question. > Take this one: http://httpd.apache.org/userslist.html Rgds Gregor -- just because your paranoid, doesn't mean they

Tomcat Shutdown

2009-03-10 Thread AlexElba
Hello, Are they any static variables that tomcat will set when user will try to shutdown tomcat? Thanks P.S. I am not sure where to ask sorry for publication) -- View this message in context: http://www.nabble.com/Tomcat-Shutdown-tp22444717p22444717.html Sent from the Tomcat - User mailing lis

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Martin Gainty
any rules of thumb to follow for restricting heap to eden (and not jumping the fence to permgen)? thx Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This trans

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

2009-03-10 Thread Harcharan Singh
Sorry, i was not subscribe to the mailing-list, so i couldn't see the reply. BTW, the problem still exist. i have installed Apache with msi installer and  the APACHE_HOME is set. Following is the error i gets on my command line. C:\apacheInst\bin>httpd.exe -k start httpd.exe: Syntax error on l

Re: Lazy Virtual Hosting?

2009-03-10 Thread Gregor Schneider
On Tue, Mar 10, 2009 at 10:27 PM, Caldarale, Charles R wrote: >> From: Gregor Schneider [mailto:rc4...@googlemail.com] >> Subject: Re: Lazy Virtual Hosting? >> > > My only concern is if some client started using an IP address rather than the > name associated with that address; such requests woul

Re: j_security_check & SSL

2009-03-10 Thread Gregor Schneider
Mark, On Tue, Mar 10, 2009 at 8:23 PM, Mark Thomas wrote: > > Ditch FORM auth, use DIGEST. > I'm afraid I don't see how to combine DIGEST with a Login-form - and that's a customer request. I know that SecurityFilter is quite a handy tool, however, that doesn't support Tomcat's SSO-functionality

RE: Tracking down OOM - PermGen using jmap and jhat

2009-03-10 Thread Caldarale, Charles R
> From: Darryl Pentz [mailto:djpe...@yahoo.com] > Subject: Re: Tracking down OOM - PermGen using jmap and jhat > > I found this thread: > http://forum.springframework.org/printthread.php?t=21383&pp=40 There's a lot of real BS in that thread. There is one accurate and useful statement: "What

RE: Lazy Virtual Hosting?

2009-03-10 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: Lazy Virtual Hosting? > > So it seems there are no catches if I'm setting up the > server the lazy way - correct? My only concern is if some client started using an IP address rather than the name associated with that addre

Re: Tracking down OOM - PermGen using jmap and jhat

2009-03-10 Thread Darryl Pentz
Hi Chuck, Thanks. I read that tutorial as you suggested. Very useful information. I think I understand the gist of it. After further reading it seems like there are some issues w.r.t. the use of Spring(and/or)Hibernate together with CGLib that particularly affect Tomcat. I found this thread:

Re: Lazy Virtual Hosting?

2009-03-10 Thread Gregor Schneider
On Tue, Mar 10, 2009 at 9:09 PM, Caldarale, Charles R wrote: >> From: André Warnier [mailto:a...@ice-sa.com] >> Subject: Re: Lazy Virtual Hosting? >> >> So if you have 4 Connectors, you will be having 4 independent >> number of min and max threads, and 4 independent settings for >> the number of T

RE: Security issues sending broadcast traffic.

2009-03-10 Thread Caldarale, Charles R
> From: dOE [mailto:doep...@gmail.com] > Subject: Re: Security issues sending broadcast traffic. > > It is generally safer for a higher security zone to have > read\write access to a lower security zone. It would be > more of a risk for the lower zone to be able to read\write > to the higher z

RE: Lazy Virtual Hosting?

2009-03-10 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Lazy Virtual Hosting? > > So if you have 4 Connectors, you will be having 4 independent > number of min and max threads, and 4 independent settings for > the number of TCP connections to be queued up. On Tomcat 6, you can use an as

Re: Lazy Virtual Hosting?

2009-03-10 Thread André Warnier
Gregor Schneider wrote: Hi guys, just a quickone: I'm having a server here running 4 different domains, luckily having a bunch of IP-adresses on said host available. On my test-server, I just had one IP-adress, thus I created one HTTP-Connector (without the adress-param), below an Engine and i

Re: Is there a configurable parameter in web.xml for....

2009-03-10 Thread Kees Jan Koster
Dear Paul, ... the time period that tomcat spends honouring current requests when the server is shutdown? We have a web app used for secure file transfers and occasionally we need to take it down, however some requests for downloads can take more than an hour as the system allows very la

RE: MemoryLeak Problem with ThreadWithAttributes

2009-03-10 Thread Caldarale, Charles R
> From: Hennig, Patrick [mailto:phen...@l1id.com] > Subject: RE: MemoryLeak Problem with ThreadWithAttributes > > (Dont`t know exactly, what you mean by "Tomcat Level") 5.5.?? Fill in the question marks. > redirectPort="8443" protocol="AJP/1.3"> > maxThreads="150" minSpareThreads="25" maxSpa

Re: Security issues sending broadcast traffic.

2009-03-10 Thread dOE
It is generally safer for a higher security zone to have read\write access to a lower security zone. It would be more of a risk for the lower zone to be able to read\write to the higher zone. By broadcast I am referring to a UDP Broadcast domain (multicast) ex:224.0.0.2. The application in the h

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Caldarale, Charles R
> From: Washburn, Brian J [IT] [mailto:brian.j.washb...@sprint.com] > Subject: RE: Effect of Heap Size on Performance? > > Also remember to statically size heap regions manually if you > can as that will always improve GC performance Don't bet on that; doing so may force excessive minor GCs if

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

2009-03-10 Thread Kees Jan Koster
Dear Stanley, I try to setup the JMX in Tomcat 6.0. Here is a discussion on how to enable JConsole and JMX for various application servers. http://java-monitor.com/forum/showthread.php?t=1 I downloaded the latest version of mx4j and placed in the tomcat/lib folder. Java 5 and 6 already

Re: Best Free or Inexpensive Tomcat Log Analyzer

2009-03-10 Thread Kees Jan Koster
Dear Eric, Does anyone have suggestions on the best free or inexpensive tomcat log analyzer? I'm specifically looking for a tool that can help me spot performance problems such as requests that take a long time, errors, timeouts, and so on. If the tool can centrally monitor multiple servers,

RE: j_security_check & SSL

2009-03-10 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: j_security_check & SSL > > is there any way to achieve encryption for the > Login-process without a valid SSL-cert? We normally use a self-signed certificate. That does pop up a browser message to that effect, which might scare

Re: j_security_check & SSL

2009-03-10 Thread Mark Thomas
Gregor Schneider wrote: > And another one: > > AFAIK, when using Form-based Authentication, the parameters for > j_security_check are send in a readable manner over the wire, thus > prone for an attack. Correct. > Therefore, it is recommended to use SSL-encription for the Form-Loginpage. Correct.

j_security_check & SSL

2009-03-10 Thread Gregor Schneider
And another one: AFAIK, when using Form-based Authentication, the parameters for j_security_check are send in a readable manner over the wire, thus prone for an attack. Therefore, it is recommended to use SSL-encription for the Form-Loginpage. However, that means that one has to buy one of those

Lazy Virtual Hosting?

2009-03-10 Thread Gregor Schneider
Hi guys, just a quickone: I'm having a server here running 4 different domains, luckily having a bunch of IP-adresses on said host available. On my test-server, I just had one IP-adress, thus I created one HTTP-Connector (without the adress-param), below an Engine and inside the Engine 4 differe

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

2009-03-10 Thread Stanley Wong
Hi, I try to setup the JMX in Tomcat 6.0. I downloaded the latest version of mx4j and placed in the tomcat/lib folder. I encounter the error of "[mx4j.adaptor.http.HttpAdaptor] does not exist". I went through the jar files of mx4j. I did see mx4j.tools.adaptor.http.HttpAdaptor, but

Re: mod_jk not working as expected - is there a bug??

2009-03-10 Thread Rainer Jung
Hi, On 10.03.2009 19:47, Mohit Anchlia wrote: I am currently testing this. Hoping this will help us achieve 0 customer impact when we upgrade our system. Is it possible for mod_jk to check 2 ports to determine if that worker should be out of service? For eg: if 8010 is down but 8009 port is up

Re: mod_jk not working as expected - is there a bug??

2009-03-10 Thread Mohit Anchlia
I am currently testing this. Hoping this will help us achieve 0 customer impact when we upgrade our system. Is it possible for mod_jk to check 2 ports to determine if that worker should be out of service? For eg: if 8010 is down but 8009 port is up then bring that worker out of service? But the da

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

2009-03-10 Thread Oliver Schoett
Taylan Develioglu wrote: I would like to correct this, it seems to only happen with IE6/7.. maybe old firefox 2.0 We recently observed a similar problem. When IE 6/7/8 make a form POST, they often send the header in one TCP packet and the body in another. A flaky networking component at

Apache Tomcat Connectors snapshot 1.2.28-dev-752124 available for testing.

2009-03-10 Thread Rainer Jung
Hi all, version 1.2.28 of mod_jk is approaching its release. A code snapshot (revision 752124) is available at: http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/source/jk-1.2.28-dev/ Please join us in ensuring the quality of the forthcoming release by testing this snapshot. The source ar

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

2009-03-10 Thread Filip Hanik - Dev Lists
Alston, Brian (US SSA) wrote: Filip Thank you for your help. I made the changes like you suggested: changed "stickysession-jsessionid" to "stickysession=JSESSIONID|jsessionid" I already had "stickysession=jsessionid" (it was a typo here in my post) but I added the "pipe" a

RE: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-10 Thread Joe Wallace
We will have to rethink our reasons for wanting multiple windows services other than we have it that way with Jrun now. It may be more of a mindset problem. My initial problems in Tomcat were file locking (when starting and stopping each web app with the Tomcat Manager) and then thinking there

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

2009-03-10 Thread Alston, Brian (US SSA)
Filip Thank you for your help. I made the changes like you suggested: changed "stickysession-jsessionid" to "stickysession=JSESSIONID|jsessionid" I already had "stickysession=jsessionid" (it was a typo here in my post) but I added the "pipe" and uppercase "JSESSIONID"

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Washburn, Brian J [IT]
Also remember to statically size heap regions manually if you can as that will always improve GC performance and as for heap sizing keep the heap sized to reduce GC time to less than 1% of the time especially on servers with more than 8 cores. Also if the application is a web app with any kind

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

2009-03-10 Thread Filip Hanik - Dev Lists
hi Brian, your stickysession attribute is wrong, it should look like |stickysession=JSESSIONID|jsessionid then you must set jvmRoute in server.xml (jvmRoute="tc1") the jvmRoute has to be unique across the tc nodes. stickyness will only apply to request that have sessions remove smax/max, bette

Re: Mod_JK 1.2.25 Incorrect Object Returned

2009-03-10 Thread Rainer Jung
On 10.03.2009 16:57, a...@apics.co.uk wrote: Hi All, I hope this is the correct list to post the following issue to, apologies if it isn't. I am currently supporting a number of Apache 2.0.59 server with Mod_JK 1.2.25, connecting to a jboss backend. Most of the time the system runs without any

Re: Apache/mod_jk serves random files from tomcat

2009-03-10 Thread Rainer Jung
Hi Yuval, did you find out in the meantime, whether you were using the tcnative (aka APR) connector? Regards, Rainer On 19.02.2009 11:34, Yuval Perlov wrote: Just the swapping responses has me concerned. Thank you so much for the rest of your responses we will put them to good use once we

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

2009-03-10 Thread Rainer Jung
On 10.03.2009 17:02, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/6/2009 2:03 PM, Mark Thomas wrote: Bing Zheng wrote: The tomcat server (version 5.5.23) is behind a load balancer. If I use request.getRemoteAddr(), it returns the lo

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

2009-03-10 Thread Ilya Kazakevich
Some proxies send client IP as "X-FORWARDER-FOR" header. I am not sure, but probably tomcat uses it instead of REMOTE_ADDR in getRemoteAddr()? That is just a guess. Kazakevich Ilya, MCP, SCJP -Original Message- From: Christopher Schultz [mailt

RE: MemoryLeak Problem with ThreadWithAttributes

2009-03-10 Thread Hennig, Patrick
>That should be CATALINA_OPTS, not Catalina_Opts .. Ok, wrote it wrong in the Email. For sure it is CATALINA_OPTS. > Also tell us the exact Tomcat level you're using, along with the JRE/JDK > version, and the platform you're running on. The System for the testing is a Windows XP Pro SP 2 in a

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

2009-03-10 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/6/2009 2:03 PM, Mark Thomas wrote: Bing Zheng wrote: The tomcat server (version 5.5.23) is behind a load balancer. If I use request.getRemoteAddr(), it returns the load balancer's ip. If I use request.getHea

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

2009-03-10 Thread Alston, Brian (US SSA)
Like the example in the book, I created a file called "proxy-balancer.conf" and put it in the "conf.d" directory. Here is what the file looks like (I retyped it so there may be mistakes): LoadModule proxy_module modules/mod_proxy.so # # LoadModule proxy_ajp_module modules/mod_proxy_ajp.

Mod_JK 1.2.25 Incorrect Object Returned

2009-03-10 Thread alex
Hi All, I hope this is the correct list to post the following issue to, apologies if it isn't. I am currently supporting a number of Apache 2.0.59 server with Mod_JK 1.2.25, connecting to a jboss backend. Most of the time the system runs without any problems, however sometimes users can receive

RE: Tracking down OOM - PermGen using jmap and jhat

2009-03-10 Thread Caldarale, Charles R
> From: Darryl Pentz [mailto:djpe...@yahoo.com] > Subject: Re: Tracking down OOM - PermGen using jmap and jhat > > I tried using JConsole's GC button, but > clearly this didn't do the trick. Did clicking the button run a major GC (aka PS MarkSweep)? Are any classes at all being unloaded? (Loo

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

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/6/2009 2:03 PM, Mark Thomas wrote: > Bing Zheng wrote: >> The tomcat server (version 5.5.23) is behind a load balancer. If I >> use request.getRemoteAddr(), it returns the load balancer's ip. If I >> use request.getHeader("REMOTE_ADDR"),

Re: Https forwarding problem

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hisham, On 3/6/2009 6:21 AM, Hisham wrote: >/* > CONFIDENTIAL Good. > > clientAuth="false" sslProtocol="TLS" > keystoreFile="conf/keystore.jks" >keystorePass="xyz" maxPostSize="15728640"

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

2009-03-10 Thread Filip Hanik - Dev Lists
what does the cluster section of your httpd look like? Alston, Brian (US SSA) wrote: I have one Apache http server version 2.2.3 (on Red Hat Enterprise Linux 5) and three Tomcat 6 version 6.0.18 servers (on Windows Server 2003) running in my cluster. Everything "appears" to be working well. It

Re: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 3/10/2009 11:17 AM, Gregor Schneider wrote: > On Tue, Mar 10, 2009 at 3:35 PM, Christopher Schultz > wrote: >> because it makes your deployment easier. >> > Hm, I guess I'll have to disagree here: No, we're in agreement: one TC is ea

Re: Content length when HTTP Transfer-encoding is chunked

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mahesh, On 3/5/2009 10:16 AM, Mahesh Seshan wrote: > The task at hand for me is to prevent a HTTP client from issuing a > request that has a huge payload that could pose a resource risk on the > HTTP server. Given Rainer's comments, it seems like a r

Re: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-10 Thread Gregor Schneider
Chris, On Tue, Mar 10, 2009 at 3:35 PM, Christopher Schultz wrote: > > because it makes your deployment easier. > Hm, I guess I'll have to disagree here: Why should it make his deployment easier? Remember, the app-names are different from each other although residing on different servers (

RE: Tomcat error while starting related to java

2009-03-10 Thread Caldarale, Charles R
> From: selvajava [mailto:selvar...@headstrong.com] > Subject: Re: Tomcat error while starting related to java > > remaining jar files are in my classpath.. If that means you're using the CLASSPATH environment variable, you've made a fatal error - that should never be set when running Tomcat.

RE: MemoryLeak Problem with ThreadWithAttributes

2009-03-10 Thread Caldarale, Charles R
> From: Hennig, Patrick [mailto:phen...@l1id.com] > Subject: MemoryLeak Problem with ThreadWithAttributes > > Catalina_Opts is setted to: > -Xms512m -Xmx768m. That should be CATALINA_OPTS, not Catalina_Opts, in case you're running on a system where the case of environment variable names matters

Re: Too many threads

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexey, On 3/4/2009 4:52 PM, Alexey Vlasov wrote: > After daemon starting parenting process creayes too many threads. What is your definition of "too many"? More than one? > I > would like to know if they are useful and if not how to lessen their >

RE: Effect of Heap Size on Performance?

2009-03-10 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Effect of Heap Size on Performance? > > A smaller heap means that you'll catch even small memory leaks faster. Good for debugging, but provokes more frequent GCs, so may not be optimal for production. I tend to us

Re: Effect of Heap Size on Performance?

2009-03-10 Thread Leon Rosenberg
On Tue, Mar 10, 2009 at 3:41 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Taylan, > > On 3/5/2009 5:11 AM, Taylan Develioglu wrote: >> I always hold this as a ground rule: >> >> Increase heapsize as much as possible as long as: > > My rule has always been to

RE: maxHttpHeaderSize question

2009-03-10 Thread Caldarale, Charles R
> From: Josef Galea [mailto:jos...@ccbilleu.com] > Subject: maxHttpHeaderSize question > > Does the connector attribute maxHttpHeaderSize refer to the > total size of all the headers, or of each individual header? The total. BTW, the default is 8192 in Tomcat 6.0.18, not 4096; the doc is out

Re: Effect of Heap Size on Performance?

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/5/2009 5:11 AM, Taylan Develioglu wrote: > I always hold this as a ground rule: > > Increase heapsize as much as possible as long as: My rule has always been to run with the smallest heap you can get away with. We ran our main productio

Re: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 3/9/2009 1:02 PM, Joe Wallace wrote: > You hit the nail on the head. > Performance being equal I see no reason to use separate jvm/tomcat instances. because it makes your deployment easier. Have you tried using the service creation scri

Re: How to reload tomcat project when using virtual host?

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yves, On 3/4/2009 3:17 PM, Yves Yu wrote: > 2009/3/5 Christopher Schultz > On 3/3/2009 12:51 PM, Yves Yu wrote: I'm developing two projects, one of them need reload daily >> >> Ugh. Why? > > I'm using Nutch to search, it should be recrawl and r

RE: [OT] RE: Max Number of users

2009-03-10 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: [OT] RE: Max Number of users > I guess you should apply at the NSA or similar. National Seafood Agency? > I'm afraid the beer will go to André then :) I'm sure he'll appreciate it. Have fun there. - Chuck THIS COMMUNIC

Re: Tomcat error while starting related to java

2009-03-10 Thread selvajava
remaining jar files are in my classpath.. Now application is working. But while starting tomcat I am getting following message.. I dont know exactly what need to configure in log4j.xml Listening for transport dt_socket at address: 5005 log4j:WARN No appenders could be found for logger (org.apach

Re: Tomcat error while starting related to java

2009-03-10 Thread Pid
selvajava wrote: > Thanks for this help.. But I have done little deferent.. I have moved this > jar from webapps/lib to global lib folder.. Now this error not showing... Does that mean that your application is now working? > Is that the solution?? What could be the reason?? It depends. Have yo

Re: Tomcat error while starting related to java

2009-03-10 Thread selvajava
Thanks for this help.. But I have done little deferent.. I have moved this jar from webapps/lib to global lib folder.. Now this error not showing... Is that the solution?? What could be the reason?? Pid-2 wrote: > > selvajava wrote: >> Thanks Bla >> >> Yes, I know its related to web apps.. I

Re: Tomcat error while starting related to java

2009-03-10 Thread Pid
selvajava wrote: > Thanks Bla > > Yes, I know its related to web apps.. I validated my xml file. But no > error.. I am looking clue less The error below appears in the stacktrace > Caused by: java.lang.NoClassDefFoundError: > org/apache/commons/lang/NullArgumentException Is the jar containi

Need Hellp With Tomcat 6 / Apache 2.2 Cluster Problem

2009-03-10 Thread Alston, Brian (US SSA)
I have one Apache http server version 2.2.3 (on Red Hat Enterprise Linux 5) and three Tomcat 6 version 6.0.18 servers (on Windows Server 2003) running in my cluster. Everything "appears" to be working well. It looks like it is using RoundRobin because every time I refresh the page it goes from

Re: Tomcat error while starting related to java

2009-03-10 Thread selvajava
Thanks Bla Yes, I know its related to web apps.. I validated my xml file. But no error.. I am looking clue less Ognjen Blagojevic-3 wrote: > > Hi Selvajava, > > Read the stack trace carefully. It seems that the class > com.headstrong.tablecomponent.util.ConfigFileParser is digesting an

Re: Tomcat error while starting related to java

2009-03-10 Thread Ognjen Blagojevic
Hi Selvajava, Read the stack trace carefully. It seems that the class com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML file (probably TableProperties.xml), and during that process the exception is thrown - probably due to malformed XML. It seems that it doesn't have an

Re: Exception while configuring JDBC realm

2009-03-10 Thread Ognjen Blagojevic
Ramya Raghukumar wrote: I am trying to configure jdbc realm on Tomcat 6, by connecting to Oracle 11g that runs on Ubuntu.I tried doing it with inside but got the exception "Network adapter unable to establish connection". However when I tried to connect to the database through a JNDI resourc

MemoryLeak Problem with ThreadWithAttributes

2009-03-10 Thread Hennig, Patrick
Hello, i have a Memory Leak Problem with an Application running in Tomcat (5.5): The Application often Runs into HeapError- Out of Memory. Sometimes it only takes 5 Minutes, then sometimes the Applications runs for 5 Days, without a Problem. Its always the same Testenvironment. In Catalina Opts

maxHttpHeaderSize question

2009-03-10 Thread Josef Galea
Hi all, Does the connector attribute maxHttpHeaderSize refer to the total size of all the headers, or of each individual header? Thanks for your time. Regards, Josef smime.p7s Description: S/MIME cryptographic signature

Re: [OT] RE: Max Number of users

2009-03-10 Thread Gregor Schneider
On Tue, Mar 10, 2009 at 10:24 AM, André Warnier wrote: > > You might want to send him a bar of dark chocolate instead. > Chuck's a sweettooth? Hm, ok, then I'll have to do some clandestine work and will try to find his adress. Since I don't want to post his private adress on this list, I'm gonna s

Re: [OT] RE: Max Number of users

2009-03-10 Thread André Warnier
Gregor Schneider wrote: Chuck, On Tue, Mar 10, 2009 at 1:52 AM, Caldarale, Charles R wrote: Unfortunately, I don't drink beer, and I'm not likely to get to Amsterdam in two weeks (although it is tempting - more so if it were a bit warmer :-). Hm, I guess you'll be missing quite something.

Re: sqljdbc, integrated sql server authentication and multiple webapps - only the first app can connect

2009-03-10 Thread André Warnier
Stephan Steiner wrote: [...] Not a real answer to your question, but you might want to have a look at the following : http://jcifs.samba.or (the HTTP NTLM module, soon to be deprecated but which in the meantime works fine with NTLM v1, and is free) and/or http://www.ioplex.com (the Jespa mod

Re: [OT] RE: Max Number of users

2009-03-10 Thread Gregor Schneider
Chuck, On Tue, Mar 10, 2009 at 1:52 AM, Caldarale, Charles R wrote: > > Unfortunately, I don't drink beer, and I'm not likely to get to Amsterdam in > two weeks (although it is tempting - more so if it were a bit warmer :-). > Hm, I guess you'll be missing quite something. I'm afraid the beer w

sqljdbc, integrated sql server authentication and multiple webapps - only the first app can connect

2009-03-10 Thread Stephan Steiner
Hi I recently had to switch over two of my webapps hosted on Tomcat 6.0.16 from sql server authentication to windows authentication. I'm using the latest v1.2 sqljdbc driver, copies the authentication lib to the system32 directory, configured tomcat to run under the local administrator account (ye

Re: [OT] RE: Max Number of users

2009-03-10 Thread Gregor
well, again learned something: never mess with Chuck :) will keep that in mind cheers gregor Am 10.03.2009 um 00:31 schrieb Rainer Jung : On 10.03.2009 00:05, Caldarale, Charles R wrote: From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: [OT] RE: Max Number of users I'll pr

Re: [OT] RE: Max Number of users

2009-03-10 Thread Gregor
Chuck, I guess you should apply at the NSA or similar. The beer's yours :) Gregor Am 10.03.2009 um 00:05 schrieb "Caldarale, Charles R" >: From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: [OT] RE: Max Number of users I'll provide my business-card in Amsterdam so that you b

Check library which leaves .nfs file open

2009-03-10 Thread tazair
Hello, I am using Tomcat 6 running on Fedora. I have created a web application. When I undeploy it using the manager, there is one .nfs* file that stays in WEB-INF/lib.I cannot delete this file and when I want to deploy again the application I need to stop tomcat, delete manually the file and star

Tomcat error while starting related to java

2009-03-10 Thread selvajava
HI All, I am getting following error while starting tomcat.. But tomcat staring successfully.. <2009-03-10 12:11:11,533>[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main] - TableProperties URL is file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB