For those interested, I believe I got this working, although I'm not yet
certain precisely what I did differently that made the difference. Details
of the custom security profiler are here
http://www.petrovic.org/content/SecMgrTutorial/sm.html .
On 11/5/06, Mark Petrovic <[EMAIL P
You make a good point. I should have included the text.
On 11/6/06, Steffen Heil <[EMAIL PROTECTED]> wrote:
Hi
Sorry, but 5 answers of the kind "RTFM" are simply not nice.
It's just a sentence, so here it goes:
> If you use
>
> java -Djava.security.manager -Djava.security.policy==someURL
If you search for "==" here, it is revealed
http://java.sun.com/j2se/1.5.0/docs/guide/security/PolicyFiles.html
On 11/6/06, Gregor Schneider <[EMAIL PROTECTED]> wrote:
hm, took a look at the jdk-docs at
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html, and it
says
[quote]==
In the course of teaching myself how to write a security manager that
reports to which resources an application wants runtime access, I have run
into something I do not understand. I struggled with whether to start here
or on a Sun security forum or on the Tomcat dev list. Given the problem may
Aha. Thank you.
On 11/3/06, Mark Thomas <[EMAIL PROTECTED]> wrote:
Mark Petrovic wrote:
> I don't think this is a serious issue, if an issue at all. But I point
it
> out just in case.
>
> There's a "==" in the catalina.sh script,
I don't think this is a serious issue, if an issue at all. But I point it
out just in case.
There's a "==" in the catalina.sh script, in this case in Tomcat 5.5.17.
E.g.
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
where I believe one would normally expect to find a si
On 10/18/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: Mark Petrovic [mailto:[EMAIL PROTECTED]
> Subject: Re: chroot, jsvc, and catalina.out
>
> Something about the result of chroot'ing is not quite right, as when I
> modify the invocation above to not
/commons-logging-api.jar
org.apache.catalina.startup.Bootstrap
exit $?
Something about the result of chroot'ing is not quite right, as when I
modify the invocation above to not use the chroot, output to
catalina.outappears.
Mark
On 10/18/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From:
Maybe I'm missing the key language in that link.
Mark
On 10/18/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: Mark Petrovic [mailto:[EMAIL PROTECTED]
> Subject: chroot, jsvc, and catalina.out
>
> Recall normally when Tomcat starts that it writes information to
Good day.
I'm three+ hours into chroot'd jsvc odyssey that leaves me baffled. My eyes
are looking but they seem to have failed to see.
Recall normally when Tomcat starts that it writes information to
catalina.out. However, when I run Tomcat as chroot'd with jsvc I can see a
successful open("ca
Incidentally, I, too, have found the "path" and "docBase" attributes to be
tricky in Tomcat. I fiddle with them until I get the desired result (ugh),
but the language describing them has never helped me much in figuring out
why what works actually works.
On 5/29/06, M
Hi.
Context fragments can also be put in your webapp's META-INF directory, per
the 4th bullet item here
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
E.g.,
pluto:PGCRM> jar tf dist/crmrpc.war |head -3
META-INF/
META-INF/MANIFEST.MF
META-INF/context.xml
where context.xml contains
I remember long ago I had a similar problem, where it appeared that a jar of
jars was "working' as you basically describe, but for others running my
code, it didn't "work".
The problem: I had overlooked the fact that during my runtime invocation,
the jars were actually on the classpath via overs
http://tomcat.apache.org/tomcat-5.5-doc/index.html
On 5/18/06, Frank Murray <[EMAIL PROTECTED]> wrote:
Hello,
Can you provide a direct link(s) for that Tomcat online
documentation?
Any information is appreciated. Thank you.
fjm
On 06 May 2006, at 13:56, Gaël Lams wrote:
>> I read "Pro
Some of the readership may find this interesting.
http://www.petrovic.org/blog/?p=124
wherein a JXTA p2p network is started in a servlet's init() method. JXTA is
an interesting area of Java programming, and affords an open source p2p
development platform. The example, which draws on earlier id
hin the application?
Asaf Lahav
VP R&D, Prima Grid LTD.
Cellular: 972-54-4717955
Phone: 972-3-6540255
Fax: 972-3-6540254
-Original Message-
From: Mark Petrovic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 6:02 AM
To: Tomcat Users List
Subject: Application co
A few people in the last few days on the Tomcat Users have essentially
asked: How do I read a file from disk from within my web application,
and furthermore, how do I declaratively configure the name of that file
so as to keep its path out of my code?
It's a common question, and there is a good s
It looks like there may be a problem with your admin.xml file, but I'm not
sure. Maybe you can post it.
On 5/16/06, Kalpana HV <[EMAIL PROTECTED]> wrote:
Hi People,
I am new to Java/Webserver. I have installed JDK1.4.0 and have copied
jakarta-tomcat-4.1.31 to my system(Win 2K). I have set JAV
-Original Message-
From: Mark Petrovic [mailto:[EMAIL PROTECTED]
Sent: Mon 5/15/2006 9:07 PM
To: Tomcat Users List
Subject: Re: Determining file locations in tomcat
You can put the path in an in the application's web.xml
. Then
retrieve it at runtime in your servlet.init() method us
You can put the path in an in the application's web.xml. Then
retrieve it at runtime in your servlet.init() method using
getInitParameter("path").
On 5/15/06, Calvin Deiterich <[EMAIL PROTECTED]> wrote:
I need to place a file(.xsl) in with a tomcat servlet application and
I do not want to har
ut the xml files and what would be the
best way to read it?
Asaf Lahav
VP R&D, Prima Grid LTD.
Cellular: 972-54-4717955
Phone: 972-3-6540255
Fax: 972-3-6540254
-Original Message-----
From: Mark Petrovic [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 8:10 PM
To: Tomcat
s executed.
Note that the script creates a conf/server.xml that is essentially the
default, but with comments pruned for easy viewing. It also creates
conf/tomcat-users.xml and /etc/init.d/tomcat.
Hopefully this will help someone working on this problem.
On 5/11/06, Mark Petrovic <[EMAIL PROT
Good day.
As a glutton for punishment, I pruned the comments out of the
server.xmlfile so I could take it in with one glance.
While I was at it, I also changed the Engine name="Catalina" attribute to
something else ("X"), and found that I received a 404 Not Found when I went
to login to the Mana
Good day.
After putting this off for too long, I finally got around to experimenting
with chroot'ing Tomcat. My travails may help someone going through the same
process
http://www.petrovic.org/blog/?p=126
Same story for finally deploying the J. Brittain BadInputFilterValve under
Tomcat 5.5.12
You can put those types of resources in your .war file and access them as
"resources".
servlet.getClass().getResource("xmlfile.xml");
type of scheme.
On 5/8/06, Asaf Lahav <[EMAIL PROTECTED]> wrote:
Hi everybody,
I still need help on this. Please read below…
*Asaf Lahav*
*VP R&D, Prim
I got to thinking about this tool problem. Here is a a bit of basic work on
a tool to generate a catalina.policy file. Time will tell if it's useful.
Someone may have already solved this problem, but it's all fun.
http://www.petrovic.org/blog/?p=134
On 5/7/06, Mark Petrovic <[EM
Good day.
This is a newbie question.
Having spent a bit of time manually editing via trial and error my
catalina.policy file just right so my webapp would run leaves me wondering
whether there is a tool that can be responsibly used to show you what the
policy file should look like if the app is
27 matches
Mail list logo