excluding some path from tomcat
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 goes to my tomcat app, any idea? thanks, Angelo -- View this message in context: http://old.nabble.com/excluding-some-path-from-tomcat-tp29418981p29418981.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
excluding some path from tomcat
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 goes to my tomcat app, any idea? thanks, Angelo -- View this message in context: http://old.nabble.com/excluding-some-path-from-tomcat-tp29418980p29418980.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 64 bit version for linux
Hi Tobias, I use this: JAVA_OPTS=$JAVA_OPTS -d64 -Xms512m -Xmx4096m but can not find -d64 in the command line passed to java, looks like -d64 is not needed. in the tomcat manager, it does show JVM memory as: Free memory: 325.24 MB Total memory: 490.68 MB Max memory: 3640.93 MB Am I really 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 JVM-version does your Tomcat use? IIRC there are different defaults for different versions of CentOS. Maybe yum list installed |grep ^java or yum list installed |grep ^jdk helps. I would download last JDK for Linux/x64 at http://java.sun.com/javase/downloads/index.jsp, install it and set the correct path, for example: JAVA_HOME=/usr/jdk/latest;export JAVA_HOME before starting Tomcat. Maybe defaults of JVM have changed but AFAIK you have to set some additional JAVA_OPTS-parameters to use 64bit and more RAM. We are using a scriptlet like the following on our larger machines as part of the catalina.sh or start-stop-wrapper for catalina.sh: schnipp JAVA_OPTS=$JAVA_OPTS -server JAVA_OPTS=$JAVA_OPTS -d64 # Speicherlimit nur bei Aufruf von run, debug oder start auf 3 GB oder mehr hochsetzen case $1 in start|run|debug) # Fuer 32-Bit-Betrieb die naechsten beiden Zeilen auf 3072k aendern JAVA_OPTS=$JAVA_OPTS -Xms6000m JAVA_OPTS=$JAVA_OPTS -Xmx11000m ;; stop) JAVA_OPTS=$JAVA_OPTS -Xms600m JAVA_OPTS=$JAVA_OPTS -Xmx600m ;; esac schnipp believe the 2G is the limit for 32 bit version of Linux. 3GB is a possible limit for 32bit. Regards, Tobias. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/64-bit-version-for-linux-tp29386189p29396387.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
64 bit version for linux
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 from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 64 bit version for linux
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 of tomcat for Windows. but for Linux, there is only one version, why? Windows versions are distributed with tomcat native and service wrapper pre-compiled binaries, thus we have separate 32 and 64-bit flavors. Fox *nix platforms you will need to build those by yourself (many distributions already offer those) for what ever arch you have. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/64-bit-version-for-linux-tp29386189p29386741.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 64 bit version for linux
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, and it works in a Centos 5.5 64 bit, but is the tomcat 64 bit version? Tomcat itself is java so it does not care. What matters here is : 1) is the Java JVM that you use to run Tomcat, 32 or 64-bit 2) if you use the native Tomcat libraries, then you need the appropriate versions, as Mladen explained below 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 of tomcat for Windows. but for Linux, there is only one version, why? Windows versions are distributed with tomcat native and service wrapper pre-compiled binaries, thus we have separate 32 and 64-bit flavors. Fox *nix platforms you will need to build those by yourself (many distributions already offer those) for what ever arch you have. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/64-bit-version-for-linux-tp29386189p29387066.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 64 bit version for linux
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: 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 JVM-version does your Tomcat use? IIRC there are different defaults for different versions of CentOS. Maybe yum list installed |grep ^java or yum list installed |grep ^jdk helps. I would download last JDK for Linux/x64 at http://java.sun.com/javase/downloads/index.jsp, install it and set the correct path, for example: JAVA_HOME=/usr/jdk/latest;export JAVA_HOME before starting Tomcat. Maybe defaults of JVM have changed but AFAIK you have to set some additional JAVA_OPTS-parameters to use 64bit and more RAM. We are using a scriptlet like the following on our larger machines as part of the catalina.sh or start-stop-wrapper for catalina.sh: schnipp JAVA_OPTS=$JAVA_OPTS -server JAVA_OPTS=$JAVA_OPTS -d64 # Speicherlimit nur bei Aufruf von run, debug oder start auf 3 GB oder mehr hochsetzen case $1 in start|run|debug) # Fuer 32-Bit-Betrieb die naechsten beiden Zeilen auf 3072k aendern JAVA_OPTS=$JAVA_OPTS -Xms6000m JAVA_OPTS=$JAVA_OPTS -Xmx11000m ;; stop) JAVA_OPTS=$JAVA_OPTS -Xms600m JAVA_OPTS=$JAVA_OPTS -Xmx600m ;; esac schnipp believe the 2G is the limit for 32 bit version of Linux. 3GB is a possible limit for 32bit. Regards, Tobias. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/64-bit-version-for-linux-tp29386189p29387478.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Secured photo rendering
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 message in context: http://old.nabble.com/Secured-photo-rendering-tp27829228p27829228.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
host alias in tomcat 6
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.comappBase=apps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false aliasexample.com/alias /Host -- View this message in context: http://www.nabble.com/host-alias-in-tomcat-6-tp25823898p25823898.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: host alias in tomcat 6
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 xmlValidation=false xmlNamespaceAware=false aliasexample.com/alias If this is a straight copy/paste, yes -- it's Alias. XML is case sensitive. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/host-alias-in-tomcat-6-tp25823898p25824449.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Apache Webserver and static conent
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 link is created to the webapps, is there a way just let Apache server handle it? Thanks ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ProxyPreserveHost on -- View this message in context: http://www.nabble.com/Apache-Webserver-and-static-conent-tp25658482p25658482.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat manager info
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: http://www.nabble.com/tomcat-manager-info-tp25528056p25528056.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat manager
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 message in context: http://www.nabble.com/tomcat-manager-tp25248488p25248488.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat reading from manager
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 count: 4 Current thread busy: 1 Q:what above means? Thanks, Angelo -- View this message in context: http://www.nabble.com/tomcat-reading-from-manager-tp25071849p25071849.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
checking of jvm params in a running tomcat
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: http://www.nabble.com/checking-of-jvm-params-in-a-running-tomcat-tp24990162p24990162.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problem enabling manager for virtual host
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: http://sample.dyndns.org/manager/ it has following errors, any idea what I'm missing here? thanks INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[www.sample.dyndns.org].[/manager] has not been started Feb 8, 2009 5:49:18 AM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /usr/local/apache-tomcat-6.0.16/webapps/manager/html does not exist or is not a readable directory here is my manager.xml: ?xml version=1.0 encoding=UTF-8? Context path=/manager debug=0 privileged=true docBase=/usr/local/apache-tomcat-6.0.16/webapps/manager/html /Context -- View this message in context: http://www.nabble.com/Problem-enabling-manager-for-virtual-host-tp21899197p21899197.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problem enabling manager for virtual host
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://sample.dyndns.org/manager/html There's is no servlet mapping in the manager's WEB-INF/web.xml for empty extra path info. here is my manager.xml: ?xml version=1.0 encoding=UTF-8? Context path=/manager debug=0 privileged=true docBase=/usr/local/apache-tomcat-6.0.16/webapps/manager/html /Context Take out the path attribute; it's not allowed. Remove the /html from the end of the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Problem-enabling-manager-for-virtual-host-tp21899197p21899497.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
logging
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 file:/usr/local/jakarta/apache-tomcat-5.5.25/webapps/istudio/WEB-INF/lib/mysql-connector-java-5.1.6.jar] any way to remove thos [Loaded...] logs? Thanks, Angelo -- View this message in context: http://www.nabble.com/logging-tp21430889p21430889.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
by passing virtualhost when accessing an app?
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: http://www.nabble.com/by-passing-virtualhost-when-accessing-an-app--tp21308824p21308824.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: by passing virtualhost when accessing an app?
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 the domain is not yet pointed at the app. Gregor Schneider wrote: Why don't you simple add the entry 127.0.0.1 www.myapp.com myapp.com into your /etc/hosts or *sic* in WIndows into C:\WINDOWS\system32\drivers\etc\hosts? Works for me Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/by-passing-virtualhost-when-accessing-an-app--tp21308824p21309955.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6 virtual hosting and log
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: http://www.nabble.com/Tomcat-6-virtual-hosting-and-log-tp18355000p18355000.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 virtual hosting and subdomain
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: http://www.nabble.com/Tomcat-6-virtual-hosting-and-subdomain-tp18374292p18374292.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 6 : why I can't access my site with www.?
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.orgappBase=abcapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false aliaswww.abc.dyndns.org/alias /Host -- View this message in context: http://www.nabble.com/tomcat-6-%3A-why-I-can%27t-access-my-site-with-www.--tp18335132p18335132.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 6 and docBase problem
hi, Thanks for the response, i did not set 'allowLinking', but the app still runs ok, the only problem is the error in Error starting static Resources. I updated context.xml to be like this : ?xml version=1.0 encoding=UTF-8? Context path=/ allowLinking=true /Context the error still 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 not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141) Look at the allowLinking attribute: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/tomcat-6-and-docBase-problem-tp18309063p18310835.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 6 and docBase problem
Hi, I updated context.xml in the webapp and also the ROOT.xml in the conf/Catalina/abc.com/ROOT.xml, all has this: ?xml version=1.0 encoding=UTF-8? Context allowLinking=true /Context and still getting this error: SEVERE: Error starting static Resources java.lang.IllegalArgumentException: 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 and docBase problem I updated context.xml to be like this : ?xml version=1.0 encoding=UTF-8? Context path=/ allowLinking=true /Context The above is flawed, regardless of which context.xml you're referring to. In the first place, a path attribute of / is never correct; in the second, a path attribute is not allowed unless the Context element is in server.xml, where it never should be. So what context.xml file did you update? If it's the one in Tomcat's conf directory, you can leave the allowLinking in there and it will apply to all webapps, but the path attribute must be removed. If you want allowLinking only for a specific webapp, place the Context element in META-INF/context.xml inside the webapp, but again remove the path attribute. what's the use of Document base really? It tells Tomcat where the application is deployed. In modern versions of Tomcat, it should only be used when the Context element is in conf/Catalina/[host]/[appName].xml and the directory or war file for the webapp is stored outside of the [host] appBase directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/tomcat-6-and-docBase-problem-tp18309063p18330135.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 6 and docBase problem
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 /Host then I created a link: ln -s /home/abc /usr/local/apache-tomcat-6.0.16/abcapps here is the warning from the log: java.lang.IllegalArgumentException: Document base /usr/local/apache-tomcat-6.0.16/webapps/abc does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141) -- View this message in context: http://www.nabble.com/tomcat-6-and-docBase-problem-tp18309063p18309063.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stop apache web server for tomcat 6
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: http://www.nabble.com/stop-apache-web-server-for-tomcat-6-tp16619823p16619823.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 6: obtaining webapps directory
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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple domains
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 -- View this message in context: http://www.nabble.com/multiple-domains-tp15865530p15865530.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat native lib on OS X
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 (/usr/bin, /usr/local/bin, JAVA_HOME dir, CATALINE_HOME dir, TOMCAT_HOME dir, CATALINA_HOME/common/lib, CATALINA_HOME/native etc etc) but no matter what, tomcat keeps complaining that it can't find them... That sucks. The solver of this problem will be highly rewarded with a bag of white rice ;-) PS: For thos interested, I installed Leopard and tomcat still runs. Cool huh? Thanks Regards Lorenzo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-native-lib-on-OS-X-tf4771381.html#a13747252 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.25 on Leopard
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 to check? thanks. A.C. -- View this message in context: http://www.nabble.com/Tomcat-5.25-on-Leopard-tf4805244.html#a13747256 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.23: caching of css files?
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. -- View this message in context: http://www.nabble.com/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13113192 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.23: caching of css files?
Hi Charles, this is what I did: 1. shut down tomcat 2. delete war and related directory 3. copy new war file 4. start tomcat with all above, I'm still getting pages styled with old css file, it will go away after several hours. kind of strange. A.C. Caldarale, Charles R wrote: From: 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 the webapp in order to get the updated .css file loaded; just changing the .war file may not do that. Did you try restarting the app manually? You could provide the name of the .css file as a WatchedResource to do it automatically. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13114923 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.23: caching of css files?
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 war file 4. start tomcat with all above, I'm still getting pages styled with old css file, it will go away after several hours. kind of strange. Is that a browser issue? What happens if you force a full refresh of the page in the browser, or clear the browser's cache and reload? Is it a file timestamp issue? Do you have clock skew or timezone differences between your development and production systems, such that the revised CSS looks older than it really is? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-5.23%3A-caching-of-css-files--tf4593435.html#a13117886 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
directory setup
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 access it to browse the contents. What is the secured way of achieving this? Thanks, A.C. -- View this message in context: http://www.nabble.com/directory-setup-tf4428668.html#a12633607 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can war file be deleted?
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: http://www.nabble.com/can-war-file-be-deleted--tf4401751.html#a12556949 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can war file be deleted?
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 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? So? You still can delete this file ;-) -- Mikolaj Rydzewski [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/can-war-file-be-deleted--tf4401751.html#a12558156 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 and application data directories
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. what are the usual practices to deal with above mentioned data? what are the directories should I use? Thanks. A.C. -- View this message in context: http://www.nabble.com/Tomcat-5.5-and-application-data-directories-tf4383142.html#a12495000 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mapping directory in Tomcat?
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. -- View this message in context: http://www.nabble.com/mapping-directory-in-Tomcat--tf4384478.html#a12499364 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mapping directory in Tomcat?
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 Schroeder [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mapping-directory-in-Tomcat--tf4384478.html#a12505493 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
an easier way to deploy war file?
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 my home directory to webapps/ 5. start again tomcat server. any easy way to do this? Thanks. A.C. -- View this message in context: http://www.nabble.com/an-easier-way-to-deploy-war-file--tf4376062.html#a12473298 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: an easier way to deploy war file?
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: - *never* start tomcat as root: create a user tomcat if not already existing and run tomcat with that user-id - if it's not a production-server with very high security, grant ftp-access to user tomcat - from your local pc, ftp to your ubuntu, login as user tomcat - change to directory www/webapps - put your web-app.war that's it be sure that autodeploy is set to true. having done so, there's no need to delete any directories on your ubuntu-server cheers gregor ps: before starting tomcat as user tomcat, you might have to issue chown -R tomcat:tomcat * in $CATALINA_HOME -- w -- View this message in context: http://www.nabble.com/an-easier-way-to-deploy-war-file--tf4376062.html#a12490683 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: an easier way to deploy war file?
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 file the previous version has to be replaces by extracting content from the new war file. There will be a pause with 404 errors if you hit the URL while the deployment is taking place. As far as I know there's no instant way of doing this. In Response To: -- View this message in context: http://www.nabble.com/an-easier-way-to-deploy-war-file--tf4376062.html#a12491811 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]