Tomcat for Mac
Hello All, I have Mac book and want to run tomcat on it so please provide steps or documentation it will great help. -- Thanks Brajesh Patel
Re: Tomcat for Mac
--- On Fri, 4/22/11 at 1:34 AM, Brajesh Patel brajeshpate...@gmail.com wrote: Hello All, I have Mac book and want to run tomcat on it so please provide steps or documentation it will great help. -- Thanks Brajesh Patel http://lmgtfy.com/?q=tomcat+install+mac - Bob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat for Mac
http://lmgtfy.com/?q=tomcat+in+mac http://lmgtfy.com/?q=tomcat+in+mac On Fri, Apr 22, 2011 at 2:04 PM, Brajesh Patel brajeshpate...@gmail.comwrote: Hello All, I have Mac book and want to run tomcat on it so please provide steps or documentation it will great help. -- Thanks Brajesh Patel
Re: Fix the cookie path with mod_jk
Hi All. I'm sorry that my response is late. I have examined about mod_rewrite. And I understood that mod_rewrite can't touch the response header. Thank you for the advices, Chris and Thomas. Now the issue is : who is setting the cookie path ? My application is setting the cookie path, so the most reasonable way to resolve this problem is fix my apps. But I'm going to take into consideration to update Apache and to use mod_headers, too. Because Apache 2.2.3 is old and many bugs are fixed in the latest version. Thank you for your kindness. Best regards, (2011/04/21 14:44), Thomas Freitag wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi André, On 04/20/2011 12:53 AM, André Warnier wrote: Fixing/altering outgoing (response) headers is beyond the functionality of mod_rewrite. The other parts work with mod_rewrite, but mod_headers (with its edit functionality) is an important part in this use case. Getting back to the original issue, Thomas seems to be right when he says that if the cookie path is set to /foo, the browser will return it also for URLs such as /foobar and /foofoo. From the Cookie RFCs, i gather that the cookie path is taken as a *prefix*, and /foo is a prefix of /foobar. That point was statet by Yu... Now the issue is : who is setting the cookie path ? if it is the application, and if this is a concern, then I would suggest to fix the application. The container set the path, at least for the JSESSIONID cookie. Regards, - -- Thomas Freitag -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk2vxDwACgkQGE5pHr3PKuWp4ACeKI1BxAC+OUj6Z/kAcLml5hnC vTUAn1CLYnXua/hmFwNSA/o/Hs601Sd7 =c1Yh -END PGP SIGNATURE- - 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
Re: Fix the cookie path with mod_jk
Yu Kikuchi wrote: ... Now the issue is : who is setting the cookie path ? My application is setting the cookie path, so the most reasonable way to resolve this problem is fix my apps. One more question : do you actually have a problem right now with the cookie path ? Do you really see the behaviour where a cookie path of, say, /foo, results in the browser also sending back the cookie for an access to /foobar ? And if yes, which browser is that ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Found org.apache.catalina.filters.CSRF_NONCE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mathew, On 4/15/2011 4:11 PM, Mathew Samuel wrote: It does not appear like I have access to HttpServletResponse. Damn. So if I did have access to that then I could just call response.encodeURL and everything would seriously just auto-magically work? Yes. Any other way, or Object, I can use in its place? I like your idea Chris of generating a new nonce and adding it to the cache. Trouble is that generateNonce() procedure from org.apache.catalina.filters.CsrfPreventionFilter is protected so I can't use that. Well, unless I subclass it of course. Is that what you were thinking? Make up your own. The generateNonce method just generates a random string... you ought to be able to do that in your code, somehow. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2xhvsACgkQ9CaO5/Lv0PDmDgCgl3/dsVEOKsj9ZZKONgSsG7p6 DF8An2SMEtH/SY4S2BZmOsYJGuGqn72h =MljX -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Typo: Apache Tomcat 7 Configuration Reference
There appears to be an error in a diagram in The Context Container. http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Environment_Entries env-entry env-entry-namemaxExemptions/param-name env-entry-value10/env-entry-value env-entry-typejava.lang.Integer/env-entry-type /env-entry If this is the wrong forum, please let me know. mj Michael Jay Smathers Libraries IT Suite 1250 2124 Waldo Road Gainesville, FL 32609 em...@ufl.edu 352.273.2678 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
shared library in tomcat container runtime`
Hello, According to TC docs, $CATALINA_HOME/lib can hold shared lib jars for all deployed apps, and each deployed app , such as web app, will have its own classloader. My question is: In runtime, will each app get its own separate object instances from the same shared lib jars? Even for those static members of the class, right? thanks
RE: shared library in tomcat container runtime`
From: Yongqin Xu [mailto:yong...@hotmail.com] Subject: shared library in tomcat container runtime` In runtime, will each app get its own separate object instances from the same shared lib jars? Even for those static members of the class, right? No; everything in $CATALINA_HOME/lib is handled by a single classloader, so all webapps will share the instances and classes. If you want separate instances and classes, keep the jars in each webapp's WEB-INF/lib 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: shared library in tomcat container runtime`
thanks, Churck, that means, for our own shared lib jars, we have to duplicate them for each deployed apps, even if sometimes the shared lib jars could be over 100MB. That would really cumbersome! Does TC has other way around to fix this? WLS does not work that way. From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Fri, 22 Apr 2011 12:12:23 -0500 Subject: RE: shared library in tomcat container runtime` From: Yongqin Xu [mailto:yong...@hotmail.com] Subject: shared library in tomcat container runtime` In runtime, will each app get its own separate object instances from the same shared lib jars? Even for those static members of the class, right? No; everything in $CATALINA_HOME/lib is handled by a single classloader, so all webapps will share the instances and classes. If you want separate instances and classes, keep the jars in each webapp's WEB-INF/lib 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: shared library in tomcat container runtime`
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yongqin, On 4/22/2011 1:33 PM, Yongqin Xu wrote: that means, for our own shared lib jars, we have to duplicate them for each deployed apps, even if sometimes the shared lib jars could be over 100MB. That would really cumbersome! 100MB of libraries is not going to over-fill your disk, not will it overfill the disk on your revision control server. What /will be/ cumbersome is trying to remember which libraries you need to install into your application server's shared library directory before you can get your webapp to successfully run. Sun went through great pains to make sure that webapps could be self-contained, all wrapped safe and warm in their WAR files which contained everything they needed other than container-guaranteed services. Why not follow the standard and package your dependent libraries with your webapp? Does TC has other way around to fix this? WLS does not work that way. You can use a shared class loader if you want to. Read catalina.properties to see how you can do that. I wouldn't recomment using it, though: you really limit the flexibility of your webapps when you start doing things like this. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2xxmMACgkQ9CaO5/Lv0PBkAQCgmWS5eXOLX03b+7D8JPwoJF51 fRoAmwXeu21xt8GPgQKmsA+yC+VPP9rd =tNYm -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: shared library in tomcat container runtime`
From: Yongqin Xu [mailto:yong...@hotmail.com] Subject: RE: shared library in tomcat container runtime` for our own shared lib jars, we have to duplicate them for each deployed apps, even if sometimes the shared lib jars could be over 100MB. That would really cumbersome! Not really; just have your automated script include them when it creates your .war files. (That part of the distribution process is automated, isn't it? If not, why not?) The amount of excess storage consumed is a trivial expense these days, and you will save yourself an incredible amount of grief by not having to deal with versioning synchronization when updating the libraries and webapps. - 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
tomcat 6.0.32 centos 5.5 manager access - newbie
Apache Tomcat 6.0.32.0 Centos 5.5 I am a newbie to tomcat need some step by step guidance on how access how to deploy a war in tomcat 6. In early version of 5.5.30 to access the management console deply a war I had to do the below: Modify tomcat-users.xml add the roles and user access like this ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=manager/ role rolename=tomcat/ role rolename=admin/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=both password=tomcat roles=tomcat,role1/ user username=admin password=123456 roles=admin,manager/ user username=role1 password=tomcat roles=role1/ /tomcat-users then hit http://localhost:8080 click on the tomcat administration provide access login password then go to browse locate the war file and click on deploy. Now I had downloaded tomcat 6.0.32 and I am confused after startup.sh when I hit Modified tomcat-users.xml as !-- role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=manager-gui/ user username=tomcat password=tomcat roles=tomcat/ user username=both password=tomcat roles=tomcat,role1/ user username=role1 password=tomcat roles=role1/ user username=tomcatadmin password=secret123 roles=manager,manager-gui/ -- /tomcat-users http://localhost:8080 I am not able to find the administration but only status and manager When I click on the manager with the given login from tomcat-users.xml then its not allowing me What to do or what am I missing pl? -- View this message in context: http://old.nabble.com/tomcat-6.0.32-centos-5.5-manager-access---newbie-tp31458190p31458190.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: tomcat 6.0.32 centos 5.5 manager access - newbie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sillyminds, On 4/22/2011 2:34 PM, sillyminds wrote: Now I had downloaded tomcat 6.0.32 and I am confused after startup.sh when I hit Modified tomcat-users.xml as !-- role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=manager-gui/ user username=tomcat password=tomcat roles=tomcat/ user username=both password=tomcat roles=tomcat,role1/ user username=role1 password=tomcat roles=role1/ user username=tomcatadmin password=secret123 roles=manager,manager-gui/ -- /tomcat-users Your role and user elements are commented-out. If you read the tomcat-users.xml file carefully, you'll see this comment just inside the tomcat-users section: !-- NOTE: The sample user and role entries below are wrapped in a comment and thus are ignored when reading this file. Do not forget to remove !.. .. that surrounds them. - -- - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2xy4YACgkQ9CaO5/Lv0PAjKwCfc0GLksFEBtyeVF89PF9fNsOc Aq8AnRPulee1mc+FwkXv/U/07plTU3aQ =e1v1 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: shared library in tomcat container runtime`
2011/4/22 Yongqin Xu yong...@hotmail.com: thanks, Churck, that means, for our own shared lib jars, we have to duplicate them for each deployed apps, even if sometimes the shared lib jars could be over 100MB. That would really cumbersome! Does TC has other way around to fix this? WLS does not work that way. There is VirtualWebappLoader class, see http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/loader/VirtualWebappLoader.html You aren't saying which Tomcat version you are using. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: shared library in tomcat container runtime`
Yes, I am using TC 7.0.12, this virtual webapp loader could be very useful. Date: Sat, 23 Apr 2011 00:45:04 +0400 Subject: Re: shared library in tomcat container runtime` From: knst.koli...@gmail.com To: users@tomcat.apache.org 2011/4/22 Yongqin Xu yong...@hotmail.com: thanks, Churck, that means, for our own shared lib jars, we have to duplicate them for each deployed apps, even if sometimes the shared lib jars could be over 100MB. That would really cumbersome! Does TC has other way around to fix this? WLS does not work that way. There is VirtualWebappLoader class, see http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/loader/VirtualWebappLoader.html You aren't saying which Tomcat version you are using. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: shared library in tomcat container runtime`
Currently we are trying to create community edition for our framework to run at TC 7, what we truly need is: user can deploy a app as a shared library in runtime, and other deployed apps can access it and get its own stack and would not interfere each other. This is basic features found in WLS and WAS, From all inputs so far I get, look like TC7 does not give user a choice to deploy their app as a shared library or a normal app, but a normal app, right? From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Fri, 22 Apr 2011 13:27:01 -0500 Subject: RE: shared library in tomcat container runtime` From: Yongqin Xu [mailto:yong...@hotmail.com] Subject: RE: shared library in tomcat container runtime` for our own shared lib jars, we have to duplicate them for each deployed apps, even if sometimes the shared lib jars could be over 100MB. That would really cumbersome! Not really; just have your automated script include them when it creates your .war files. (That part of the distribution process is automated, isn't it? If not, why not?) The amount of excess storage consumed is a trivial expense these days, and you will save yourself an incredible amount of grief by not having to deal with versioning synchronization when updating the libraries and webapps. - 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
RE: shared library in tomcat container runtime`
From: Yongqin Xu [mailto:yong...@hotmail.com] Subject: RE: shared library in tomcat container runtime` look like TC7 does not give user a choice to deploy their app as a shared library or a normal app, but a normal app, right? There's no such thing as a shared library in the servlet spec. - 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
Tomcat 6: Classloading: META-INF\services: Nested JARs
Hi, I am trying to resolve a problem that I assume relates to class loading. My application contains a JAR that contains a file in META-INF\services:- MyApp \-- WEB-INF \-- lib \-- AJar.jar \-- META-INF \-- services \-- Afile MyApp tries to load Afile using:- ClassLoader.getSystemResources(META-INF/services/AFile) However the file is not found. I have read the documentation relating to classloading and META-INF is not shown as a path searched. Am I doing something stupid? Should this work? Thanks, Mike
RE: Tomcat 6: Classloading: META-INF\services: Nested JARs
From: Michael Anstis [mailto:michael.ans...@gmail.com] Subject: Tomcat 6: Classloading: META-INF\services: Nested JARs ClassLoader.getSystemResources(META-INF/services/AFile) We'll assume that the missing closing quotation mark is a typo. However the file is not found. Nor should it be; let's read the API spec: getSystemResources public static EnumerationURL getSystemResources(String name) throws IOException Finds all resources of the specified name from the search path used to load classes. The resources thus found are returned as an Enumeration of URL objects. The search order is described in the documentation for getSystemResource(String). getSystemResource public static URL getSystemResource(String name) Find a resource of the specified name from the search path used to load classes. This method locates the resource through the system class loader (see getSystemClassLoader()). Note that the getSystemResources() method is *static*, so it's unrelated to the your webapp's classloader. This is further clarified by the doc for getSystemResource(), which explicitly says it uses only the system class loader (hence the use of the word system in the method names). Am I doing something stupid? Should this work? Yes. No. You need to use an instance method of your webapp's classloader; getResourceAsStream() is usually recommended, since that keeps the operation independent of the file system (even in cases where there isn't one, such as inside a JAR). Thread.currentThread().getContextClassLoader() is a way to get a reference to your current classloader, assuming you're running inside a servlet. - 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
Re: Tomcat 6: Classloading: META-INF\services: Nested JARs
Thanks for the candid reply Chuck. I feel a bit stupid now, but one learns from their mistakes. With kind regards, Mike On 22 April 2011 23:19, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: Michael Anstis [mailto:michael.ans...@gmail.com] Subject: Tomcat 6: Classloading: META-INF\services: Nested JARs ClassLoader.getSystemResources(META-INF/services/AFile) We'll assume that the missing closing quotation mark is a typo. However the file is not found. Nor should it be; let's read the API spec: getSystemResources public static EnumerationURL getSystemResources(String name) throws IOException Finds all resources of the specified name from the search path used to load classes. The resources thus found are returned as an Enumeration of URL objects. The search order is described in the documentation for getSystemResource(String). getSystemResource public static URL getSystemResource(String name) Find a resource of the specified name from the search path used to load classes. This method locates the resource through the system class loader (see getSystemClassLoader()). Note that the getSystemResources() method is *static*, so it's unrelated to the your webapp's classloader. This is further clarified by the doc for getSystemResource(), which explicitly says it uses only the system class loader (hence the use of the word system in the method names). Am I doing something stupid? Should this work? Yes. No. You need to use an instance method of your webapp's classloader; getResourceAsStream() is usually recommended, since that keeps the operation independent of the file system (even in cases where there isn't one, such as inside a JAR). Thread.currentThread().getContextClassLoader() is a way to get a reference to your current classloader, assuming you're running inside a servlet. - 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
RE: Tomcat 6: Classloading: META-INF\services: Nested JARs
From: Michael Anstis [mailto:michael.ans...@gmail.com] Subject: Re: Tomcat 6: Classloading: META-INF\services: Nested JARs Thanks for the candid reply Chuck. Sorry to have spoken that way. Couldn't resist answering the question given the way it was phrased. - 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