JNDIRealm over SSL to OpenLDAP

2007-03-14 Thread Nathan Fiedler
While I can configure OpenLDAP and Tomcat 6 to connect over port 389, without SSL, I cannot get it to work with a secure connection. All I have done is set OpenLDAP to require SSL/TLS, which I know is working fine, and modified the realm configuration to use port 636 and the ldaps protocol. Giv

org.apache.jasper.compiler.DefaultErrorHandler.javacError

2007-03-14 Thread Raghuveer
Could anyone suggest me what is the following error related to. error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248) at org.apache.jasper.compil

JSP page not updated on each request

2007-03-14 Thread pkumar
Hello, The JSP pages in my project is not showing the updated one upon each request..Its showing the old one and only when i press the refresh, its showing the updated one...I believe this is the problem with Tomcat..Can someone help. Thanks in advance Pradeep -- View this message in context:

Problem while embedding Tomcat 5.5.23- Class not found

2007-03-14 Thread kz
Hi, I am embedding tomcat in an application. I am using embedded version of Tomcat 5.5.23 but I get the following exception. I have added all the jar files in $CATALINAHOME\lib in my class path. Can anyone help me out? Mar 15, 2007 12:01:23 PM org.apache.catalina.startup.Embedded start INFO: St

open a window in a new session

2007-03-14 Thread Dave
I am using servlet. How to open a window in a new session? I tried javascript onclick="window.open(...)" but the opened window belongs to the same servlet session (see from user login name). Thanks for help! David - Never mi

Tomcat 5.5.23 with FORM authentication

2007-03-14 Thread Rakesh Kumar
Hi, We want to configure an application in Tomcat 5.5.23 with FORM authentication. Q : How to configure it for users without any role being assigned to a user ? Rakesh Kumar - To start a new topic, e-mail: users@tomcat.apac

Help on Error information

2007-03-14 Thread Raghu Veer, Vellanki (EXPORT_ESA)
Could anyone suggest me what is the following error related to. error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:85) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 48) at org.apache.jasper.c

Re: File Content Not Saved To Server

2007-03-14 Thread Teh Noranis Mohd Aris
Dear All, I've already modified my program based on Mr. Christopher's solution but thers's still the word "null" in the file. You probably have a null content variable. String.valueOf(null) returns "null", so that's probably what's happening. I only declared URL servletUrl = null b

Re: Rationale for makeing Invoker harder to user

2007-03-14 Thread Peter Kennard
At 20:38 3/14/2007, you wrote: http://tomcat.apache.org/faq/misc.html#evil -Tim All very good points escpecially since it will load classes outside the webapps sandbox. Definately evil. What I would probably do in the large # of servlets situation for a single webapp during development is

RE: list of session objects associated w/ a context

2007-03-14 Thread Tim Lucia
> -Original Message- > From: John Cartwright [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 14, 2007 11:47 AM > To: users@tomcat.apache.org > Subject: list of session objects associated w/ a context > > Hello All, > > Is there a simple way to get a list of the HttpSession objects > as

RE: Rationale for makeing Invoker harder to user

2007-03-14 Thread Tim Lucia
> -Original Message- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 14, 2007 8:39 PM > To: Tomcat Users List > Subject: Re: Rationale for makeing Invoker harder to user > > http://tomcat.apache.org/faq/misc.html#evil Keep in mind this opens with "This is opinions of

Re: Rationale for makeing Invoker harder to user

2007-03-14 Thread Paul Mendelson
Tim Funk wrote: http://tomcat.apache.org/faq/misc.html#evil -Tim Paul Mendelson wrote: I recently installed Tomacat 6.0 and see that I now need to make my web application privalaged in order to use InvokerServlet to allow users to execute arbitrary servlets. This seems to continue a trend t

Re: Rationale for makeing Invoker harder to user

2007-03-14 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#evil -Tim Paul Mendelson wrote: I recently installed Tomacat 6.0 and see that I now need to make my web application privalaged in order to use InvokerServlet to allow users to execute arbitrary servlets. This seems to continue a trend that may eventuall

Re: Rationale for makeing Invoker harder to user

2007-03-14 Thread Peter Kennard
I am a newbee here but as a work around, I would think you could have a "master" servlet and it could scan and load all the servlets in the directory into a map, and then dispatch requests to them from "/*" (having them properly initialized in another question) I would be interested in the off

Win32 64-bit Intel tomcat5.exe

2007-03-14 Thread Anil Arora
Hi, all I've seen some postings regarding the tomcat5.exe executable for Windows services. We are also running into the problem that we cannot use the existing tomcat5.exe for setting up Tomcat as a service in Win 2003 on a 64-bit Intel box. We've tried the tomcat5.exe.amd64 file, but that di

Rationale for makeing Invoker harder to user

2007-03-14 Thread Paul Mendelson
I recently installed Tomacat 6.0 and see that I now need to make my web application privalaged in order to use InvokerServlet to allow users to execute arbitrary servlets. This seems to continue a trend that may eventually result in Invoker being widthdrawn. My question is why is allowing exe

Re: SSO ID in the first request

2007-03-14 Thread Fredrik Tolf
On Tue, 2007-03-13 at 19:34 +0100, Gregor Schneider wrote: > I guess you're talking about JSSOSessionID-Cookie, right? Indeed. > I believe the whole design is not too smart: > > Since all webapps are sharing the same session, I'd store the needed > values as session-attributes (too lazy to look

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 14 March, 2007 15:02 | | In my tests on the larger machine, the JVM kindly tells me that it can't | give me that much memory, rather than crashing and burning as I would | expect after being tricked by the OS. Perhaps the JV

A fundamental problem using ant and Tomcat

2007-03-14 Thread richard adams
Hello I am running a very straightforward Tomcat on Windows XP set up with everything as default settings If I run "ant list" I get the error java.lang.IllegalArgumentException: protocol = http host = null I can't work out why - any chance of a few pointers? thanks for any help Richard Tomca

Re: Example of a build.xml File for Tomcat ?

2007-03-14 Thread Daniel Gresh
james.javaman wrote: Hi Dan, Sorry if I’m being dense here, but how does the newly compiled code get into $CATALINA_HOME/webapps/myWebApp? I don’t see the part in your build.xml where the new changes (newly compiled changes) make it to the Tomcat directory. According to your response, ${bui

Re: Example of a build.xml File for Tomcat ?

2007-03-14 Thread james.javaman
Hi Dan, Sorry if I’m being dense here, but how does the newly compiled code get into $CATALINA_HOME/webapps/myWebApp? I don’t see the part in your build.xml where the new changes (newly compiled changes) make it to the Tomcat directory. According to your response, ${build} can point anywhere.

Re: JK 1.2.21 DLL does not work with IIS 6?

2007-03-14 Thread Cory . Bestgen
I have noticed some funny behavior with 1.2.21 also... We have tomcat hosting jira and jira is using the ntlm plugin for sso authentication. With 1.2.21 - 1. We are unable to use internet explorer to connect to jira(page cannot be displayed error). 2. Firefox with the ntlm options turned on i

Re: Classpath Problem

2007-03-14 Thread Mark Hale
LOL You danced around that one well. Actually, I didn't include it because I am migrating from WebLogic to Tomcat. WebLogic let's me get away without the includes for java.util. I've been using Workshop for so long I overlooked it. That resolved it. Thank you David. I will migrate to anothe

Re: Example of a build.xml File for Tomcat ?

2007-03-14 Thread Daniel Gresh
james.javaman wrote: Hi Dan, Thanks for your response. Let me just make sure I heard you right: So I have a javac target in my build.xml file. It simply compiles code in ${source} and puts it in {$build}. You are suggesting that I point {$build} to the Tomcat directory? For example, since I

Re: Classpath Problem

2007-03-14 Thread David Smith
Apologies if this sounds insulting, but ... you did include java.util.HashMap in your jsp, didn't you? IE: <[EMAIL PROTECTED] import="java.util .HashMap" %> --David Mark Hale wrote: Hi there. I am new to Tomcat and have installed Tomcat6 and JDK1.5 on Windows. I get Tomcat to run and can in

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tracy, Nelson, Tracy M. wrote: > I imagine that when the JVM calls [cm]alloc, one of the first things alloc() > does is call sbrk() to expand your process' memory space. That'll fail > right away if you don't have enough VM available. I do not exper

Re: Example of a build.xml File for Tomcat ?

2007-03-14 Thread james.javaman
Hi Dan, Thanks for your response. Let me just make sure I heard you right: So I have a javac target in my build.xml file. It simply compiles code in ${source} and puts it in {$build}. You are suggesting that I point {$build} to the Tomcat directory? For example, since I’m on Windows, {$build

Re: Tomcat 6 Scales

2007-03-14 Thread Filip Hanik - Dev Lists
Michael Clovis wrote: Filip, Great article. We were already having some memory issues using the NIO connector in 6.0.10 yet REALLY need this functionality. Our quick question is the following , can we in your estimation use the nightly build of your code and apply to 6.0.10 until version 11

Re: Example of a build.xml File for Tomcat ?

2007-03-14 Thread Daniel Gresh
James Javaman wrote: Hello, I am trying to setup a build.xml file for a servlet. I am using the following 2 URL's as references: http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant http://www.onjava.com/onjava/2003/01/08/examples/build.xml

RE: Classpath Problem

2007-03-14 Thread Propes, Barry L [GCG-NAOT]
might need an updated jar file for that. Might have been included with one package earlier and is now in another one. -Original Message- From: Mark Hale [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 2:29 PM To: users@tomcat.apache.org Subject: Classpath Problem Hi there. I

Example of a build.xml File for Tomcat ?

2007-03-14 Thread James Javaman
Hello, I am trying to setup a build.xml file for a servlet. I am using the following 2 URL's as references: http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant http://www.onjava.com/onjava/2003/01/08/examples/build.xml.html So my problem is

Classpath Problem

2007-03-14 Thread Mark Hale
Hi there. I am new to Tomcat and have installed Tomcat6 and JDK1.5 on Windows. I get Tomcat to run and can include my own JSP's. However, whenever I use classes like HashMap I get a compiler error (HashMap cannot be resolved to a type). I've dug all through the web, documentation and mail archi

Re: "No host matches server name" on FC6 (Resolved)

2007-03-14 Thread Richi Plana
Hi, This is embarrassing. Apparently "yum install tomcat5" on Fedora doesn't pull in all the packages I was (perhaps wrongfully) expecting. It turns out I was missing the packages tomcat5-webapps and tomcat5-admin-webapps A comparison of the stock tomcat.apache.org conf/ subdirectory versus the s

JK 1.2.21 DLL does not work with IIS 6?

2007-03-14 Thread Dobbins, Tim
> Greetings, > > I'm trying to get the 1.2.21 JK connector working with IIS 6 and > TomCat 5.5. Thus far, I have not been successful. Is there anyone > out there who has successfully configured this? I have followed the > documentation to a 'T' and have been frigging around with this for > da

Re: Multilevel webapp WAR won't start when packed

2007-03-14 Thread Pid
Caldarale, Charles R wrote: From: Pid [mailto:[EMAIL PROTECTED] Subject: Multilevel webapp WAR won't start when packed TC v6.0.10 I have a 'multi-level' path webapp that I'm deploying via a WAR. The WAR is named "download#file.war". If I instruct it to stay packed it will not deploy, throw

Re: Max number of contexts

2007-03-14 Thread Martin Gainty
Diego-- This comes straight from the doc Each definition must have a unique context path, which is defined by the path attribute. The possible attributes for the element are described below. If you want to look at how one servlet can service multiple entities such as modules take a look at mo

Re: Max number of contexts

2007-03-14 Thread Filip Hanik - Dev Lists
Diego Rodriguez wrote: Hi, I'm using Tomcat 5.5.20. In the docs says "You may define as many *Context* elements as you wish" I'm going to design a new web application that will act as a kernel for other lightweight webapps that will implement different services and may be hot install

Max number of contexts

2007-03-14 Thread Diego Rodriguez
Hi, I'm using Tomcat 5.5.20. In the docs says "You may define as many *Context* elements as you wish" I'm going to design a new web application that will act as a kernel for other lightweight webapps that will implement different services and may be hot installed at any time. My plan

RE: getRemoteAddr() returns IPv6 instead of IPv4

2007-03-14 Thread Nelson, Tracy M.
| From: jt [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 13 March, 2007 13:11 | | When I make a request.getRemoteAddr() I receive an IPv6 address while I | want the IPv4. Is the request coming across an IPv6 interface? If so, I don't know that you can get an IPv4 address (without calling getRemoteH

RE: Multilevel webapp WAR won't start when packed

2007-03-14 Thread Caldarale, Charles R
> From: Pid [mailto:[EMAIL PROTECTED] > Subject: Multilevel webapp WAR won't start when packed > > TC v6.0.10 > > I have a 'multi-level' path webapp that I'm deploying via a WAR. The > WAR is named "download#file.war". > > If I instruct it to stay packed it will not deploy, throwing the > ex

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 14 March, 2007 12:05 | | Perhaps, but the JVM actually refuses to start right away. In my "eat | all my memory" tests, I was able to eat around 1.6GB before I brought my | machine to a crawl. It took more than a minute for my

RE: Is there a better way to do this?

2007-03-14 Thread Caldarale, Charles R
> From: Propes, Barry L [GCG-NAOT] > [mailto:[EMAIL PROTECTED] > Subject: RE: Is there a better way to do this? > > even if the server.xml file's reloadable is set to true? > > reloadable="true" in the Context param? The reloadable attribute does not control the monitoring of JSP changes. That

Re: Is there a better way to do this?

2007-03-14 Thread Rashmi Rubdi
Also, are you performing an Ant build or some sort of a build to move the JSP from your project dir to Tomcat's / webapps dir? If you are, you can change that by keeping the project outside Tomcat, and only specify the absolute path of your project in appBase/docBase in server.xml. With the abo

RE: Is there a better way to do this?

2007-03-14 Thread Propes, Barry L [GCG-NAOT]
even if the server.xml file's reloadable is set to true? reloadable="true" in the Context param? -Original Message- From: Steveswt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 12:15 PM To: users@tomcat.apache.org Subject: Is there a better way to do this? Hi, I am one of

getRemoteAddr() returns IPv6 instead of IPv4

2007-03-14 Thread jt
Hello, I'm using tomcat 5.5.20 with jdk 1.5 under Kubuntu 6.10 (linux 2.6.17-10) with no particular configuration. When I make a request.getRemoteAddr() I receive an IPv6 address while I want the IPv4. Is this behaviour related to my environment (OS), jdk, tomcat or to some mis- configuration ?

Is there a better way to do this?

2007-03-14 Thread Steveswt
Hi, I am one of the web developers for a company that uses java technology. I've noticed my changes (jsp's) don't take into effect unless I remove the file from the server, refesh the browsers like 5 times till i get a 404, then place the new file back on the server. I assume the changes dont t

Multilevel webapp WAR won't start when packed

2007-03-14 Thread Pid
TC v6.0.10 I have a 'multi-level' path webapp that I'm deploying via a WAR. The WAR is named "download#file.war". If I permit the WAR to unpack, it will deploy. If I instruct it to stay packed it will not deploy, throwing the exception below. When I manually create the dir "download/file"

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > For instance, "java -Xmx512M -Xms512M -version" bombs on this little > box, even though the heap is pretty much never used. The JVM requests all 512 MB at startu

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tracy, Nelson, Tracy M. wrote: > | From: Christopher Schultz [mailto:[EMAIL PROTECTED] > | Sent: Wednesday, 14 March, 2007 10:37 > | > | The fact remains that you can't allocate a VM heap bigger than around > | 1750MB on my 32-bit, 2.6 Linux kernel.

"No host matches server name" on FC6

2007-03-14 Thread Richi Plana
Hi, I've recently set up and updated to the latest package a Fedora Core 6 box on x86_64 hardware. I also installed tomcat5-5.5.17-6jpp.2 from the Fedora Extras repository and java-1.5.0-ibm-1.5.0.4-1jpp from JPackage and IBM. Using the stock / default configuration files, I get the following acc

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 14 March, 2007 10:37 | | The fact remains that you can't allocate a VM heap bigger than around | 1750MB on my 32-bit, 2.6 Linux kernel. Why not? If, as you stated earlier, you only have 1G of physical and 1G of virtual memor

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: [OT]Re: Is better one or more Tomcat instances >> per machine >> >> The fact remains that you can't allocate a VM heap bigger than around >> 17

RE: OutOfMemoryError

2007-03-14 Thread Rahul Tandon
I have following output for ulimit -a core file size(blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) 4 max memory size (kbytes, -m) unlimited open files(-n) 1024 pip

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > The fact remains that you can't allocate a VM heap bigger than around > 1750MB on my 32-bit, 2.6 Linux kernel. Why not? You have to wait for a full moon... - C

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: [OT]Re: Is better one or more Tomcat instances >> per machine >> >> I guess that Linux not only does optimistic malloc, but also >> optimistic

list of session objects associated w/ a context

2007-03-14 Thread John Cartwright
Hello All, Is there a simple way to get a list of the HttpSession objects associated w/ a particular context? I know that I can send a request to the Manager servlet, but I'm looking to get the objects themselves. I need to examine each session for a particular attribute. Thanks! -- john

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > I guess that Linux not only does optimistic malloc, but also > optimistic calloc as well. I had hoped that zeroing-out the > memory would count as a "write", but

RE: OutOfMemoryError

2007-03-14 Thread Caldarale, Charles R
> From: Rahul Tandon [mailto:[EMAIL PROTECTED] > Subject: RE: OutOfMemoryError > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" Doesn't seem excessive. What does ulimit say about your user process virtual memory limit? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

Stalled Servlet Handling?

2007-03-14 Thread Peter Kennard
Curious with the talk about reliability. Socket timouts will abort waiting on reads and writes that take too long. But if lets say a servlet takes an overly long time to process something without reading or writing, is there a high priority "watchdog" thread in tomcat which will monitor how

Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: > On 14/03/2007, at 3:17 PM, Peter Crowther wrote: >> A minor advantage is that if you allocate one webapp per container, if >> one webapp fails it only takes down its own container. Well-coded >> webapps "should" never ca

OutOfMemoryError

2007-03-14 Thread Rahul Tandon
Hi, I am using following configuration: Red Hat Enterprise Linux AS release 3 (Taroon Update 4) 4GB RAM Tomcat version 5.5 Java version "1.5.0_06" . I am using CATALINA_OPTS "-Xms512m -Xmx512m -Djava.awt.headless=true" and tomcat comes up fine and my http requests are process

Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Peter Kennard
Heh - ask Murphy about that :) just spawn a thread set priority high and loop forever. At 10:23 3/14/2007, you wrote: On 14/03/2007, at 3:17 PM, Peter Crowther wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] There is no real advantage in multi-instancing. A minor advantage is that if

RE: OutOfMemoryError

2007-03-14 Thread Rahul Tandon
I am using: maxThreads="150" minSpareThreads="25" maxSpareThreads="75" Thanks, Rahul Tandon [EMAIL PROTECTED] -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 11:52 AM To: Tomcat Users List Subject: RE: OutOfMemoryError > From

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: [OT]Re: Is better one or more Tomcat instances >> per machine >> >> I don't think this has anything to do with hardware. > > It does. To quo

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Hmm perhaps I have a virtual memory limit. I have 1GB >> of physical RAM. While allocating a 3GB heap is pretty >> stupid for me, I still ought to be a

RE: OutOfMemoryError

2007-03-14 Thread Caldarale, Charles R
> From: Rahul Tandon [mailto:[EMAIL PROTECTED] > Subject: OutOfMemoryError > > Caused by: java.lang.OutOfMemoryError: unable to create new > native thread > > I am checking vmstat at this time and see 3GB free memory. You appear to have hit a limitiation on the number of threads you can create

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > Your kernel, and the things which are doing your process > switching need somewhere to run - if you switch them out > of your 4GB of virtual address space, how are they

Re: Chrooting Tomcat // Linux threading issue

2007-03-14 Thread Reinhard Moosauer
Hi, If security is your main concern, you should really consider 2.6: Technologies like AppArmor are are giving a lot of confidence. And you have intrusion detection included. And IMHO you have no long term alternative to using current and maintained software. R. Am Dienstag, 13. März 2007 12

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > Hmm perhaps I have a virtual memory limit. I have 1GB > of physical RAM. While allocating a 3GB heap is pretty > stupid for me, I still ought to be able to

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2007, at 3:52 PM, Caldarale, Charles R wrote: The user space is the amount of RAM you as a process can allocate for this single process. No - RAM has nothing to do with the split. Process memory is the amount of virtual space allocated

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Pliszka
1) We are using tomcat in production with -Xmx1524M up to 1700, but I have never used it with -Xmx more than 2G. I can also verify that top shows java process using more than 1GB. Java process shows 200MB more allocated memory than -Xmx in top. 2) I have CentOS 4.4 machine at home that has 4GB

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: > 32bit OSes can not use more than 4GB RAM. ??! A process on a 32-bit OS can't use more than 4GB of RAM, but the OS certainly can. >> 2GB/2GB kernel and process memory boundaries (they don't, except that I >> think MS Wi

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > I don't think this has anything to do with hardware. It does. To quote from the IA32 architecture spec: "Starting with the Pentium Pro processor, the IA-32 ar

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, I knew you'd come through. It's always nice to have a VM hacker around for questions like this. Caldarale, Charles R wrote: >> that they have 2GB/2GB kernel and process memory boundaries > > Windows certainly does have such a boundary (althou

Re: 64-bit Apache with 32-bit Tomcat

2007-03-14 Thread Mladen Turk
Sharma, Siddharth wrote: Is it possible to use a 64-bit Apache (consequently 64-bit mod-jk) with 32-bit Tomcat instances? Some Tomcats will be co-located with the Apache on the same box and some will be remote. But all the Tomcats will run on 64-bit Linux kernel? You can even run mod_jk on IIS

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] > Subject: Re: [OT]Re: Is better one or more Tomcat instances > per machine > > The user space is the amount of RAM you as a process can > allocate for this single process. No - RAM has nothing to do with the split. Process memory is the amount o

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: > 32 bits architecture, a memory pointer is 32 bits and thus can only > address memory ranges between 0 to 2^32, that makes 4G > back in kernel 2.4 time Pointers didn't get bigger in 2.6, so the 4GB process limit is still

64-bit Apache with 32-bit Tomcat

2007-03-14 Thread Sharma, Siddharth
Is it possible to use a 64-bit Apache (consequently 64-bit mod-jk) with 32-bit Tomcat instances? Some Tomcats will be co-located with the Apache on the same box and some will be remote. But all the Tomcats will run on 64-bit Linux kernel?

Re: Turn off Tomcat Version on 404 error.

2007-03-14 Thread Susan Richards
Thanks. I was hoping there was a way to just turn it off and not have a custom error page. >>> Darren <[EMAIL PROTECTED]> 3/14/2007 5:14 AM >>> For just 404 you can create your own page as another poster advised. If you want to do this for all error/code pages, take a look part way down the

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
On 14/03/2007, at 3:21 PM, Peter Crowther wrote: Let's be clear about the distinction between "OS" and "process managed by OS": - The OS as a whole can manage > 4 Gbytes of physical memory using PAE; - On some OSs (Linux, perhaps?), a user process cannot be allocated > 4 Gbytes of RAM; S

Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
On 14/03/2007, at 3:17 PM, Peter Crowther wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] There is no real advantage in multi-instancing. A minor advantage is that if you allocate one webapp per container, if one webapp fails it only takes down its own container. Well-coded webapps "sh

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Peter Crowther
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] > 32bit OSes can not use more than 4GB RAM. What you are probably > referring > to is PAE, and there the kernel splits the 'extra' memory into > chunks, and > can give each process part of this chunk - a single process however, > under > linux c

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2007, at 3:11 PM, David Delbecq wrote: This has changed. An new architecture was brought in CPU (at pentium II time?) that allowed OS to do a 4G/4G mapping in 32 bits mode. Since you don't access kernel space from user mode directly, yo

RE: Is better one or more Tomcat instances per machine

2007-03-14 Thread Peter Crowther
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > There is no real advantage in multi-instancing. A minor advantage is that if you allocate one webapp per container, if one webapp fails it only takes down its own container. Well-coded webapps "should" never cause this - and, of course, we all m

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2007, at 2:31 PM, Christopher Schultz wrote: The reading I've done so far on this subject leads me to believe that most people don't know what they heck they're talking about. Some claim that 32-bit OSs can't use more than 4GB RAM (they

RE: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: [OT]Re: Is better one or more Tomcat instances per machine The below applies only to 32-bit systems, of course. > Some claim that 32-bit OSs can't use more than 4GB RAM Lots of people seem to confuse virtual space with real memory

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread David Delbecq
En l'instant précis du 14/03/07 14:31, Christopher Schultz s'exprimait en ces termes: > Leon, > > Leon Rosenberg wrote: > > But the limit for max memory you can effectively use in your java > > program on a 32bit linux, i assume you use (same for windows), > > lies far below 2Gb. > > I've been try

Should EL (Expression Language) expressions result in the TagData.REQUEST_TIME_VALUE object?

2007-03-14 Thread David Diehl
I have a custom tag with attributes defined in the TLD file as allowing run-time expression values, meaning: true I also have a TagExtraInfo class that I am using to validate the values provided. Inside my TagExtraInfo sub-class I have code such as this: Object attr = data.getAttribute("gro

Re: Tomcat 5.5 failure to deploy javac 1.6 servlet

2007-03-14 Thread Reinhard Moosauer
Hi, does your tomcat instance really use JRE 1.6 ? You can easily check in the manager app. Anyway I would suggest to always use -source 1.4 -target 1.4 for older Classes, because you avoid all possible syntax problems. Other combinations of source/target could be tested if you suspect a javac

[OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > But the limit for max memory you can effectively use in your java > program on a 32bit linux, i assume you use (same for windows), > lies far below 2Gb. I've been trying to find the real nature of this memory limit. I h

Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Leon Rosenberg
Unless you have real memory requirements, one tomcat instance is better, at least in terms of maintenance. There is no real advantage in multi-instancing. But the limit for max memory you can effectively use in your java program on a 32bit linux, i assume you use (same for windows), lies far belo

Re: Turn off Tomcat Version on 404 error.

2007-03-14 Thread Darren
For just 404 you can create your own page as another poster advised. If you want to do this for all error/code pages, take a look part way down the common section of this article. http://www.owasp.org/index.php/Securing_tomcat#Common On 13 Mar 2007, at 20:58, Susan Richards wrote: How does

RE: Apache - tomcat connection on Suse Lnux

2007-03-14 Thread dianelane
locate servlet-api gives: /usr/lib/java/common/lib/servlet-api.jar /usr/share /tomcat5/common/lib/servlet-api.jar Larry Isaacs wrote: > > Yes, I have installed a packaged version (RPM via Suse Yast). > While mod_jk has been downloaded and moved to its "modules" directory. > What should I do, n

Is better one or more Tomcat instances per machine

2007-03-14 Thread Wenca
Hi all, I am now preparing the deployment scenario for our new webapp and I am not sure if it is better to have one Tomcat instance per server machine or to have more instances. I have 3 servers - dual Intel Xeon 3GHz, 4GB RAM each (about 3GB is available for Tomcat etc.). There will be runn