Re: Simple DownloadFile sample

2009-06-12 Thread Bap
1) ftp enter username/password chdir get 2) scp @: . enter password 3) wget ... 101) ... Quoting siom...@portosdobrasil.gov.br: Hello all, Does anyone know a link to a simple sample for downloading files? I found some but very confusing. The code is welcome too. Thanks Siomara

Comet error state always happen--why?

2009-06-12 Thread stang
Hi there, I'm trying to test out Tomcat's comet support by building a test application to exploit this feature. What I am doing is to let the connection continue to stay open by not calling event.close() on neither a BEGIN/READ event. Despite setting the event.setTimeout(-1) on BEGIN event, eve

Re: Language Problem

2009-06-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dharani, On 6/12/2009 2:39 AM, Dharani wrote: > We have developed an application and it supports multi languages. We > uploaded the translated files and we could see the pages translated into > particular language nicely. Under what circumstances? A

Re: chunked encoding

2009-06-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 6/12/2009 1:47 PM, Anthony J. Biacco wrote: > Well, they used to be static JS files, then we decide we wanted more > flexibility in the content that went into them, so we stuck them in a > database and decided to generate them as needed.

RE: Upgrade to Tomcat 6 on Ubuntu

2009-06-12 Thread Mukerjee, Neiloy (Neil)
Yes, I downloaded from the site, and the installations are in different directories. Now it is just a matter of making sure that everything that references the old version is changed to reference the new version. Thank you! -Original Message- From: Caldarale, Charles R [mailto:chuck.cal

Re: Upgrade to Tomcat 6 on Ubuntu

2009-06-12 Thread André Warnier
Mukerjee, Neiloy (Neil) wrote: I am running Ubuntu 8.04 and already have Tomcat 5.5 installed, but I am told that in order to properly use another program (Solr 1.3), it would be best for me to upgrade to Tomcat 6. However, I have tried going through the regular install process of Tomcat 6, an

Re: Simple DownloadFile sample

2009-06-12 Thread David kerber
siom...@portosdobrasil.gov.br wrote: Hello all, Does anyone know a link to a simple sample for downloading files? I found some but very confusing. The code is welcome too. Thanks Siomara Do you mean having your tomcat server d/l files from another server, or somebody downloading from you

Re: Simple DownloadFile sample

2009-06-12 Thread André Warnier
siom...@portosdobrasil.gov.br wrote: Hello all, Does anyone know a link to a simple sample for downloading files? I found some but very confusing. The code is welcome too. I suppose you mean with a Tomcat involved somewhere ? If yes, here is a simple example, without any code at all : - fin

Simple DownloadFile sample

2009-06-12 Thread siomara
Hello all, Does anyone know a link to a simple sample for downloading files? I found some but very confusing. The code is welcome too. Thanks Siomara

RE: Upgrade to Tomcat 6 on Ubuntu

2009-06-12 Thread Caldarale, Charles R
> From: Mukerjee, Neiloy (Neil) [mailto:neil.muker...@alcatel-lucent.com] > Subject: Upgrade to Tomcat 6 on Ubuntu > > However, I have tried going through the regular install process of > Tomcat 6, and it doesn't seem to overwrite Tomcat 5.5 If you're using a proper Tomcat download from tomcat.ap

Upgrade to Tomcat 6 on Ubuntu

2009-06-12 Thread Mukerjee, Neiloy (Neil)
I am running Ubuntu 8.04 and already have Tomcat 5.5 installed, but I am told that in order to properly use another program (Solr 1.3), it would be best for me to upgrade to Tomcat 6. However, I have tried going through the regular install process of Tomcat 6, and it doesn't seem to overwrite To

RE: bootstrap.jar hangs on startup/shutdown/restart.

2009-06-12 Thread Caldarale, Charles R
> From: Brad Heller [mailto:brad.hel...@gmail.com] > Subject: Re: bootstrap.jar hangs on startup/shutdown/restart. > > With regard to logs, it doesn't appear that I have a tomcat.log! Look for anything in Tomcat's logs directory. > Jun 12, 2009 10:54:27 AM org.apache.catalina.core.AprLifecycleLi

RE: Tomcat restart and jar

2009-06-12 Thread Caldarale, Charles R
> From: Nowhere [mailto:spina.r...@gmail.com] > Subject: RE: Tomcat restart and jar > > Sorry for my translation if you missed something in > my previous post. No, I was just referring to your opening comment: "I have a very stuoid question, but I'm bored by it..." > Caused by: org.springframewo

Re: bootstrap.jar hangs on startup/shutdown/restart.

2009-06-12 Thread Brad Heller
Thanks guys for quick reply! Martin, axis happiness looks OK -- complains about missing xmlsec.jar but I would doubt that would cause this issue? With regard to logs, it doesn't appear that I have a tomcat.log! How odd. There is a catalina.log. Everyhting looks OK there save the last two lines:

RE: bootstrap.jar hangs on startup/shutdown/restart.

2009-06-12 Thread Caldarale, Charles R
> From: Brad Heller [mailto:brad.hel...@gmail.com] > Subject: bootstrap.jar hangs on startup/shutdown/restart. > > I was using Tomcat 6.0 but I've moved to Tomcat 5.5 as I was > hoping my issue would be resolved be migrating. No, you're just more likely to introduce other problems. Stay on 6.0.

RE: bootstrap.jar hangs on startup/shutdown/restart.

2009-06-12 Thread Martin Gainty
dont see anything obvious here.. what is displayed when you visit the Axis Happiness Page? http://localhost:8080/axis2/axis2-web/HappyAxis.jsp ? anything in the %CATALINA_HOME%/logs/tomcat.log here is mine: INFO main org.apache.catalina.core.AprLifecycleListener - The Apache Tomcat Native libr

bootstrap.jar hangs on startup/shutdown/restart.

2009-06-12 Thread Brad Heller
Hey all, I've recently started working with Tomcat for work. I was using Tomcat 6.0 but I've moved to Tomcat 5.5 as I was hoping my issue would be resolved be migrating. The issue is that, in my ANT script, I'm trying to stop Tomcat, do some stuff (i.e. publish a webapp), start Tomcat, and do some

Re: swallowOutput="true" not working. Why?

2009-06-12 Thread Konstantin Kolinko
2009/6/9 Christopher Piggott : > (...) > This was not working, so I searched documentation and learned about: > > ... > > However, this swallowOutput doesn't seem to work.  I tried putting > this in several places: > (...) > If you are still puzzled with swallowOutput mistery, here is my experie

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
> > Maybe your idea of making this be a HTTP 1.0 request, or say set > whatever internal flag Tomcat would itself set if it had been an HTTP > 1.0 request. Perhaps a servlet filter is soon enough, or if not, a > . > Provided that would do the trick, it is also something you could do at > the Apa

Re: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread Mladen Turk
omairkhawaja wrote: 1) The Tomcat Manager that ships with 5.5.20 will continue to give the "The system can not find the file specified. Unable to open the Event Mutex" error message even when I connect with the /console option Use the tomcat5.exe and tomcat5w.exe from the more recent version

Re: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread André Warnier
Caldarale, Charles R wrote: (BTW, it's Tomcat that runs as a service, not any given webapp.) Nitpick : it's the JVM, not Tomcat. Nitpick to the nitpick : it's the exe wrapper, not the JVM. - To unsubscribe, e-mail: users-un

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
> > BTW: IIRC, the OP mentioned mod_deflate compression. It comes last in > the response handling. I'm not totally sure, how mod_deflate changes > the > headers (whether content-length is for the uncompressed or compressed > size), but I expect mod_deflate to also change content of fixed length >

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
> > > - the first-choice solution would be to have the CDN fix their > software, > > or select another CDN which can handle chunked content. > > I agree. > And you know how easy that will be :-) > > - the second-best would be : > > (presuming the OP knows at some point the real size of the dat

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
> > Rainer Jung: > > > On 12.06.2009 10:43, Markus Schönhaber wrote: > > >> No, it's not strange at all. If the length of the response body is > not > >> known when the response headers are sent, you obviously can't add a > >> Content-Length header. That has nothing to do with the HTTP version >

Re: What to upgrade?

2009-06-12 Thread Chetan Chheda
32 bit application running on a 64bit HP-UX Itanium platform. Found a document to get around the heap size limitation. Solution was to use another java executable(java_q4p) for the expanded heap.   From: "Caldarale, Charles R" To: Tomcat Users List Sent: Fri

RE: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread omairkhawaja
The service was initially created with that option (using tomcat5.exe) ... specified by the --JvmOptions=-Xrs;otherJVMoptions flag . Unfortunately, someone else set that option, so I know as much as you do about why it was set (i.e. nothing) Omair Caldarale, Charles R wrote: > >> From: omairkh

Re: What to upgrade?

2009-06-12 Thread David kerber
Chetan Chheda wrote: Thanks for all your replies. The plan I proposed is a step-by-step approach to upgrade to JDK 1.5, tomcat 5.5 , JDK 1.6 with application testing after each step. So I changed the tomcat 5.0.25 startup script to use JDK 1.5.0.03 and I am running into the following error

RE: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread Caldarale, Charles R
> From: omairkhawaja [mailto:omairkhaw...@gmail.com] > Subject: Re: Thread dump on Tomcat 5.5.20 running as a service > I was initially running tomcat with the -Xrs JVM flag I'm curious; how did you set that for the service? > - what are the implications of removing the -Xrs flag.. Things start

Re: canonical hostnames for tomcat server

2009-06-12 Thread d tbsky
hi : Thanks a lot for all the information. in fact my http://portal.example.com is a liferay portal server. i need a canonical hostname because liferay need it to function 100% correctly. Finally i choose to use tomcat+urlrewritefilter, and i found that liferay+tomcat bundle already include

RE: What to upgrade?

2009-06-12 Thread Caldarale, Charles R
> From: Chetan Chheda [mailto:chetan_chh...@yahoo.com] > Subject: Re: What to upgrade? > > I reduced it to -Xmx1024m -Xms1024m -Xmn400m and was able to startup. > Is there a heap size limitation? What platform are you running on? Is this a 32- or 64-bit JVM? In a 32-bit environment, somewhere a

Re: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread omairkhawaja
Just to add: I'm using JDK 1.5 Thank you for your very prompt replies... There's one additional question that I had ... I was initially running tomcat with the -Xrs JVM flag... but if I try to take a thread dump, the Tomcat process crashes and I get nothing... if I remove the VM flag, I can take

Re: What to upgrade?

2009-06-12 Thread Chetan Chheda
Thanks for all your replies. The plan I proposed is a step-by-step approach to upgrade to JDK 1.5, tomcat 5.5 , JDK 1.6 with application testing after each step. So I changed the tomcat 5.0.25 startup script to use JDK 1.5.0.03 and I am running into the following error Cannot exec large heap e

RE: Same (virtual) machines, very different behaviour

2009-06-12 Thread Caldarale, Charles R
> From: Lucio Capuani [mailto:louis.capu...@gmail.com] > Subject: Re: Same (virtual) machines, very different behaviour > > The interfaces are OK. The behavior indicates that may not be the case. > Moreover, Tomcat should only bind itself on > 127.0.0.1, so no other interface is involved. Let's

Re: Same (virtual) machines, very different behaviour

2009-06-12 Thread Mark Thomas
Lucio Capuani wrote: > Thank you for the tip. > The interfaces are OK. Moreover, Tomcat should only bind itself on > 127.0.0.1, so no other interface is involved. Anyhow, I can telnet > tomcat on localhost at it's port 8009 after the socket is finally > opened. I can also ping localhost > > I even

Re: Same (virtual) machines, very different behaviour

2009-06-12 Thread Lucio Capuani
Thank you for the tip. The interfaces are OK. Moreover, Tomcat should only bind itself on 127.0.0.1, so no other interface is involved. Anyhow, I can telnet tomcat on localhost at it's port 8009 after the socket is finally opened. I can also ping localhost I even tcpdumped all the traffic occuring

Re: Language Problem

2009-06-12 Thread Dharani
Hi André, I'm using Tomcat 5.5 on linux(Debian) platform. Could you please tell me because of what reason this can be happen? On Fri, Jun 12, 2009 at 12:22 AM, André Warnier wrote: > Dharani wrote: > >> We have developed an application and it supports multi languages. We >> uploaded the transl

Re: canonical hostnames for tomcat server

2009-06-12 Thread André Warnier
Caldarale, Charles R wrote: From: Mark Shifman [mailto:mark.shif...@yale.edu] Subject: Re: canonical hostnames for tomcat server host name aliases may help http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Host%20Name%20Aliases I don't think aliases will do it. Look at virtual hosting

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-12 Thread Filip Hanik - Dev Lists
Rainer Jung wrote: On 12.06.2009 02:57, Filip Hanik - Dev Lists wrote: Rainer Jung wrote: On 10.06.2009 22:57, Filip Hanik - Dev Lists wrote: this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101.

RE: SMTP configurations

2009-06-12 Thread Caldarale, Charles R
> From: Dharani [mailto:vishgnanik...@gmail.com] > Subject: SMTP configurations > > Can anyone tell me what are the configurations I must do in my Tomcat > server in order to send mails using my web app? You could always try reading the doc: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-

Re: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread Rainer Jung
On 12.06.2009 15:00, Mark Thomas wrote: > omairkhawaja wrote: >> My question is though: is it guaranteed that the version of procrun that >> ships with tomcat6 is completely compatible with tomcat 5.5.20? > > Yes. The same binaries work with all Tomcat versions. We just change the > file name to r

RE: canonical hostnames for tomcat server

2009-06-12 Thread Caldarale, Charles R
> From: Mark Shifman [mailto:mark.shif...@yale.edu] > Subject: Re: canonical hostnames for tomcat server > > host name aliases may help > http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Host%20Name%20Aliases I don't think aliases will do it. Look at virtual hosting in Tomcat: http://tom

Re: chunked encoding

2009-06-12 Thread Markus Schönhaber
André Warnier: > In summary thus : > > - making the request be HTTP 1.0, no matter how it's done, is not going > to magically make Tomcat send the response in one chunk nor add a > Content-Length header. Exactly. > (it may just /prevent/ it from adding a "Content-transfer-encoding: > chunked

Re: Same (virtual) machines, very different behaviour

2009-06-12 Thread André Warnier
Lucio Capuani wrote: Hello everybody and thanks for caring. I have an instance of Tomcat running into two Xen virtual machines. I have cloned one of the two virtual machines and I changed the IP address of the original. Not saying that this is necessarily the cause, but are you 100% sure

Re: Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread Mark Thomas
omairkhawaja wrote: > My question is though: is it guaranteed that the version of procrun that > ships with tomcat6 is completely compatible with tomcat 5.5.20? Yes. The same binaries work with all Tomcat versions. We just change the file name to reflect the service name. Mark

Same (virtual) machines, very different behaviour

2009-06-12 Thread Lucio Capuani
Hello everybody and thanks for caring. I have an instance of Tomcat running into two Xen virtual machines. I have cloned one of the two virtual machines and I changed the IP address of the original. Now, the clone (the copy) still works fine. The original no more. Tomcat still start and works,

Re: Godaddy exceptions, logs

2009-06-12 Thread Mark Thomas
Dick Eastlake wrote: > My JSP code at Godaddy is throwing an exception, how do I find the logs so I > can see what the problem is? No idea. Try directing your question to Godaddy support. Mark - To unsubscribe, e-mail: users-

Re: chunked encoding

2009-06-12 Thread André Warnier
Markus Schönhaber wrote: Rainer Jung: On 12.06.2009 10:43, Markus Schönhaber wrote: No, it's not strange at all. If the length of the response body is not known when the response headers are sent, you obviously can't add a Content-Length header. That has nothing to do with the HTTP version u

Thread dump on Tomcat 5.5.20 running as a service

2009-06-12 Thread omairkhawaja
I am trying to take a thread dump of a Tomcat 5.5.20 instance running on a machine to which I connect using remote desktop... Based on a, http://www.nabble.com/Tomcat-thread-dump:-unable-to-open-the-event-mutex-td10803435.html previous post on Nabble, I'm connecting via remote desktop using the

Godaddy exceptions, logs

2009-06-12 Thread Dick Eastlake
My JSP code at Godaddy is throwing an exception, how do I find the logs so I can see what the problem is?

Re: canonical hostnames for tomcat server

2009-06-12 Thread Mark Shifman
host name aliases may help http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Host%20Name%20Aliases d tbsky wrote: > Hi: > i have a tomcat server, which can be access by many ways, like > >http://portal.example.com >http://portal >http://192.168.1.1 > >i want to user to

security manager

2009-06-12 Thread Bart Vandewoestyne
Hello all, First of all, my setup: * Tomcat 5.5.26 on a Debian GNU/Linux 5.0 system. * java version "1.6.0_12" I have deployed a webapp under /usr/share/tomcat5.5/webapps/servlet.war I have configured my Tomcat not to unpack .war files. Within my servlet.war file, I have a WEB-INF/lib/mysql

Re: chunked encoding

2009-06-12 Thread Markus Schönhaber
Rainer Jung: > On 12.06.2009 10:43, Markus Schönhaber wrote: >> No, it's not strange at all. If the length of the response body is not >> known when the response headers are sent, you obviously can't add a >> Content-Length header. That has nothing to do with the HTTP version used. > > ... true,

Re: canonical hostnames for tomcat server

2009-06-12 Thread André Warnier
d tbsky wrote: Hi: i have a tomcat server, which can be access by many ways, like http://portal.example.com http://portal http://192.168.1.1 i want to user to use only "http://portal.example.com";. other ways will be redirect to the canonical hostname. i found i can do this

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-12 Thread Rainer Jung
On 12.06.2009 02:57, Filip Hanik - Dev Lists wrote: > Rainer Jung wrote: >> On 10.06.2009 22:57, Filip Hanik - Dev Lists wrote: >> this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101. >>> why don't y

Re: chunked encoding

2009-06-12 Thread Rainer Jung
On 12.06.2009 10:43, Markus Schönhaber wrote: > Anthony J. Biacco: > >> Hence the idea about downgrading to http 1.0. But that doesn't get me >> the content length header still (which in itself is strange), > > No, it's not strange at all. If the length of the response body is not > known when th

canonical hostnames for tomcat server

2009-06-12 Thread d tbsky
Hi: i have a tomcat server, which can be access by many ways, like http://portal.example.com http://portal http://192.168.1.1 i want to user to use only "http://portal.example.com";. other ways will be redirect to the canonical hostname. i found i can do this with "apache + m

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-12 Thread Lyallex
2009/6/11 Caldarale, Charles R : >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Loading dynamically created content: An old chestnut but >> stilla problem. >> >> I suspect that Hassan and Chuck are nto using anti-resource-locking >> while Lyallex is. > > Correct;

Re: Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-12 Thread Lyallex
2009/6/11 Mark Thomas : > Lyallex wrote: >> 2009/6/11 Caldarale, Charles R : >> >>> Writing to the webapp's deployment location is a bad idea - you again have >>> no guarantee that it's allowed, and you're at the whims of the container >>> and execution environment controlling the actual location

Re: chunked encoding

2009-06-12 Thread Markus Schönhaber
Anthony J. Biacco: > Hence the idea about downgrading to http 1.0. But that doesn't get me > the content length header still (which in itself is strange), No, it's not strange at all. If the length of the response body is not known when the response headers are sent, you obviously can't add a Con

Re: Disable AXIS services list?

2009-06-12 Thread Mark Thomas
John Oliver wrote: > I Googled for this, and found a reference to setting > "disableServiceList" to true, but that didn't work. Tomcat is 6.0.18 > running under W2K3 Server if that makes a difference. A question for the axis users list me thinks. Mark -

Re: Tomcat 6.0.18 access files case-insensitive

2009-06-12 Thread Mark Thomas
Caldarale, Charles R wrote: >> From: André Warnier [mailto:a...@ice-sa.com] >> Subject: Re: Tomcat 6.0.18 access files case-insensitive >> >> Since the filesystem is case-sensitive, it may well have both >> "abc.html" and "ABC.HTML" in the same directory. So which one >> would it pick to keep ? >

RE: Tomcat restart and jar

2009-06-12 Thread Nowhere
Hi Charles, thanks for suggestion. Sorry for my translation if you missed something in my previous post. I added three jars in my C:\Tomcat6\conf\Catalina\localhost\Alfresco.xml (alfresco is my webapp): WEB-INF/lib/myClasses.jar WEB-INF/lib/myClasses1.jar WEB-INF/lib/myClasses2.jar

Re: mod_jk does not recognize extension

2009-06-12 Thread Tsirkin Evgeny
Thanks I will try this Evgeny On Fri, Jun 12, 2009 at 1:25 AM, Rainer Jung wrote: > On 11.06.2009 14:26, Tsirkin Evgeny wrote: > > Hi list! > > I have mod_jk 1.2.26 configured and working fine. > > However i want to set a special reply_timeout for a special url , > > i am getting strange errors i

Re: Language Problem

2009-06-12 Thread André Warnier
Dharani wrote: We have developed an application and it supports multi languages. We uploaded the translated files and we could see the pages translated into particular language nicely. But after we restart the tomcat server there were only '???' for every word instead of the language. Aaaa

RE: SMTP configurations

2009-06-12 Thread Peter Crowther
> From: Dharani [mailto:vishgnanik...@gmail.com] > Can anyone tell me what are the configurations I must do in > my Tomcat server > in order to send mails using my web app? None, unless you're using a security manager. But you may need some configuration in your webapp, depending what package yo