Re: Tomcat crash @ midnight - but why?

2007-09-28 Thread Martin Cavanagh
Darek Czarkowski wrote: Martin Cavanagh wrote: Caldarale, Charles R wrote: From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call?

Security roles

2007-09-28 Thread janbanan
Hi, I'm having some problems with security roles in tomcat 5.5. The actual url-pattern based protection works fine so presumably the config is ok. But when I programatically try to check if the user belongs to a role I run into problems. First the request.isUserInRole(String) method always

Apache connectors for tomcat

2007-09-28 Thread rahul
Hi, Which is the recommended connector for Apache now? mod_jk or mod_proxy_ajp (with balancer) ? rahul -- 1. e4 _ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,

Re: Security roles

2007-09-28 Thread David Delbecq
request.isUserInRole is the way to go. If you don't get true, i suggest you first check getRemoteUser() to see if user is authenticated. Then check you correctly spelled role name, including case. Then check you have correct role mapping in web.xml (mapping from realm role names to webapp role)

Tomcat-CGI-BLAT.EXE

2007-09-28 Thread tomuser
Problem with TOMCAT/CGI/BLAT.EXE I wrote these two files in the appropriate position of TOMCAT (test.html and test.cgi). Everything set according to specifications (CGI,..). I tried to send to myself a simple mail via blat.exe. HTML HEAD TITLETest/TITLE /HEAD BODY FORM METHOD=post

Re: Apache connectors for tomcat

2007-09-28 Thread Filip Hanik - Dev Lists
personal preference in this order mod_proxy_http, mod_jk, mod_proxy_ajp rahul wrote: Hi, Which is the recommended connector for Apache now? mod_jk or mod_proxy_ajp (with balancer) ? rahul -- 1. e4 _

Re: Cactus Authentication problem with Tomcat 5.5.20

2007-09-28 Thread Kazuhito SUGURI
Ah, I should see destination address carefully. In article [EMAIL PROTECTED], Fri, 28 Sep 2007 20:59:56 +0900 (JST), Kazuhito SUGURI [EMAIL PROTECTED] wrote: suguri Please find the code (and diff) attached. The FormAuthentication is a part of Cactus, not of Tomcat. If my posts confused you,

Re: Special characters in Apache Server-Info-Tag (Header) after Update from 2.2.4 to 2.2.6

2007-09-28 Thread Rainer Jung
I Guess that's https://issues.apache.org/bugzilla/show_bug.cgi?id=43334 which is an httpd 2.2.6 bug. If you agree, that it's the same issue, you should direct futher posts to the httpd lists. Regards, Rainer [EMAIL PROTECTED] wrote: Hello, i updated several Apaches from 2.2.4 to 2.2.6.

Does Tomcat replicate in-memory replication of data other than Sessions ?

2007-09-28 Thread Mamta, Jain
Hello there, I would like to know if Tomcat 6 offers in-memory replication of data other than Sessions data alone. Actually we have a requirement of replicating the data an application in Multicast cluster caches. The data has to be replicated to other nodes in the cluster. Would like to know :

Special characters in Apache Server-Info-Tag (Header) after Update from 2.2.4 to 2.2.6

2007-09-28 Thread Frank.Mensch
Hello, i updated several Apaches from 2.2.4 to 2.2.6. On the one hand i updated Apache but i also updated OpenSSL from 0.9.8.d to 0.9.8.e. The problem is that the Server-Info-Tag which is written in the ErrorLog of the Apache sometimes contains special characters, sometimes not. For example in

Tomcat performance measurments...

2007-09-28 Thread Tony Anecito
Hi All, As I mentioned in my previous email I was able to get my system performance using Apache-Tomcat-Jre1.6 such that I was getting 4msec transaction response times. My problem is I can not tell how much of that response time is spent in tomcat versus Apache. I am using windows 2000 where the

Re: Does Tomcat replicate in-memory replication of data other than Sessions ?

2007-09-28 Thread Filip Hanik - Dev Lists
very doable, you can piggy back on Tribes if you have clustering enabled import org.apache.catalina.ServerFactory; import org.apache.catalina.Cluster; import org.apache.catalina.ha.tcp.SimpleTcpCluster; import org.apache.catalina.tribes.Channel; import org.apache.catalina.tribes.Member;

Re: two versions of java

2007-09-28 Thread warnockm
That did it. Thanks!! the shutdown port in Server port=8005 always binds to 127.0.0.1, so you have to have unique shutdown ports, Filip -- View this message in context: http://www.nabble.com/two-versions-of-java-tf4534735.html#a12941552 Sent from the Tomcat - User mailing list

Re: two versions of java

2007-09-28 Thread Filip Hanik - Dev Lists
the shutdown port in Server port=8005 always binds to 127.0.0.1, so you have to have unique shutdown ports, Filip warnockm wrote: I'm running Tomcat 5 w/ 4 different hosts in my server.xml, each using a different IP address. It's working very well. Each host requires JDK 1.4. I now

RE: Apache connectors for tomcat

2007-09-28 Thread Tony Anecito
Not sure about the interface/protocol being depricated since there was just a new release of mod_jk 1.2.25? Also, someone put some effort into improvments into it 2.2.6 of Apache. I also noticed a 10% performance improvement in request response times using mod_jk which I was told about and proven

two versions of java

2007-09-28 Thread warnockm
I'm running Tomcat 5 w/ 4 different hosts in my server.xml, each using a different IP address. It's working very well. Each host requires JDK 1.4. I now have a requirement for a host; it needs tomcat6 and JDK 6. I tried to install both tomcat5 and 6 and have them run simultaneous since they

RE: Tomcat performance measurments...

2007-09-28 Thread Tony Anecito
I would but I have a web site off of the Apache web server and I have the port 80 used by it. -Tony --- Peter Crowther [EMAIL PROTECTED] wrote: From: Tony Anecito [mailto:[EMAIL PROTECTED] Also, any hints on how to improve Tomcat performance appreciated. Why not do the easy one - get

RE: Apache connectors for tomcat

2007-09-28 Thread Charlie Wingate
You may find this link helpful.it works if your using the same versions as the article. But I think JK2 has been 'deprecated'. http://www.roktech.net/devblog/enclosures/iis6-Tomcat5-JK2.pdf ~Charlie The significant problems we have cannot be solved at the same level of thinking with

Re: Tomcat and Apache on the same port?

2007-09-28 Thread Filip Hanik - Dev Lists
yes, but you would need two IP addresses, virtual or through two network cards and bind tomcat to one address, and bind apache to the other Filip Tony Anecito wrote: Hi All, Is it possible to run Tomcat and Apache on the same port? What I want to do is have my website running on Apache web

Tomcat and Apache on the same port?

2007-09-28 Thread Tony Anecito
Hi All, Is it possible to run Tomcat and Apache on the same port? What I want to do is have my website running on Apache web server or port 80 and also have Tomcat running on port 80. That way my web service requests do not need to go through Apache web server where they are redirected to Tomcat.

RE: Tomcat performance measurments...

2007-09-28 Thread Peter Crowther
From: Tony Anecito [mailto:[EMAIL PROTECTED] Also, any hints on how to improve Tomcat performance appreciated. Why not do the easy one - get rid of that extra layer of performance-sapping httpd and mod_jk in the middle instead? - Peter

Re: Tomcat-CGI-BLAT.EXE

2007-09-28 Thread Pid
tomuser wrote: Problem with TOMCAT/CGI/BLAT.EXE I wrote these two files in the appropriate position of TOMCAT (test.html and test.cgi). Everything set according to specifications (CGI,..). I tried to send to myself a simple mail via blat.exe. What could I do ? it is clearly a Tomcat

Re: Cactus Authentication problem with Tomcat 5.5.20

2007-09-28 Thread Kazuhito SUGURI
Hi Nicolas, I believe I have successfully re-produced your problem in my environment. In article [EMAIL PROTECTED], Mon, 24 Sep 2007 12:47:27 + (UTC), Nicolas Clemeur [EMAIL PROTECTED] wrote: nclemeur I am having some difficulties to setup cactus tests using nclemeur tomcat 5.5.20

Re: Tomcat and Apache on the same port?

2007-09-28 Thread Tony Anecito
Hi Filip, Would the two IP addresses (real or Virtual) require two domain names? Thanks, -Tony --- Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: yes, but you would need two IP addresses, virtual or through two network cards and bind tomcat to one address, and bind apache to the other

Re: Tomcat performance measurments...

2007-09-28 Thread Tony Anecito
Hi Rainer, I am using Windows 2000 professional so I suspect Tomcat is using an windows api call that is limited to 15msec resolution even though the %d is advertised as microsecond resolution. The Java jre had this issue then with release 1.5+ Sun added a nanosecond timer which is what I used

Re: Apache connectors for tomcat

2007-09-28 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: personal preference in this order mod_proxy_http, mod_jk, mod_proxy_ajp I'm interested: why choose mod_proxy_http over mod_jk? ease of configuration, no API nor

RE: App reloading classloading issue?

2007-09-28 Thread Caldarale, Charles R
From: bajistaman [mailto:[EMAIL PROTECTED] Subject: App reloading classloading issue? Don't suppose you'd care to give us a hint about the version of Tomcat you're using? The weblogic client libs are placed in $CATALINA_HOME/common/lib. Are you sure the weblogic jars/classes aren't also

Re: App reloading classloading issue?

2007-09-28 Thread Filip Hanik - Dev Lists
The weblogic client libs are placed in $CATALINA_HOME/common/lib. yes, but the class that is trying to be loaded is java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stubbajistaman wrote: does the weblogic/rmi/*server*/... hint that it is trying to load a server class, maybe not

RE: App reloading classloading issue?

2007-09-28 Thread Clinton J. Totten
JoAnn, I'm not sure about the error but have you tried just putting the WAR in the webapps directory $CATALINA_HOME/webapps? -Original Message- From: bajistaman [mailto:[EMAIL PROTECTED] Sent: Friday, September 28, 2007 12:53 PM To: users@tomcat.apache.org Subject: App reloading

Re: Tomcat performance measurments...

2007-09-28 Thread Rainer Jung
Christopher Schultz wrote: Other factors include the resolution of the timer being used by Apache and/or mod_jk for emitting log messages. Most people don't care about high-resolution timing for things like web server logs, so I wouldn't expect Apache to be using one. mod_jk as well as Apache

RE: Tomcat and Apache on the same port?

2007-09-28 Thread Tony Anecito
Thanks Peter, The Tomcat server is running web services which are dynamic. And I agree about what you said about port 80. Hope this helps, -Tony --- Peter Crowther [EMAIL PROTECTED] wrote: From: Tony Anecito [mailto:[EMAIL PROTECTED] Is it possible to run Tomcat and Apache on the same

RE: Apache connectors for tomcat

2007-09-28 Thread Charlie Wingate
I'm confused.Doesn't mod_jk use ajp1.3 on the tomcat side? Was that with or without the native runtime library? ~Charlie The significant problems we have cannot be solved at the same level of thinking with which we created them. - Albert Einstein -Original Message- From: Tony

App reloading classloading issue?

2007-09-28 Thread bajistaman
I'm currently deploying applications to Tomcat using a context file placed inside $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, they have the following content: Context docBase=/someDir/AppName.war/Context If I update the file AppName.war it is reloaded and the changes are reflected

Re: Tomcat performance measurments...

2007-09-28 Thread Tony Anecito
Hi Chris, Yes, I am doing my measurements in a controlled environment. As for measurments I have gone as far as using a sniffer for looking at the tcp/ip conversations. I understand about the timers for Apache but as hardware and the servlet containers (and jvms) get faster the old timers become

Re: Tomcat performance measurments...

2007-09-28 Thread Rainer Jung
First: measurement: Apache access log can use %D in the LogFormat, which for Apache httpd 2.0 and 2.2 gives microseconds response time. Obviously the real resolution depends on the operating system. The 15msec you mentioned is way to long for a OS timer resultion. mod_jk provides an apache

Re: Cactus Authentication problem with Tomcat 5.5.20

2007-09-28 Thread Kazuhito SUGURI
Hi Nicolas, In article [EMAIL PROTECTED], Fri, 28 Sep 2007 20:39:40 +0900 (JST), Kazuhito SUGURI [EMAIL PROTECTED] wrote: suguri I have modified the FormAuthentication class so that suguri the form authentication would work with both Tomcat 5.5.20 suguri and 5.5.23. suguri suguri I'll post the

Re: Tomcat performance measurments...

2007-09-28 Thread Rainer Jung
Tony Anecito wrote: Hi Rainer, I am using Windows 2000 professional so I suspect Tomcat is using an windows api call that is limited to 15msec resolution even though the %d is advertised as microsecond resolution. You are right: http://blogs.msdn.com/embedded/archive/2006/02/20/535792.aspx

Re: Tomcat performance measurments...

2007-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, Tony Anecito wrote: I would but I have a web site off of the Apache web server and I have the port 80 used by it. So? If you're doing performance testing, you should be doing it in a laboratory environment. You /are/ doing this on a test

RE: Tomcat and Apache on the same port?

2007-09-28 Thread Peter Crowther
From: Tony Anecito [mailto:[EMAIL PROTECTED] Is it possible to run Tomcat and Apache on the same port? You can't run two processes bound to the same endpoint (combination of IP address and port). As httpd (what you call Apache) and Tomcat are separate process, you can't do this. As Filip

Re: Tomcat and Apache on the same port?

2007-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, Tony Anecito wrote: Would the two IP addresses (real or Virtual) require two domain names? No, but you probably would want to have more than one domain name instead of having to publish your IP address. - -chris -BEGIN PGP

Re: Apache connectors for tomcat

2007-09-28 Thread Rainer Jung
Charlie Wingate wrote: I'm confused.Doesn't mod_jk use ajp1.3 on the tomcat side? Was that with or without the native runtime library? 1) mod_jk uses the protocol AJP 2) On the Tomcat side, there is a pure Java AJP connector, and a native one (called APR connector). You can choose. 3)

RE: Apache connectors for tomcat

2007-09-28 Thread Caldarale, Charles R
From: Tony Anecito [mailto:[EMAIL PROTECTED] Subject: RE: Apache connectors for tomcat Not sure about the interface/protocol being depricated It's mod_jk2 that has been abandoned for over two years; mod_jk is still in very active development. Any documentation or recommendations for

Re: Does Tomcat replicate in-memory replication of data other than Sessions ?

2007-09-28 Thread Sonal Goyal
Mamta, please note that this approach ties you to Tomcat and you may not be able to port your application to other servers. On 9/28/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: very doable, you can piggy back on Tribes if you have clustering enabled import

Re: Analog of mod_rewrite in Tomcat?

2007-09-28 Thread Daniel M Garland
Hey, If you're after something really simple you could even write a servlet filter that implements your functionality. Dan Ken Bowen wrote: Hi all, Is there an analog of mod_rewrite which operates in Tomcat? It would be used if one was running Tomcat alone as a server without Apache in

RE: Apache connectors for tomcat

2007-09-28 Thread Tony Anecito
Thanks for the clarification. -Tony --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Tony Anecito [mailto:[EMAIL PROTECTED] Subject: RE: Apache connectors for tomcat Not sure about the interface/protocol being depricated It's mod_jk2 that has been abandoned for over two

RE: Apache connectors for tomcat

2007-09-28 Thread Charlie Wingate
Mod_jk and Mod_jk2 are different animals..JK2 is deprecated. The reason I mention it is that it is easy to assume that JK2 is the latest and greatest given the naming convention. Mod_jk 1.2.25 was released late july and IS the latest in the mod_jk project; to my knowledge anyway.

Re: Security roles

2007-09-28 Thread janbanan
Cleaned up the naming/casing of the roles, it works and now I feel dumb. Thanks a lot! David Delbecq-2 wrote: request.isUserInRole is the way to go. If you don't get true, i suggest you first check getRemoteUser() to see if user is authenticated. Then check you correctly spelled role

Re: Apache connectors for tomcat

2007-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: personal preference in this order mod_proxy_http, mod_jk, mod_proxy_ajp I'm interested: why choose mod_proxy_http over mod_jk? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32)

Re: Apache connectors for tomcat

2007-09-28 Thread Tony Anecito
I had heard that mod_jk was faster so I switched from ajp to mod_jk and sure enough mod_jk was 10% faster for me. -Tony --- Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: personal preference in this

RE: Apache connectors for tomcat

2007-09-28 Thread Tony Anecito
Hi Charlie, I heard that mod_jk was based off of ajp so I was quite surprised mod_jk was faster. Not sure how to answer your question regarding the native runtime library since all I did was download the module file for mod_jk and comment out the ajp proxy module. Regards, -Tony --- Charlie

Re: Apache connectors for tomcat

2007-09-28 Thread Tony Anecito
Hi Rainer, I am not sure if JBoss embedded Tomcat uses the native ajp but a great point. Do you know how to check for that? Also, you need to keep in mind the scale of things. In other words my measurements at the client side are in the 4 millisecond range. Depending how long the data takes to

Re: Tomcat performance measurments...

2007-09-28 Thread Martin Gainty
Hi Tony- *If* you're comfortable with Tomcat serving all your content then you *could* assign Port 80 to non-SSL HTTP/1.1 Connector I found this quite helpful concerning tuning your Apache Server http://www.howtoforge.com/configuring_apache_for_maximum_performance If you're going to stay with

Re: Tomcat performance measurments...

2007-09-28 Thread Tony Anecito
Hi Martin, Sorry got busy with all the emails but I thank you for the time you took to do this and I will read it very closely and let you know the results if you are interested. Thanks everyone for all the helpful comments! Regards, Tony Anecito, Founder, MyUniPortal --- Martin Gainty [EMAIL

Re: App reloading classloading issue?

2007-09-28 Thread bajistaman
Filip Hanik - Dev Lists wrote: The weblogic client libs are placed in $CATALINA_HOME/common/lib. yes, but the class that is trying to be loaded is java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stubbajistaman wrote: does the weblogic/rmi/*server*/... hint that it is

RE: App reloading classloading issue?

2007-09-28 Thread bajistaman
Caldarale, Charles R wrote: From: bajistaman [mailto:[EMAIL PROTECTED] Subject: App reloading classloading issue? Don't suppose you'd care to give us a hint about the version of Tomcat you're using? The weblogic client libs are placed in $CATALINA_HOME/common/lib. Are you sure

RE: App reloading classloading issue?

2007-09-28 Thread bajistaman
Clinton J. Totten wrote: I'm not sure about the error but have you tried just putting the WAR in the webapps directory $CATALINA_HOME/webapps? I tried that but the same error, if i want it to work I have to restart the server. Thanks, Johann -- View this message in context:

RE: App reloading classloading issue?

2007-09-28 Thread Caldarale, Charles R
From: bajistaman [mailto:[EMAIL PROTECTED] Subject: Re: App reloading classloading issue? I get your point but actually the class is part of the classpath. You just mentioned a dirty word. Do you have CLASSPATH set for the Tomcat execution or included that jar in the -cp parameter for

Re: Apache connectors for tomcat

2007-09-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, Tony Anecito wrote: I heard that mod_jk was based off of ajp so I was quite surprised mod_jk was faster. Yes, mod_jk does use the AJP protocol. Why were you surprised that it was faster? With what are you comparing it? - -chris -BEGIN

RE: App reloading classloading issue?

2007-09-28 Thread bajistaman
Caldarale, Charles R wrote: You just mentioned a dirty word. Do you have CLASSPATH set for the Tomcat execution or included that jar in the -cp parameter for launching Tomcat? (You shouldn't.) If so, that will make the weblogic classes visible to multiple classloaders, which is a Very

Re: Apache connectors for tomcat

2007-09-28 Thread Tony Anecito
Hi Chris: 1. I am instrumenting inside the servlet code, looking at Apache web server logs then at the Rich Internet Application (RIA) For a typcial request for my Portal from client to servlet for example: 1. 4.55msec inside the RIA java code after the data was read from the SOAP message. 2.

Re: Tomcat performance measurments...

2007-09-28 Thread Tony Anecito
Hi Rainer, Thanks for the well written response and some ideas to get past the problem. I agree the 4ms might be latency but until I can measure at Apache web server or Tomcat more acurately I will wait to say what it really is. I am using %D and as you said the timer is not very accurate.

Variable Resolver Error

2007-09-28 Thread Clifford Bryant
I am getting a JSTL variable resolver error running CAS 3.0.7 on Tomcat 5.5 with Java 1.4.2 and the Java compatibility JAR. java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el /VariableResolver; The JSTL jars are in the CAS /lib

Re: App reloading classloading issue?

2007-09-28 Thread bajistaman
It seems that this is a common problem whenever you need to access weblogic from a non weblogic container. First the wl*client.jar files are not enough to do what a weblogic client needs to do so you need to put the whole weblogic.jar (34MB) in your classpath in order to make it work an not

RE: App reloading classloading issue?

2007-09-28 Thread Caldarale, Charles R
From: bajistaman [mailto:[EMAIL PROTECTED] Subject: Re: App reloading classloading issue? Then whenever you need to reload your application you are going to get the java.lang.NoClassDefFoundError: I suspect that the prior instance of the webapp is actually still around, or at least its

Weird problem: Two apparent copies of app started

2007-09-28 Thread Ken Bowen
Hello All, I have an application using data source pooling configured in META-INF/context.xml. I set up up the data sources and the classes accessing them in an AppListener. This app works fine on Tomcat 5.5.9 running on Windows and 5.5.25 running on Linux/CentOS 5. I am attempting to bring

RE: Weird problem: Two apparent copies of app started

2007-09-28 Thread Caldarale, Charles R
From: Ken Bowen [mailto:[EMAIL PROTECTED] Subject: Weird problem: Two apparent copies of app started strongbrain/WEB-INF/lib/servlet-api.jar One obvious error: you must not put the servlet-api.jar inside your webapp - the container supplies that. Remove it and see if it helps. - Chuck