Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Shashidhar Rampally
Francis, I have followed your suggestion of using a VirtualHost but also made use of a suggestion I found on a website which talked about putting mod_rewrite rules inside the VirtualHost element along with the JkMount command inside. And wow! it works great. :)) Thank you! The only thing that's

Re: SSL

2008-04-12 Thread Max Sevenfold
Does it work with both Opera and IE 7 browsers? I mean non-apr connector. Regards, Max Caldarale, Charles R wrote: From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] Subject: SSL Just wondering what you all suggest to get SSL working in Tomcat.

Is it possible to serve static pages from Tomcat?

2008-04-12 Thread Malcolm Gorman
During development I want to serve static JSON files to my AJAX application. Serving it from an Apache web server on the same server URL but different port number (different from my Tomcat port number) gives me a same origin policy error in Firefox (though not IE). To get around this quickly, I

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Francis Galiegue
2008/4/12, Shashidhar Rampally [EMAIL PROTECTED]: Francis, I have followed your suggestion of using a VirtualHost but also made use of a suggestion I found on a website which talked about putting mod_rewrite rules inside the VirtualHost element along with the JkMount command inside. And

Re: Is it possible to serve static pages from Tomcat?

2008-04-12 Thread Francis Galiegue
2008/4/12, Malcolm Gorman [EMAIL PROTECTED]: During development I want to serve static JSON files to my AJAX application. Serving it from an Apache web server on the same server URL but different port number (different from my Tomcat port number) gives me a same origin policy error in

Re: Is it possible to serve static pages from Tomcat?

2008-04-12 Thread Mark Thomas
Malcolm Gorman wrote: I've Googled on this and read the Tomcat FAQs and even JBoss FAQs on serving static content from Tomcat. All of them say it's slow and you wouldn't want to do it, The Tomcat performance FAQ certainly does not say that. Try reading it again.

RE: SSL

2008-04-12 Thread Caldarale, Charles R
From: Max Sevenfold [mailto:[EMAIL PROTECTED] Subject: Re: SSL Does it work with both Opera and IE 7 browsers? It certainly works with IE 7, as well as Firefox 2 3; haven't tried Opera (not exactly a corporate favorite). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

RE: Is it possible to serve static pages from Tomcat?

2008-04-12 Thread Caldarale, Charles R
Malcolm Gorman wrote: I've Googled on this and read the Tomcat FAQs and even JBoss FAQs on serving static content from Tomcat. All of them say it's slow and you wouldn't want to do it, I don't know where you've been reading that, but it's certainly wrong these days. It was true several

RE: security with tomcat-users.xml

2008-04-12 Thread ChrisFromStPete
I found the problem. I was using the version of tomcat that comes bundled with Netbeans 6.0. Netbeans does not set CATALINE_BASE to the same location as CATALINA_HOME. Instead of using the Program Files directory, CATALINA_BASE is set to an obscure location in Documents and Settings.

Re: security with tomcat-users.xml

2008-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, ChrisFromStPete wrote: | I found the problem. I was using the version of tomcat that comes bundled | with Netbeans 6.0. Netbeans does not set CATALINE_BASE to the same | location as CATALINA_HOME. Instead of using the Program Files

Re: jsvc creates pid file owned by root

2008-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gunnar, Gunnar Boström wrote: | I would be fine with 644 but I don't know how to set that. | The file is owned by root so I'm not allowed to change it. | My umask is by default 0022 which should be okay. I tried to set the mask to | but no

Re: Am I stuck in the tomcat-users.xml?

2008-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matheus, Matheus Rezende wrote: | Thats my question, theres another way to store the users of my webApp?? Yes. Use a Realm other than UserDatabaseRealm. There are many different ways to check authentication information. See

Re: SSL

2008-04-12 Thread Max Sevenfold
Thanks Chuck for response. Opera works for me only when I add one of following ciphers attributes to Connector:- ciphers=TLS_RSA_WITH_AES_256_CBC_SHA ciphers=TLS_RSA_WITH_AES_256_CBC_SHA,ALL ciphers=TLS_RSA_WITH_AES_256_CBC_SHA,TSL_RSA_WITH_RC4_128_MD5 But after I

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, Francis Galiegue wrote: | Apache is much better at serving static content... To be fair, Apache httpd and Tomcat are about equal. But, if you are already using Apache httpd, you may as well have it serve the static content instead of

Re: jsvc creates pid file owned by root

2008-04-12 Thread Alan Chaney
Hi Chris Christopher Schultz wrote: Are you sure you are changing the umask for the jsvc process? I wonder if the umask is being re-set to something else when jsvc elevates itself to root. You should ask the commons folks about how to do this with jsvc, as this is really off-topic, here (but

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Francis Galiegue
2008/4/12, Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, Francis Galiegue wrote: | Apache is much better at serving static content... To be fair, Apache httpd and Tomcat are about equal. But, if you are already using Apache httpd, you

Re: Initializing classes in shared/lib

2008-04-12 Thread Juha Laiho
Tushar Madhukar wrote: I have some utility classes in $tomcat/shared/lib directory, which are used by several webapps. These need to be initialized before any of my webapps are called by the client. One of these shared classes gets a reference to its class loader, by calling

Can I move the TomCat installation to another directory ?

2008-04-12 Thread Ben Stover
I installed TomCat (under WinXP) to D:\server\java\TomCat\ Can I just move the whole directory tree to another location e.g. D:\TomCat Or is the absolute path of the base directory entered somewhere in TomCats config files during the initial TomCat installation? In this case an existing

starting tomcat failed - java.util.zip.ZipException: error in opening zip file

2008-04-12 Thread Linda Le
Hi I got the following error messages in catalina.out when stating tomcat. It doesn't say which file ZipFile couldn't open. Appreciated any pointers. Thanks. java.util.zip.ZipException: error in opening zip fileat java.util.zip.ZipFile.open(Native Method)at

RE: Can I move the TomCat installation to another directory ?

2008-04-12 Thread Caldarale, Charles R
From: Ben Stover [mailto:[EMAIL PROTECTED] Subject: Can I move the TomCat installation to another directory ? Can I just move the whole directory tree to another location e.g. D:\TomCat Yes, that works fine, as long as you spell it correctly (Tomcat, not TomCat). - Chuck THIS

tomcat 5.5.17 no stacktrace from jsp error

2008-04-12 Thread Blair Cruz
Hello All, I'm not sure who the culprit is, tomcat, struts or struts tiles, but when I have an exception thrown while rendering the jsp, it is hidden. If some code were to throw a NullPointerException while rendering the jsp, the page doesn't display and no exception is ever logged or printed to

Re: 301 permanent redirects in Apache + Tomcat using mod_jk (solved partly)

2008-04-12 Thread Shashidhar Rampally
My troubles are not yet over! :) With my configuration, I am having problems with HTTPS pages. I am getting a 404 error. I get that error even though I replaced VirtualHost *:80 with VirtualHost *:* Also when I tried to replace one VirtualHost with multiple VirtualHosts (and hence not needing

RE: Initializing classes in shared/lib

2008-04-12 Thread Caldarale, Charles R
Tushar Madhukar wrote: I have some utility classes in $tomcat/shared/lib directory, which are used by several webapps. These need to be initialized before any of my webapps are called by the client. One of these shared classes gets a reference to its class loader, by calling