Re: Changing defaultHost from localhost to a FQDN

2006-10-29 Thread Alan Burlison
On 27/10/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: The 5.0 and 5.5 docs are mild upgrades of the 4.1 versions, and some areas did not get revised as much as they should have. 5.5 especially seems to be stricter on use of unnecessary attributes when the Context element is not in

RE: CSS not being used when a Servlet is involved

2006-10-29 Thread Robbert
Caldarale, Charles R wrote: From: Robbert [mailto:[EMAIL PROTECTED] Subject: RE: CSS not being used when a Servlet is involved Hm, alright. Should all else fail, is it possible to let a Servlet handle the CSS? Some servlet must handle everything; static content (including .css

Re: Tomcat Security

2006-10-29 Thread Christopher Schultz
Maurice, Maurice Yarrow wrote: So what I would like to know how to do is how to programmatically bypass web.xml-based authorization and impose this authorization on a access-case-by-case but take advantage of applying the induced security contraint to any URL pattern desired (Chuck's

Re: mod_jk and apache problem

2006-10-29 Thread Christopher Schultz
Tom, Tom Miller wrote: The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the

Re: CSS not being used when a Servlet is involved

2006-10-29 Thread Robbert
Christopher Schultz-2 wrote: Robbert, Hm, alright. Should all else fail, is it possible to let a Servlet handle the CSS? You don't really want to do this. No, especially since it's not needed anymore. Christopher Schultz-2 wrote: I have four JSP pages (index, profile, statistics

Re: CSS not being used when a Servlet is involved

2006-10-29 Thread Christopher Schultz
Robbert, Christopher Schultz-2 wrote: You have your process turned upside down, here. Why is the process turned upside down, exactly? Or rather, is there any benefit in mapping /index to a Servlet and then forwarding to a JSP instead of going to JSP pages which invoke my Servlet? This

Fw: problem with getcontext and context.xml

2006-10-29 Thread BRUN Sébastien
Hi, i am new to tomcat and i have two problem : first one in a tomcat 5.5.9 when i use the request.getServletPath() and request.getContextPath() i get different answer than a tomcat 5.5.19 (or 20), has this function change in the new tomcat? Second question and the more important is how to

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: BRUN Sébastien [mailto:[EMAIL PROTECTED] Subject: Fw: problem with getcontext and context.xml i would like to setup a virtual host on tomcat If you only have one host to worry about, you don't need to use virtual hosts. You can also use the alias attribute if you have multiple

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Yes but i have multiple vhost for different webapps. I have try to put Host name=vhost1.mydomain.com debug=0 appBase=/usr/local/tomcat/webapps/ like you suggest but when i launch tomcat it seem that i only get the ROOT webapps, and how can the server know that vhost1.mydomain.com is for

Re[2]: Performance throttling

2006-10-29 Thread Dima Retov
Thanks Chuck. ThreadMXBean (JMX) must be used to determine CPU time used by this thread to change thread priority dynamically. Saturday, October 28, 2006, 9:56:38 PM, you wrote: From: Dima Retov [mailto:[EMAIL PROTECTED] Subject: Performance throttling Is that possible to do

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml Yes but i have multiple vhost for different webapps. how can the server know that vhost1.mydomain.com is for /usr/local/tomcat/webapps/myaccount for exemple and vhost2.mydomain.com to myaccount2 If

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml Host name=vhost1.mydomain.com debug=0 appBase=/usr/local/tomcat/webapps/myaccount1 unpackWARs=true autoDeploy=true Context path= docBase= debug=1 reloadable=true / /Host Host

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Hmm i think i understand a little so each context need to have it's own ROOT directory (it would be much simplier without it :) ) for the Host name=default.mydomain.com ... i forget it yes. So i have create like you told two things : Host name=default.mydomain.com and Host

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml Hmm i think i understand a little so each context need to have it's own ROOT directory No; perhaps you don't understand that context is synonomous with webapp, not host. Each Host should have its

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Well each one of my host have their own appBase and ROOT context in each host i haveappBase=/usr/local/tomcat/webapps1 and appBase=/usr/local/tomcat/webapps2 and i have put my website in : /usr/local/tomcat/webapps1/ROOT/myfile (and same for webapps2) anything wrong on this ? i despair to

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml Well each one of my host have their own appBase and ROOT context in each host i haveappBase=/usr/local/tomcat/webapps1 and appBase=/usr/local/tomcat/webapps2 That's good. and i have put my

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
when i say myfile i mean file like index.jsp it their i should put them no ? actually the META inf and WEB inf are immediately under the ROOT directory but that don t work - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml when i say myfile i mean file like index.jsp it their i should put them no ? Yes, that's where the public .jsp files should go. but that don t work What do you mean by don't work? What happens

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Well there is nothing on the log. Here is my server.xml : Server port=8005 shutdown=SHUTDOWN !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase

permission on server.xml

2006-10-29 Thread mast
Hi, one question i think exemple we run java with user and group www server.xml need to be readable for tomcat to work, but each user that have access to a tomcat account can also read it with a simple jsp code how can we prevent that ? (or tomcat-user.xml)

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml Connector port=9570 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / This would indicate you're front-ending Tomcat with something else, such as httpd. Add a Connector for a

RE: permission on server.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: permission on server.xml Hi, one question i think exemple we run java with user and group www server.xml need to be readable for tomcat to work, but each user that have access to a tomcat account can also read it with a simple jsp code how

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Yes that s the case i use apache , i have try with http/1.1 and another port but i get exactly the same problem for the two hosts - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 29, 2006 9:10 PM

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml i have try with http/1.1 and another port but i get exactly the same problem for the two hosts Do you have DNS entries for both host names? What IP address does each evaluate to? (Hint: they must

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Well i have DNS entrie for both but i have only 1 IP so it s the same entries , both vhost have the same IP (that s why their are vhost :) ) - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 29, 2006

RE: permission on server.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: permission on server.xml I mean with a jsp code you can see/write file can a user write outside the webapps defined in the server.xml? Certainly code in a .jsp or servlet can read or write anywhere that Tomcat's userid is allowed to

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
there is one error i hadn't notice : SEVERE: Parse Fatal Error at line 2 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. Oct 29, 2006 9:34:17 PM

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
if i delete the context.xml file it seem to work is there anything wrong in : Context reloadable=true / WatchedResourceWEB-INF/web.xml/WatchedResource ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,

Re: problem with getcontext and context.xml

2006-10-29 Thread Mark Thomas
mast wrote: if i delete the context.xml file it seem to work is there anything wrong in : Context reloadable=true / WatchedResourceWEB-INF/web.xml/WatchedResource Yes. It should be: Context reloadable=true WatchedResourceWEB-INF/web.xml/WatchedResource /Context Mark

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
From: mast [mailto:[EMAIL PROTECTED] Subject: Re: problem with getcontext and context.xml Well i have DNS entrie for both but i have only 1 IP so it s the same entries , both vhost have the same IP (that s why their are vhost :) ) Yes, that should work - I've just verified it with my

Re: problem with getcontext and context.xml

2006-10-29 Thread mast
Hmm yes in fact that work better with the /Context thanks for the help to both of you it works now - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 29, 2006 10:05 PM Subject: Re: problem with getcontext and

Re: Tomcat Security

2006-10-29 Thread Maurice Yarrow
Chris, Chuck (Yeah, uh, pretty much what you are saying below, Chris) Yes, I looked at the how-to for realm-based authentication and also several of the org.apache.catalina.realm.*, and in particular at org.apache.cataline.real.JDBCRealm api's. The realm authentication and authorization

getContextPath

2006-10-29 Thread mast
i return with my first problem :=20 in a tomcat 5.5.9 when i use the request.getServletPath() and=20 request.getContextPath() i get different answer than a tomcat 5.5.19 (or 20), has this function=20 change in the new tomcat? -

RE: mod_jk and apache problem

2006-10-29 Thread Darek Czarkowski
-Original Message- From: Tom Miller [mailto:[EMAIL PROTECTED] Sent: Saturday, October 28, 2006 3:49 PM To: Tomcat Users List Subject: mod_jk and apache problem The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2.

Re: getContextPath

2006-10-29 Thread Mark Thomas
mast wrote: i return with my first problem :=20 in a tomcat 5.5.9 when i use the request.getServletPath() and=20 request.getContextPath() i get different answer than a tomcat 5.5.19 (or 20), has this function=20 change in the new tomcat? Examples please. I suspect it is as a result of the

Re: getContextPath

2006-10-29 Thread mast
Examples please. I suspect it is as a result of the configuration changes you have been making. Mark with two server.xml identical with a test.jsp on a directory test on 5.5.9 TranslatedPath: null ContextPath: ServletPath: /test/test.jsp PathInfo: null RequestURI: /test/test.jsp

Re: mod_jk and apache problem

2006-10-29 Thread Martin Gainty
Darek- You forgot to Add VirtualHost documentRoot=PointToPhysicalLocationOfFile then JkMount /*.jsp ajp13 in worker.properties file follow these instructions in detail http://mail-archives.apache.org/mod_mbox/tomcat-users/200101.mbox/[EMAIL PROTECTED] Martin -- This e-mail communication and

Re: permission on server.xml

2006-10-29 Thread Eric Haszlakiewicz
On Sun, Oct 29, 2006 at 02:33:31PM -0600, Caldarale, Charles R wrote: I mean with a jsp code you can see/write file can a user write outside the webapps defined in the server.xml? Certainly code in a .jsp or servlet can read or write anywhere that Tomcat's userid is allowed to (subject

Re: getContextPath

2006-10-29 Thread Mark Thomas
mast wrote: with two server.xml identical with a test.jsp on a directory test on 5.5.9 TranslatedPath: null ContextPath: ServletPath: /test/test.jsp PathInfo: null RequestURI: /test/test.jsp QueryString: null on 5.5.20 ContextPath: /test ServletPath: /test.jsp PathInfo: null

Re: getContextPath

2006-10-29 Thread mast
There was a change at some point that resulted in any directory under the webapps directory being deployed as an application. You would see this behaviour if you had configured a host appBase to be the same as a context docBase - a configuration that is invalid. Mark

Re: getContextPath

2006-10-29 Thread Mark Thomas
mast wrote: Hmm i understand but this configuration was invalid in 5.5.9 too so they did some change no ? This configuration has always been invalid but if you use it then you will see different behaviour as a side-effect of adding the deploy any directory in appBase feature which is new. Mark

Re: mod_jk and apache problem

2006-10-29 Thread Tom Miller
Chris, Thanks much fo respond to my issues. My problem occured when I tried to access Tomcat using more than two context. The traffic for port 80 will forward to Tomcat fine if I use only the ROOT context. In another word, it will only worked with ROOT and not with any other new context

RE: permission on server.xml

2006-10-29 Thread Caldarale, Charles R
From: Eric Haszlakiewicz [mailto:[EMAIL PROTECTED] Subject: Re: permission on server.xml Charles, you're missing his point. Wouldn't be the first time. His user is not a website user, it's a _tomcat_ user. I.e. someone that is allowed to deploy an application on the app server. You

RE: Tomcat Security

2006-10-29 Thread Caldarale, Charles R
From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Security BUT: the finest granularity for what can be accessed in this mechanism is by servlet, not by the path info (getPathInfo()) of the URI. Not true - security constraints apply to paths, not servlets. If you want to

George Azzopardi is out of the office.

2006-10-29 Thread George Azzopardi
I will be out of the office starting 30-10-2006 and will not return until 06-11-2006. I will respond to your message when I return. *** Internet Email Notice *** The information contained in this message or any of its attachments may be privileged and

JDK

2006-10-29 Thread Jim Weir
I recently upgraded to jdk1.5.0_09, now when I start tomcat I get this in the error log and can't run my webapps, java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

RE: JDK

2006-10-29 Thread Caldarale, Charles R
From: Jim Weir [mailto:[EMAIL PROTECTED] Subject: JDK I recently upgraded to jdk1.5.0_09, now when I start tomcat I get this in the error log and can't run my webapps, You don't say what version of Tomcat you're using, but if it's 5.5.x, you must remove the 1.4 Compatibility Package when