Re: JAAS authentication goes OK, but 403 occurs on requesting resources

2008-04-01 Thread Liyi Meng
Hi Chuck, Thanks for your reply. Here is my web.xml consider of security: Security Constraint Protected Area /protected/* manager FORM Example Form-Based Authentication Area /auth/login2.jsp /auth/error.jsp

Re: Deleting context xml files - I have the same...

2008-04-01 Thread frode
I have the same, except I have only one context pr virtual server, and uses the war-file as the root-app in each. When I replace a war-file, the context-files for the other root-apps is deleted - each time. But the context-file for the replaced war-file is left untouched.' I use 6.0.16 on jvm 1

Tomcat 6 Command Line Install Path Option

2008-04-01 Thread Mark Sullivan
I am looking for a way to specify the installation path in a command-line install of Tomcat 6.0.16 on Windows. Other apps I have installed this way usually have a switch something like -INSTALLDIR=[path]. I have checked the online documentation, the running.txt file that comes in the installer, t

Re: Large HTML file not getting compressed despite compression enabled

2008-04-01 Thread lawrephord27
if you have the time try using debug trace to look at every step to see what is working Does anyone know what might be happening here? This is a pretty strange problem... Thanks for your time, Alex -- View this message in context: http://www.nabble.com/Large-HTML-file-not-getting-compress

Re: Large HTML file not getting compressed despite compression enabled

2008-04-01 Thread Alex Epshteyn
Does anyone know what might be happening here? This is a pretty strange problem... Thanks for your time, Alex Alex Epshteyn wrote: > > I have Tomcat's compression enabled: > > maxThreads="200" minSpareThreads="25" maxSpareThreads="75" >enableLookups="false" r

Deleting context xml files

2008-04-01 Thread Albert Wold
Hello, Recently I have been using per-context XML files in /usr/local/tomcat/conf/Catalina/localhost to define environment specific information for my webapps. That way, when I move a war file through the cycle of dev/qa/production, I can be sure that I'm running the same code, and don't have to

RE: JAAS authentication goes OK, but 403 occurs on requesting resources

2008-04-01 Thread Caldarale, Charles R
> From: Liyi Meng [mailto:[EMAIL PROTECTED] > Subject: JAAS authentication goes OK, but 403 occurs on > requesting resources > When login, authentication goes OK, but when requesting > a resource, I always get 403 access denied! What's in the , , and sections of the web.xml for your webapp? H

Is jsvc is required for installing / configuring only custom web application

2008-04-01 Thread Srinivasan D
Hi, My requirement is simple. I have to install a custom web application, which is running in another server. Means the old server will be retired soon. The old / new servers only runs a customized web application. It does not handle any web services. So, is that jsvc has to be installed. (Like do

dynamically add new virtual host

2008-04-01 Thread ahnf
Hi, How can I add a new virtual host on the fly, and have that configuration be persisted? I see the "host-manager" app, however once the host is added under conf/Catalina/ upon tomcat restart that host is not picked up because the server.xml is not edited. Is the host-manager app still in dev

Re: mod_jk and url rewriting+forwarding

2008-04-01 Thread Rainer Jung
David Smith schrieb: mod_jk doesn't use the HTTP protocol. It uses the AJP13 protocol. Unless you've done something unusual with your tomcat, the 8080 connector will be talking HTTP, not AJP. Default AJP port is usually 8009, so try 'worker.MyWorker.port=8009' in your workers.properties fil

Re: Apache fails to start when .host does not resolve.

2008-04-01 Thread Rainer Jung
fredk2 schrieb: Hi, when you set a load balancer (mod_jk v1.2.26) with 2 workers: worker.myWorker.type=lb worker.myWorker.balance_workers=tc1Worker, tc2Worker and one of the worker's host cannot be resolved: worker.tc2Worker.host=mytest.mydom.com Then Apache will not start. - sinc

Re: mod_jk and url rewriting+forwarding

2008-04-01 Thread David Smith
mod_jk doesn't use the HTTP protocol. It uses the AJP13 protocol. Unless you've done something unusual with your tomcat, the 8080 connector will be talking HTTP, not AJP. Default AJP port is usually 8009, so try 'worker.MyWorker.port=8009' in your workers.properties file. If you've changed

mod_jk and url rewriting+forwarding

2008-04-01 Thread Melanie Pfefer
hi, I want to forward http://proxy/gqaf:soi:PAR:TRE:001 (proxy is an apache) to http://backend:8080/gqaf-web/gqaf:soi:PAR:TRE:001 (backend:8080 is a tomcat server) I downloaded mod_jk and modified httpd.conf: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/apache224/conf/

Apache fails to start when .host does not resolve.

2008-04-01 Thread fredk2
Hi, when you set a load balancer (mod_jk v1.2.26) with 2 workers: worker.myWorker.type=lb worker.myWorker.balance_workers=tc1Worker, tc2Worker and one of the worker's host cannot be resolved: worker.tc2Worker.host=mytest.mydom.com Then Apache will not start. - since the other worke

RE: Problem in running Tomcat

2008-04-01 Thread Caldarale, Charles R
> From: fredk2 [mailto:[EMAIL PROTECTED] > Subject: Re: Problem in running Tomcat > > I always wonder: why do some applications have the servlet.jar in > WEB-INF/lib when the 'curent' one is already in the ./common/lib ? Because people throw it in there during development with NetBeans, Eclipse,

Re: Problem in running Tomcat

2008-04-01 Thread fredk2
Hi, Delete WEB-INF/lib/servlet.jar. I always wonder: why do some applications have the servlet.jar in WEB-INF/lib when the 'curent' one is already in the ./common/lib ? INFO: validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,

How to force HTTPS on some of Struts-based site

2008-04-01 Thread Hyatt, Gordon
I'm trying to add Authentication (over HTTPS) to a Struts-based web app and am running into problems. I can get Tomcat (5.5.26) to authenticate the user (using Basic login) without issue, but I can't seem to get a Struts-based login form to work. Because of the way the passwords are encrypted,

Re: An error occurred at line: -1, Unable to compile class for JSP(Netware)

2008-04-01 Thread Howard Watson
Thanks. I did not find the bug listed when I searched. >>> Rainer Jung <[EMAIL PROTECTED]> 4/1/2008 11:33 AM >>> It's a known bug, which has beend discussed on the developers list only very recently. See http://marc.info/?t=12066709823&r=1&w=2 Your workaround (using ant 1.5) seems fine. Th

Re: 32-bit isapi_redirector (Version 1.2.8) on 64-bit server

2008-04-01 Thread Rainer Jung
Go to tomcat.apache.org, and click in the Download menu on "Tomcat Connectors". This will get you to the page http://tomcat.apache.org/download-connectors.cgi There you can either follow the link to a binary release (there are binaries for several platforms, especially win32 and win64) or for

Re: Apache + Tomcat + mod_jk + VirtualHost

2008-04-01 Thread Rainer Jung
Hi Tony, Tony Stocker schrieb: Hello All, I have a working configuration but cannot find a way to extend it in the way that we need to do. Currently we load ../conf/auto/mod_jk.conf into Apache's httpd.conf. The mod_jk.conf file is automatically generated and creates the entry just fine. HOW

64-bit isapi redirector not working with Tomcat.

2008-04-01 Thread Panian, Ardo
Trying to get Tomcat to work on Win2k3 64-bit w.\ IIS 6.0 I downloaded a 64-bit isapi redirector DLL from: http://www.trieuvan.com/apache/tomcat/tomcat-connectors/jk/binaries/win64/jk-1.2.26/ia64/ http://www.trieuvan.com/apache/tomcat/tomcat-connectors/jk/binaries/win64/jk-1.2.26/amd64/ ...and i

Re: An error occurred at line: -1, Unable to compile class for JSP(Netware)

2008-04-01 Thread Rainer Jung
It's a known bug, which has beend discussed on the developers list only very recently. See http://marc.info/?t=12066709823&r=1&w=2 Your workaround (using ant 1.5) seems fine. The final solution is still pending, but it's quite possible, that Mark does a fix for the future 4.1.38. This sti

Re: Problem in running Tomcat

2008-04-01 Thread David Smith
Raghavan_sat wrote: David Smith-2 wrote: tomcat 5 w/ gcj -- either get rid of it or take this conversation to the yum folks. We support tomcat as provided by Apache using primarily Sun Java although I'm sure people have had success with IBM's jvm. Other packaging methods introduce lot'

Re: Problem in running Tomcat

2008-04-01 Thread Raghavan_sat
David Smith-2 wrote: > > tomcat 5 w/ gcj -- either get rid of it or take this conversation to the > yum folks. We support tomcat as provided by Apache using primarily Sun > Java although I'm sure people have had success with IBM's jvm. Other > packaging methods introduce lot's of symlinks

RE: TC 4.1.36 stopped logging

2008-04-01 Thread Propes, Barry L
Chris, I've switched the params on the XML file to look more closely at this and inspect leaks. I might even should tighten it up more, to about 15 seconds. The deal here is that we have some 30-40 businesses sharing this Oracle server that allows hundreds and hundreds of connections.. (dare I

An error occurred at line: -1, Unable to compile class for JSP (Netware)

2008-04-01 Thread Howard Watson
This is an upgrade from Apache2.0.59/Tomcat4.1.31/mod_jk 1.2.15 to Apache2.0.63/Tomcat4.1.37/mod_jk 1.2.36 on Netware 6.5 sp7. Except for JSP compiles, everything including HTML, servlets and precompiled JSPs works. Ant.jar is there in CATALINA_HOME\common\lib. The problem is with Ant v1.7 int

32-bit isapi_redirector (Version 1.2.8) on 64-bit server

2008-04-01 Thread Panian, Ardo
I am trying to get Tomcat working on a 64-bit windows 2003 server in conjunction with IIS 6.0. The issue that I am experiencing is with the isapi_redirector (Version 1.2.8 ). It is 32-bit, and its status is constantly down (via IIS Manager). Could someone direct me to the source code for this fi

Re: httpd cant talk to tomcat workers

2008-04-01 Thread quikpak
ijncemkaosimgmail.com add him! - Original Message - From: "Andy Smith" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Wednesday, March 26, 2008 9:14 PM Subject: Re: httpd cant talk to tomcat workers Hi Peter, hey thanks a lot, got it working! As I had a number of files

Re: deployment questions

2008-04-01 Thread quikpak
i dont want tomcat!! im not a member of it!! dont send me emails hereafter... if im a member send me emails,but im not a member. Best Regards Ajmal - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, March 27, 2

RE: OOM in PermGen space after several deploy/undeploy

2008-04-01 Thread Caldarale, Charles R
> From: Piller Sébastien [mailto:[EMAIL PROTECTED] > Subject: OOM in PermGen space after several deploy/undeploy > > Is this corrected in a later version of Tomcat? No, because it's not a Tomcat problem. > Does anybody know how to avoid this? Fix your webapp to not hang on to useless reference

Re: Tomcat performance over VMWare

2008-04-01 Thread Gabe Wong
Karim Zaki wrote: Hi all, I'm experiencing poor performance with Tomcat 5.0.28 running on a Windows 2000 Server VM (Windows Server 2003 R2 host, VMWare Server 1.0.4). Tomcat takes up around 50% of the CPU and the "System" process takes up the other 50% when making requests that return relativ

Set Tomcat logging timezone - switching summer time (daylight saving) automatically

2008-04-01 Thread Albert Yu
I found that if you add -Duser.timezone=Europe/London into JAVA_OPTS in catalina.sh, all tomcat logging will use BST at summer time, but -Duser.timezone=BST does NOT work. Hope this is useful for somebody. Albert Yu (Yizhuan Yu) ___

Re: OOM in PermGen space after several deploy/undeploy

2008-04-01 Thread Antonio Petrelli
2008/4/1, Piller Sébastien <[EMAIL PROTECTED]>: > > Hello everybody, > > I found some problem with my app, when I deploy it/undeploy it several > times under Tomcat (5.5) (Unix and Windows). I copied my app war file in > the webapp dir, and when it has been fully deployed, I surf on some > pages. A

OOM in PermGen space after several deploy/undeploy

2008-04-01 Thread Piller Sébastien
Hello everybody, I found some problem with my app, when I deploy it/undeploy it several times under Tomcat (5.5) (Unix and Windows). I copied my app war file in the webapp dir, and when it has been fully deployed, I surf on some pages. After that, I delete that war, wait for the end of undeplo

Tomcat performance over VMWare

2008-04-01 Thread Karim Zaki
Hi all, I'm experiencing poor performance with Tomcat 5.0.28 running on a Windows 2000 Server VM (Windows Server 2003 R2 host, VMWare Server 1.0.4). Tomcat takes up around 50% of the CPU and the "System" process takes up the other 50% when making requests that return relatively quickly on a phy

RE: status worker

2008-04-01 Thread Nuno Manuel Martins
Thank you. It was related with the virtual hosts and it Works now. Regards, Nuno -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: terça-feira, 1 de Abril de 2008 16:08 To: Tomcat Users List Subject: Re: status worker Nuno Manuel Martins wrote: > Hi, > > I tried befor

Apache + Tomcat + mod_jk + VirtualHost

2008-04-01 Thread Tony Stocker
Hello All, I have a working configuration but cannot find a way to extend it in the way that we need to do. Currently we load ../conf/auto/mod_jk.conf into Apache's httpd.conf. The mod_jk.conf file is automatically generated and creates the entry just fine. HOWEVER, we need to ADD Apache config

Re: status worker

2008-04-01 Thread Rainer Jung
Nuno Manuel Martins wrote: Hi, I tried before to do as you said and it did not work. I guess this is because when I make the request the one answering is Apache httpd and not Tomcat, and I don't think httpd has any clue of what a status worker is. Sure it has. It asks mod_jk and mod_jk knows

RE: status worker

2008-04-01 Thread Nuno Manuel Martins
Hi, I tried before to do as you said and it did not work. I guess this is because when I make the request the one answering is Apache httpd and not Tomcat, and I don't think httpd has any clue of what a status worker is. I tried to simplify it with just these 3 lines: worker.jkstatus.type=statu

RE: Tomcat on AMD64 System

2008-04-01 Thread Caldarale, Charles R
> From: Alexander Diedler [mailto:[EMAIL PROTECTED] > Subject: Tomcat on AMD64 System > > replace the Tomcat5.exe but I have a Tomcat 6 Version You don't have to recompile; just get the tomcat5.exe and tomcat5w.exe files for AMD64 and rename them, replacing the 5 with a 6 in each file. They're

Re: parsing of .jsp not functional

2008-04-01 Thread David Smith
It would seem your request for file.jsp is not being routed through mod_jk and is hitting a local file.jsp in your httpd site. Where is the errant file.jsp located? Does tomcat show any log messages for the moment in time when page is requested? Anything in your httpd logs regarding the requ

JAAS authentication goes OK, but 403 occurs on requesting resources

2008-04-01 Thread Liyi Meng
Hi all, I am trying JAAS in tomcat, but hit on a really frustrating problem right now. When login, authentication goes OK, but when requesting a resource, I always get 403 access denied! I try to print out httprequest.getRemoteUser in servlet, the username is correct there, however httprequest.is

Re: status worker

2008-04-01 Thread Rainer Jung
Nuno Manuel Martins wrote: Hello, I am new to tomcat in general and I am trying to setup jk_mod (using 1.2.25) and I have already successfully installed it and put workers serving dynamic content from the tomcat server with load balancing. Now I wanted to setup the status worker to get some s

status worker

2008-04-01 Thread Nuno Manuel Martins
Hello, I am new to tomcat in general and I am trying to setup jk_mod (using 1.2.25) and I have already successfully installed it and put workers serving dynamic content from the tomcat server with load balancing. Now I wanted to setup the status worker to get some statistics. I am using the de

Slow Tomcat - IIS ISAPI Filter

2008-04-01 Thread Alexander Diedler
Hello @ll >From outside the Server, all the Requests to the Tomcat Website very, very slow (Build time 8-15 seconds for 50 kb Textsites!!), on the Server themselves (Remote Desktop) the Sites was build lower than 1 Second. I have a Hosting Server with Windows 2003 Server x64 Edition and a Tomcat

Tomcat on AMD64 System

2008-04-01 Thread Alexander Diedler
Hello @ll, It is very stupid. I get not ran a Tomcat 6.0.16 Server on a Windows 2003 Standard Edition x64 Edition with Java 1.5 AMD64 Edition. I found may workarounds (replace the Tomcat5.exe but I have a Tomcat 6 Version!!, Recompile the Files u). Some points are very unclear: -

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-04-01 Thread Ronald Klop
On Mon Mar 31 21:13:25 CEST 2008 Tomcat Users List wrote: On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop <[EMAIL PROTECTED]> wrote: > > See my previous mail about send/receive buffers filling because Ack wasn't > read by FastAsyncSender. > The option waitForAck="true" did the trick for me. But fo

parsing of .jsp not functional

2008-04-01 Thread Andre Hübner
Hi List, i have a Problem with parsing .jsp Files using Apache/mod_jk My Setup: Apache 2.2.8 mod_jk 1.2.26 Tomcat 5.5.26 on Suse Linux 10.1 Tomcat/Apache is up and running, on TomcatPort i can parse .jsp files domain.com:8080/file.jsp is working but domain.com/file.jsp is not and i dont know