After IIS6 Tomcat6 Integration it has Chinese coding problem!

2008-08-22 Thread francin
After I integration IIS and Tomcat successfully, I only have a problem how it can resolve the Chinese coding problem? The detail of the problem is : If my url contains Chinese the tomcat returns HTTP 400 ! How to solve it? I am grateful if any user provide the solution for me. -- With Regards

Re: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread Gabe Wong
If possible, you may consider a monitor or cron in a separate process. It checks the state of the servlet by making a HTTP GET to it; depending on response, it could initiate the SHUTDOWN command to Tomcat. COHEN, STEVEN M (ATTSI) wrote: Yeah, that was what I thought. Apps aren't supposed

RE: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread COHEN, STEVEN M (ATTSI)
Yeah, that was what I thought. Apps aren't supposed to do that. But in my case where there is a one-to-one between Tomcat and my app, it's okay. In fact, I also need to launch Tomcat with a special script that sets a number of parameters required by my app, because the one of the systems I'm dep

RE: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread COHEN, STEVEN M (ATTSI)
Actually, exiting Tomcat is what I DO want. And seeing as how I am definitely going against the grain here, the System.exit(0) is about as good as it's going to get. It seems to work just fine. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 20

RE: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread Martin Gainty
this exits tomcat (which i dont think you want) try return; instead.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential na

Re: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread Len Popp
There isn't a clean way for webapps to shut down the server because they're not really supposed to do that. :-) If you thrown an UnavailableException from a servlet's init method, that servlet won't run. If you do app initialization in a ServletContextListener and throw an exception from the conte

Re: IIS6 Tomcat6 Integration Question!

2008-08-22 Thread francin
Thanks you very much I had solved the problem with your invaluable help! Thx again! At last, I can from China, and I want to make friends with all of you! My Email is: [EMAIL PROTECTED] I am looking forward to receiving your mail! Rainer Jung-3 wrote: > > francin wrote: >> I can't con

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-22 Thread Fu-Tung Cheng
That might be the simpliest but using kill to stop tomcat can prevent services from properly shutting down potentially causing data loss depending on your application. In a development environment that is likely a good solution but in a production environment I don't think that is a good idea.

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-22 Thread Fu-Tung Cheng
Slackware Linux > Well, "no way" is a bit strong a statement. For > example Linux' netfilter > provides an owner match for locally generated packets. This > should be > usable to indeed create a per-user restriction of access to > the shutdown > port. > But since the OP didn't bother to tell us

RE: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread COHEN, STEVEN M (ATTSI)
Yeah, that would work :-). I guess I was looking for something a bit more, well, graceful. -Original Message- From: Lucas Galfaso [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 1:55 PM To: Tomcat Users List Subject: Re: I WANT Tomcat to die when a given servlet fails to initial

Re: R: R: Newer version of mod_jk much slower than 1.2.13

2008-08-22 Thread Rainer Jung
Hi Leandro, Leandro Dardini schrieb: LoadModule jk_module modules/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties > JkLogFile /etc/httpd/logs/mod_jk.log > JkLogLevel info OK About the trace level, full it is over 700Kbyte (gzipped), I send it directly to you. Thank you very much

Re: I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread Lucas Galfaso
try { [...] } catch (Exception e) { System.exit(0); } ?? :-) -lg On Fri, Aug 22, 2008 at 3:42 PM, COHEN, STEVEN M (ATTSI) <[EMAIL PROTECTED]> wrote: > This may seem like an odd request and I'm sure it is nonstandard, but it > nonetheless something I'd like to be able to do. We have an in

I WANT Tomcat to die when a given servlet fails to initialize

2008-08-22 Thread COHEN, STEVEN M (ATTSI)
This may seem like an odd request and I'm sure it is nonstandard, but it nonetheless something I'd like to be able to do. We have an instance of Tomcat running. It runs one application. This application is NOT an application serving content over the www. It is basically a straight java applicat

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-22 Thread edponce
Thank you Tom, I think the other repliers were going to far on what they wanted to do. this exactly why i want 2 different sessions, "It can also be useful for evaluating a new version before you unleash it to production." so if i understood everything i just need to duplicate the tomcat folder

cluster - v5.5 or v6.x or v?

2008-08-22 Thread Gergely Paljak
Hi all, I would like to ask for your advice on a clustering issue. I intend to run a Tomcat cluster with a very old and simple application *, so the supported Servlet/JSP specs don't matter to me at all. What essential is that I want to adjust my cluster dynamically - i.e. add and remove nodes wit

Re: Tomcat does not unpack WAR file (Tomcat 5.5.20)

2008-08-22 Thread Johnny Kewl
- Original Message - From: "Peter" <[EMAIL PROTECTED]> To: Sent: Friday, August 22, 2008 4:07 PM Subject: Tomcat does not unpack WAR file (Tomcat 5.5.20) Hi When I drop a WAR file into the webapps folder on my dev machine - running Tomcat 6.0.16 - Tomcat unpacks it on startup. W

R: R: Newer version of mod_jk much slower than 1.2.13

2008-08-22 Thread Leandro Dardini
-Messaggio originale- Da: Rainer Jung [mailto:[EMAIL PROTECTED] Inviato: ven 22/08/2008 14.21 A: Tomcat Users List Oggetto: Re: R: Newer version of mod_jk much slower than 1.2.13 > I get rid of the balancer and set in apache configuration file: > > JkMount /eltbinj/* ajp13w_01

Re: tomcat 6 won't generate mod_jk.conf

2008-08-22 Thread David Whitehurst
Johnny: You should be trying to get "Apache to talk to Tomcat". You have to do the configurations and workers.properties file yourself. You should first be sure that the AJP 1.3 module is loaded when Apache starts. This occurs when you include the module in your httpd.conf. The line should cont

Re: tomcat 6 won't generate mod_jk.conf

2008-08-22 Thread Steve Ochani
On 22 Aug 2008 at 5:34, cornercuttin wrote: Send reply to: Tomcat Users List Date sent: Fri, 22 Aug 2008 05:34:24 -0700 (PDT) From: cornercuttin <[EMAIL PROTECTED]> To: users@tomcat.apache.org Subject:tomcat 6 won't gener

Re: tomcat 6 won't generate mod_jk.conf

2008-08-22 Thread Johnny Kewl
- Original Message - From: "cornercuttin" <[EMAIL PROTECTED]> To: Sent: Friday, August 22, 2008 2:34 PM Subject: tomcat 6 won't generate mod_jk.conf perhaps someone can help me here. i am trying to get tomcat 6 to talk to apache 2.2.8 (fedora core 5), and i can't get very far. fi

Tomcat does not unpack WAR file (Tomcat 5.5.20)

2008-08-22 Thread Peter
Hi When I drop a WAR file into the webapps folder on my dev machine - running Tomcat 6.0.16 - Tomcat unpacks it on startup. When I do the same on the production box - running Tomcat 5.5.20 - nothing happens. The WAR file that I am deploying is ROOT.war; there is a corresponding ROOT.xml un

Re: HTTPConnector url redirection

2008-08-22 Thread David Smith
Just as a thought, but I've seen on occasion where Firefox in particular will offer up cached content when something goes haywire with the request. As a test, when you drop the s from https (leaving the port number on the end), try to reload w/ the shift key down to force your browser to drop

HTTPS and Secure directive being ignored

2008-08-22 Thread David Whitehurst
I am working on a JBoss, CAS, Apache implementation for a state project and I'm seeing weird behavior that I cannot seem to resolve. I'm ultimately using Tomcat 5.5 but the hacked version JBoss has fixed up. Anyhow, I'll try to identify my architecture and then see if anyone knows why the 8443 con

tomcat 6 won't generate mod_jk.conf

2008-08-22 Thread cornercuttin
perhaps someone can help me here. i am trying to get tomcat 6 to talk to apache 2.2.8 (fedora core 5), and i can't get very far. firstly, tomcat 6 doesn't come with a workers.properties file. secondly, when i start tomcat via the command "./startup.sh -jkconf" or "./startup.sh jkconf", i cann

Re: R: Newer version of mod_jk much slower than 1.2.13

2008-08-22 Thread Rainer Jung
I get rid of the balancer and set in apache configuration file: JkMount /eltbinj/* ajp13w_01_01 With the 1.2.13 the result is obviously the same high speed (I unset the lang for not italian (lucky) people): ... 13:13:00 (630.19 KB/s) - `/dev/null' saved [53048] With the 1.2.26 the re

R: Newer version of mod_jk much slower than 1.2.13

2008-08-22 Thread Leandro Dardini
> -Messaggio originale- > Da: Rainer Jung [mailto:[EMAIL PROTECTED] > Inviato: venerdì 22 agosto 2008 12.15 > A: Tomcat Users List > Oggetto: Re: Newer version of mod_jk much slower than 1.2.13 > > Can you throw our the load balancer and retry with only one > direct worker? That would be

Re: IIS6 Tomcat6 Integration Question!

2008-08-22 Thread Rainer Jung
francin wrote: I can't configure Tomcat with IIS web server with the tomcat-connector! My server's os is 64bit Windows2003, IIS is 6, Tomcat is 6. I tried to download the file isapi_redirect-1.2.26.dll (64bit version),add it as an ISAPI filter, and I added the directory which isapi_redirect-1.2

Re: Newer version of mod_jk much slower than 1.2.13

2008-08-22 Thread Rainer Jung
Can you throw our the load balancer and retry with only one direct worker? That would be helpful. Also: please post your platform (type/version) and your JK directives (for Apache). The 7 seconds is by far to long for 50KB. Regards, Rainer --

Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.

2008-08-22 Thread Rainer Jung
Thanks, that's good to know, and I don't believe I've seen that in the docs anywhere. There's surely a lot to improve in the docs, mainly the HowTo pages, but the Reference guide is fairly complete. Page http://tomcat.apache.org/connectors-doc/reference/workers.html says: "Some directives ar

Re: tomcat 5.5 DataSourceRealm not taken in charge

2008-08-22 Thread lmk
yes I set all parameters on the realm defined on the server.xml, but, I forgot realm definition on the context.xml, so, tomcat use first realm on the context.xml. it works fine now.. thanks a lot.. Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > To whom it