Skip to Content
author's profile photo Former Member
Former Member

What's active-role-env.properties?

It seems that the hybrisserver.sh file (though not the hybrisserver.bat file) for hybris 5.5 now looks for hybris/bin/platform/active-role-env.properties and tries to use a CATALINA_BASE property from that file. I haven't been able to find anything about that file in the Wiki or on this forum, so I'm not sure of what I should (or shouldn't) be doing with it.

This change to hybrisserver.sh has caused us issues with starting the hybris server and debugging a running hybris instance. We're thinking of resolving those issues by creating our own version of that file and having our build process manually copy it into hybris/bin/platform, but as I haven't been able to find any documentation on that file I really don't know if that's a good idea.

Does anyone know what that file is and what we should or shouldn't be doing with it?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2015 at 03:24 PM

    We are facing the same issue here.

    Instead of using pwd for directory determination

    export CATALINA_BASE="`pwd`/tomcat"

    in hybrisserver.sh it should use the prior determined tomcat path

    export CATALINA_BASE=$TOMCAT_DIR

    This ensures backward compatibility and works fine here.

    Any better suggestions which don't affect the build process?

    Best Regards, Marco

    Add a comment
    10|10000 characters needed characters exceeded

    • Our workaround without modifying hybrisserver.sh is instead of starting the server on linux previously by calling:

       /opt/hybris/bin/platform/hybrisserver.sh (from *any* directory)
      
      

      we're starting it now with:

       cd /opt/hybris/bin/platform && ./hybrisserver.sh
      
      

      which makes pwdevaluate to the correct directory prefix.... Anyways, Marco's suggestion should be considered by hybris for the next release!

  • author's profile photo Former Member
    Former Member
    Posted on Jul 17, 2015 at 04:20 PM

    push.

    export CATALINA_BASE="`pwd`/tomcat" is still in hybrisserver.sh which can cause some trouble. Answer from is working fine, but will be overridden with next update.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.