ServletContext.getContext() always returns when calling from root context (even with crossContext)

2009-08-28 Thread Jan Jonas
I have a very annoying problem with tomcat 6: ServletContext.getContext() always returns null if I call the method from the root context, i.e. the context I have defined with path=/ in my server.xml. I also tried setting path= (I read that this could fix problems in tomcat 5 - I'm using

Re: tow instances but one webapps : possible ?

2009-08-28 Thread coucou78 coucou78
thanks for your answers. it's simple : On the same physical host (server) we need to run two tomcat instance : - one for the production - the other for trainnning and testing AND we already have a script doing the deployement with ant , and this script is managing just one instance , in one

tomcat 5 clustering problems

2009-08-28 Thread Given Shirinda
Hi guyz I am running Linux Server,I have installed tomcat 5. I was following your Windows tomcat clustering and load balancing manual. I did follow the manual to run multiple tomcat instances. I placed the tomcat under this directory /opt/apache-tomcat-5.5.25

Re: tow instances but one webapps : possible ?

2009-08-28 Thread André Warnier
coucou78 coucou78 wrote: 3 - This is for illustration only, but it's quick and will give your more ideas : Have a look at your original server.xml. In it, there is a section starting with something like : Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true

website offline

2009-08-28 Thread Nikolay Diulgerov
Hello guys, at the moment http://tomcat.apache.org/ is unavailable (you can see the page coming). Can someone involved directly state if this anyway compromised the builds provided for download in some timeframe in the past. -- Best regards, Nikolay Diulgerov Network Administrator E-mail:

Re: website offline

2009-08-28 Thread Nikolay Diulgerov
Well if is avalilable again but couple of minutes ago the message was(see below) so my question stays? The Infrastructure Team of The Apache Software Foundation is currently investigating a potential compromise of one of our servers. For security reasons most apache.org services are therefore

Re: ServletContext.getContext() always returns when calling from root context (even with crossContext)

2009-08-28 Thread Pid
On 28/08/2009 09:57, Jan Jonas wrote: I have a very annoying problem with tomcat 6: ServletContext.getContext() always returns null if I call the method from the root context, i.e. the context I have defined with path=/ in my server.xml. I also tried setting path= (I read that this could fix

Re: website offline

2009-08-28 Thread Pid
On 28/08/2009 13:08, Nikolay Diulgerov wrote: Well if is avalilable again but couple of minutes ago the message was(see below) so my question stays? The Infrastructure Team of The Apache Software Foundation is currently investigating a potential compromise of one of our servers. For security

how many threads are serving requests ?

2009-08-28 Thread Stefano Nichele
Hi All, I'm collecting some monitor information via JMX and currently I'm interesting in how many threads are really serving requests. My environment is composed by apache 2 + mod jk + tomcat 6.0.13. Previously I monitored just:: Catalina:type=ThreadPool, attribute currentThreadsBusy but it

Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
Hi, This is my second post about Velocity as I am using the Velocity templates for the first time. I am using HTML velocity templates to send the emails through a web application. My question is, will these emails look okay on a client that might not display HTML email (such as a mobile phone)? I

RE: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Martin Gainty
what version browser will the phone implement ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Robert Koberg
Date: Fri, 28 Aug 2009 11:02:31 -0400 Subject: Display of velocity template emails in clients that might not display HTML From: pradnya.gawa...@gmail.com To: users@tomcat.apache.org Hi, This is my second post about Velocity as I am using the Velocity templates for the first time. I am

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Hassan Schroeder
On Fri, Aug 28, 2009 at 8:02 AM, Pradnya Gawadepradnya.gawa...@gmail.com wrote: I am using HTML velocity templates to send the emails through a web application. My question is, will these emails look okay on a client that might not display HTML email (such as a mobile phone)? No. Regardless

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
Thank you all for your replies. Yes, it looks like I should send the alternate text email along with HTML. I will go through the links provided to get me started. Martin, I don't know what version of browser because I am considering this as a general scenario for all those clients which do not

Re: adding connectors at the run-time

2009-08-28 Thread Bhuvanesh Pattanashetti
Hi all, let me explain in more detailed manner what exactly i m looking... i wanted to create a https connector with port like 8443. using Connector class using protocol Http11NioProtocol. as per my understading i wrote some thing like below. Http11NioProtocol connectorNio = new

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
Hi folks, one more quick question about this. Can I go for sending multipart message with Velocity? or I will have to g for FreeMarker-based multipart email necessarily? I already have implemented Velocity based email so I was thinking if I have change my implementation completely or I can modify

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pid
On 28/08/2009 17:21, Pradnya Gawade wrote: Hi folks, one more quick question about this. Can I go for sending multipart message with Velocity? or I will have to g for FreeMarker-based multipart email necessarily? I already have implemented Velocity based email so I was thinking if I have change

RE: SSL with multiple Tomcat instances

2009-08-28 Thread Don Prezioso
Crypto Sal, Thank you so much! That was apparently the problem. I got a new certificate from GoDaddy and once it was installed webui ran with no problems. Thanks for all your help. Don -- Don Prezioso Director of Administrative I.T. Ashland University Ashland, Ohio -Original

To export or not, JAVA_OPTS vs. CATALINA_OPTS

2009-08-28 Thread Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2
Currently, our catalina.sh file (running on Redhat Linux) has the following first line: JAVA_OPTS=-Xmx1024m -Xms1024m Two questions: 1. What is the difference in doing it that way vs. adding the word export in front of it? 2. What benefit/difference, if any, would it be to use

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
all right, sorry. Actually I had a difficulty in successfully deploying my web application to Tomcat when I used Velocity Engine in it, which is when I posted to this group last time. And just continued with same this time for further difficulty by mistake. I will contact Velocity group for

100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-28 Thread Bradley Wagner
I have a Spring/Hibernate app running in Tomcat 5.5.20 that we've tested in many environments that is currently faltering when running in a Ubuntu 7 VM. Basically on startup, frequently, the startup process will halt when trying to read Hibernate's HBM files and in various other places in startup

mod_jk error

2009-08-28 Thread Dennis Christopher
environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). My mod_jk error log set to debug level tells me Attempting to map URI /server-status then no match for server-status found Anyone know if this error matters, and if so where the URI server- status is coming from?

Re: ServletContext.getContext() always returns when calling from root context (even with crossContext)

2009-08-28 Thread Filip Hanik - Dev Lists
invalid path path=/ try path= On 08/28/2009 02:57 AM, Jan Jonas wrote: I have a very annoying problem with tomcat 6: ServletContext.getContext() always returns null if I call the method from the root context, i.e. the context I have defined with path=/ in my server.xml. I also tried

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradnya, On 8/28/2009 12:21 PM, Pradnya Gawade wrote: one more quick question about this. Can I go for sending multipart message with Velocity? Yes, you can generate multipart messages with Velocity. You can do this a number of ways, including 1

Re: To export or not, JAVA_OPTS vs. CATALINA_OPTS

2009-08-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 8/28/2009 1:55 PM, Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2 wrote: Currently, our catalina.sh file (running on Redhat Linux) has the following first line: JAVA_OPTS=-Xmx1024m -Xms1024m Two questions: 1. What is the

Re: Display of velocity template emails in clients that might not display HTML

2009-08-28 Thread Pradnya Gawade
all right. Thanks Chris. I will try to implement multipart messages with Velocity Engine. On Fri, Aug 28, 2009 at 2:56 PM, Christopher Schultzch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradnya, On 8/28/2009 12:21 PM, Pradnya Gawade wrote: one more

DBCP config question

2009-08-28 Thread Bill Davidson
Tomcat 6.0.18 Oracle 10g Java 1.6.0_14 I'm a little curious about the defaultAutoCommit parameter. If I understand the docs and things I've googled correctly, if I don't set it, I get the JDBC driver default. More googling, suggests that the default for the Oracle JDBC driver is to have

Re: DBCP config question

2009-08-28 Thread Filip Hanik - Dev Lists
its better to see if there is a way to do it in the JDBC url itself. As soon as you set the defaultAutoCommit flag to a value, DBCP will issue a getAutoCommit and possible setAutoCommit each time you use the connection. Both calls may go back to the DB depending on how the driver implements

Re: website offline

2009-08-28 Thread Konstantin Kolinko
2009/8/28 Nikolay Diulgerov ndiulge...@imx.fr: Hello guys, at the moment http://tomcat.apache.org/ is unavailable (you can see the page coming). Can someone involved directly state if this anyway compromised the builds provided for download in some timeframe in the past. You should be able

RE: website offline

2009-08-28 Thread Martin Gainty
Konstantin do the mirrors acquire the traffic if the main server becomes unavailable? what happened to the main servers today? BTW: i'm interested to know if you saw the javadoc target for build.xml on tc classes /thanks/ Martin __ Verzicht und

RE: DBCP config question

2009-08-28 Thread Martin Gainty
is the ConnectionState Transaction aware? thanks Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich

Re: website offline

2009-08-28 Thread Len Popp
On Fri, Aug 28, 2009 at 08:07, Nikolay Diulgerovndiulge...@imx.fr wrote: Can someone involved directly state if this anyway compromised the builds provided for download in some timeframe in the past. http://blogs.apache.org/infra/entry/apache_org_downtime_initial_report -- Len