RE: Exceptions when starting Tomcat

2011-05-17 Thread Caldarale, Charles R
> From: Michael [mailto:mtarullo...@optonline.net] > Subject: RE: Exceptions when starting Tomcat > BTW, Chuck the first machine I ever worked on in my professional career was > a Burroughs mainframe, back before Burroughs became Unisys. > So you're teaching an old dog new tricks, even though I'

RE: Exceptions when starting Tomcat

2011-05-17 Thread Michael
Worked like a charm Chuck. Thanks! Sure beats trying to figure out how to change file access privileges when you're not a Windows sys admin!!! BTW, Chuck the first machine I ever worked on in my professional career was a Burroughs mainframe, back before Burroughs became Unisys. So you're teachi

RE: Exceptions when starting Tomcat

2011-05-17 Thread Caldarale, Charles R
> From: Michael [mailto:mtarullo...@optonline.net] > Subject: Exceptions when starting Tomcat > When I start Tomcat using the .bat file in the bin folder I get the > following exception, several times: > java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: C:\Program > Files\apache-t

Exceptions when starting Tomcat

2011-05-17 Thread Michael
I've just started using Tomcat 6.0.29 for the first time on Windows 7. I've used older versions of Tomcat on Windows XP. When I start Tomcat using the .bat file in the bin folder I get the following exception, several times: java.util.logging.ErrorManager: 4 java.io.FileNotFoundException:

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread sebb
On 17 May 2011 23:35, André Warnier wrote: > sebb wrote: >> >> HTTP requests include a "Host:" header which generally specifies the >> target hostname and port (omitted if it is the default port). > >> AIUI, in virtual hosting situations, the name in the Host header may >> be different from the UR

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread sebb
On 17 May 2011 22:17, Konstantin Kolinko wrote: > 2011/5/18 sebb : >> As far as I can tell, Tomcat validates the format of the Host header, >> but otherwise ignores the port? >> Is that correct? > > No. > See e.g. Http11Processor.parseHost(MessageBytes) in trunk. The last > line there is > [[[ >  

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread André Warnier
Hassan Schroeder wrote: On Tue, May 17, 2011 at 3:35 PM, André Warnier wrote: (RFC 2616 says that a port can be present in the Host: header; but it does not mention what the server should do with it. And I can't think of what it could do with it either, since by the time the server reads this

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread Hassan Schroeder
On Tue, May 17, 2011 at 3:35 PM, André Warnier wrote: > (RFC 2616 says that a port can be present in the Host: header; but it does > not mention what the server should do with it.  And I can't think of what it > could do with it either, since by the time the server reads this header, the > connec

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread André Warnier
sebb wrote: HTTP requests include a "Host:" header which generally specifies the target hostname and port (omitted if it is the default port). AIUI, in virtual hosting situations, the name in the Host header may be different from the URL host. So for example a request to: http://localhost:808

General Async Request Question

2011-05-17 Thread Jess Holle
I'm trying to get up to speed with the Servlet 3.0 specification -- specifically asynchronous requests vs. all my existing filters, etc. I have an existing response compression filter. Yes, I know Tomcat's HTTP connector can do this, but our filter has some special features, works with the AJ

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread Konstantin Kolinko
2011/5/18 sebb : > As far as I can tell, Tomcat validates the format of the Host header, > but otherwise ignores the port? > Is that correct? No. See e.g. Http11Processor.parseHost(MessageBytes) in trunk. The last line there is [[[ request.setServerPort(port); ]]] where port number in parsed fro

Re: Application crash after Migrate to different ESX

2011-05-17 Thread הילה
> >>> I'll try explaining it differently. >>> >>> we use smart keep alive with this application. the smart keep alive does >> a >> connection to the DB, query something that relates to the application, and >> if everything turned out good, it returns state OK. if not ok, as in this >> case, it ret

[OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread sebb
HTTP requests include a "Host:" header which generally specifies the target hostname and port (omitted if it is the default port). AIUI, in virtual hosting situations, the name in the Host header may be different from the URL host. So for example a request to: http://localhost:8080/ might be sen

Re: Application crash after Migrate to different ESX

2011-05-17 Thread André Warnier
הילה wrote: ... I'll try explaining it differently. we use smart keep alive with this application. the smart keep alive does a connection to the DB, query something that relates to the application, and if everything turned out good, it returns state OK. if not ok, as in this case, it returns

Re: Application crash after Migrate to different ESX

2011-05-17 Thread הילה
> > how can I abruptly break all connections between application and DB? >> the only way I know is take the server out of the Load balancer so no new >> users can get to the server + the LB kicks the users that are already >> connected. >> > > Pulling the network cable at the db server would do it.

Re: Application crash after Migrate to different ESX

2011-05-17 Thread David kerber
On 5/17/2011 2:39 PM, הילה wrote: I know that after migrate, a disconnection is expected, but in my case - it crashes completely, or alternately until it works (but don't know if it's stable now). It is not a problem, it is a feature. What is your question? what is the feature here exa

Re: Application crash after Migrate to different ESX

2011-05-17 Thread הילה
> > >> I know that after migrate, a disconnection is expected, but in my case - > >> it > >> crashes completely, or alternately until it works (but don't know if > it's > >> stable now). > > > > It is not a problem, it is a feature. What is your question? > what is the feature here exactly? > > A

Re: Application crash after Migrate to different ESX

2011-05-17 Thread הילה
2011/5/17 André Warnier > הילה wrote: > >> Hey Guys, >> >> My application runs on tomcat 6.0.29, win 2008 R2, which is a VM machine. >> i use the JDBC application pool., with java 1.6.24 64bit. >> > > OK. > > > >> I have a problem, in which after migrate of the VM machine to another ESX, >> the a

Re: Application crash after Migrate to different ESX

2011-05-17 Thread Konstantin Kolinko
2011/5/17 André Warnier : > הילה wrote: >> >> Hey Guys, >> >> My application runs on tomcat 6.0.29, win 2008 R2, which is a VM machine. >> i use the JDBC application pool., with java 1.6.24 64bit. > > OK. > >> >> I have a problem, in which after migrate of the VM machine to another ESX, >> the appl

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/17/2011 10:03 AM, André Warnier wrote: > Yes, now it is starting to make sense. > The "devices" (which are not browsers), are actually TCP clients, but > after establishing a connection with the server (your application), they > become "pa

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micka, On 5/17/2011 5:44 AM, Micka wrote: > I used write(char []) because I didn't found a function to send a byte > array ^^ . Right: PrintWriter isn't appropriate for sending a byte array. Instead, use an OutputStream (response.getOutputStream) in

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread David kerber
On 5/17/2011 10:12 AM, Micka wrote: Well because I thought that hosting a java server application by Tomcat is just perfect ! You can control a lot of thing, and you can create jsp page for administration purpose. Do you have better than Tomcat for hosting a java server application ? I thin

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread André Warnier
Micka wrote: Well because I thought that hosting a java server application by Tomcat is just perfect ! You can control a lot of thing, and you can create jsp page for administration purpose. Do you have better than Tomcat for hosting a java server application ? No, no, you are right, and it

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Micka
Well because I thought that hosting a java server application by Tomcat is just perfect ! You can control a lot of thing, and you can create jsp page for administration purpose. Do you have better than Tomcat for hosting a java server application ? On Tue, May 17, 2011 at 4:03 PM, André Warn

Re: Application crash after Migrate to different ESX

2011-05-17 Thread André Warnier
הילה wrote: Hey Guys, My application runs on tomcat 6.0.29, win 2008 R2, which is a VM machine. i use the JDBC application pool., with java 1.6.24 64bit. OK. I have a problem, in which after migrate of the VM machine to another ESX, the application crashes, and doesn't recover by itself.

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread André Warnier
Micka wrote: Thx for the advise, My mail will be better for the next time. To explain better my application, it is a TCP server. And it received connection requests from clients. In my configuration I'm automatically waiting and accepting a connection with : java.net.ServerSocket.accept() Af

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Micka
Thx for the advise, My mail will be better for the next time. To explain better my application, it is a TCP server. And it received connection requests from clients. In my configuration I'm automatically waiting and accepting a connection with : java.net.ServerSocket.accept() After that I give

RE: Tomcat5w GUI application

2011-05-17 Thread Caldarale, Charles R
> From: Venky Vasant [mailto:venkat...@yahoo.com] > Subject: Re: Tomcat5w GUI application > So i leave classpath blank on the GUI on the Java tab ? No, it should contain just the values when you installed the service; something like: C:\Apache-tomcat-5.5.23\bin\bootstrap.jar > All my jars on

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread André Warnier
Micka, I'm glad that someone could help you after you provide better/clearer information. Just for future reference : Micka wrote: Ok, Machine A : OS : Windows Seven JVM : jre6 Tomcat : v7.0.8 Machine B : OS : Ubuntu 10.04 Using CATALINA_BASE: /usr/local/tomcat7 Using CATALINA_HOME: /u

Re: Tomcat5w GUI application

2011-05-17 Thread Venky Vasant
Chuck Thanks for the link, i will have to try this late evening today when users log off Couple of questions 1. So i leave classpath blank on the GUI on the Java tab ? 2. All my jars on \Apache-tomcat-5.5.23\webapps\WebProxy\lib, not sure if it will still pull based on the list i see **

Application crash after Migrate to different ESX

2011-05-17 Thread הילה
Hey Guys, My application runs on tomcat 6.0.29, win 2008 R2, which is a VM machine. i use the JDBC application pool., with java 1.6.24 64bit. I have a problem, in which after migrate of the VM machine to another ESX, the application crashes, and doesn't recover by itself. I know that after migrat

RE: Tomcat5w GUI application

2011-05-17 Thread Caldarale, Charles R
> From: Venky Vasant [mailto:venkat...@yahoo.com] > Subject: Tomcat5w GUI application > today i hit an issue with adding a new jar to the classpath. You really should not be adding anything to Tomcat's classpath. Put your jars in an appropriate location, and let the built-in classloaders find

[SECURITY] CVE-2011-1582 Apache Tomcat security constraint bypass

2011-05-17 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2011-1582 Apache Tomcat security constraint bypass Severity: Important Vendor: The Apache Software Foundation Versions Affected: - - Tomcat 7.0.12-7.0.13 - - Earlier versions are not affected Description: An error in the fixes for CVE-2011-1088

Tomcat5w GUI application

2011-05-17 Thread Venky Vasant
I have been using Tomcat5w GUI application since some time and today i hit an issue with adding a new jar to the classpath. The change i made was It was not getting saved. I counted the characters and found out it was 1024, is this the max i can set  ? How do i set if i have to go above this li

New Birthday Calendar

2011-05-17 Thread Abhay Adgurwar
Hello Click on the link below and please enter your birthday for me. It will take less than one minute. http://www.birthdayalarm.com/bd2/83842497a620634935b1537677409c348957808d1386 Thank You, Abhay - To unsubscribe, e-mail:

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Micka
Thx for the help, It was indeed a problem of encoding setting I added : bwriter = new PrintWriter( new BufferedWriter(new OutputStreamWriter(soc.getOutputStream(), "Windows-1252")) ); breader = new BufferedReader( new InputStreamReader( soc.getInputStream(), "

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Konstantin Kolinko
2011/5/17 Micka : > void java.io.PrintWriter.write(char[] buf) Do you know about the difference between byte and char, between OutputStream and Writer? That is Java IO basics. The common pitfall is that different OSes usually have different default character encoding setting (e.g. "Windows-1252"

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Micka
Ok, Machine A : OS : Windows Seven JVM : jre6 Tomcat : v7.0.8 Machine B : OS : Ubuntu 10.04 Using CATALINA_BASE: /usr/local/tomcat7 Using CATALINA_HOME: /usr/local/tomcat7 Using CATALINA_TMPDIR: /usr/local/tomcat7/temp Using JRE_HOME:/usr/lib/jvm/java-6-sun Using CLASSPATH: /usr/loca

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread André Warnier
Micka, about the only things that I think I understand in your explanations are : - that you have two tomcats, one under Windows and one under Linux - that you have one application, as a war file, that you are trying in these two tomcats - that something seems to be different Apart from that, t

Re: TomCat 7 + Socket & Java Version

2011-05-17 Thread Micka
Hi, I'm not saying that it's a fault of TomCat, I'm just saying that I've a problem on a different machine. The problem, that I observe is on the echo. ( the echo is a little bit different The communication works well on my PC ( Tomcat7 under windows 7 ) But when I put the application ( .war ) on

how to track tomcat throughput?

2011-05-17 Thread Dan Checkoway
I'm looking for advice on the most reliable & efficient way to track tomcat throughput...preferably via JMX. I've written a simple app that uses JMX to grab the "completedTaskCount" attribute on the Executor. My assumption was that the Executor's completedTaskCount would be a fairly accurate way

AW: Find out reason HEap Space Error

2011-05-17 Thread Alexander Diedler
Hello, Thanks for the Tool tipp.. Here a memory dump from the time of heap dump: # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 973952 bytes for Chunk::new # Possible reasons: # The system is out of physical

Re: Find out reason HEap Space Error

2011-05-17 Thread Mikolaj Rydzewski
On Tue, 17 May 2011 09:12:55 +0200, Alexander Diedler wrote: java.lang.OutOfMemoryError: Java heap space Maybe your application is so demanding, that it simply requires more memory than you have. Maybe there's a memory leak in your application. Maybe both. There's nice tool - jvisualvm - whi

Find out reason HEap Space Error

2011-05-17 Thread Alexander Diedler
Hello, It is very tricky to find out why our server rans periodically (between 12 and 24 hours) into Java heap space errors. We have a virtual Windows 2003 Standard R2 Server 32-bit, with 4 GB physically RAM. Two Tomcats 6.0.32 (serve different webapps) 32 bit with a Apache 2.2.14 Frontend Web