Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Trond G. Ziarkowski
Hi, try removing the [R] from your RewriteRule. If you read up on the mod_rewrite docs, you should see that the [R] flag is causing the redirect. Trond PAlvin wrote: I'm currently using Tomcat 4. When someone goes to my site, say, www.site.com, I'd like it run a servlet for the home page

Re: Tomcat in a clustered Enviroment

2005-04-25 Thread nora(nonie)
WHY AM I STIL GETTING YOUR MESSAGES TO EACH OTHER? PLEASE REMOVE ME FROMTHE MAILING LIST I WISH TO UNSUBSCRIBE TO YOUR SITE.PLEASE ANSWER ME -Original Message- From: Peter Rossbach [EMAIL PROTECTED] Sent: Apr 25, 2005 12:55 AM To: Tomcat Users List tomcat-user@jakarta.apache.org

tomcat manager

2005-04-25 Thread Remo rahman
i have some question related to tomcat manager application in tomcat 5.5.4 1)how to deploy on tomcat startup 2)deploying on running tomcat server 3)deploying using the client deployer package 4)deployment -locally 5)deployment-remotely 4 and 5 are the option available in manager application 6)is

Re: Tomcat Settings andding a slash to my url ???

2005-04-25 Thread oceatoon
This explains why http://issues.apache.org/bugzilla/show_bug.cgi?id=32424 but I Insist as well that this bug should be cleared, or be configurable as roy huang proposed. It is blocking for back compatibility with T4.1 that accepts such architecture. Regards Tibor oceatoon wrote: Hi every one

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Anto Paul
On 4/25/05, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, try removing the [R] from your RewriteRule. If you read up on the mod_rewrite docs, you should see that the [R] flag is causing the redirect. Trond PAlvin wrote: I'm currently using Tomcat 4. When someone goes to my

TCPCluster problem on heavily loaded webapps

2005-04-25 Thread Francois JEANMOUGIN
Hi, I have several webapps using the TCP sessions cluster. It works well but fails for one application. If I try to restart a tomcat (on node), I have a lot of problems at startup. We are using jakarta-tomcat-5.0.28 and jdk-1.5.0_02 on linux. First, it fails to receive HeartBeat. INFO:

a small problem

2005-04-25 Thread Sajeesh S
Am working on a tomcat installation in Linux. I have a war file and I am using Maven to deploy my war file on tomcat. Maven instead uses ANT to deploy. When it uses the deploy tag, the error i get is BUILD FAILED File.. /opt/users/spend/.maven/cache/maven-tomcat-plugin-1.1/plugin.jelly

Tomcat Admin Question

2005-04-25 Thread James Croft
Hi All, I've just installed Tomcat 5.5 on my XP laptop and it's up and running fine. The manager and examples are all working however the admin page shows: Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. I've had a

tomcat clustering

2005-04-25 Thread Joshua Szmajda
Hey all, Is there a way to get the cluster system to replicate ServletContext scope variables between cluster members? If not, is there a good guide to writing Multicast sockets somewhere? Thanks alot! -Josh - To unsubscribe,

Re: Tomcat Admin Question

2005-04-25 Thread Hassan Schroeder
James Croft wrote: Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. I've had a look around the Jakarta site and can't find this package. Anyone know where I can find this? The same page you got the rest of the software

RE: [Pragma] = [No-cache] header added automatically

2005-04-25 Thread Goldman, Stephen M.
Mark, Thanks a lot. That fixed my problem. Stephen -Original Message- From: Mark Leone [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 6:49 PM To: Tomcat Users List Subject: Re: [Pragma] = [No-cache] header added automatically You've run into

how to rotate the tomcat logger once a month instead of daily

2005-04-25 Thread Amir S
Hi, I have tried the following like in valve logger: Logger className=org.apache.catalina.logger.FileLogger prefix=sitr_out suffix=.txt timestamp=true fileDateFormat=-MM/ but it ignores it and show the date in the format -mm-dd. Regards, Amir Sadeh

Re: development environment

2005-04-25 Thread Patrick Lacson
That's some serious hardware! Dual 3.6 Xeon 15k rpm drives?!! I take it your desktop is also your dev DB server? On 4/22/05, epyonne [EMAIL PROTECTED] wrote: These are mine (just the two primary machines as I have too many to list them all): 1. Laptop: Centrino, 512MB RAM, 80GB

Automatic custom MBean registration?

2005-04-25 Thread Greg Johnson
Does Tomcat have a mechanism for automatically registering custom MBeans? Currently I've written code that uses the MBeanServerFactory to locate the MBeanServer, and then I instantiate my objects, and register them with the MBeanServer. I've successfully used this technique, and can access my

context path question

2005-04-25 Thread Daniel Watrous
Hello, I am have written some filters for a shopcart application. I intend for parts of this applicaiton to be reused in other web applications by including it as a JAR file. For authentication I have the file AdministratorAuthFilter, which checks for a session value indicating that the user

Possible to include JSP document (.jspx) fragments that aren't well formed?

2005-04-25 Thread Jonathan Eric Miller
Does anyone know if it's possible to include a .jspx fragment in another .jspx file? When I say .jspx fragment, I mean a file that is in XML format, but, may not be well formed. For example, I want to do something like the following. Currently, I'm receiving an error message like the

Re: how to rotate the tomcat logger once a month instead of daily

2005-04-25 Thread Tim Funk
FileLogger doesn't use fileDateFormat. Only AccessLogValve support the date formatting. -Tim Amir S wrote: Hi, I have tried the following like in valve logger: Logger className=org.apache.catalina.logger.FileLogger prefix=sitr_out suffix=.txt timestamp=true fileDateFormat=-MM/ but it

Re: context path question

2005-04-25 Thread Tim Funk
Use HttpServeletRequest.getContextPath() to get the context path. -Tim Daniel Watrous wrote: Hello, I am have written some filters for a shopcart application. I intend for parts of this applicaiton to be reused in other web applications by including it as a JAR file. For authentication I have the

Re: TCPCluster problem on heavily loaded webapps

2005-04-25 Thread Peter Rossbach
Hello Francois, I have implemented a new restart algo at the current Tomcat 5.5 cvs head. Compile it and test it. I hope then this strange failure is gone. :-) Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

Re: tomcat clustering

2005-04-25 Thread Peter Rossbach
With the next release I hope we support those handlings context attribute replication handling. We start a discussion at this list ( last three days). Topic: http://marc.theaimsgroup.com/?t=11141745513r=1w=2 Peter Joshua Szmajda schrieb: Hey all, Is there a way to get the cluster system to

Tomcat 5 and SSL Configuration

2005-04-25 Thread Bruce Perryman
Hello, I'm using TC 5.0.19 and j2sdk1.4.2_04 on RedHat 9. My SSL certificate expired and I received a new one but haven't been able to get the new one to work. Here are the steps that I used to get the certificate and import it into my keystore: [1] keytool -genkey -alias tomcat -keyalg

Re: tomcat clustering

2005-04-25 Thread Joshua Szmajda
Awesome! I think though since I need this functionality now, I might go with JGroups' DistributedHashtable system. It's basically what I need right out of the box. Thanks, and good luck! I'll be looking forward to that functionality. -Josh Peter Rossbach wrote: With the next release I hope we

Tomcat SSI variables missing?

2005-04-25 Thread Fritz Schneider
I am running Tomcat 5.5.8 standalone under Windows XP. I have created a custom error page for 404 errors. Part of it is: pI'm sorry, stronghttp://!--#echo var=HTTP_HOST --!--#echo var=REQUEST_URI --/strong, the page you requested, cannot be found. It may have been removed, had its name

Re: context path question

2005-04-25 Thread Daniel Watrous
Thanks. That did the trick! DW On 4/25/05, Tim Funk [EMAIL PROTECTED] wrote: Use HttpServeletRequest.getContextPath() to get the context path. -Tim Daniel Watrous wrote: Hello, I am have written some filters for a shopcart application. I intend for parts of this applicaiton to

Re: Tomcat 5 and SSL Configuration

2005-04-25 Thread Mark Thomas
Bruce, You should not have done step 5. This deleted your private key. I hope you have a backup ;) Mark Bruce Perryman wrote: Hello, I'm using TC 5.0.19 and j2sdk1.4.2_04 on RedHat 9. My SSL certificate expired and I received a new one but haven't been able to get the new one to work. Here are

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Will Hartung
From: PAlvin [EMAIL PROTECTED] Sent: Sunday, April 24, 2005 12:25 PM I could send *all* http requests to tomcat, BUT, obviously, I DON'T want Tomcat serving up images. Why not? Tomcat is fine for static content. How much traffic are you really getting to your site? If you're like a majority

Re: Tomcat SSI variables missing?

2005-04-25 Thread Mark Thomas
Fritz, Please forgive the format. I just cut'n'pasted stuff from the source). The currently supported variables are: AUTH_TYPE, CONTENT_LENGTH, CONTENT_TYPE, DOCUMENT_NAME, DOCUMENT_URI, GATEWAY_INTERFACE, PATH_INFO, PATH_TRANSLATED, QUERY_STRING, QUERY_STRING_UNESCAPED, REMOTE_ADDR,

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread PAlvin
(We get about 1,000 visitors a day to our site.) Just curious: Isn't Tomcat responses inefficient because it has to pass the response back to Apache via a named pipe or TCP or some other connector mechanism? Peter Alvin How much traffic are you really getting to your site? If you're like a

Re: Tomcat 5 and SSL Configuration

2005-04-25 Thread Bruce Perryman
Thanks for responding! Yes, I do have a backup, but I should have mentioned that there were several attempts to get this working. One of the first attempts ommitted step #5, but I had the same result. I used step #5 in an attempt to remove the old and then insert the new. But that didn't work

Re: development environment

2005-04-25 Thread Woodchuck
hihi, i got: P4 1.8GHz, ABit THX-II mobo, 2.5GB Rambus memory, 200GB IDE 7200rpm hard drive, 64MB GeForce3 video card, SB Live 5.1, 21 Sony G520 monitor (1600x1200), IBM standard keyboard, MS Intellimouse Pro (not laser one, and not wireless) Windows 2000 Pro Tomcat 5.25, MySql 4.1,

Re: Tomcat 5 and SSL Configuration

2005-04-25 Thread Mark Thomas
The following steps should work (although I have only ever done this using my own CA). 1. Create tomcat key in your own keystore 2. Create CSR 3. Submit CSR 4. Get response 5. Import CA's root cert to cacerts (%JAVA_HOME%\jre\lib\security\cacerts) 6. Import new cert to same keystore as 1 (use

Virtual hosts

2005-04-25 Thread Dola Woolfe
Hi, Running TC5.5 as a stand-alone. I've been reading about the HOST element, and i see that it can make mysite.com and www.mysite.com go to the same place. I apologize if I put it in a simplistic way. But can it make www.mysite.com be forwarded to www.mysite.com/myapp? Many thanks in advance!

What port am I running on?

2005-04-25 Thread Greg Johnson
If I am running some code on a tomcat server, and I don't have a request object available (for instance, if I have a timed task that is not dependent on a request), how can I programmatically retrieve the port that requests are being served on? In other words, how can I retrieve

RE: Virtual hosts

2005-04-25 Thread Fritz Schneider
Dola, The simplest way is to have a welcome page such as index.html that redirects the request. It would look like this: html head META http-equiv=refresh content=0;URL=http://www.mysite.com/myapp; titleRedirect to Myapp/title /head body/ /html Fritz -Original Message- From: Dola

Default Page Expiration time

2005-04-25 Thread Goldman, Stephen M.
Is there a way to set globally in Tomcat a default page expiration time? I have Macromedia flash files on the server and when one is updated I have to delete the temporary files in Internet Explorer to see the changes. When I look at the cache in IE the expires date says none.

RE: Default Page Expiration time

2005-04-25 Thread Goldman, Stephen M.
Never mind. I found that if I close the browser and start up a new session the page is update. -Original Message- From: Goldman, Stephen M. [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 1:51 PM To: 'Tomcat Users List' Subject: Default Page Expiration time Is there a way to set

Tomcat Deployed Applications

2005-04-25 Thread Robert Bateman
Under Tomcat 4.1.27 and 4.1.30, if I deploy an application via a .WAR file to the server (via ANT and the manager) Tomcat knows about my deployed application. IF the server restarts for some reason, Tomcat *still* know about the deployed application. However, I've noticed that if I deploy the

RE: Tomcat SSI variables missing?

2005-04-25 Thread Fritz Schneider
Mark, Would it be more productive to patch bug 33106 (http://issues.apache.org/bugzilla/show_bug.cgi?id=33106)? Fritz -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 12:18 PM To: Tomcat Users List Subject: Re: Tomcat SSI variables missing?

Any better way to do this?

2005-04-25 Thread joelsherriff
I want to setup what is basically a blog server - so that user's must login and can then access their personal blog, but nobody elses. I think I can do this using a servlet filter to trap requests to the blog pages, lookup the user's blog page url using the session info, and modify the request to

Re: tomcat connectors

2005-04-25 Thread Patty O'Reilly
First off, I really appreaciate your help. Many thanks. It looks like I am using the prefork module. $ ./httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c MaxClients is set to 150 on apache. maxThreads in the tomcat server.xml is set to 150 as well, along with

Re: VM thread dump from windows service

2005-04-25 Thread Patrick Lacson
perfect. this works nicely! thanks, patrick On 4/22/05, Anoop kumar V [EMAIL PROTECTED] wrote: Patrick, I am not sure if this will help you but it is worth checking out Stack trace at the following link: http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp let me know

Re: mod_jk working together with mod_userdir - possible or not?

2005-04-25 Thread Torsten Krah
I got it partially working, Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ added in server.xml shows local users dirs. but local defined ones only. Is there anyway to got user directories out from

need help

2005-04-25 Thread Robert U. Chan
Good day! Hope somebody can help me with my current problem in tomcat. I have been seeing an 'error in getDescSql in StaticMethod' in the console of tomcat. Can somebody help me know the cause and solution to this problem. Thanks... ROBERT U. CHAN Terasystem Incorporated (632)895-6955 ext.

Re: VM thread dump from windows service

2005-04-25 Thread Patrick Lacson
Spoke too soon.. :( Our tomcat is installed using the tomcat.exe service installer that ships with the tomcat 4.1.x series. This Stack Trace tool cannot do a thread dump on the process id of tomcat.exe -Patrick On 4/25/05, Patrick Lacson [EMAIL PROTECTED] wrote: perfect. this works nicely!

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Will Hartung
From: PAlvin [EMAIL PROTECTED] Sent: Monday, April 25, 2005 12:24 PM (We get about 1,000 visitors a day to our site.) Just curious: Isn't Tomcat responses inefficient because it has to pass the response back to Apache via a named pipe or TCP or some other connector mechanism?

Re: Any better way to do this?

2005-04-25 Thread Will Hartung
From: joelsherriff [EMAIL PROTECTED] Sent: Monday, April 25, 2005 4:16 PM I want to setup what is basically a blog server - so that user's must login and can then access their personal blog, but nobody elses. I think I can do this using a servlet filter to trap requests to the blog pages,

Re: snmp and Nagios

2005-04-25 Thread Will Hartung
From: Just another UFO mechanic [EMAIL PROTECTED] Sent: Sunday, April 24, 2005 10:42 AM Check out this new to the 1.5 JRE this will help with the memory and GC stuff. http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html Fantastic well done SUN Heh, it gets better. You can

Re: Any better way to do this?

2005-04-25 Thread joelsherriff
Thanks for the input. Very appreciated. There seem to be so many configuration options in tomcat that I wasn't sure if I was trying to use filters when something else was already there waiting for me to use. - Original Message - From: Will Hartung [EMAIL PROTECTED] To: Tomcat Users

Expression Languange not working for me

2005-04-25 Thread Franklin Phan
I am running Tomcat 4.1.18 and 5.0.x. I tried the following HTML and JSP using EL, and am not getting the correct response from either Tomcat version. I have the following HTML: html body form action=TestBean.jsp Name: input type=text name=namebr input type=submit /form /body /html And the

RE: Expression Languange not working for me

2005-04-25 Thread Fredrik Liden
Check your web.xml file to make sure you're using the 2.4 dtd and not 2.3 or lower. Fredrik -Original Message- From: Franklin Phan [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 6:04 PM To: tomcat-user@jakarta.apache.org Subject: Expression Languange not working for me I am

Re: Expression Languange not working for me

2005-04-25 Thread Franklin Phan
This is what my web.xml file contains: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app /web-app What do I change? Fredrik Liden wrote: Check your web.xml file to make sure

RE: Expression Languange not working for me

2005-04-25 Thread Fredrik Liden
Try this: web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; /web-app -Original Message- From:

Re: Expression Languange not working for me

2005-04-25 Thread Franklin Phan
It doesn't help. I'm still getting the same result. My current web.xml: ?xml version=1.0 encoding=ISO-8859-1? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

RE: Expression Languange not working for me

2005-04-25 Thread Fredrik Liden
Are you able to correctly view the Expression Language examples that comes with Tomcat 5.0? If so look at those web.xml files to make sure you have the same web-app attributes. Right now it could be some caching that prevents you from seeing the correct result. Try creating a new jsp from scratch

Why 8080 and 8443 ..?

2005-04-25 Thread David Whitehurst
I'm curious about the historical reasons behind the choice of 8080 and 8443 as the default ports for Coyote connectors? Can someone answer this question? Knowing that the general ports are 80 and 443, would the need for translation of the ports, running Tomcat as a non-root user, be a reason

Re: Why 8080 and 8443 ..?

2005-04-25 Thread Parsons Technical Services
Taking a wild stab at it, in the early days Tomcat was not as good of a http server as it is now and was thus put behind a real web server to do it's thing when needed and not mess with static stuff. Thus to avoid conflicts on install the ports were set to a different value from default. Then

RE: Why 8080 and 8443 ..?

2005-04-25 Thread Caldarale, Charles R
-Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Subject: Re: Why 8080 and 8443 ..? So there are two of the possible reasons that an upper port was chosen. Also, Tomcat is distributed in a more-or-less development configuration, rather than a

how to host website on Tomcat 5.5.9

2005-04-25 Thread Ashok Anumandla
Hi All, I am trying to host my son website on Tomcat 5.5.9 in my home machine, i did following steps .. - installed the JRE,JAVA, and Tomcat 5.5.9 - installed ant - when i run ant, it created anishanumandla under tomcat webapps. - configured following in server.xml Host

Logging in servlet/jsp not working via java.uil.logging.Logger.global - BUG?

2005-04-25 Thread Eric Raymond
If you have a servlet/jsp which uses java.util.logging. Logger.global and use the global logger, the output seems to go nowhere. For example the following jsp page only logs printed. % java.util.logging.Logger.global.severe(not printed);

difference between tomcat 5.0 and tomcat 5.5

2005-04-25 Thread Remo rahman
can any one plz provide me with information regarding diference between tomcat 5.0 and tomcat 5.5 some of the differences that i have noted are 1)no entry of context in server.xml- so where this entry should be made 2)no logger component in server.xml and also related to tomcat manager

Re: need help

2005-04-25 Thread Nikola Milutinovic
Robert U. Chan wrote: Good day! Hope somebody can help me with my current problem in tomcat. I have been seeing an 'error in getDescSql in StaticMethod' in the console of tomcat. Can somebody help me know the cause and solution to this problem. This could be some SQL code in your web app. For

Re: Why 8080 and 8443 ..?

2005-04-25 Thread Michael Mehrle
Which are ??? Please feel free to elaborate ;-) - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, April 25, 2005 8:00 PM Subject: RE: Why 8080 and 8443 ..? -Original Message- From: Parsons

war file deployment in tomcat using Maven

2005-04-25 Thread Sajeesh S
Am working on a tomcat installation in Linux. I have a war file and I am using Maven to deploy my war file on tomcat. Maven instead uses ANT to deploy. When it uses the deploy tag, the error i get is BUILD FAILED File.. /opt/users/spend/.maven/cache/maven-tomcat-plugin-1.1/plugin.jelly

OT: Good taglib repository - looking for date hadling tags

2005-04-25 Thread Nikola Milutinovic
Hi all. This is not exactly a Tomcat question, but since there are so many of us developers (and admins) around, I thought I ask. Is there a good repository of free JSP tag libraries for some common things, like date printing/formatting, table display, etc? When I say, date printing, I mean,

Re: VM thread dump from windows service

2005-04-25 Thread Peter Rossbach
Hey, I am using the Java Service Wrapper from http://wrapper.tanukisoftware.org/doc/english/introduction.html. The Service Wrapper have a JMX Mbean that have a stack dump operation. http://wrapper.tanukisoftware.org/doc/english/jmx.html Send me a direct mail to get a LifecycleListener that

difference between tomcat 5.0 and tomcat 5.5

2005-04-25 Thread Remo rahman
can any one plz provide me with information regarding diference between tomcat 5.0 and tomcat 5.5 some of the differences that i have noted are 1)no entry of context in server.xml- so where this entry should be made 2)no logger component in server.xml and also related to tomcat manager