Re: HOW TO: create custom Tomcat 6 connector to do port sharing

2011-06-30 Thread Pid
On 30/06/2011 02:10, Bob DeRemer wrote: > Chris, > > Thanks for the feedback. I haven't come across squid yet, so I will take a > look. With regard to HTTP proxying, no, I don't want to do HTTP proxying. I > would like to insert a TCP-based NIO request router in place of Tomcat's > Connector

RE: fail to download large static files in tomcat

2011-06-30 Thread Michal Singer
Hi, I also want to add that when I check the tomcat access log, I get: 10.206.90.6 - - [30/Jun/2011:11:37:16 +0300] "GET /bundles/vacc-AOS701b318-fl.tgz HTTP/1.0" 200 - On the large file, the client receives error. How can this be? Is this a problem with the client? Though I tried other clients a

Re: fail to download large static files in tomcat

2011-06-30 Thread Konstantin Kolinko
> Hi, I am working with apache-tomcat-6.0.18 and I want to use it to download > static files. > I have clients which will contact tomcat using wget. 1) Try with an up-to-date version of Tomcat. It will be 3 years old in a month. There were a lot of fixes since then. E.g. 48843. It might be that

RE: fail to download large static files in tomcat

2011-06-30 Thread Michal Singer
I didn't want to upgrade the tomcat yet, since I had some problems with the ssl certificate after upgrade, so it might take a while until I succeed. Do you mean to upgrade to 7 or to more advanced builds of 6? Which do you recommend? I am using nio connector. Actually this was a very good quest

Re: HOW TO: create custom Tomcat 6 connector to do port sharing

2011-06-30 Thread André Warnier
Hi. To round up what I am trying to say : Tomcat is a java servlet engine. In the principle, there is nothing that says that it cannot handle protocols other than HTTP/HTTPS, and run servlets which handle other kinds of messages than HTTP/HTTPS messages. However, my general impression is tha

Re: fail to download large static files in tomcat

2011-06-30 Thread André Warnier
Michal Singer wrote: ... I am using nio connector. Actually this was a very good question. I changed the connector to HTTP/1.1 and now the download works !!! Can you exlain *exactly* what you changed, where ? e.g. what the element looked like before, and what it looks like now ? -

RE: fail to download large static files in tomcat

2011-06-30 Thread Michal Singer
This was the configuration I had in the server.xml which did not work for large files: And I changed this to: And now it does work for 500MB files, though when comparing the time it takes (for smaller files which work on both configurations), the performance degraded with the HTTP/1.1 connec

Re: fail to download large static files in tomcat

2011-06-30 Thread Konstantin Kolinko
2011/6/30 Michal Singer : > I didn't want to upgrade the tomcat yet, since I had some problems with the > ssl certificate after upgrade, Most problems with ssl are when Tomcat (auto-)switches between Apr and non-Apr implementation (see below), because Apr and non-Apr SSL implementations have dif

Re: fail to download large static files in tomcat

2011-06-30 Thread André Warnier
Ok, so now can you remind us of - on what platform you are (Windows, Linux,..) - what version of Tomcat this is - and paste the first few lines of the Tomcat startup messages, from the logfile (to find out whether you are using APR or not) Sorry if you already said all that, I'm too lazy to scrol

RE: fail to download large static files in tomcat

2011-06-30 Thread Michal Singer
1. Currently tomcat runs on windows XP (but production can be on other windows as well). The client is on linux. 2. Tomcat version 6.0.18 3. These are the lines in log regarding connector. The lines concerning the connectors I am referring to are moved aside to the right (ports 8088 and 8089)

RE: HOW TO: create custom Tomcat 6 connector to do port sharing

2011-06-30 Thread Bob DeRemer
I'm not sure on the XMPP over HTTP, since we require the real-time always-on connectivity provided by XMPP. I'll have to see exactly what XMPP over HTTP does under the hood. We can't afford to have our XMPP connections doing long-polling or anything. -bob -Original Message- From: Pid

RE: HOW TO: create custom Tomcat 6 connector to do port sharing

2011-06-30 Thread Bob DeRemer
Very well stated and completely understood. My gut is already telling me that trying to customize/extend Tomcat in this way is way outside the scope of how Tomcat was designed or intended to be used. And, I would bet you're right with regard to parts of the Tomcat architecture having certain "

Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-06-30 Thread Rohan Kadam
Hi All, We had recently upgraded tomcat from 5.5.30 to 7.0.14. We were earlier facing problem that tomcat was not able to connect using Static IP address. The fix that we found was adding address = "0.0.0.0" in the Connector tag of server.xml in the "conf" directory. After upgrading tomcat to 7

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-06-30 Thread Pid
On 30/06/2011 13:01, Rohan Kadam wrote: > Hi All, > > We had recently upgraded tomcat from 5.5.30 to 7.0.14. We were earlier facing > problem that tomcat was not able to connect using Static IP address. The fix > that we found was adding > address = "0.0.0.0" in the Connector tag of server.xml in

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-06-30 Thread Rohan Kadam
Hi, I am using JAVA 1.6 update 23 version. Thanks, Rohan Kadam. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, June 30, 2011 7:22 PM To: Tomcat Users List Subject: Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14) On 30/06/2011 13:01, Rohan Kad

Re: Tomcat performance issues...

2011-06-30 Thread Tony Anecito
Thanks for the link and it proved what I was concerned about and that is Tomcat 6 does not have an approved standard library for JSP's which means 7 has more issues with this "Standard" taglib. I could be wrong but the highest level of support is servlet 2.4 and Tomcat 6 is at 2.5. Regards, -

how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
We're running tomcat 6.0.32 64-bit on Windows Server 2008 R2. We have a requirement to support pluggable extensions to our webapp. We do not want the associated JAR(s) in the WEB-INF/lib directory. Instead, we want to place them in a WEB-INF/lib/extensions folder that we created. To do this,

Re: Tomcat performance issues...

2011-06-30 Thread Konstantin Kolinko
2011/6/30 Tony Anecito : > Thanks for the link and it proved what I was concerned about and that is > Tomcat > 6 does not have an approved standard library for JSP's which means 7 has more > issues with this "Standard" taglib. > > I could be wrong but the highest level of support is servlet 2.4 an

Re: Tomcat performance issues...

2011-06-30 Thread Tony Anecito
Thanks I joined the taglib email list and am waiting for an answer. I suspect Tomcat might support the lib you mentioned but the servlet spec and what appeared to be a dead project worried me. Regards, -Tony - Original Message From: Konstantin Kolinko To: Tomcat Users List Sent: Th

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Konstantin Kolinko
2011/6/30 Bob DeRemer : >           virtualClasspath="/WEB-INF/lib/extensions/*.jar"/> The above should be an absolute path. You can use system variables, e.g. ${catalina.base}/webapps/mywebapp/WEB-INF/lib/extensions/*.jar - To

Re: fail to download large static files in tomcat

2011-06-30 Thread André Warnier
Michal Singer wrote: This was the configuration I had in the server.xml which did not work for large files: And I changed this to: And now it does work for 500MB files, though when comparing the time it takes (for smaller files which work on both configurations), the performance degraded w

RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
Thanks Konstantin, but that didn't do it. I can see that Tomcat copies the context.xml over to /conf/Catalina/localhost and names it .xml. Is there any way to printout the classpath my webapp is using in the context of tomcat - to try and debug this? The exact contents is: Do I n

UPDATE - RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
I was able to get this to work. I had a hunch, so I moved the extensions folder outside the WEB-INF directory.Any idea why these extra repositories cannot be under the WEB-INF/lib folder ? Also, ONE OTHER QUESTION: Is there a way to have new JAR(s) that get dropped into the extensions fol

Re: UPDATE - RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Konstantin Kolinko
2011/6/30 Bob DeRemer : > I was able to get this to work.  I had a hunch, so I moved the extensions > folder outside the WEB-INF directory.    Any idea why these extra > repositories cannot be under the WEB-INF/lib folder ? I think classes should be loadable, but IIRC annotation and resources sc

RE: UPDATE - RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
Thank you! Since it looks like I need to create my own classloader [to get it to check my extensions folder "on the fly"], can you point me to some links or samples that show how to do this? I can't believe more people haven't had to dynamically load JAR(s) to resolve classes "on the fly" for

RE: tomcat recovery after hang

2011-06-30 Thread Carlos Juarez
> > In addition I found a webpage that tells how to check when tomcat falls, > > (checking PID or Service status) > > the problem is that when my tomcat hangs it still "working", Can't use that > > methods > > Instead of trying to work around the problem, why not try to understand > why Tomca

RE: Problem with SSL certificate

2011-06-30 Thread D'Anna, Rich (PHH)
Just an update on this issue. We decided to install the most up to date version of Tomcat including the native libraries and troubleshoot from there. Once everything was installed and came up fine we edited the server.xml file to enable SSL and we definitely were getting the right certificate but

Set Java VM arguments programmatically in Tomcat

2011-06-30 Thread Anand HS
Hello Everyone. ! I would like to set JVM arguments like Xmx, Xms etc programmatically and provide it to Tomcat at start up. I am aware of doing this by editing for eg, catalina.bat or introducing setenv.bat , but I was keen on exploring any other ways tomcat provides in which I can override the

RE: Set Java VM arguments programmatically in Tomcat

2011-06-30 Thread Caldarale, Charles R
> From: Anand HS [mailto:anan...@gmail.com] > Subject: Set Java VM arguments programmatically in Tomcat > I would like to set JVM arguments like Xmx, Xms etc programmatically > and provide it to Tomcat at start up. Not quite sure what you mean by "programmatically" here, since the values must

Re: APR Native library on tomcat 6

2011-06-30 Thread ccastle
Hello. I have the same problem, except that in the log it is not specified what library is needed. This are the messages in the log: 30-jun-2011 15:13:03 org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 30-jun-2011 15:13:04 org.apache.catalina.core.Standar

Re: tomcat recovery after hang

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carlos, On 6/30/2011 12:47 PM, Carlos Juarez wrote: >>> In addition I found a webpage that tells how to check when tomcat falls, >>> (checking PID or Service status) >>> the problem is that when my tomcat hangs it still "working", Can't use that >>>

Re: APR Native library on tomcat 6

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 6/30/2011 4:21 PM, ccastle wrote: > I have the same problem [where APR won't load], except that in the log it is > not specified what > library is needed. You don't need to read the logs to see what library is needed, you

Re: Tomcat performance issues...

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 6/30/2011 11:23 AM, Tony Anecito wrote: > I suspect Tomcat might support the lib you mentioned Tomcat does not need to support the library specifically: if a library properly uses the Servlet and/or JSP APIs properly, it should work with Tom

Re: corrupt gzip output when compression=on in server.xml

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 6/30/2011 11:05 AM, Christopher Taylor wrote: > While it works great, we encountered a response > that consistently returned a corrupted gzip stream in the response > (inside the zip file attached to this message to make sure that it's > not

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 6/30/2011 11:27 AM, Konstantin Kolinko wrote: > 2011/6/30 Bob DeRemer : >> virtualClasspath="/WEB-INF/lib/extensions/*.jar"/> > > The above should be an absolute path. > > You can use system variables, e.g. > ${catalina.base

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rohan, On 6/30/2011 8:01 AM, Rohan Kadam wrote: > We had recently upgraded tomcat from 5.5.30 to 7.0.14. We were earlier facing > problem that tomcat was not able to connect using Static IP address. The fix > that we found was adding > address = "0.0.

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Rainer Jung
On 30.06.2011 22:50, Christopher Schultz wrote: > Konstantin, > > On 6/30/2011 11:27 AM, Konstantin Kolinko wrote: >> 2011/6/30 Bob DeRemer : >>> virtualClasspath="/WEB-INF/lib/extensions/*.jar"/> > >> The above should be an absolute path. > >> You can use system variables, e.g. >> ${c

Re: Set Java VM arguments programmatically in Tomcat

2011-06-30 Thread Anand HS
I apologize for not being clearer. Basically I would like not to use any batch scripts ( in Windows ) to set CATALINA_OPTS, JAVA_OPTS etc.. , instead would like to do it through a custom Java program and then hook up . To this effect, I was wondering if there is a way to extend Bootstrap class of T

webapps and TCP/UDP listening sockets

2011-06-30 Thread Tim Judd
I think this would be probably difficult to Google and get answers, so I joined the mailing list hoping I might get a straight answer... If I develop a webapp that listens for TCP/UDP sockets, which machine is actually listening? Is the tomcat server listening (because the webapp is running on

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Konstantin Kolinko
2011/7/1 Christopher Schultz : > > On 6/30/2011 11:27 AM, Konstantin Kolinko wrote: >> 2011/6/30 Bob DeRemer : >>>           virtualClasspath="/WEB-INF/lib/extensions/*.jar"/> >> >> The above should be an absolute path. >> >> You can use system variables, e.g. >> ${catalina.base}/webapps/mywebapp/W

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 6/30/2011 5:27 PM, Rainer Jung wrote: > On 30.06.2011 22:50, Christopher Schultz wrote: >> Konstantin, >> >> On 6/30/2011 11:27 AM, Konstantin Kolinko wrote: >>> 2011/6/30 Bob DeRemer : virtualClasspath="/WEB-INF/lib/extensio

RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
I've verified that the WEB-INF/extensions will work, too. The key issue for us is being able to hot-deploy extension JAR(s) live without restarting the webapp or Tomcat. I began by seeing if Tomcat supported find JAR(s) on non-standard locations so we can separate the extensions. These extens

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, On 6/30/2011 9:55 PM, Bob DeRemer wrote: > I've verified that the WEB-INF/extensions will work, too. The key > issue for us is being able to hot-deploy extension JAR(s) live > without restarting the webapp or Tomcat. I began by seeing if Tomcat

RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
Thanks! I know it's all open and online, I was just hoping someone might be able to point me to some specific classes so I don't have to pour through a lot of irrelevant code. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, June 30, 20

Re: webapps and TCP/UDP listening sockets

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 6/30/2011 7:14 PM, Tim Judd wrote: > If I develop a webapp that listens for TCP/UDP sockets, which machine is > actually listening? When you say "machine"... you mean ... what, exactly? If you develop a webapp that listens for TCP/UDP socke

Re: Set Java VM arguments programmatically in Tomcat

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anand, On 6/30/2011 6:18 PM, Anand HS wrote: > Basically I would like not to use any batch scripts ( in Windows ) to set > CATALINA_OPTS, JAVA_OPTS etc.. , instead would like to do it through a > custom Java program and then hook up. You can do this,

Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, On 6/30/2011 10:07 PM, Bob DeRemer wrote: > Thanks! I know it's all open and online, I was just hoping someone > might be able to point me to some specific classes so I don't have to > pour through a lot of irrelevant code. Tomcat's component f

RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup

2011-06-30 Thread Bob DeRemer
Awesome, thanks! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, June 30, 2011 10:18 PM To: Tomcat Users List Subject: Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup -BEGIN PGP SIG

Re: webapps and TCP/UDP listening sockets

2011-06-30 Thread Tim Judd
Hi Christopher, all 'machine' was meant to indicate one of two choices, the computer that is running the tomcat server, or the computer who is the client in a client-server relationship. I don't know the intricities of webapps yet in how they run. This thread was just trying to understand if