facebook

Starting Tomcat with security policy

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #248489 Reply

    Yaakov
    Member

    Hi,

    Is there a way to configure MyEclipse to start Tomcat with its security policy? By default, tomcat ignores its security policies specified in catalina.policy.

    If I were to start Tomcat by hand, this would be:

    sh catalina.sh run -security

    I don’t know if this helps to answer my question or not.

    Thanks,
    Yaakov.

    #248531 Reply

    Riyad Kalla
    Member

    Yaakov,
    Unfortunately this isn’t supported at this time. Sorry.

    #248541 Reply

    Haris Peco
    Member

    Yaakov,

    I you use linux/unix (I suppose yes) you can go to TOMCAT_HOME/bin and do next:

    mv catalina.sh catalina.orig.sh

    and make new catalina.sh with next line :

    
    PRG="$0"
    while [ -h "$PRG" ]; do
      ls=`ls -ld "$PRG"`
      link=`expr "$ls" : '.*-> \(.*\)$'`
      if expr "$link" : '.*/.*' > /dev/null; then
        PRG="$link"
      else
        PRG=`dirname "$PRG"`/"$link"
      fi
    done
    PRGDIR=`dirname "$PRG"`
    $PRGDIR/catalina.orig.sh $* -security
    
    

    or you can see catalina.sh for better ideas

    Best

    #248674 Reply

    Yaakov
    Member

    Thanks. I might try that.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Starting Tomcat with security policy

You must be logged in to post in the forum log in