You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Janek Bogucki <ja...@yahoo.co.uk> on 2001/10/08 00:08:03 UTC
-Djava.security.policy==$CATALINA_BASE
Can anyone explain the use of the double equality
symbol in bin/catalina.sh from TC 4.0?
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
\
In context, lines 194-202 of catalina.sh
echo Using Security Manager
shift
$JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP
\
-Djava.security.manager \
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
\
-Dcatalina.base=$CATALINA_BASE \
-Dcatalina.home=$CATALINA_HOME \
org.apache.catalina.startup.Bootstrap "$@" start
\
>> $CATALINA_BASE/logs/catalina.out 2>&1 &
Thanks,
Janek Bogucki
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
Re: Environment setup
Posted by Jan Labanowski <jk...@osc.edu>.
Assuming that your script is:
------------ cut ----
CLASSPATH=.:/usr/local/jdk/lib/tools.jar:/home/sam/tomcat/lib/servlet.jar
export CLASSPATH
-------------cut ---
(no #!/bin/sh)
and that it is called: my_env
you can use it to set your env under Bourne type shell by sourcing the
script, i.e., by executing:
. my_env
Notice the dot and space and my_env. Executing my_env as, say,
./my_env
would set up the environment variable for the shell which is forked for
the script (i.e., a child of your login shell). This shell terminates,
as soon as the script terminates, i.e., the scripts sets environment
variable for itself, and then exits -- not what you want to do.
On Mon, 8 Oct 2001, Sam wrote:
> Hi all,
> I want to set environment by a shell script.
> But it is not work
> why?
>
> ==
> #!/bin/sh
> CLASSPATH=.:/usr/local/jdk/lib/tools.jar:/home/sam/tomcat/lib/servlet.jar
> export CLASSPATH
> ==
>
> thanks
>
>
Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168
Ohio Supercomputer Center | Internet: jkl@osc.edu
1224 Kinnear Rd, | http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163 | http://www.osc.edu/
Environment setup
Posted by Sam <is...@ms45.hinet.net>.
Hi all,
I want to set environment by a shell script.
But it is not work
why?
==
#!/bin/sh
CLASSPATH=.:/usr/local/jdk/lib/tools.jar:/home/sam/tomcat/lib/servlet.jar
export CLASSPATH
==
thanks
Re: -Djava.security.policy==$CATALINA_BASE
Posted by Dmitri Colebatch <di...@bigpond.net.au>.
So:
-Djava.security.policy=$CATALINA_BASE/conf/catalina.policy
with a single equal sign would append (?) the policy mentioned to the
system policy?
thanks
dim
On Sun, 7 Oct 2001, Pae Choi wrote:
> A single equal sign(=) will use the system policy,
> {java.home}{file.separator}lib{file.separator}security{file.separator}java.policy.
>
> The doube equal signs(==) allows the user to define the own policy. In other words,
> using double equal signs(==) in "-Djava.security.policy==<user defined policy>" on
> the command line will allows a user to override all other policy files found. For
> example, the sytem-wide policy,
> {java.home}{file.separator}lib{file.separator}security{file.separator}java.policy, is no
> longer effective if the user defined policy is used.
>
> Gotcha: Here, you need to watch out for the AccessControl exception if you do not
> have the permission declaration which needs to be defined in the system policy file,
> {java.home}{file.separator}lib{file.separator}security{file.separator}java.policy.
>
> See the JAAS for more inforamtion. And welcome to the J2 Security World!!! :-)
>
> Pae
>
> > Can anyone explain the use of the double equality
> > symbol in bin/catalina.sh from TC 4.0?
> >
> >
> > -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
> > \
> >
> >
> > In context, lines 194-202 of catalina.sh
> >
> > echo Using Security Manager
> > shift
> > $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP
> > \
> > -Djava.security.manager \
> >
> > -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
> > \
> > -Dcatalina.base=$CATALINA_BASE \
> > -Dcatalina.home=$CATALINA_HOME \
> > org.apache.catalina.startup.Bootstrap "$@" start
> > \
> > >> $CATALINA_BASE/logs/catalina.out 2>&1 &
> >
> > Thanks,
> > Janek Bogucki
> >
> > ____________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> > or your free @yahoo.ie address at http://mail.yahoo.ie
>
Re: -Djava.security.policy==$CATALINA_BASE
Posted by Pae Choi <pa...@earthlink.net>.
A single equal sign(=) will use the system policy,
{java.home}{file.separator}lib{file.separator}security{file.separator}java.policy.
The doube equal signs(==) allows the user to define the own policy. In other words,
using double equal signs(==) in "-Djava.security.policy==<user defined policy>" on
the command line will allows a user to override all other policy files found. For
example, the sytem-wide policy,
{java.home}{file.separator}lib{file.separator}security{file.separator}java.policy, is no
longer effective if the user defined policy is used.
Gotcha: Here, you need to watch out for the AccessControl exception if you do not
have the permission declaration which needs to be defined in the system policy file,
{java.home}{file.separator}lib{file.separator}security{file.separator}java.policy.
See the JAAS for more inforamtion. And welcome to the J2 Security World!!! :-)
Pae
> Can anyone explain the use of the double equality
> symbol in bin/catalina.sh from TC 4.0?
>
>
> -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
> \
>
>
> In context, lines 194-202 of catalina.sh
>
> echo Using Security Manager
> shift
> $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP
> \
> -Djava.security.manager \
>
> -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
> \
> -Dcatalina.base=$CATALINA_BASE \
> -Dcatalina.home=$CATALINA_HOME \
> org.apache.catalina.startup.Bootstrap "$@" start
> \
> >> $CATALINA_BASE/logs/catalina.out 2>&1 &
>
> Thanks,
> Janek Bogucki
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie