> 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 w
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
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
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 c
> 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
wa
> 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.
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 that
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.
Mar
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
---
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: nu
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
Darek-
You forgot to Add http://mail-archives.apache.org/mod_mbox/tomcat-users/200101.mbox/[EMAIL
PROTECTED]
Martin --
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipients named above. If you are not the inte
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
QueryStrin
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 t
-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. B
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?
-
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 mechani
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"
Sent: Sunday, October 29, 2006 10:05 PM
Subject: Re: problem with getcontext and context.xml
mast wr
> 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
mast wrote:
> if i delete the context.xml file it seem to work is there anything wrong
> in :
>
> WEB-INF/web.xml
Yes. It should be:
WEB-INF/web.xml
Mark
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe,
if i delete the context.xml file it seem to work is there anything wrong in
:
WEB-INF/web.xml
?
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
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 org.
> 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 (s
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"
Sent: Sunday, October 29, 2006 9:23 PM
Subject: RE
I mean with a jsp code you can see/write file can a user write outside the
webapps defined in the server.xml? i ask this because i have already a
server with customer that with a simple jsp code write file into the conf or
bin directory (and the user was under a webapps)
How would that "simpl
> 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 mu
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"
Sent: Sunday, October 29, 2006 9:10 PM
Subject: RE: problem w
> 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 co
> From: mast [mailto:[EMAIL PROTECTED]
> Subject: Re: problem with getcontext and context.xml
>
> redirectPort="8443" protocol="AJP/1.3" />
This would indicate you're front-ending Tomcat with something else, such
as httpd. Add a for a different port and
protocol="HTTP/1.1", then se
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)
Well there is nothing on the log.
Here is my server.xml :
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>
appBase="webapps/mydomain1">
unpackWARs="true" autoDeploy="true" />
the context.xml :
/usr/local/tomcat/weba
> 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 hap
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"
Sent: Sunday, Octobe
> 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
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
> 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 should have its ow
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 i forget it yes.
So i have create like you told two things :
> From: mast [mailto:[EMAIL PROTECTED]
> Subject: Re: problem with getcontext and context.xml
>
> appBase="/usr/local/tomcat/webapps/myaccount1"
> unpackWARs="true" autoDeploy="true">
>
>
> appBase="/usr/local/tomcat/webapps/myaccount2"
> unpackWARs="true" autoDeploy="true">
>
>
But si
Well i am not sure to understand actually with the context in the
server.xml file if i want multiple vhost i only need to do somethink like
this :
But with the new tomcat server setting you told me i don t need to have
appBase="/usr/local/tomcat/webapps/myaccount2" to a specificated a
> 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 myaccoun
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 per
Yes but i have multiple vhost for different webapps.
I have try to put 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 /usr/local/tomcat/webapps/myaccount for
exe
> 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 do
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 us
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?
> T
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
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
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
> wo
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 (includi
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
element is not in server.xml; w
49 matches
Mail list logo