Memory usage with multiple instances of tomcat

2007-08-03 Thread Peter Sparkes
Hi, I followed the "Tomcat with 8 GB memory" thread but did not find the answer to the following question: I am setting up a Linux server with 8 GB memory which will be running 3 instances of tomcat 5,5; when I allocate memory to java, say 2GB: 1. Does each tomcat instance use a separate 2

Re: Suggestions for overlapping URI spaces

2007-08-03 Thread Bill Barker
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > I have two applications deployed in production that share a URL space. > Actually, one is deployed as the root webapp, the the other one is at, > say, "

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread Bill Barker
"Mark Thomas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > aladdin wrote: >> Hmmm! One other thing, if you please. There is no "name" attribute that >> I >> can find under the Context entry on the Tomcat website. If I use >> getServletContextName(), where does the name come f

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread Mark Thomas
aladdin wrote: > Hmmm! One other thing, if you please. There is no "name" attribute that I > can find under the Context entry on the Tomcat website. If I use > getServletContextName(), where does the name come from? Of the top of my head, no idea. Have you tried looking at the source code? M

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread Mark Thomas
aladdin wrote: > If you go here (Sun's official docs): > > http://java.sun.com/javaee/5/docs/api/ > > you'll find it under the ServletContext interface. However, not being one to > argue with the obvious, I'm surely going to take your advice, and, in fact, > thank you very much for it. > > Ca

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
Hmmm! One other thing, if you please. There is no "name" attribute that I can find under the Context entry on the Tomcat website. If I use getServletContextName(), where does the name come from? Thanks some more, Allen On Friday 03 August 2007 19:42, David Smith wrote: > Doh! > > Looks like

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
If you go here (Sun's official docs): http://java.sun.com/javaee/5/docs/api/ you'll find it under the ServletContext interface. However, not being one to argue with the obvious, I'm surely going to take your advice, and, in fact, thank you very much for it. Can you post the URL to the Tomcat

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread David Smith
Doh! Looks like you already know about getServletContextName(). getContextPath() still doesn't exist. If getContextPath() is what I think it is, it's only available in ServletRequest. --David aladdin wrote: I have the following two lines of code in a context listener: ServletCont

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread David Smith
Could be because ServletContext doesn't have that method. You might want to try using getServletContextName(). The Servlet API is available online at the tomcat website. --David aladdin wrote: I have the following two lines of code in a context listener: ServletContext sc= e.getServ

Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
I have the following two lines of code in a context listener: ServletContext sc= e.getServletContext(); // e is a ServletContextEvent log.write("AppInitializer::ContextInitializer: context name='" + sc.getServletContextName() + "'"); log.write("AppInitializer::ContextIniti

RE: Failed Authentication

2007-08-03 Thread Propes, Barry L
might try this link, too. http://svn.apache.org/repos/asf/tomcat/container/branches/other/tc5.5.x/ASF/catalina/src/share/org/apache/catalina/authenticator/AuthenticatorBase.java -Original Message- From: Lisa Tan [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 3:55 PM To: 'Tomcat U

RE: Failed Authentication

2007-08-03 Thread Propes, Barry L
looking at this, http://svn.apache.org/repos/asf/tomcat/container/branches/tc5.0.x/catalina/src/share/org/apache/catalina/authenticator/AuthenticatorBase.java it looks like at lines 448 or 506, it's choking perhaps at the URI. Also shows this - and therefore the "j_security_check" URI /

RE: Failed Authentication

2007-08-03 Thread Propes, Barry L
ok. I'm stuck in ancient times on the 4.xx series, but the security constraint params are likely to be similar enough. Let me double check mine. -Original Message- From: Lisa Tan [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 3:55 PM To: 'Tomcat Users List' Subject: RE: Failed

RE: Failed Authentication

2007-08-03 Thread Lisa Tan
I am using apache-tomcat-5.5.17, and Apache 2.0.52 which comes with RedHat. Thanks, Lisa -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 4:40 PM To: Tomcat Users List Subject: RE: Failed Authentication what version do you have? Of TC? -

RE: Failed Authentication

2007-08-03 Thread Propes, Barry L
what version do you have? Of TC? -Original Message- From: Lisa Tan [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 9:59 AM To: 'Tomcat Users List' Subject: RE: Failed Authentication I am trying to set up Tomcat form based authentication and received the following error. Failed au

Suggestions for overlapping URI spaces

2007-08-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have two applications deployed in production that share a URL space. Actually, one is deployed as the root webapp, the the other one is at, say, "/foo". My problem is that each webapp maintains its own session identifiers as cookies. Since the

RE: AW: AW: Application outside WEBAPPS

2007-08-03 Thread Caldarale, Charles R
> From: Scott McClanahan [mailto:[EMAIL PROTECTED] > Subject: Re: AW: AW: Application outside WEBAPPS > > What if you want the path to the application to differ from > the name of the deployed application? Several options: 1) Correct the name of the deployed .war file (or expanded directory th

Re: Error reported when starting app in cluster

2007-08-03 Thread Filip Hanik - Dev Lists
Derek Alexander wrote: the same app would have to run on both instances, You mean this error is normal when starting the first server in a cluster? if it was the first server, it wouldn't request state from another, would it ?:) -

Re: AW: AW: Application outside WEBAPPS

2007-08-03 Thread Scott McClanahan
On Fri, 2007-08-03 at 18:58 +0100, Pid wrote: > [EMAIL PROTECTED] wrote: > > hi, > > > > useNaming does not affect here, correct. > > > > What's the reason ignoring the path attribute? (6.0.14 ignores as well) > > Because it's only used when the context is defined in server.xml and the > path c

Re: AW: AW: Application outside WEBAPPS

2007-08-03 Thread Pid
[EMAIL PROTECTED] wrote: hi, useNaming does not affect here, correct. What's the reason ignoring the path attribute? (6.0.14 ignores as well) Because it's only used when the context is defined in server.xml and the path can't be derived from the name of the deployed context.xml file. p

Re: Jkoptions error

2007-08-03 Thread Rainer Jung
Which version of mod_jk? This option has been introduced in JK 1.2.19. It works for me. Regards, Rainer André Vila Cova wrote: Why I get Syntax error on line 516 of Z:/Apache Software Foundation/Apache2.2/conf/httpd.conf: JkOptions: Illegal option 'DisableReuse' When I setup JkOptions

RE: Question on starting tomcat (as a windows service) from Ant

2007-08-03 Thread Lenny Wintfeld
Rodrigo, Per your request, here are files in WEB-INF and WEB-INF/lib. All the subdirectories of WEB-INF/classes have our webapp class names an I assume are of no interest to you. According to the guy who I inherited this project from, servlet-api is in the WEB-INF/lib for the Ant build so t

Re: How to avoide delete context.xml - 6.0.14

2007-08-03 Thread Hassan Schroeder
On 8/3/07, Mark H. Wood <[EMAIL PROTECTED]> wrote: > > After the copy, the previous installed > > /conf/Catalina/localhost/myapp.xml will be deleted by the server > > automatically. You won't have this problem if you use META-INF/context.xml for your context descriptor. -- Hassan Schroeder

Jkoptions error

2007-08-03 Thread André Vila Cova
Why I get Syntax error on line 516 of Z:/Apache Software Foundation/Apache2.2/conf/httpd.conf: JkOptions: Illegal option 'DisableReuse' When I setup JkOptions +DisableReuse in httpd.conf?? Thanks a lot

Re: Error reported when starting app in cluster

2007-08-03 Thread Derek Alexander
> the same app would have to run on both instances, You mean this error is normal when starting the first server in a cluster? -- View this message in context: http://www.nabble.com/Error-reported-when-starting-app-in-cluster-tf4212847.html#a11985035 Sent from the Tomcat - User mailing list a

RE: Failed Authentication

2007-08-03 Thread Lisa Tan
I am trying to set up Tomcat form based authentication and received the following error. Failed authenticate() test ??/j_security_check - org.apache.catalina.authenticator.AuthenticatorBase [20070802] What I have done is: a). in $TOMCAT/conf/server.xml, I add JNDIRealm ldap://xxx:xxx"; us

Re: Error reported when starting app in cluster

2007-08-03 Thread Derek Alexander
> Does this application run well in a tomcat that isn't clustered? Yes > Does your application have the element in web.xml? Yes > I'd recommend looking through the output in the other log files in > $CATALINA_HOME/logs/, especially localhost, to see whether there are > any exceptions / errors

Re: How to avoide delete context.xml - 6.0.14

2007-08-03 Thread Mark H. Wood
On Fri, Aug 03, 2007 at 02:05:07PM +0200, [EMAIL PROTECTED] wrote: > I'm using /conf/Catalina/localhost/myapp.xml context configuration. > My deployment works as ant-copy directly to the /webapps directory. > > After the copy, the previous installed > /conf/Catalina/localhost/myapp.xml will be del

Re: Error reported when starting app in cluster

2007-08-03 Thread Filip Hanik - Dev Lists
the same app would have to run on both instances, Filip Derek Alexander wrote: Getting an ERROR reported when starting webapp within a cluster. Note, at this time I am starting the first server in the cluster, which is the 192.168.0.1 mentioned in the error message. Can someone please explai

Re: Installing Tomcat on Linux

2007-08-03 Thread Mark H. Wood
On Thu, Aug 02, 2007 at 05:51:27PM -0400, Steve Ochani wrote: > LOL, I would ask him if he sits there and examines all the code of > everything that is on his system. Ya know, I don't do that before I install most stuff, but I *do* tend to open the source kit and read it when I want the product to

Re: Error reported when starting app in cluster

2007-08-03 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derek; [Derek Alexander <[EMAIL PROTECTED]> @ Fri, 3 Aug 2007 07:22:21 - -0700 (PDT)] > 2007-08-03 15:13:25,853 60093 [main] ERROR > org.apache.catalina.cluster.session.DeltaManager - Manager > [/123/456/789]: No session state send at 03/08/07 15:1

Re: Installing Tomcat on Linux

2007-08-03 Thread Mark H. Wood
Well, the security argument depends more on "you *could*" than on "you *do*". Somewhere out there is someone crazy enough to comb through any given source kit looking for evil. Would any counterfeiter have the guts to set up his print shop on the sidewalk outside a police station? Much of securi

Error reported when starting app in cluster

2007-08-03 Thread Derek Alexander
Getting an ERROR reported when starting webapp within a cluster. Note, at this time I am starting the first server in the cluster, which is the 192.168.0.1 mentioned in the error message. Can someone please explain if it is correct that I am receiving an error and if so, what is wrong. 2007-08

How many webapps on one instance? How to tell when to add another?

2007-08-03 Thread Newman, John W
Ok ok i know this is very much not a one size fits all sort of question, but I'm just wondering what those out there have. How many webapps do you have per instance? What is recommended (one, three, 10, 40 i have no idea) ? Hardware specs are probably about the norm these days, 2 G of ram dual p

RE: Tomcat6 and JVMTI Interface provided by SUN for Java profiler.

2007-08-03 Thread Liang, Chong
Can anybody give a response? Or redirect me to another resource? Thanks. -Original Message- From: Liang, Chong [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 9:40 AM To: users@tomcat.apache.org Subject: Tomcat6 and JVMTI Interface provided by SUN for Java profiler. Hi there,

Re: Installing Tomcat on Linux

2007-08-03 Thread Bruno Harbulot
Hello, Peter Crowther wrote: From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED] A coworker claims that all unix admins should never install open source binaries. They should build using the source. Binaries are marginally more open to tampering; this is why most (all?) Apache projects prov

How to avoide delete context.xml - 6.0.14

2007-08-03 Thread hans.mader
Hi all, I'm using /conf/Catalina/localhost/myapp.xml context configuration. My deployment works as ant-copy directly to the /webapps directory. After the copy, the previous installed /conf/Catalina/localhost/myapp.xml will be deleted by the server automatically. So I have to provide the file ag

Re: AW: AW: Application outside WEBAPPS

2007-08-03 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > hi, > > useNaming does not affect here, correct. > > What's the reason ignoring the path attribute? (6.0.14 ignores as well) It isn't needed. The path is derived from the file name. Mark - To start

Re: worker.lock property question.

2007-08-03 Thread Mladen Turk
[EMAIL PROTECTED] wrote: It would be really great if someone could expand a bit more on this property and implications. Mod_jk has a shared data that gets read/updated from multiple concurrent threads/processes. It depends on the web server and in case it's Apache httpd, on mpm used. With Opt

Re: tomcat 6 and setenv.sh?

2007-08-03 Thread Johnny Kewl
Hi, Kristian... listen I dont use Tomcats built in clustering, so I dont know anything about it. However below is the actual code that is giving you that error message and it seems that clustering properties must not be set in CATALINA_OPTS. Unfortunately you didnt post all your CATALINA_OPTS pr

RE: Installing Tomcat on Linux

2007-08-03 Thread Peter Crowther
> From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED] > A coworker claims that all unix admins should never install > open source binaries. They should build using the source. Binaries are marginally more open to tampering; this is why most (all?) Apache projects provide checksums of the built

worker.lock property question.

2007-08-03 Thread Gerhardus . Geldenhuis
Hi The documentation states the following about the lock property. Specifies what lock method the load balancer will use for synchronizing shared memory runtime data. If lock is set to O[ptimistic] balancer will not use shared memory lock to find the best worker. If set to P[essimistic] bal

JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle

2007-08-03 Thread Jose Gargallo
Hi all, I have a J2EE application that runs in Oracle and Postgres databases and OC4J and Tomcat servers. I've got a problem using the PreparedStatement.setTimestamp function runing TOMCAT 5.5 + Oracle 9i becouse it ignores the milliseconds. It works fine runing in OC4J 10.1.3 and Oracle 9i.

Re: tomcat 6 and setenv.sh?

2007-08-03 Thread Robert Casties
Kristian Rink wrote: > > Folks, > > after switching our production environment to tomcat 6.0.13, most of > the things work fine again by now. One thing, however, is still giving > me headaches: By now, I used to have something like > > export CATALINA_OPTS="-server -Xmx512m ... " > > in CATALIN

Re: Apache Tomcat 5.5 install issues.

2007-08-03 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William; ["William Rui" <[EMAIL PROTECTED]> @ Fri, 3 Aug 2007 16:19:17 +0800] > *** Host support *** > checking C flags dependant on host system type... ok > *** Java compilation tools *** > checking for javac... NONE > checking for javac... NONE >

RE: Apache Tomcat 5.5 install issues.

2007-08-03 Thread William Rui
Kristian: Thank you for your reply. I did as you said, got following info: [CODE] [EMAIL PROTECTED] jsvc-src> autoconf [EMAIL PROTECTED] jsvc-src> sh ./configure *** Current host *** checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking cached host

Re: Java source encoding

2007-08-03 Thread Artur Rataj
> > > What do you need source files stored inside war file for? > I don't need them them there. The conversion of characters is at compile time, of course. I have mistaken this. Thank you. Best regards, Artur - To start a new to

Re: Apache Tomcat 5.5 install issues.

2007-08-03 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William; ["William Rui" <[EMAIL PROTECTED]> @ Fri, 3 Aug 2007 15:43:18 +0800] ... > [EMAIL PROTECTED] bin> cd jsvc-src/ > > [EMAIL PROTECTED] jsvc-src> autoconf > > [EMAIL PROTECTED] jsvc-src> ./configure > > -bash: ./configure: Permission denied

Re: Installing Tomcat on Linux

2007-08-03 Thread Gregor Schneider
Tomcat installing from source doesn't make *any* sense, not even on Linux. Why? Well, Tomcat is written entirely in Java. Therefore, you can download the binaries from the Apache website and check the KEYS (MD5-checksums). If they are ok, you can be sure nobody has tampered with. Building from s

tomcat 6 and setenv.sh?

2007-08-03 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks, after switching our production environment to tomcat 6.0.13, most of the things work fine again by now. One thing, however, is still giving me headaches: By now, I used to have something like export CATALINA_OPTS="-server -Xmx512m ... " in

AW: AW: Application outside WEBAPPS

2007-08-03 Thread hans.mader
hi, useNaming does not affect here, correct. What's the reason ignoring the path attribute? (6.0.14 ignores as well) hans -Ursprüngliche Nachricht- Von: Pid [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 03. August 2007 09:39 An: Tomcat Users List Betreff: Re: AW: Application outside WEBA

Re: AW: Application outside WEBAPPS

2007-08-03 Thread Pid
[EMAIL PROTECTED] wrote: Place the myapp.xml in the /conf/Catalina/localhost/ directory. The path attribute will be ignored if your server version is +5.5. ("useNaming" is not relevant to this problem.) p That's all. Regards, Hans -Ursprüngliche Nachricht- Von: Mladen Turk [ma

Apache Tomcat 5.5 install issues.

2007-08-03 Thread William Rui
Hi, all During the process of installing Apache Tomcat 5.5 on redhat 9, pop following error: Code: [EMAIL PROTECTED] bin> cd jsvc-src/ [EMAIL PROTECTED] jsvc-src> autoconf [EMAIL PROTECTED] jsvc-src> ./configure -bash: ./configure: Permission denied It should be following as the in