Re: JMX authentication failure

2010-03-15 Thread Mercy
JMX does not need to authenticate for access. My question that is how to enable authentication on Tomcat. Regards, Mercy Paolo Santarsiero wrote: Is your system firewalled? On 15 March 2010 14:17, Gurkan Erdogdu wrote: then you answer question :) 2010/3/15 Mercy Hi Gurkan,

Re: org.apache.jk.config.ApacheConfig modJk

2010-03-15 Thread Bill Barker
"Christopher Schultz" wrote in message news:4b9d8435.50...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Todd, On 3/14/2010 1:41 PM, Todd Hicks wrote: This may be a question better suited for the dev list, but I thought I'd try here first. I've been troubleshooti

RE: org.apache.jk.config.ApacheConfig modJk

2010-03-15 Thread Todd Hicks
Chris, I submitted the bug, with the patch. Got an initial response that the class will not be included in 7.x, but no answer yet on whether it will be fixed. Thanks again for the direction. -Original Message- From: Electronjockey [mailto:electronjoc...@hotmail.com] Sent: Monday, March

RE: Portable

2010-03-15 Thread Todd Hicks
I'm currently working on a portable development environment for a client. I have Tomcat 6.0.20 running portably as part of Xampp. I have successfully configured it to run with the JDK (non-installed) on the same USB device, so it can be done. -Original Message- From: Christopher Schul

RE: How to surpress The requested resource XYZ is not available - response

2010-03-15 Thread Song Thuy Nguyen
The thing is, I'm using the failover behaviour in Apache Synapse (Enterprise Service Bus). I can give Synapse a list of web service endpoints that have the same interface. One is the primary service endpoint and the others are the backups in case the primary endpoint become unavailable for some

Re: How to surpress The requested resource XYZ is not available - response

2010-03-15 Thread David Kerber
Len Popp wrote: I don't think you can do that. After Tomcat accepts the HTTP connection and decides whether to respond, it's too late to pretend there's no server there. The user's web browser displays a different error message for no server (something like "can't establish a connection") vs. ser

Re: How to surpress The requested resource XYZ is not available - response

2010-03-15 Thread Len Popp
I don't think you can do that. After Tomcat accepts the HTTP connection and decides whether to respond, it's too late to pretend there's no server there. The user's web browser displays a different error message for no server (something like "can't establish a connection") vs. server timeout (somet

How to surpress The requested resource XYZ is not available - response

2010-03-15 Thread Song Thuy Nguyen
Hello, usually you will get a "The requested resource /XYZ is not available" response when you call an unavailable web service on Apache Tomcat. However, for a special use case I don't want Tomcat to answer to requests for a unknown/unavailable web service. I just want Tomcat to ignore it a

Re: Problem redirecting requests from IIS to Tomcat by isapi_redirect.dll

2010-03-15 Thread mirkocal
Thanks for your answers, but maybe I have not been enaugh clear. What I want is that my web application can be launched asking for www.myapp.it and, in the future, deploy other web apps on the same physical machine under Tomcat, each one responding to a diffferent URL (all pointing to the IP addr

Re: Problem redirecting requests from IIS to Tomcat by isapi_redirect.dll

2010-03-15 Thread mirkocal
Thanks for your answers, but maybe I have not been enaugh clear. What I want is that my web application can be launched asking for www.myapp.it and, in the future, deploy other web apps on the same physical machine under Tomcat, each one responding to a diffferent URL (all pointing to the IP addr

Re: Connection pool stats

2010-03-15 Thread Dhiren Bhatia
Hi Mark, That won't work because Tomcat creates an instance of org.apache.tomcat.dbcp.dbcp.BasicDataSource which cannot be cast to org.apache.commons.dbcp.BasicDataSource. I need to keep the code generic (to run in other containers), so I can't use org.apache.tomcat.dbcp.dbcp.BasicDataSource in t

RE: Connection pool stats

2010-03-15 Thread Caldarale, Charles R
> From: Dhiren Bhatia [mailto:dhiren.for...@gmail.com] > Subject: Connection pool stats > > How do I get stats on the connection pool? I would like to check how > many connections are active/idle at any point in time. This may help: http://lambdaprobe.org/d/index.htm An example of its display fo

Re: Connection pool stats

2010-03-15 Thread Mark Shifman
You can cast your datasource object to be a BasicDataSource then the javadoc gives you all kinds of things you can get. like getNumActive(), getNumIdle() etc (for dbcp 1.3) http://commons.apache.org/dbcp/api-1.3/index.html Dhiren Bhatia wrote: > I've configured my DB connection pool as follows:

Connection pool stats

2010-03-15 Thread Dhiren Bhatia
I've configured my DB connection pool as follows: context.xml web.xml DB Connection jdbc/myserver javax.sql.DataSource Container In my code, I use a javax.sql.DataSource object to get connections and call connection.close() to return connections. How do I get stats on the connecti

Re: org.apache.jk.config.ApacheConfig modJk

2010-03-15 Thread Electronjockey
Chris, Yeah, the xampp site has some wackiness to it. I got it from the link here: http://www.apachefriends.org/en/xampp-windows.html#644 or from here: http://sourceforge.net/projects/xampp/files/ and thanks for the info on the svn procs. I'm workin' it and will submit the bug with the diff short

Re: org.apache.jk.config.ApacheConfig modJk

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Todd, On 3/15/2010 12:57 PM, Electronjockey wrote: > The official add-on is Tomcat 6.0.20 and mod_jk 1.2.20. Hmm... I must have been looking in the wrong place. I went from here: http://www.apachefriends.org/en/faq-xampp-windows.html to here http://w

Re: org.apache.jk.config.ApacheConfig modJk

2010-03-15 Thread Electronjockey
Chris, The official add-on is Tomcat 6.0.20 and mod_jk 1.2.20. I'm proceeding with a static mod_jk.conf for the time being. And yes, I totally agree with you on the bug vs. inconvenience assessment. The issue struck me as more of a QA issue than anything. How would I submit the fix? Is there a do

Re: Conditionally Setting HTTP Response Header

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anurag, On 3/15/2010 12:17 PM, Anurag Kapur wrote: > Thanks for your reply. I am actually trying to use a combination > of mod_setenvif and mod_headers. mod_headers can do the job as long as an > appropriate environment variable is set. I am trying to

Re: Portable

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asangansi, On 3/12/2010 4:18 AM, Asangansi wrote: > I have a webapp that runs on tomcat 6.0.2 with a mysql database. 6.0.20? > I'm looking at creating a portable version of my server for > demonstration purposes, which will run on a different port o

Re: Conditionally Setting HTTP Response Header

2010-03-15 Thread Anurag Kapur
Hi Chris, Thanks for your reply. I am actually trying to use a combination of mod_setenvif and mod_headers. mod_headers can do the job as long as an appropriate environment variable is set. I am trying to achieve the desired outcome using something like the following: SetEnvIf Cache-Control .+

Re: org.apache.jk.config.ApacheConfig modJk

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Todd, On 3/14/2010 10:00 PM, Todd Hicks wrote: > The reason I brought it up is because I am exploring Xampp for a > client as a portable dev platform, and it's configured to use the > ApacheConfig class out of the box. Hmm... the only information I

Re: jvm exits without trace

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/15/2010 10:19 AM, Taylan Develioglu wrote: > The cause for the crashes was in our own application code, we're > currently investigating the exact reason. Yeah, I'd like to second Chuck's question: was it native code? > A strace of the p

Re: jvm exits without trace

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/15/2010 11:24 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: jvm exits without trace >> >> On 3/15/2010 10:22 AM, Caldarale, Charles R wrote: From: Taylan Develioglu

Re: Conditionally Setting HTTP Response Header

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anurag, On 3/15/2010 9:12 AM, Anurag Kapur wrote: > I am looking for some help to set HTTP response headers conditionally. I > have a setup where HTTPD sits in front of Tomcat and proxies requests to it. [snip] > I have been trying to work with mod_

RE: jvm exits without trace

2010-03-15 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: jvm exits without trace > > On 3/15/2010 10:22 AM, Caldarale, Charles R wrote: > >> From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com] > >> Subject: Re: jvm exits without trace > >> > >> The cause for the crashes

Re: jvm exits without trace

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/15/2010 10:22 AM, Caldarale, Charles R wrote: >> From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com] >> Subject: Re: jvm exits without trace >> >> The cause for the crashes was in our own application code > > Java or native code? Woa

RE: Problem setting up multiple hosts

2010-03-15 Thread Caldarale, Charles R
> From: puttea [mailto:putt...@gmail.com] > Subject: Re: Problem setting up multiple hosts > > These informations have made me create the example > I posted in the first post. But this doesn't work. Because you didn't follow the instructions. Please read my other post. - Chuck THIS COMMUNICA

RE: Problem setting up multiple hosts

2010-03-15 Thread Caldarale, Charles R
> From: puttea [mailto:putt...@gmail.com] > Subject: Problem setting up multiple hosts > > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > > >unpackWARs="true" autoDeploy="true" >xmlValidatio

Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003

2010-03-15 Thread ULS Tech Support
That was one of the first things i did... The thing was, it wasn't a jsp file that was old, it was a class file... Very WEIRD :) Guess i'm used to the i before e except after c rule, and didn't think of it on the few exceptions. Including weird. ---

Re: Problem setting up multiple hosts

2010-03-15 Thread puttea
Hi Mark Thank's for the reply, I have read that page, and also the page about, engine, host and context. These informations have made me create the example I posted in the first post. But this doesn't work. By the way I can mentione that the defaultHost set in the engine is set to localhost like

Re: JMX authentication failure

2010-03-15 Thread Paolo Santarsiero
Is your system firewalled? On 15 March 2010 14:17, Gurkan Erdogdu wrote: > then you answer question :) > > 2010/3/15 Mercy > > > Hi Gurkan, > > > > it's false; > > > > regards, > > Mercy > > > > > > Gurkan Erdogdu wrote: > > > >> -Dcom.sun.management.jmxremote.authenticate=$JMX_SSL_ENABLED >

Re: Problem setting up multiple hosts

2010-03-15 Thread Mark Thomas
On 15/03/2010 15:00, puttea wrote: I have tried so many different combinations, so I hope somone here can help me out. http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html Mark - To unsubscribe, e-mail: users-un

Problem setting up multiple hosts

2010-03-15 Thread puttea
Hi all I'm running tomcat 5.5 on one of my servers. This server is hosting one webapp at the moment which is stored in the docBase="ROOT" What I would like to do is to be able to run 2 webapps. So I have created 2 DNS's for my server oc.mydomain.dk and oc3.mydomain.dk each pointing at the same I

Comet Request identification

2010-03-15 Thread Animesh Sonkar
Hi, I create a comet connection using sockets and sending a post request. To prevent the server from terminating the request (calling END event) i am sending some heartbeat messages as chunked data on the same socket/request connection. Is there a way in comet to identify, that the heartbeat mess

Re: Programmatically undeploying a webapp

2010-03-15 Thread Mark Thomas
On 14/03/2010 00:44, Guilherme Rios wrote: Thanks Mark, just one minor clarification please: On Sat, 2010-03-13 at 22:44 +, Mark Thomas wrote: 2. Why calling "check(path.replace('#', '/'))" at line 1384? Would undeploy work just the same without this call? Support for contexts with paths

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
i am sorry, it is tomcat5.conf JAVA_HOME="/usr/lib/jvm/java" # Where your tomcat installation lives # That change from previous RPM where TOMCAT_HOME # used to be /var/tomcat. # Now /var/tomcat will be the base for webapps only CATALINA_HOME="/usr/share/tomcat5" JASPER_HOME="/usr/share/tomcat5" CAT

RE: jvm exits without trace

2010-03-15 Thread Caldarale, Charles R
> From: Taylan Develioglu [mailto:tdevelio...@ebuddy.com] > Subject: Re: jvm exits without trace > > The cause for the crashes was in our own application code Java or native code? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use on

Re: jvm exits without trace

2010-03-15 Thread Taylan Develioglu
The cause for the crashes was in our own application code, we're currently investigating the exact reason. A strace of the parent process shows killed by sigsegv, why or how this can happen is still unclear. Thanks to everyone that gave their assistance. On Thu, 2010-03-11 at 15:40 +0100, Tayla

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread Caldarale, Charles R
> From: testwreq wreq [mailto:testw...@gmail.com] > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3 > > In server.xml file, the tomcat_home which is probably called > catlina_home is set to the root of where tomcat is installed. Please elaborate on that statement; server.xml can't

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
In server.xml file, the tomcat_home which is probably called catlina_home is set to the root of where tomcat is installed. i.e. /usr/share/tomcat5 ; This is why tomcat runs from /usr/share/tomcat5. There is one BIN directory in this folder and other symlinks as below. Where in the installation shou

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Melanie
The site is now up using the fix ProxyPass and ProxyRedirect. For now, I am happy with this solution. Maybe in long term though, I'm curious though what advantages are for using mod_jk versus ProxyPass and ProxyRedirect? -Melanie On Mon, Mar 15, 2010 at 9:32 AM, Cyrille Le Clerc wrote: > My mist

RE: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread Caldarale, Charles R
> From: testwreq wreq [mailto:testw...@gmail.com] > Subject: Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3 > > /var/lib/tomcat5/webapps is empty. Which could be why you get a blank page. However, your ps output shows Tomcat running from /usr/share/tomcat5, not /var/lib/tomcat5; are they

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Cyrille Le Clerc
My mistake on port 80 without being root, I never used jsvc ; I relied on startup.sh. Cyrille On Mon, Mar 15, 2010 at 1:53 PM, André Warnier wrote: > Cyrille Le Clerc wrote: >> >> #4 I slightly disagree with André on asking Tomcat to listen on port >> 80 ; I am very reluctant to this approach as

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
Shows a blank page. I was expecting some sort of tomcat/apache page. /var/lib/tomcat5/webapps is empty. where is tomcat index file located? On Fri, Mar 12, 2010 at 1:27 PM, David kerber wrote: > testwreq wreq wrote: > >> I cannot bring up the tomcat page http://serverhost:8005 >> > > Try it on 8

Re: JMX authentication failure

2010-03-15 Thread Gurkan Erdogdu
then you answer question :) 2010/3/15 Mercy > Hi Gurkan, > > it's false; > > regards, > Mercy > > > Gurkan Erdogdu wrote: > >> -Dcom.sun.management.jmxremote.authenticate=$JMX_SSL_ENABLED >> >> what is the $JMX_SSL_ENABLED value? >> >> Thanks; >> >> 2010/3/15 Mercy >> >> >> >>> Hi there, >>>

Conditionally Setting HTTP Response Header

2010-03-15 Thread Anurag Kapur
Hello, Apologies for sending a HTTPD query to the Tomcat list. I am urgently looking for a response and thought many of you would have ample experience to answer this. Thanks Anurag -- Forwarded message -- From: Anurag Kapur Date: Mon, Mar 15, 2010 at 12:50 PM Subject: Condition

Re: How do I set up and run Tomcat 5.5.23 on Cetos5.3

2010-03-15 Thread testwreq wreq
Hello Andrea, [r...@webtest tomcat5]# netstat -anp|grep LISTEN|grep 6980 tcp0 0 :::127.0.0.1:8005 :::* LISTEN 6980/java tcp0 0 :::8009 :::* LISTEN 6980/java tcp0 0 :::8080 :::* LISTEN 6980/java

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread André Warnier
Cyrille Le Clerc wrote: #4 I slightly disagree with André on asking Tomcat to listen on port 80 ; I am very reluctant to this approach as it requires to run the JVM as root ; No, it does not, if you run the JVM under jsvc (commons-daemon). This is how most Linux packages nowadays set it up by

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Cyrille Le Clerc
   Hello Melanie,    I share André's vision : #1 To get the root context http://www.robotronics.org/ forwarded to Tomcat, the easiest way is to declare your java application as the root context of your Tomcat (either naming it ROOT.war or declaring it with path="" in server.xml according to your

Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003

2010-03-15 Thread André Warnier
And by the way, "wierd" is usually spelled "weird". Wierd looks weird. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: JMX authentication failure

2010-03-15 Thread Mercy
Hi Gurkan, it's false; regards, Mercy Gurkan Erdogdu wrote: -Dcom.sun.management.jmxremote.authenticate=$JMX_SSL_ENABLED what is the $JMX_SSL_ENABLED value? Thanks; 2010/3/15 Mercy Hi there, I'd like to enable JMX on Tomcat 6.0.16/Linux, export environment variables : *#

Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003

2010-03-15 Thread David kerber
ULS Tech Support wrote: Hello. I'm sure this is a Tomcat issue... But let me give this background. I've recently upgraded the server that the website used to run on (used to run on Windows Server 2000, upgraded to Windows Server 2003). I was able to transfer everything over to the new server

Re: JMX authentication failure

2010-03-15 Thread Gurkan Erdogdu
-Dcom.sun.management.jmxremote.authenticate=$JMX_SSL_ENABLED what is the $JMX_SSL_ENABLED value? Thanks; 2010/3/15 Mercy > Hi there, > > I'd like to enable JMX on Tomcat 6.0.16/Linux, export environment > variables : > > *# JMX authenticate > export JMX_AUTHENTICATE=true >

Apache OpenWebBeans Supports Tomcat

2010-03-15 Thread Gurkan Erdogdu
Hello; Apache OpenWebBeans is an ASL 2.0-licensed implementation of the JSR-299, Contexts and Dependency Injection for the Java EE platform. Now, it provides built-in support for Apache Tomcat. This means that you can directly deploy your JSR-299 applications into Apache Tomcat without adding ext

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread André Warnier
Melanie wrote: Thanks Cyrille for the information. This looks like it's a quick fix but there is still another issue. The Tomcat Startup Page is now being served, but not the actual springapp J2EE web application that is located in the Tomcat directory ---> /usr/java/tomcat-5.5/webapps/springapp

RE: I get this Error

2010-03-15 Thread Karthik Nanjangude
Hi Thx for the same My mistake (silly me) With regards karthik -Original Message- From: CBy [mailto:tom...@byrman.demon.nl] Sent: Monday, March 15, 2010 2:54 PM To: Tomcat Users List Subject: Re: I get this Error Changing "manger" into "manager" might help. CBy On 15-3-2010 9:52, Kar

Re: I get this Error

2010-03-15 Thread CBy
Changing "manger" into "manager" might help. CBy On 15-3-2010 9:52, Karthik Nanjangude wrote: Hi SPEC JDK1.5 WINDOWS 2003 TOMCAT 5.0.26.0 Downloaded : http://tomcat.apache.org/download-60.cgi Core : zip

I get this Error

2010-03-15 Thread Karthik Nanjangude
Hi SPEC JDK1.5 WINDOWS 2003 TOMCAT 5.0.26.0 Downloaded : http://tomcat.apache.org/download-60.cgi Core : zip (pgp

JMX authentication failure

2010-03-15 Thread Mercy
Hi there, I'd like to enable JMX on Tomcat 6.0.16/Linux, export environment variables : *# JMX authenticate export JMX_AUTHENTICATE=true echo "Is JMX authenticated ? " $JMX_AUTHENTICATE # JMX password file export JMX_PASSWORD_FILE=$JMX_HOME/jmxremo

Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003

2010-03-15 Thread Oto Bossert
Did you clear your work directory? Check it for old versions On 3/15/10, ULS Tech Support wrote: > Perhaps there's something i'm overlooking, but i've decided to re-copy the > entire folder over and now it seems like it wants to work (although it could > be a config change, i'm not sure). > >