excluding some path from tomcat

2010-08-12 Thread Angelo Chen
Hi, I use Apache web server 2.2 in front of tomcat, it works well with Apache's default proxy module, however, I can't exclude some path from it: ProxyPass / http://localhost:8080/ ProxyPass /static ! ProxyPassReverse / http://localhost:8080/ ProxyPreserveHost on example.com/static still

excluding some path from tomcat

2010-08-12 Thread Angelo Chen
Hi, I use Apache web server 2.2 in front of tomcat, it works well with Apache's default proxy module, however, I can't exclude some path from it: ProxyPass / http://localhost:8080/ ProxyPass /static ! ProxyPassReverse / http://localhost:8080/ ProxyPreserveHost on example.com/static still

Re: 64 bit version for linux

2010-08-10 Thread Angelo Chen
in the 64bit mode JVM? Thanks Tobias Crefeld-2 wrote: Am Mon, 9 Aug 2010 04:52:55 -0700 (PDT) schrieb Angelo Chen angelochen...@yahoo.com.hk: the standard tomcat(apache-tomcat-6.0.20.tar.gz) is running in a 64 bit version of Centos. so can my app use memory bigger than 4G? I Which

64 bit version for linux

2010-08-09 Thread Angelo Chen
Hi, in this link: http://tomcat.apache.org/download-60.cgi#6.0.29 it has 32 and 64 bits version of tomcat for Windows. but for Linux, there is only one version, why? Thanks, Angelo -- View this message in context: http://old.nabble.com/64-bit-version-for-linux-tp29386189p29386189.html Sent

Re: 64 bit version for linux

2010-08-09 Thread Angelo Chen
Thanks for the quick reply, I just downloaded 6.0.29, and it works in a Centos 5.5 64 bit, but is the tomcat 64 bit version? Mladen Turk-3 wrote: On 08/09/2010 11:40 AM, Angelo Chen wrote: Hi, in this link: http://tomcat.apache.org/download-60.cgi#6.0.29 it has 32 and 64 bits version

Re: 64 bit version for linux

2010-08-09 Thread Angelo Chen
the standard tomcat(apache-tomcat-6.0.20.tar.gz) is running in a 64 bit version of Centos. so can my app use memory bigger than 4G? I believe the 2G is the limit for 32 bit version of Linux. awarnier wrote: Angelo Chen wrote: Thanks for the quick reply, I just downloaded 6.0.29

Re: 64 bit version for linux

2010-08-09 Thread Angelo Chen
this is the version i use: java version 1.6.0_21 Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) Tobias Crefeld-2 wrote: Am Mon, 9 Aug 2010 04:52:55 -0700 (PDT) schrieb Angelo Chen angelochen...@yahoo.com.hk

Secured photo rendering

2010-03-08 Thread Angelo Chen
Hi, As I notice, the photo rendering usually uses file system/Apache to speed up displaying, a url point at a photo URL, the photo is still available even when the page is finished. Is there a way to show the photo only thru the page? somehow secure the photo? Thanks, Angelo -- View this

host alias in tomcat 6

2009-10-09 Thread Angelo Chen
with following config, I can reach: www.example.com:8080 but not http://example.com:8080 if I make the host name 'example.com' and alias 'www.example.com', then I can reach http://example.com but not www.example.com Am I missing something here? it is a tomcat 6 Host name=www.example.com

Re: host alias in tomcat 6

2009-10-09 Thread Angelo Chen
Thanks, you are right, it works now. Hassan Schroeder-2 wrote: On Fri, Oct 9, 2009 at 9:15 AM, Angelo Chen angelochen...@yahoo.com.hk wrote: Am I missing something here? Host name=www.example.com    appBase=apps                      unpackWARs=true autoDeploy=true

Apache Webserver and static conent

2009-09-29 Thread Angelo Chen
Hi, I use the mod_proxy to allow a tomcat's app running behind Apache server, now I'd like to let Apache server handle some static contents: www.example.com/information the content of information is not part of tomcat app, but a directory in the file system, what I'm doing now is a symbolic

tomcat manager info

2009-09-20 Thread Angelo Chen
Hi, I always see this in the manager's info: Request count: 311121 Error count: 520 Bytes received: 60.85 MB Bytes sent: 2090.63 MB when bytes received, does it mean uploads from the browser, or also include http request? -- View this message in context:

tomcat manager

2009-09-01 Thread Angelo Chen
Hi, in tomcat manager, it has a line: Bytes sent: 123.12MB under http-8080. if under webapps, a symbolic link was created which in turn contains a list of files like pdf, jpeg, is the rendering of those static contents included in the 'bytes sent:123.12mb' ? Thanks, Angelo -- View this

tomcat reading from manager

2009-08-20 Thread Angelo Chen
Hi, always see folllowing from tomcat manager, got some question: Free memory: 90.40 MB Total memory: 501.12 MB Max memory: 912.12 MB Q:the free memory is the one already assigned to JVM? or any extra memory in the OS? Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current thread

checking of jvm params in a running tomcat

2009-08-15 Thread Angelo Chen
Hi, I use JAVA_OPTS='-Xms256m -Xmx1024m' and now I'd like to check if the running tomcat really picking up this, how to check? without installing the tomcat manager? thanks. -- View this message in context:

Problem enabling manager for virtual host

2009-02-08 Thread Angelo Chen
Hi, I can access my tomcat manager with this: http://localhost/manager/html now I'd like to have manager enabled too in a virtual host, sample.dyndns.org, I put a manager.xml under: /usr/local/apache-tomcat-6.0.16/conf/Catalina/www.sample.dyndns.org but I can't start it by:

RE: Problem enabling manager for virtual host

2009-02-08 Thread Angelo Chen
Thanks, it works! Caldarale, Charles R wrote: From: Angelo Chen [mailto:angelochen...@yahoo.com.hk] Subject: Problem enabling manager for virtual host but I can't start it by: http://sample.dyndns.org/manager/ Nor should you be able to; the correct URL would be: http

logging

2009-01-12 Thread Angelo Chen
Hi, I have an app that only shows minimal logging info like [INFO], [ERROR] but lately I moved the app to a new server and I have seen a lot of logs in the catalina.out, something like: [Loaded com.mysql.jdbc.JDBC4DatabaseMetaData from

by passing virtualhost when accessing an app?

2009-01-06 Thread Angelo Chen
Hi, Say I have app deployed as www.myapp.com, for sake of debugging I'd like to access it without the virtual host approach, maybe just http://127.0.0.1:8080~www.myapp.com, possible? Thanks. -- View this message in context:

Re: by passing virtualhost when accessing an app?

2009-01-06 Thread Angelo Chen
that's what i'm doing now, i was just hoping maybe there are ways without updating the hosts files, reason is, when you ask somebody to try out your app from a certain website and told them to update the hosts file, 9 out of 10 will not do it, of course this happens only during development when

Tomcat 6 virtual hosting and log

2008-07-09 Thread Angelo Chen
Hi, I have a virutual host in a tomcat 6 server, example, myHost, now I'd like myHost to have its own logging like catalina.out, etc, not missing with other hosts in the same server, possible? thanks, Angelo -- View this message in context:

Tomcat 6 virtual hosting and subdomain

2008-07-09 Thread Angelo Chen
hi, this question might not be totally tomcat related, sorry for that. I'd like to let a web application pointing at something like a subdomain or alias, like this: www.test.example.com any tips/directions on how to achieve this ? thanks. Angelo -- View this message in context:

tomcat 6 : why I can't access my site with www.?

2008-07-08 Thread Angelo Chen
Hi, I have a tomcat 6 running, with following host defined in the server.xml, I can access my app with : http://abc.dyndns.org but not: http://www.abc.dyndns.org the above will always bring out the default apache page, any idea? Thanks. Angelo Host name=abc.dyndns.org

RE: tomcat 6 and docBase problem

2008-07-07 Thread Angelo Chen
there, forgive my ignorance, what's the use of Document base really? Thanks, Angelo Caldarale, Charles R wrote: From: Angelo Chen [mailto:[EMAIL PROTECTED] Subject: tomcat 6 and docBase problem java.lang.IllegalArgumentException: Document base /usr/local/apache-tomcat-6.0.16/webapps/abc does

RE: tomcat 6 and docBase problem

2008-07-07 Thread Angelo Chen
: Document base /usr/local/apache-tomcat-6.0.16/webapp/abc does not exist or is not a readable directory looks like not the allowLinking problem as program runs despite that error, any idea? Thanks Caldarale, Charles R wrote: From: Angelo Chen [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 6

tomcat 6 and docBase problem

2008-07-06 Thread Angelo Chen
Hi, I try to use the virtual hosting of Tomcat 6, it's working, but always has this Document base complain in the log, any idea how to fix this? here is server.xml Host name=abc.com appBase=abcapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false

stop apache web server for tomcat 6

2008-04-10 Thread Angelo Chen
Hi, I have a ubuntu server which has apache web server 2 pre - configured, it is port 80, now I install tomcat 6 and I'd like to use port 80 as well, how can i stop apache2 in this machine? i don't need apache 2. thanks. -- View this message in context:

tomcat 6: obtaining webapps directory

2008-03-12 Thread Angelo Chen
Hi, Is there a way to obtain the webapps directory during run time? thanks. A.C. -- View this message in context: http://www.nabble.com/tomcat-6%3A-obtaining-webapps-directory-tp16020060p16020060.html Sent from the Tomcat - User mailing list archive at Nabble.com.

multiple domains

2008-03-05 Thread Angelo Chen
Hi guys, I have this server that has two domains pointing at it, the tomcat server 5 is running there, I have two wep applications for the two domains, so i like: www.domain1.com will call the app1 www.domain2.com will call the app2 how to configure tomcat to work like this? thanks Angelo --

Re: Tomcat native lib on OS X

2007-11-14 Thread Angelo Chen
try chmod 777 on those .sh files. Lorenzo Schoovaerts wrote: Hi guys, Isn't there anyone who got the native stuff working on a Mac? I followed all the steps. I compiled the source without any erros. The resulting libraries were copied to every place I can possibly imagine

Tomcat 5.25 on Leopard

2007-11-14 Thread Angelo Chen
Hi, I downloaded apache-tomcat-5.5.25.zip and copied it to a directory, after setting up all the environment variables, it runs. but when I try to open it: http://localhost:8080, it does not exist, changing port number some something else does not work neither, any idea what's wrong here? where

Tomcat 5.23: caching of css files?

2007-10-09 Thread Angelo Chen
Hi, I have tomcat 5.23 in ubuntu 7.04, if I update the war file and access it thru domain name, the css file is not updated even i clear everything in my browser, if I use the IP to access, the new css file is in effect, does tomcat 5.23 cache those css files? anyway to clear it? Thanks. A.C. --

RE: Tomcat 5.23: caching of css files?

2007-10-09 Thread Angelo Chen
: Angelo Chen [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.23: caching of css files? I have tomcat 5.23 in ubuntu 7.04, if I update the war file and access it thru domain name, the css file is not updated even i clear everything in my browser I haven't tried it, but you may have to restart

RE: Tomcat 5.23: caching of css files?

2007-10-09 Thread Angelo Chen
Hi Peter, following your advice, i set the production server to have the same time zone as my development machine, the problem goes away! Thanks. A.C. Peter Crowther wrote: From: Angelo Chen [mailto:[EMAIL PROTECTED] 1. shut down tomcat 2. delete war and related directory 3. copy new

directory setup

2007-09-12 Thread Angelo Chen
Hi, In my linux server, there is only Tomcat running, no apache, I need to do following: 1. setup a file directory in the server, it will have image files. 2. the directory will allow my tomcat web application generated web pages to refer to those images, but it will not allow user to directly

can war file be deleted?

2007-09-07 Thread Angelo Chen
Hi, I put a war file into webapps and it got unpacked and accessible from the browser. can I delete the war file after that? I notice if I delete it, the unpacked directory will disappear in while? A.C. -- View this message in context:

Re: can war file be deleted?

2007-09-07 Thread Angelo Chen
once you delete the war file, the program will not work any more, it seems to me the war file has to be kept there, but I notice those examples, it does not war files but still working, what's the definite rule here? Mikolaj Rydzewski-2 wrote: Angelo Chen wrote: I put a war file

Tomcat 5.5 and application data directories

2007-09-05 Thread Angelo Chen
Hi, I have two kinds of data needed in my application: 1. data needed by the program like some parameters not accessible by the user. 2. temporary data generated by the program to be accessible by the user, example: some jpeg files that are generated to be referred to by IMG tags in a page.

mapping directory in Tomcat?

2007-09-05 Thread Angelo Chen
Hi, My server runs only tomcat 5.5, and my app needs to copy some jpeg files to a temporary directory so that the generated page can refer to them like: img src = http://mydomain.com/temp/J12345.jpg;, now how to map a directory in the file system to http:/mydomain.com/temp? Thanks. A.C. --

Re: mapping directory in Tomcat?

2007-09-05 Thread Angelo Chen
Hi Hassan, The servlet mapped directory sounds interesting, can you give me some more info about that? Thanks, A.C. Hassan Schroeder-2 wrote: On 9/5/07, Angelo Chen [EMAIL PROTECTED] wrote: You could use a symlink, or you could use a servlet mapped to /temp/* HTH, -- Hassan

an easier way to deploy war file?

2007-09-04 Thread Angelo Chen
Hi, I use Tomcat 5.5, I installed it in an ubuntu, I have to start it as root with startup.sh. to deplay a war file during development I have to do following: 1. ftp to my home directory 2. ssh to the host as root, shutdown.sh 3. delete the program directory under webapps 4. copy war file from

Re: an easier way to deploy war file?

2007-09-04 Thread Angelo Chen
Hi Gregor, Thanks, i tried this, it works, sometimes I can see the updated program immediately, but sometimes I got all those 404 errors, I have to wait for a few minutes before I can see the updates reflected, any idea? how to reflect changes asap? Thanks. Gregor Schneider wrote: -

Re: an easier way to deploy war file?

2007-09-04 Thread Angelo Chen
Hi, Can war file be deployed without creating a directory, I meant, tomcat can just use the WAR file without creating a directory? Thanks, A.C. samk-2 wrote: See Thread at: http://www.techienuggets.com/Detail?tx=11882 Posted on behalf of a User Even when you hot or auto-deploy the war