RE: Sending email ( Tomcat 7 )

2012-01-18 Thread Purvis Robert (NHS CONNECTING FOR HEALTH)
java.util.Properties p = new Properties(); javax.mail.Session s = javax.mail.Session.getInstance(p); javax.mail.internet.MimeMessage message = new javax.mail.internet.MimeMessage(s); try { javax.mail.internet.InternetAddress from = new javax.mail.internet.InternetAddress(emailFrom,

Re: Tomcat 7 JDK 7 access permissions: error or bug?

2012-01-18 Thread Konstantin Kolinko
2012/1/17 deniz denizdurmu...@gmail.com: Hi all, I am getting a weird error on tomcat 7. at first  i deploy my war file and everything is smooth.. but after some time - randomly - i cant access anything on tomcat and in the log file I see these lines: code Jan 17, 2012 11:37:37 AM

Re: Sending email ( Tomcat 7 )

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lau, On 1/18/12 12:04 AM, Lau Eng Huat wrote: 2. I'm running Tomcat 7 on a local host. Can I sent email to my gmail account ? How can I achieved this ? You want to configure a smart host if you want to connect to Gmail in order to send your

Re: running separate isolated jvm's for each web app

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 1/16/12 11:13 AM, S Ahmed wrote: If my tomcat has 2 web applications running on it, how do I create different jvm pools to keep the apps isolated? Read the RUNNING.txt file that comes in the Tomcat distribution. Specifically, read the

Re: Unable to sendViaPost to url...... .... java.net.SocketTimeoutException: Read timed out

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bert, On 1/16/12 11:15 AM, Bert Verhees wrote: I am not sure if it is an Axis2 problem or a Tomcat-problem. I have an client-application for test-purposes which runs inside the Eclipse-IDE. The problem only occurs when running Axis2 inside

Re: Unable to sendViaPost to url...... .... java.net.SocketTimeoutException: Read timed out

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bert, On 1/16/12 4:39 PM, Bert Verhees wrote: On 16-01-12 22:26, Pid wrote: The JConsole and VisualVM applications provided with the JDK will tell you how much memory is being consumed by the application in various areas of the Java program's

Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread William Speirs
I have a basic CometProcessor servlet implemented, and everything appears to work as expected, except for one small issue: I cannot make multiple requests from the same client to the same server. My servlet simply sends messages to the client as they come in (think of it as a one-sided chat, no

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread André Warnier
William Speirs wrote: I have a basic CometProcessor servlet implemented, and everything appears to work as expected, except for one small issue: I cannot make multiple requests from the same client to the same server. My servlet simply sends messages to the client as they come in (think of it

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread Konstantin Kolinko
2012/1/18 William Speirs wspe...@apache.org: I have a basic CometProcessor servlet implemented, and everything appears to work as expected, except for one small issue: I cannot make multiple requests from the same client to the same server. My servlet simply sends messages to the client as

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread William Speirs
Thanks for the quick responses, I'll respond to both at once below: On Wed, Jan 18, 2012 at 11:56 AM, André Warnier a...@ice-sa.com wrote: really a second, different browser ? or another window/tab from the same browser ? (if the second case, it may be re-using the same local IP:port (or just

Problem bringing up SSL with a CA certificate

2012-01-18 Thread James Lampert
So far, I've had complete success using self-signed certificates, both here and on the customer box, once I found out that the CN needs to match the domain name. But now, we're trying to get the customer box up on a CA-signed certificate, and Tomcat doesn't like it. (Given that we haven't

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread William Speirs
Quick update... I switched the code to using Servlet 3.0 and I can get streaming data from all three browsers on the same machine: Chrome, FireFox, and IE. I still cannot get two tabs in Chrome or FireFox to stream data, but I think that is simply because they are sharing JSESSIONIDs and I can

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 1/18/12 11:22 AM, William Speirs wrote: It seems as though tomcat (or the comet filter) is limiting the number of connections from the same IP address. Have you discarded the browser as one of the components making these kinds of

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 1/18/12 12:02 PM, Konstantin Kolinko wrote: The HTTP specification recommends to have no more than 2 active connections to the same HTTP server. The web browsers usually respect it. Firefox uses 6 since v3 [1] I remember a while

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 1/18/12 1:13 PM, William Speirs wrote: Quick update... I switched the code to using Servlet 3.0 and I can get streaming data from all three browsers on the same machine: Chrome, FireFox, and IE. A Tomcat upgrade probably helped a lot

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread William Speirs
On Wed, Jan 18, 2012 at 2:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: Quick update... I switched the code to using Servlet 3.0 and I can get streaming data from all three browsers on the same machine: Chrome, FireFox, and IE. A Tomcat upgrade probably helped a lot with

Re: Unable to sendViaPost to url...... .... java.net.SocketTimeoutException: Read timed out

2012-01-18 Thread Bert Verhees
Sorry, readers of this list for not replying, I am very busy investigating the problem, I try replying later. Bert On 16-01-12 23:55, André Warnier wrote: Hi. I'll follow-up with an out of band message just for now. It was not very clear from your initial explanations whether you were

Changes to deployed .war file not copied to unpacked war directory at Tomcat startup?

2012-01-18 Thread Aron Roberts
With apologies if this turns out to be a truly newbie question, or has been answered in the archives (the MARC archives are inaccessible today due to SOPA Blackout Day) ... We've reproducibly observed the following with respect to updating the contents of unpacked/exploded WAR directories,

Re: Changes to deployed .war file not copied to unpacked war directory at Tomcat startup?

2012-01-18 Thread Mark Thomas
On 18/01/2012 20:31, Aron Roberts wrote: With apologies if this turns out to be a truly newbie question, or has been answered in the archives (the MARC archives are inaccessible today due to SOPA Blackout Day) ... We've reproducibly observed the following with respect to updating the

Re: Changes to deployed .war file not copied to unpacked war directory at Tomcat startup?

2012-01-18 Thread Aron Roberts
Thanks for this fast and helpful response, Mark. Having clarity around this behavior is much appreciated! The behaviour is entirely as expected. Tomcat has no way of telling that the WAR has been updated while Tomcat is not running. Figuring out that something had changed would be

RE: Changes to deployed .war file not copied to unpacked war directory at Tomcat startup?

2012-01-18 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Changes to deployed .war file not copied to unpacked war directory at Tomcat startup? If you update a WAR file while Tomcat is shut down, you *must* delete any associated unpacked directory as well. Best to clean out the webapp's

Re: TC7 + AntCompiler problems with whitespace in pathname

2012-01-18 Thread eprost
For anybody interested: https://issues.apache.org/bugzilla/show_bug.cgi?id=52480 is now fixed. More info: http://svn.apache.org/viewvc?view=revisionrevision=1232850 Discussion topic is closed, thank you everybody who helped - Erik Ok, I will open a bug tonight (French time zone). Thanks,

Re: Tomcat 7 (64 bit) does not seem to honor session timeout?

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 1/13/12 3:26 PM, Paul Joseph wrote: This was a false alarm. My apologies. Any specifics? It's nice to be able to point to a message in the archives and say maybe you are doing /this/ to help someone find an error in their own webapp. -

Re: Unable to sendViaPost to url...... .... java.net.SocketTimeoutException: Read timed out

2012-01-18 Thread Bert Verhees
I have done my testing, and at this moment, it seems that I found the problem, I forgot to close a databaseconnection in a function which is called a zillion times. Just one line of code, and the problem was solved. At least I am so honest I admit it freely, and it will follow my career until

Re: [OT] JDK Version Mismatch

2012-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 deniz, (Marking OT because this has nothing to do with Tomcat) On 1/13/12 2:25 AM, deniz wrote: I have created and compiled my class files with jdk 1.7 and then put them in a jar and included that jar file in my webapp project on jdk 1.6 which i

More, Re: Problem bringing up SSL with a CA certificate

2012-01-18 Thread James Lampert
I've now got the CA certificates the customer representative is trying to use here, and I'm attempting to test them on our box. I followed these instructions: https://search.thawte.com/support/ssl-digital-certificates/index?page=contentactp=CROSSLINKid=SO15518 rather than the ones here:

Is SSL keystore with AJP connector possible?

2012-01-18 Thread mandg
I'm working on Apache Tomcat/6.0.33 running in Windows 2003 and have been asked to setup SSL. Looking at the server.xml file, I see that the AJP/1.3 connector is configured and not APR. Like a good newbie that I am with Tomcat, I followed the Tomcat instructions for configuring SSL. However, the

Critical Problem Tomcat 7

2012-01-18 Thread Lau Eng Huat
Hi Guys, I have a strange problem. I have deleted a servlet from the project in netbeans but the uncompile source code still says the file exist. I have deleted the WEB-INF\classes and did a clean and build. Still the problems exists. Does anybody knows how to solved this problem ??? Jan 19,

Re: More, Re: Problem bringing up SSL with a CA certificate

2012-01-18 Thread Igor Cicimov
Caused by: java.io.IOException: SSL configuration is invalid due to No available certificate or key corresponds to the SSL cipher suites which are enabled. Are you sure you have downloaded the correct intermediate certs? *Note:* When executing the command to import the SSL certificate, you

Re: Is SSL keystore with AJP connector possible?

2012-01-18 Thread Igor Cicimov
On Thu, Jan 19, 2012 at 10:09 AM, mandg gsca...@federatedinv.com wrote: I'm working on Apache Tomcat/6.0.33 running in Windows 2003 and have been asked to setup SSL. Looking at the server.xml file, I see that the AJP/1.3 connector is configured and not APR. Like a good newbie that I am with

RE: Is SSL keystore with AJP connector possible?

2012-01-18 Thread Caldarale, Charles R
From: mandg [mailto:gsca...@federatedinv.com] Subject: Is SSL keystore with AJP connector possible? I see that the AJP/1.3 connector is configured and not APR. APR will be used automatically for HTTP Connectors if the tcnative-1.dll file is found in Tomcat's bin directory and the APR

Re: More, Re: Problem bringing up SSL with a CA certificate

2012-01-18 Thread James Lampert
Dear Igor (et al): Thanks for getting back to me. To answer the questions (and pose a few more): Igor Cicimov wrote: Are you sure you have downloaded the correct intermediate certs? I didn't download them myself; neither did I place the order. But I'll pass this on to the fellow who did.

Re: Is SSL keystore with AJP connector possible?

2012-01-18 Thread Rainer Jung
On 19.01.2012 00:09, mandg wrote: I'm working on Apache Tomcat/6.0.33 running in Windows 2003 and have been asked to setup SSL. Looking at the server.xml file, I see that the AJP/1.3 connector is configured and not APR. Like a good newbie that I am with Tomcat, I followed the Tomcat

Re: Is SSL keystore with AJP connector possible?

2012-01-18 Thread mandg
Thanks guys- that was all good info. So I gather now that I'll leave the AJP connector configuration alone and instead focus on getting the APR piece to work for SSL - I do in fact have the tcnative-1.dll file present in my /bin directory so I'm pretty confident now that my server is invoking the

Problem in apache tomact 6.0

2012-01-18 Thread Uttpal Kachhawa
-- Hi, I AM GETTING THAT ERROR PLZ GIVE ME SOLUTION Port 8009 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or

Re: Tomcat 7 JDK 7 access permissions: error or bug?

2012-01-18 Thread deniz
Well thank you for your kind responses... i have found out the problem today... i have been focused on a wrong place... although logs were showing clear exceptions and errors, the problem was in java classes of my webapp not jsps nor tomcat itself... -- View this message in context:

Re: Problem in apache tomact 6.0

2012-01-18 Thread Mikolaj Rydzewski
On Thu, 19 Jan 2012 11:41:01 +0530, Uttpal Kachhawa wrote: I AM GETTING THAT ERROR PLZ GIVE ME SOLUTION Port 8009 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start