Re: image caching using Apache

2007-06-18 Thread 吴熊敏
I'm interested with it,but i don't know how to do. On Mon, 18 Jun 2007 18:49:03 -0300 "Paulo Alvim" <[EMAIL PROTECTED]> wrote: > Hi! > > We're using TC Cluster with Apache connector as dispatcher. > > We'd like to improve performance by caching images served by servlets(DBMS), > in the dispatc

Re[2]: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread 吴熊敏
If you really need space sometimes,you can use   On Mon, 18 Jun 2007 09:47:39 -0700 (PDT) LiuYan_刘研 <[EMAIL PROTECTED]> wrote: > > Thank you Leon, the 'trimSpaces' servlet parameter works fine except some > little issues: > 1. The span it trimmed is a little wider, it even trimmed the continuo

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread 吴熊敏
The program's default classpath is app/WEB-INF/classes so,you need to put the property files under this folder. That means that when you developping,you should put property files under the src folder. On Mon, 18 Jun 2007 07:46:19 -0700 (PDT) nformosa <[EMAIL PROTECTED]> wrote: > > Hi All, > >

Re[2]: Share one singleton across webapps

2007-06-18 Thread 吴熊敏
You don't need to copy the jar-file to your webapps/lib in Eclipse. Instead,you can add a external jar-file(which has been copied to tomcat/lib) for the project in Eclipse. On Mon, 18 Jun 2007 15:58:55 +0200 "Kevin Wilhelm" <[EMAIL PROTECTED]> wrote: > It works! Thanks! > > The problem has be

Tomcat hanging - two instance configuration

2007-06-18 Thread Isac Fernandes
We are working with the following configuration: Windows 2000 Server - 8CPU jdk 1.3.1_06 Tomcat 4.1.18 - 2 separate instances (separate jvms) - Tomcat1 is used as a container for our own socket server application - Tomcat2 is used for Web application (jsp/jdbc) Note that both instances have exact

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread Tim Funk
Both will perform good enough. Odds are linux will perform better but the difference wont be good enough if your admins can't support linux servers and they are all MS certified. Personally - I loathe admin'ing windows machines since I need to use a GUI (and mouse) to typically accomplish anyt

Re: image caching using Apache

2007-06-18 Thread Tim Funk
yes - you could do this as a filter. (Google for examples) If using apache 2.x - apache might be able to do the caching for you too via mod_mem_cache or similar. (Again ... google) -Tim Paulo Alvim wrote: Hi! We're using TC Cluster with Apache connector as dispatcher. We'd like to improv

[CVE-2007-1358] Apache Tomcat XSS vulnerability in Accept-Language header processing

2007-06-18 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2007-1358: Apache Tomcat XSS vulnerability in Accept-Language header processing Severity: Low (cross-site scripting) Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.0.0 to 4.0.6 Tomcat 4.1.0 to 4.1.34 Tomcat 5.0.0 to 5.0.30 To

client ssl renegotiation after invalidating session

2007-06-18 Thread atul
Is there a way in tomcat to re-negotiate client certificate after the http session has been invalidated (it had been successfully authenticated once before) in the app. i.e. without closing and starting a new client browser. I tried accessing request attributes javax.servlet.request.X509Certifica

image caching using Apache

2007-06-18 Thread Paulo Alvim
Hi! We're using TC Cluster with Apache connector as dispatcher. We'd like to improve performance by caching images served by servlets(DBMS), in the dispatcher level (apache connector)... is it as simple as configure a 'filter'? Any advice about that? Thanks in advance! Paulo Alvim Brazil ( +55

Re: Tomcat 5.5.23: Cannot Deploy hello-world.war

2007-06-18 Thread Mark Hawkes
Thanks very much for the troubleshooting Chuck. This completely solved the problem and shaved a couple dozen bytes off my war file :) Caldarale, Charles R wrote: From: Mark Hawkes [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5.23: Cannot Deploy hello-world.war $ cat META-INF/context.xml r

Re: Session Replication in Tomcat5.5.17

2007-06-18 Thread Peter Rossbach
Look at current tomcat docs http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html http://tomcat.apache.org/connectors-doc/reference/workers.html http://tomcat.apache.org/connectors-doc/generic_howto/workers.html Peter Am 18.06.2007 um 17:45 schrieb shiva sha: Hi I try to implement Ses

Re: Problem with JVM, and Tomcat tuning

2007-06-18 Thread Jacob Bunk Nielsen
Rainer Jung <[EMAIL PROTECTED]> writes: > I agree with Mark, two of those look like coming from the Java 2D > disposer thread, and the other two - as you already observed - come from > OutOfMemory related to growableArray. A quick look into the bug database > shows, that both areas unfortunatel

Re: Trouble with mod_jk and passthrough authentication [Virus checked]

2007-06-18 Thread Peter Rossbach
Hi, Which auth method and realm config you use at your webapp? Which auth method you use at your apache config? The AJP protocoll transfer all auth information from apache to tomcat. With ajp connector attribute tomcatAuthentication="true" (default) tomcat reauth the request. regards Peter

RE: ! Tomcat 500 error NEED HELP!

2007-06-18 Thread Caldarale, Charles R
> From: David Smith [mailto:[EMAIL PROTECTED] > Subject: Re: ! Tomcat 500 error NEED HELP! > > Two bits of advice: And a third: > >CLASSPATH = d:\Servlets+JSP;d:\java\jdk1.5.0_12 Get rid of the CLASSPATH variable; the second part is certainly wrong, and the first part may be causing the duplic

Re: ! Tomcat 500 error NEED HELP!

2007-06-18 Thread David Smith
Two bits of advice: 1. Be very careful there is only one copy of a jar file in either the webapp's WEB-INF/lib folder or tomat's lib folder. You'll get all sorts of wonderfully horrible experiences if you have multiple copies laying around where tomcat can find them. Hopefully you aren't add

Re: ! Tomcat 500 error NEED HELP!

2007-06-18 Thread Johnny Kewl
Ha, life is easy same answer again you see because the server allows you to change JSP pages, they are only compiled when needed, by tomcat itself, so if a jsp has an error, it only crashed when its first used. So, to force a compile, right click on each JSP page and compile it, now if the

! Tomcat 500 error NEED HELP!

2007-06-18 Thread alundgren
I've installed apache-tomcat-6.0.10 and jdk1.5.0_12 I've set the ENV variables: _RUNJAVA = %JAVA_HOME%\bin\java _RUNJAVAC = %JAVA_HOME%\bin\javac _RUNJAVAW = %JAVA_HOME%\bin\javaw _RUNJDB = %JAVA_HOME%\bin\jdb CATALINA_HOME = d:\apache-tomcat-6.0.10 CLASSPATH = d:\Servlets+JSP;d:\java\jdk1.5.0_

RE: Share one singleton across webapps

2007-06-18 Thread Nelson, Tracy M.
| From: Kevin Wilhelm [mailto:[EMAIL PROTECTED] | Sent: Monday, 18 June, 2007 08:59 | | Should I use Ant for deploying then? But I won't be able to debug | the webapps from within my IDE anymore since I am avoiding Eclipse's | deployment mechanisms. You should still be able to use Eclipse, just m

Re: APR with tomcat - long boot

2007-06-18 Thread Markus Schönhaber
Ilja S. wrote: I don't know exactly what random source is used by APR, it was compiled with only one switch " --with-apr". Is this possible to find out? What you compiled (configured) using --with-apr is propably not APR but rather the Tomcat Native Library (libtcnative-1.so) which uses the AP

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
Ooops... my fault. I was thinking of getRealPath(). thanks Caldarale, Charles R wrote: From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat / WAR File; Classpath not recognised for properties file The only achilles heal [sic] here is the ServletContext.getResource() method won'

Re: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread LiuYan 刘研
Thank you Leon, the 'trimSpaces' servlet parameter works fine except some little issues: 1. The span it trimmed is a little wider, it even trimmed the continuous empty lines and the leading white spaces of the first line after directives. <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECT

Re: Apache 2.2 + Tomcat 6 + Mod_JK 1.2.23 + Session Clustering

2007-06-18 Thread Rainer Jung
You configured 404 as an http status code, which results in taking workers offline. I think usually this is not a good idea. Think about users sending you URLs like http://youserver/trash and thus taking your backends offline :( Even without bad things in mind, users might use old bookmarks a

Re: Trouble with mod_jk and passthrough authentication [Virus checked]

2007-06-18 Thread Rainer Jung
http://marc.info/?l=tomcat-user&m=118117027608411&w=2 Unrelated, but: you should consider upgrading mod_jk. 1.2.20 is very outdated and misses a lot of new features. At the moment we are at 1.2.23... [EMAIL PROTECTED] wrote: Hi, I have a webapp running in Tomcat which authenticates the user

RE: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread Caldarale, Charles R
> From: David Smith [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat / WAR File; Classpath not recognised for > properties file > > The only achilles heal [sic] here is the > ServletContext.getResource() method won't work > from a .war archive. The webapp has to be an > expanded folder. Not acc

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
Martin -- The only exception mentioned so far is an NPE. Nothing has indicated a SecurityException. --David Martin Gainty wrote: yes..All of this should work it sounds as if perhaps someone has been changing the security permissions without your knowledge? try wrapping each executable s

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread Martin Gainty
yes..All of this should work it sounds as if perhaps someone has been changing the security permissions without your knowledge? try wrapping each executable statement with try/catch try { this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString()); } catch(Securit

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
If JibxManager is a class you wrote, couldn't you have the servlet resolve the path to resources using ServletContext.getResource( "/webapp-relative/path/to/my/resources" ).getPath() and then pass that in on the JibxManager constructor? The only achilles heal here is the ServletContext.getReso

Re: Share one singleton across webapps

2007-06-18 Thread Johnny Kewl
Kevin, I dont know Eclipse, But it sound very much the same as what Netbeans does. ie it will also give every web app its own library. Being able to share, is sometimes handy, its an alternative to context sharing, and JNDI, for instance if you want to set up your own dB pool BUT as a r

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
Then I suspect your resource isn't in a place where your webapp's classloaders can find it. --David nformosa wrote: This gives me a null exception! David Smith-2 wrote: BTW, this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString()); should work a

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
Then how does the resource get into the webapp?? Yes, make sure the jar files you generate have the resource files. The other option is to create a WEB-INF/classes/resources folder with your resource files in it. --David nformosa wrote: Neither, I didn't compile the resources with the jar

Session Replication in Tomcat5.5.17

2007-06-18 Thread shiva sha
Hi I try to implement Session replication in Tomcat5.5.17 using Apache HttpServer2.0.5. I had downloaded mod_jk.dll and placed this dll into apache/modules/. I had configured both server.xml in Tomcat1 and Tomcat2 and workers.properties in Apache in Windows 2000 environment. But no luck bcoz tomc

Re: Problem with JVM, and Tomcat tuning

2007-06-18 Thread Rainer Jung
I agree with Mark, two of those look like coming from the Java 2D disposer thread, and the other two - as you already observed - come from OutOfMemory related to growableArray. A quick look into the bug database shows, that both areas unfortunately seem to be notorious for JVM crashes. There se

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread Ronald Klop
If you don't start Tomcat as a service, but from the command line, don't output too much. The command line of Windows is very slow. Ronald. On Mon Jun 18 14:01:55 CEST 2007 Tomcat Users List wrote: I have no hard stats to back me up, but I doubt you'll see a significant difference in perform

RE: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread Caldarale, Charles R
> From: nformosa [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat / WAR File; Classpath not recognised for > properties file > > I didn't compile the resources with the jar file! should i? You don't compiler resources, but the properties file can be placed in the jar. > if so how would i then

Session Replication in Tomcat5.5.17

2007-06-18 Thread shiva sha
Hi I try to implement Session replication in Tomcat5.5.17 using Apache HttpServer2.0.5. I had downloaded mod_jk.dll and placed this dll into apache/modules/. I had configured both server.xml in Tomcat1 and Tomcat2 and workers.properties in Apache in Windows 2000 environment. But no luck bcoz tomc

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread nformosa
This gives me a null exception! David Smith-2 wrote: > > BTW, > > this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString()); > > > > should work as > > this.getClass().getResource( "/resources/myfile.xml" ).getPath() ; > > No need for all the extra noi

RE: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread nformosa
So, this is my layout.. I've got a servlet which handles the requests. The servlet than instantiates another class. This class called JibxManager (using jibx), then handles the requests and Marshals the xml request. The JibxManager also handles xsd verification, so it has to load the xsd. This

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread nformosa
Neither, I didn't compile the resources with the jar file! should i? if so how would i then access it? Also i don;t have a classes directory since my code is compiled and jarred and forms part of the WEB-INF/lib Thanks David Smith-2 wrote: > > So where exactly is your "resources/myFile.xml

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
BTW, this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString()); should work as this.getClass().getResource( "/resources/myfile.xml" ).getPath() ; No need for all the extra noise. --David David Smith wrote: So where exactly is your "resources/myFile.xm

RE: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread Caldarale, Charles R
> From: nformosa [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat / WAR File; Classpath not recognised for > properties file > > Though i'm still having trouble..since the file is being > accessed from a class not the servlet What does that mean (servlets are classes, after all)? What class, a

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
So where exactly is your "resources/myFile.xml"? Is it in the WEB-INF/classes directory of your webapp or a jar file in WEB-INF/lib? Your method of access requires it be in one of those two places. --David nformosa wrote: David Smith-2 wrote: nformosa wrote: Hi All, I'm having

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread nformosa
David Smith-2 wrote: > > nformosa wrote: >> Hi All, >> >> I'm having trouble when deploying my WAR application. The War file >> contains >> mainly the WEB.xml, and index.html file and a number of required >> libraries, >> incudling the compiled src code i've written, All libraries are stored >>

Re: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread David Smith
nformosa wrote: > Hi All, > > I'm having trouble when deploying my WAR application. The War file contains > mainly the WEB.xml, and index.html file and a number of required libraries, > incudling the compiled src code i've written, All libraries are stored > within the WEB-INF/libs which is correct

RE: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread Caldarale, Charles R
> From: nformosa [mailto:[EMAIL PROTECTED] > Subject: Tomcat / WAR File; Classpath not recognised for > properties file > > How can i fix this problem? any ideas would really be appreciated! It's in the FAQ: http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff67153 2e6e844bc -

RE: Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread Peter Crowther
> From: nformosa [mailto:[EMAIL PROTECTED] > I'm accesing these files using relative paths ie: > /resources/config.xml What code are you using to locate these files? Hopefully something to do with the servlet spec? See, for example, ServletContext.getResource(String). - Peter

Tomcat / WAR File; Classpath not recognised for properties file

2007-06-18 Thread nformosa
Hi All, I'm having trouble when deploying my WAR application. The War file contains mainly the WEB.xml, and index.html file and a number of required libraries, incudling the compiled src code i've written, All libraries are stored within the WEB-INF/libs which is correct. Along the libraries i ha

RE: Tomcat thread dump: unable to open the event mutex

2007-06-18 Thread Henrik.Nyberg
Yes! Thankyou very much! When using /console the Thread Dump nicely dumped all threads into jakarta_service.log ;-) Henrik -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: den 18 juni 2007 13:42 To: Tomcat Users List Subject: Re: Tomcat thread dump: unable to open t

Re: Share one singleton across webapps

2007-06-18 Thread Kevin Wilhelm
Hi, thanks for your advice. I knew the plugin page before. This should be the first-choice when searching for Eclipse add ons. Currently I am happy about having solved the problem. It's possible to include other JAVA-projects into the build path of an Eclipse-Web-Project. So far so good. Taki

Re: Share one singleton across webapps

2007-06-18 Thread Martin Gainty
Good Morning Kevin Glad to hear that worked for you What I found is that Eclipse has it's own plugins for virtually every major system/subsystem as illustrated here http://www.eclipseplugincentral.com/Web_Links+main.html When exporting your build file to build.xml you will need to determine w

Re: Share one singleton across webapps

2007-06-18 Thread Kevin Wilhelm
It works! Thanks! The problem has been that each webapp had its own shared-lib jar-file, because I am developing in Eclipse. So Eclipse needs to know which classes I am accessing :/ At the end there were 3 times the same jar-file: 1st webapp, 2nd webapp, tomcat/lib. Removing the jars from the

Re: Problem with JVM, and Tomcat tuning

2007-06-18 Thread Jacob Bunk Nielsen
Mark Thomas <[EMAIL PROTECTED]> writes: > Jacob Bunk Nielsen wrote: >> Rainer Jung <[EMAIL PROTECTED]> writes: >> >>> Give us a look at your hotspot error files. >> >> I have put a few online at http://flof.dk/~jbn/hs_err/ [...] > > The first 2 are Java2D problems, not Tomcat issues. Sun need to

Re: Share one singleton across webapps

2007-06-18 Thread Johnny Kewl
The typical form is like this public class SingletonObject { private SingletonObject(){} public static SingletonObject getSingletonObject() { if (ref == null) // it's ok, we can call this constructor ref = new SingletonObject(); return ref; } private

RE: Share one singleton across webapps

2007-06-18 Thread Caldarale, Charles R
> From: Kevin Wilhelm [mailto:[EMAIL PROTECTED] > Subject: Share one singleton across webapps > > There has to be a way to let the first webapp instantiate the > singleton and set some property so that the second webapp can > use the singleton and read the property. How do I achieve this? The c

Share one singleton across webapps

2007-06-18 Thread Kevin Wilhelm
I managed to get a jar file shared across two webapps in my Tomcat 6. Inside there is a class that represents a Singleton. The problem: the singleton class is instantiated by the first webapp and then again instantiated in the second webapp. So there are 2 representations of the class and it is n

Re: Apache 2.2 + Tomcat 6 + Mod_JK 1.2.23 + Session Clustering

2007-06-18 Thread ben short
Hi All, I set the jk logging level to debug and noticed that the jsp page was trying to get an image from from tomcat that didnt exist. This lead the jk mod to set both tomcat workers to an error state. Im guessing that the next request I tried got sent to a tomcat and then a new session was crea

RE: Windows or Linux as Tomcat server?

2007-06-18 Thread Peter Crowther
Something to think about: licensing. If you're running Windows 2003 or above, and you have *any* kind of authentication on your webapp, you need CALs (or, in this case, an Internet connection license) on the Windows server. The Web edition has different restrictions, but read the license agreemen

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Linux with a 2.6 kernel should perform better. I would be a little worried placing a Windows Server at a service provider without some sort of firewall/ packet filter protecting from the big bad Internet. But as you are asking this question, yo

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread David kerber
I have no hard stats to back me up, but I doubt you'll see a significant difference in performance as long as the hardware spec is the same. Our Tomcat app on Windows 2000 runs for months between restarts, and even then the restarts are for OS or application updates, not for Tomcat problems.

Re: Problem with JVM, and Tomcat tuning

2007-06-18 Thread Mark Thomas
Jacob Bunk Nielsen wrote: > Rainer Jung <[EMAIL PROTECTED]> writes: > >> Give us a look at your hotspot error files. > > I have put a few online at http://flof.dk/~jbn/hs_err/ - now that I > look at it two of them are OutOfMemory-errors. The first 2 are Java2D problems, not Tomcat issues. Sun nee

Re: Tomcat thread dump: unable to open the event mutex

2007-06-18 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > Yes, I did log on to the server using remote desktop. This is > unfortunately the only way I can can access our production servers. If > remote desktop is the problem I really hope that the Tomcat people can > get the thread dump feature working over a remote desktop conn

Re: Re[2]: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread Leon Rosenberg
its not a filter, its a parameter to the jsp servlet, which is in the web.xml of tomcat (located under conf in 5.5) either way. regards Leon On 6/18/07, 吴熊敏 <[EMAIL PROTECTED]> wrote: Thanks very much in advance!!! But i think it's not a good way to do this in web.xml. Is there any way t

Re: mod_jk 1.2.23 not load balancing correctly?

2007-06-18 Thread Mladen Turk
Rob Kirkbride wrote: Just to close this down the problem was traced to having the same server name in the jvmRoute in the server.xml in JBoss. The load balancer is now behaving correctly. Sorry to waste your time! Not at all. You actually gave us a valuable information that will probably hel

Apache 2.2 + Tomcat 6 + Mod_JK 1.2.23 + Session Clustering

2007-06-18 Thread ben short
Hi All, I'm trying to setup session clustering between two Tomcat 6.0.13 instances with Apache 2.2 and Mod JK 1.2.23. The problem I'm having is that every request returns me a new session so the users state is not kept, So i assume that the clustering is not configured correctly. Looking at the

Re: Tomcat 4.1 - problem with classpath definition in Manifest.mf

2007-06-18 Thread Subbu
Thanks for the reply. When I said lib folder within webapp, I meant not in the webapp folder itself but the 'lib' folder present at 'webapp/appName/WEB-INF/lib' Subbu. -- Forwarded message -- From: 吴熊敏 <[EMAIL PROTECTED]> To: "Tomcat Users List" Date: Mon, 18 Jun 2007 13:28:21

Re: APR with tomcat - long boot

2007-06-18 Thread Ilja S.
Hi Thanks for reply! I don't know exactly what random source is used by APR, it was compiled with only one switch " --with-apr". Is this possible to find out? I use tomcat with apache 2.2x and mod_jk. The only connectors I have in server xml is: ---

RE: Further Issues with mod_jk when using 4 app servers

2007-06-18 Thread Raghupathy, Gurumoorthy
Welcome ... Cheers!! Regards Guru -Original Message- From: Rob Kirkbride [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 11:43 To: Tomcat Users List Subject: Re: Further Issues with mod_jk when using 4 app servers Hi Gurumoorthy, Excellent! Thank you very much. That was indeed the issue.

Re: mod_jk 1.2.23 not load balancing correctly?

2007-06-18 Thread Rob Kirkbride
Just to close this down the problem was traced to having the same server name in the jvmRoute in the server.xml in JBoss. The load balancer is now behaving correctly. Sorry to waste your time! Rob On 17/06/07, Rob Kirkbride <[EMAIL PROTECTED]> wrote: Hi Rainer, We're using the stock Apache

Re: Further Issues with mod_jk when using 4 app servers

2007-06-18 Thread Rob Kirkbride
Hi Gurumoorthy, Excellent! Thank you very much. That was indeed the issue. The config for app104 had been copied from the config for app101. Hence the jvmroute on app104 was set to to app101. This obviously confuses the heck out of mod_jk as you'd expect. Fixing this corrected the session issue

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread Johnny Kewl
The memory issue is something that will probably occur on either OS... if you have the source code of the web-apps tell the programmer to stick them back into the dev environment and profile them. Its very unlikely that its tomcat, its probably a badly written web-app. Alternately get something

Re[2]: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread 吴熊敏
Thanks very much in advance!!! But i think it's not a good way to do this in web.xml. Is there any way to trim spaces when compile the jsp/servlet files but not use the filter? On Mon, 18 Jun 2007 11:56:01 +0200 "Leon Rosenberg" <[EMAIL PROTECTED]> wrote: > trimSpaces was once a setting in the

Re: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread Leon Rosenberg
trimSpaces was once a setting in the declaration of the jsp servlet in the web.xml jsp org.apache.jasper.servlet.JspServlet trimSpaces true ... regards Leon On 6/18/07, 吴熊敏 <[EMAIL PROTECTED]> wrote: YES,IT'S a good idea,is there anyone w

Re: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread 吴熊敏
YES,IT'S a good idea,is there anyone who knows how to solve this issue? Thank you for the first!! On Mon, 18 Jun 2007 02:17:24 -0700 (PDT) LiuYan_刘研 <[EMAIL PROTECTED]> wrote: > > Is there a config for JSP compiler to ignore all white space characters which > out of <%...%> in JSP and/or tag di

remove the corresponding servlet mapping

2007-06-18 Thread LiuYan 刘研
maybe you should remove the corresponding servlet mapping for /index.jsp, or simply delete everything under ROOT folder, or you can try Tomcat 6. Rob Tanner wrote: > > Hi, > > I installed Tomcat 5.5.23 stand-alone and then replaced the default > index.jsp home page (webapps/ROOT/index.jsp) wi

Running Tomcat in Java EE 5 environment

2007-06-18 Thread TN/EAB
Hi We are considering running Tomcat 6 together in Java EE 5 jre. Is ok to do this or is it likely to create a bunch problems because of conflicting Java EE implementations? (As I understand it, tomcat has parts of Java EE implemented internally, like JSP and servlet API's and more). In pract

Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?

2007-06-18 Thread LiuYan 刘研
Is there a config for JSP compiler to ignore all white space characters which out of <%...%> in JSP and/or tag directive lines? Suppose the following code in JSP file: <%@ page contentType="text/html; charset=utf-8"

RE: Further Issues with mod_jk when using 4 app servers

2007-06-18 Thread Raghupathy, Gurumoorthy
Have you put the correct "jvmroute" value in the worker and engine ? From: Rob Kirkbride [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 09:53 To: Tomcat Users List Subject: Further Issues with mod_jk when using 4 app servers Hi, There definitely seems to

Trouble with mod_jk and passthrough authentication [Virus checked]

2007-06-18 Thread Thomas . Krug
Hi, I have a webapp running in Tomcat which authenticates the user logged on the windows box against a active directory domain. Everything workes fine when using tomcat directly, using Apache 2.0.49 with AJP 1.2.10 I get an "401 Authentication required" error from the webapp. It seems Apache do

Further Issues with mod_jk when using 4 app servers

2007-06-18 Thread Rob Kirkbride
Hi, There definitely seems to be an issue with 4 app servers. Initially I thought the problem was one of load balancing. I have definitely confirmed that the load balancing fails with 4 app servers (this is covered in a separate email thread) However, this morning we've been getting a lot of comp

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread 吴熊敏
You'd better use linux. Windows is too bad to run Tomcat!!! On Mon, 18 Jun 2007 10:08:15 +0200 Roger <[EMAIL PROTECTED]> wrote: > - What are your experiences? > - We see that Tomcat uses more and more memory over time on our Windows > servers. Is that the same on Linux? > - Do you have (links to

Windows or Linux as Tomcat server?

2007-06-18 Thread Roger
Hello there! At our office we use Windows 2003 as Tomcat server. For several clients we need to install new servers at an ISP, and we have the choice of using Linux or Windows. As performance is more and more of an issue, we are wondering whether Tomcat will perform better on Linux. - What are y

Re: Problem with JVM, and Tomcat tuning

2007-06-18 Thread Jacob Bunk Nielsen
Rainer Jung <[EMAIL PROTECTED]> writes: > Give us a look at your hotspot error files. I have put a few online at http://flof.dk/~jbn/hs_err/ - now that I look at it two of them are OutOfMemory-errors. I newer had those with Java5, but Sun has accepted a bugreport about it, and we are communicatin

RE: Tomcat thread dump: unable to open the event mutex

2007-06-18 Thread Henrik.Nyberg
Ok, thanks for your reply. Yes, I did log on to the server using remote desktop. This is unfortunately the only way I can can access our production servers. If remote desktop is the problem I really hope that the Tomcat people can get the thread dump feature working over a remote desktop connectio