Re: robust Failover, mod_jk

2005-11-17 Thread Mladen Turk
Mott Leroy wrote: Mladen Turk wrote: Yes, use the 'Advanced worker directives' http://tomcat.apache.org/connectors-doc/config/workers.html The connect_timeout, prepost_timeout and reply_timeout are meant to be used with hanged or very busy backend (Tomcat) servers. I'm having trouble underst

The manager webapp is disabled when start TC5.5.12 within Eclipse 3.1.

2005-11-17 Thread Kanin Chen
Howdy, I am using Eclipse 3.1 and TC 5.5.12 and Lomboz, when starting TC 5.5.12 in Eclipse, the manage webapp is disabled while starting outside Eclipse is valid. The server.xml in eclipse is all the same to server.xml in TC. any hint? Thanks in advance. Best Regards.

Re: Using Authentication/Authorization

2005-11-17 Thread Jeremy Crosbie
I followed what Slide did when writing my module: http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/jaas/org/apache/slide/ja as/spi/SlideLoginModule.java?rev=1.2&view=markup On 11/17/05 3:29 AM, "Markus Plail" <[EMAIL PROTECTED]> wrote: > Hi Jeremy! > > Jeremy Crosbie <[EMAIL PROTECTED]> wri

Re: JNDI from tomcat on remote Windows PC with ODBC ???

2005-11-17 Thread Len Popp
Sun has a JDBC-ODBC bridge, which is a JDBC driver that connects to an ODBC data source. I have used it with Tomcat 5. More info here: http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/bridge.html You can download it from Sun's web site, but I can't give you a link because their Java download pages se

Deploying WAR to a context path

2005-11-17 Thread Chris Watts
Hi, I know there are several different ways to do what I want but I would like to be able to do it this way so there are fewer errors at 1AM. Is there a way to make the HTML interface of the Tomcat 5.5 manager (/manager/html) deploy a war file to a specific context path? I have tried playing arou

Re: Tomcat 5.5 problem - container not serving up web content

2005-11-17 Thread Rob Hills
Hi Jorge, On 17 Nov 2005 at 11:53, Hassan Schroeder wrote: > Jorge Rodriguez wrote: > > > When I access a JSP page directly on my localhost, it loads properly with > > images and the stylesheet. > > However, when I access the JSP (or any other JSP for that matter) using a > > filter, servlet o

Re: How to set restrictions on the retreival of files from some directories

2005-11-17 Thread erh
On Thu, Nov 17, 2005 at 02:19:13PM -0600, Alla Winter wrote: > BY default it is possible to retrieve files located under the 'WEB-INF' > directory. For example: www.someserver.com/WEB-INF./web.xml or > www.someserver.com/WEB-INF./classes/MySer >

Re: Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Remy Maucherat
On 11/17/05, Dhaval Patel <[EMAIL PROTECTED]> wrote: > Thanks for your response Remy. But I didnt quite get it. I need help > configuring > SSL with Tomcat on Windows XP. I read the documentation that I found. I could > not > solve the problem that's why I posted on forum. I wrote what I did. How

Re: Security and Authentication

2005-11-17 Thread B Wiley Snyder
try this ... java.security.Principal Principal pri; pri = request.getUserPrincipal(); that's the only way I know of, unless you use some javascript to save the login in the session on the form ... -Wiley java.security.PiAt 04:13 PM 11/17/2005, you wrote: I am using Tomcat Form-base

Re: robust Failover, mod_jk

2005-11-17 Thread Mott Leroy
Duan, Nick wrote: Apparently mod_jk does support several load balancing algorithms other than round-robin. You may want to set the "method" property of load balancer to Request or Traffic. See instructions on worker properties for details. http://tomcat.apache.org/connectors-doc/config/workers

Security and Authentication

2005-11-17 Thread Mike Dickson
I am using Tomcat Form-based authentication. The user docs ask you to name your form fields, j_username and j_password. Then you POST to j_security_check. Everything is working and I get a JSESSIONID and am forwarded to my protected user home page. Question: What data does Tomcat forward

RE: robust Failover, mod_jk

2005-11-17 Thread Duan, Nick
Apparently mod_jk does support several load balancing algorithms other than round-robin. You may want to set the "method" property of load balancer to Request or Traffic. See instructions on worker properties for details. http://tomcat.apache.org/connectors-doc/config/workers.html I think this

RE: Session not sticky in 5.5 with load balancer

2005-11-17 Thread Duan, Nick
Thanks for everyone's response! Finally I figured out that the problem was caused by naming inconsistency between workers.properties and the jvmRoute value in server.xml. The jvmRoute under the engine tag in server.xml has to be defined with the same name as the worker name for the same tomcat in

tomcat on gnu gij

2005-11-17 Thread Randall Smith
Can anyone point me to resources on running Tomcat on the GNU gij runtime? Thanks. Randall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Session not sticky in 5.5 with load balancer

2005-11-17 Thread John Moore
Nick, I think you want to use balanced_workers not balance_workers. Here's a snippit from our workers.properties. worker.list=lbcon # ww1 worker.ww1.port=8009 worker.ww1.host=192.168.X.Y worker.ww1.type=ajp13 worker.ww1.lbfactor=1 worker.ww1.cachesize=20 worker.ww1.local_worker=0 # ww2 worker

Re: robust Failover, mod_jk

2005-11-17 Thread Mott Leroy
Mladen Turk wrote: Yes, use the 'Advanced worker directives' http://tomcat.apache.org/connectors-doc/config/workers.html The connect_timeout, prepost_timeout and reply_timeout are meant to be used with hanged or very busy backend (Tomcat) servers. Thanks. I'm having trouble understanding the

Re: How to set restrictions on the retreival of files from some directories

2005-11-17 Thread Hassan Schroeder
Alla Winter wrote: > BY default it is possible to retrieve files located under the 'WEB-INF' > directory. No, it's not -- that's mandated in the servlet spec (SRV 9.5). For example: www.someserver.com/WEB-INF./web.xml or > www.someserver.com/WEB-INF./classes/MySer >

How to set restrictions on the retreival of files from some directories

2005-11-17 Thread Alla Winter
BY default it is possible to retrieve files located under the 'WEB-INF' directory. For example: www.someserver.com/WEB-INF./web.xml or www.someserver.com/WEB-INF./classes/MySer vlet.class What needs to be done to prevent it ? Why s

RE: Oracle 10g migration problem

2005-11-17 Thread Wick, Daniel
Sounds like you should open a tar with Oracle. You should also your problem into an Oracle user group, as obviously your application works in Tomcat. Good luck! > -Original Message- > From: Franklin Phan [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 17, 2005 2:04 PM > To: Tomcat

Oracle 10g migration problem

2005-11-17 Thread Franklin Phan
I'm trying to migrate a struts-based webapp from Tomcat 4.1.18 to Oracle 10g. The webapp uses XSLT and FOP. I got the following error: 500 Internal Server Error java.lang.NullPointerException at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891) at org.apache

Re: can't get #include to work

2005-11-17 Thread Hassan Schroeder
Rob Hills wrote: >> > > Ah, this could be a problem. From the "Directives" section near the > bottom of the Tomcat Docs page on SSI, I believe you should be using > "virtual" instead of "file" here, ie: > > > >> > > Also, not sure here, but it wouldn't surprise me if the directives were >

Re: robust Failover, mod_jk

2005-11-17 Thread Mladen Turk
Mott Leroy wrote: I was wondering if I could get some advice on better failover for my current setup. I'm using mod_jk 1.2.14 with Tomcat 5.0.28. One issue that we occassionally run across is that an instance of tomcat will become unresponsive (due to out of memory errors for example) but mod

Re: Tomcat 5.5 problem - container not serving up web content

2005-11-17 Thread Hassan Schroeder
Jorge Rodriguez wrote: > When I access a JSP page directly on my localhost, it loads properly with > images and the stylesheet. > However, when I access the JSP (or any other JSP for that matter) using a > filter, servlet or the struts action forward, the JSP content loads up, > but anything el

robust Failover, mod_jk

2005-11-17 Thread Mott Leroy
I was wondering if I could get some advice on better failover for my current setup. I'm using mod_jk 1.2.14 with Tomcat 5.0.28. One issue that we occassionally run across is that an instance of tomcat will become unresponsive (due to out of memory errors for example) but mod_jk will still rout

Re: Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Dhaval Patel
Thanks for your response Remy. But I didnt quite get it. I need help configuring SSL with Tomcat on Windows XP. I read the documentation that I found. I could not solve the problem that's why I posted on forum. I wrote what I did. How a newbie knows what is irrelevant and what is not. Thanks anyw

JSP processing other than .jsp?

2005-11-17 Thread Terence M. Bandoian
Definitely. -Terence M. Bandoian [EMAIL PROTECTED] wrote: >That is correct. However, it's much better not to do this since it >wastes a lot of bandwidth by sending the CSS code with every page. >Much better to use and let the browser cache the file >instead. > >Yaakov. > >On 11/16/05, Terence

Re: Session not sticky in 5.5 with load balancer

2005-11-17 Thread chinnimb-rest
Probably following article might help http://forum.java.sun.com/thread.jspa?threadID=604278&messageID=3262414 "Duan, Nick" <[EMAIL PROTECTED]> wrote: I am running an Apache httpd server as the load balancer with two tomcat instances. All servers are on the same windows XP machine. The load ba

Re: Newbie question - How to verify version of Tomcat?

2005-11-17 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#version -Tim Ritchie Gillam wrote: Should be an easy questions for the Tomcat users out there. I know I have Tomcat installed but I did the installation many moons ago. Is there a command that I can run from Windows that will tell me what version I am

Session not sticky in 5.5 with load balancer

2005-11-17 Thread Duan, Nick
I am running an Apache httpd server as the load balancer with two tomcat instances. All servers are on the same windows XP machine. The load balancing works fine, but I am not able to make user sessions sticky with either one of the tomcat instances. The test was done using is the session exampl

RE: RE: failure notice UNSUBSCRIBE IS NOT WORKING !!!!

2005-11-17 Thread tony
Try [EMAIL PROTECTED] (as at the bottom of the emails) instead of [EMAIL PROTECTED] (which bounced) >- --- Original Message --- - >From: users@tomcat.apache.org >To: users@tomcat.apache.org >Sent: Thu, 17 Nov 2005 13:17:32 > >How do I get off this list the IS NOT >WORKING >

RE: RE: failure notice UNSUBSCRIBE IS NOT WORKING !!!!

2005-11-17 Thread cknell
At the bottom of this message is the email address to unsubscribe. It is not the address to which you sent your message. Send an email to the correct address and you will get the results you are looking for. -- Charles Knell [EMAIL PROTECTED] - email-Original Message-From: Bovy, Stephe

Tomcat 5.5 problem - container not serving up web content

2005-11-17 Thread Jorge Rodriguez
I believe this to be a config issue, but have had no success resolving it for the past two days, so any help would be greatly appreciated. When I access a JSP page directly on my localhost, it loads properly with images and the stylesheet. However, when I access the JSP (or any other JSP for tha

Re: Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Remy Maucherat
On 11/17/05, Dhaval Patel <[EMAIL PROTECTED]> wrote: > Hello all, > >Then I read at some place that if you want APR you have do some extra > configuration, which I followed in part 2. > > (2) Using OpenSSL. > >I installed OpenSSL. I read documentation about how to generate key and > certifi

Re: Re: can't get #include to work

2005-11-17 Thread Rob Hills
Hi, On 17 Nov 2005 at 12:18, [EMAIL PROTECTED] wrote: > I was on 5.5.9, I upgraded to 5.5.12 but the SSI scripts still arent' > running. > > there are no errors in any of the log files. One thing that tripped me up early on after installing Tomcat 5.5 is that I wasn't seeing any logging when I

Re: Newbie question - How to verify version of Tomcat?

2005-11-17 Thread Tom Burke
Dunno about a windows command, but if you open the manager page - /manager/html - one of the pieces of info you'll be given is the version number. Tom - Original Message - From: "Ritchie Gillam" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Thursday, November 17, 2005 5:55 PM

RE: failure notice UNSUBSCRIBE IS NOT WORKING !!!!

2005-11-17 Thread Bovy, Stephen J
How do I get off this list the IS NOT WORKING Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 Mobile: (818) 352-9917 e-mail: [EMAIL PROTECTED] -Original Message- From: Bovy, Stephen J [mailto:[EMAIL PROTECTE

FW: failure notice

2005-11-17 Thread Bovy, Stephen J
Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 Mobile: (818) 352-9917 e-mail: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 10:12 AM To

Re: Newbie question - How to verify version of Tomcat?

2005-11-17 Thread chinnimb-rest
Just start the tomcat and open default page on web browser http://localhost:8080 look into Release Notes link Ritchie Gillam <[EMAIL PROTECTED]> wrote: Should be an easy questions for the Tomcat users out there. I know I have Tomcat installed but I did the installation many m

Re: Newbie question - How to verify version of Tomcat?

2005-11-17 Thread PHIL CAVAZOS
If you log into the manager web page * it should display the version. Confidentiality Notice: The information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution,

Newbie question - How to verify version of Tomcat?

2005-11-17 Thread Ritchie Gillam
Should be an easy questions for the Tomcat users out there. I know I have Tomcat installed but I did the installation many moons ago. Is there a command that I can run from Windows that will tell me what version I am running (have installed)? Any help is appreciated. Ritchie Gillam Progr

Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Dhaval Patel
Hello all, I am trying to configure HTTPS with Tomcat 5.5.12 on Windows XP. I am using J2SE 1.5.0_05. I am a student and I dont have signed certificate. I tried two methods which are mentioned on Tomcat documentation: (1) Using .keystore (generated by keytool) I followed the documentation (h

Re: Re: can't get #include to work

2005-11-17 Thread gbaynham
I was on 5.5.9, I upgraded to 5.5.12 but the SSI scripts still arent' running. there are no errors in any of the log files. here's the entire contents of the calling page in case this helps: home This is the home page > > From: "Rob Hills" <[EMAIL PROTECTED]> > Date: 2005/11/17

SSL w/Tomcat

2005-11-17 Thread Bob Grabbe
Trying to set up a tomcat server to only serve up pages using ssl and we are having a few problems. In the server.xml we have tried redirecting port 80 to port 443, thusly: and have set up the ssl connector also: Some of the redirection seems to be working, i.e. when I go to http://www.website.

Re: Tomcat / LDAPS

2005-11-17 Thread sudip shrestha
JNDIRealm does not work in ldaps:// Here is a good source that works! http://www.mozilla.org/directory http://www.dahbura.com/ On 11/17/05, Farid Izem <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'd like to configure a LDAPS Authentication to protect some of my > webapps. > Has anyone already done

Tomcat / LDAPS

2005-11-17 Thread Farid Izem
Hi all, I'd like to configure a LDAPS Authentication to protect some of my webapps. Has anyone already done that ? Can you provide me some samples on this subject ? I know, i have to declare a Realm (JNDIRealm). This has been already done But Tomcat refused to start. Can you help me please ? Kin

Re: Re: can't get #include to work

2005-11-17 Thread Rob Hills
Hi, On 17 Nov 2005 at 10:27, [EMAIL PROTECTED] wrote: > yes, and uncommented the lines in web.xml for both the servlet > definition and the mappings. > > still don't get anything back from the SSI scripts. Which version of Tomcat are you are using? If 5.5.x, are you using the Filter or the Se

Re: Eclipse setup questions

2005-11-17 Thread Seak, Teng-Fong
I'm using MyEclipse too, but IIRC it mostly export war files (or the whole directory structure in Tomcat). Exporting jar file is still the job of Eclipse. To the original poster: do you mean you're exporting individual java classes or jar files? OTOH, if you're developing some clas

RE: Eclipse setup questions

2005-11-17 Thread Eviano Afiemo
Hi, If you're using the basic version of Eclipse you may want to consider the following. Eclipse allows you to use Unix-like symbolic links. i.e. allows you to create a directory beneath your current project which is actually a link to a directory located elsewhere in your file system. At the

Re: Sharing webapps between linux and windows on single computer

2005-11-17 Thread Dhaval Patel
Hi Nix, Thanks for your response. After posting my question, I realized that the question is not that important. I read the documentation and figured the way that you suggest. My goal is to develop a web application and test it under Windows and Linux enviroment. I know Linux is much bett

Multiple IIS-sites proxying multiple Tomcats

2005-11-17 Thread Albrecht Scheidig
Hi all, I have to setup two IIS-sites on different ports in IIS and two tomcat-installations. I want the isapi redirector to forward each request on IIS:81 to worker1 (associated with ajp-port 8109 wich is served by tomcat 1) and each request on IIS:82 to worker2 (associated with ajp-port 8209 wic

Re: Using Authentication/Authorization

2005-11-17 Thread Markus Plail
Hi Jeremy! Jeremy Crosbie <[EMAIL PROTECTED]> writes: > Can you supply the relevant sections of your web.xml? I am using > FORM-based authentication--tested with both the Memory and JAAS > realms--but maybe this will give you some hints: Do you successfully use JAAS realm based authentication in

Re: Tomcat overwrites error response body

2005-11-17 Thread Tim Funk
Don't use sendError() - use setStatus(). Also - se the status first as to ensure the response is not committed before you send th body of the page. Also - once the page is done - try and close the resonse to ensure any error handling by tomcat is not done. -Tim Anurag Chakravarti wrote: Hi,

Re: Tomcat overwrites error response body

2005-11-17 Thread Markus Plail
Anurag Chakravarti <[EMAIL PROTECTED]> writes: > Tomcat sends back a default error HTML page, even when I don't want it > to. I want my servlet to send its own error response body. I am doing > the following in my servlet doPut method. > > java.io.PrintWriter pr = resp.getWriter(); > pr.println(e.g

Re: How to add client certificate to use in Servlets

2005-11-17 Thread Markus Plail
Hi Oliver! Oliver Schoenwald <[EMAIL PROTECTED]> writes: > I'm using Tomcat 5.5.4 and have implemented a webapplication that > connects to other servers to look for the existence of certain URLs > and to load soap-data using the Jakarta Axis-Library. Now there is a > remote server reachable via a

Re: Another issue with a special character

2005-11-17 Thread Seak, Teng-Fong
This seems to be off-topic, but let's continue Have you used MySQL Query Browser? Try to insert the sign and see how many bytes it's using. If it's two, it's almost certainly using UTF-8. If it's one, it seems to be OK. Then you have to figure out which part in your webapp is changin

JNDI from tomcat on remote Windows PC with ODBC ???

2005-11-17 Thread Philippe Couas
Hi, Could i configure an JNDI connector for an remote connection to another PC ? This remote PC has only an ODBC connection ? There is no specific Java Driver for this Database Currently ? Regards Philippe

Re: session replication errors

2005-11-17 Thread Kanin Chen
Howdy, I am using Eclipse 3.1 and TC 5.5.12, when starting TC 5.5.12 in Eclipse, the manage webapp is disabled while starting outside Eclipse is valid. The server.xml in eclipse is all the same to server.xml in TC. any hint? Thanks in advance. Best Regards.

Re: session replication errors

2005-11-17 Thread Peter Rossbach
Hey Olve, what I mean with your Cluster Config is: You have register two ClusterSessionListener! Peter Peter Rossbach schrieb: Hey Olve, I found a the NPE shutdown problem, but I must setup my Linux System to look inside the strange timeout exception. I want remove the w

starting Tomcat using kaffe /j2sdk

2005-11-17 Thread Aparna Ramakrishnan
Hello, I have tomcat4 installed and when i run tomcat with /etc/init.d/tomcat4 start, it uses JAVA_HOME=/usr/lib/kaffe and then tomcat immediately stops running. when i check the status of the server, i get the message that Tomcat servlet engline is not running but the pid file exists

Re: http response 304 with content

2005-11-17 Thread hallyday1999
Hello Mark, Would a Ethereal trace be enough for you? Mark Thomas <[EMAIL PROTECTED]> schrieb: hallyday1999 wrote: > Hello Mark, > > Sorry, but the bug you quote mentions errors with the HTTP-response headers. > > My problem is an 304 response with sent content (=content-length >0): > th

Re: stress test on tomcat

2005-11-17 Thread Dirk Weigenand
Hi, > --- Ursprüngliche Nachricht --- > Von: "William Mok" <[EMAIL PROTECTED]> > An: > Betreff: stress test on tomcat > Datum: Wed, 16 Nov 2005 14:57:21 -0800 > > - > 16-Nov-2005 2:44:30 PM org.apache.jk.common.ChannelSocket > acceptConnections > WARNING: Exception executing accept > java

Re: session replication errors

2005-11-17 Thread Peter Rossbach
Hey Olve, I found a the NPE shutdown problem, but I must setup my Linux System to look inside the strange timeout exception. I want remove the waitForAck flag at the next release, but my time is currently a little bit limited. Please look and test my next cluster checkin .-) Thanks for report

JK 404 error

2005-11-17 Thread Jean-Christophe Praud
Hi all, I've got a problem setting up Apache 2.0.55, Tomcat 5.5.12 and JK 1.2.15 on a Linux server : when I try to access to /test.jsp page, I get a 404 error from Tomcat (not Apache) What did I miss ? - my httpd.conf : LoadModulejk_module modules/mod_jk.so JkWorkersFile /usr/loca

Re: Load balancing with apache + mod_jk

2005-11-17 Thread Mirek Kopriva
Ok, so i got the solution. There was some config missing in tomcat's server.xml The Engine needs to have jvmRoute set to the name of the worker and the default one needs to be commented out. Anyway, thanks to everybody for help. Mirek On 11/16/05, Mirek Kopriva <[EMAIL PROTECTED]> wrote: > >

RE: stress test on tomcat

2005-11-17 Thread Peter Crowther
> From: William Mok [mailto:[EMAIL PROTECTED] > java.net.SocketException: Too many open files What operating system? Naively, that looks like the good ol' UNIX limit on the number of file descriptors available to a process - if so, read up on how to change the descriptor table size for your kern

Re: mod_jk bug serving up flash on non 2003 servers?

2005-11-17 Thread Olve Hansen
fre, 28,.10.2005 kl. 10.49 -0400, skrev [EMAIL PROTECTED]: > Hi, > > We're using mod_jk on Apache as a load-balancer for multiple tomcats. > We're using Laszlo, so the app is serving up Flash pages. > > On 2003 Server, everything works great. However, installing on XP SP2 > (haven't tested other

Configuring Context in tomcat :5

2005-11-17 Thread birendar . waldiya
HI , I am gettign following error when i tried to run the tomcat from eclipse my doubt is where to edit the Context in tomcat 5.. Is it in conf/server.xml or in Catalina/localhost/<> I optted for WWSF/dca as context. Error -- "SEVERE: Error deploying configuration descriptor WWSF#dca.xml java.

Fwd: Hi all

2005-11-17 Thread ashok kumar
-- Forwarded message -- From: ashok kumar <[EMAIL PROTECTED]> Date: Nov 17, 2005 11:42 AM Subject: Hi all To: [EMAIL PROTECTED] Hi , I my application I want to sent mail through "mail.host" and "some other IP" becoz SMTP port is blocked in my concern.So I want to override the defa