facebook

setting system properties

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #308103 Reply

    Michael Stacey
    Participant

    I have a web application that contains the following types of settings in web.xml:

    <context-param>
    <param-name>CONFIG_FILE</param-name>
    <param-value>${foo.home}/conf/ext/ConfigAll.xml</param-value>
    </context-param>

    How do you set the “foo.home” system property when using the glassfish server plugin?

    I’ve tried setting it as jvm properties in the server config, but the app doesn’t see the value correctly.

    We’re using the glassfish 2.x server from MyEclipse on linux.

    #308131

    stacey11,
    I shall escalate this to the dev team member. They will get back to you on this.

    #308137

    Michael Stacey
    Participant

    More info: works from the command line when glassfish is started with asadmin start-domain. ie: the settings in the server config are passed to the envirionment just fine.

    #308149

    Brian Fernandes
    Moderator

    stacey,

    On the JDK page, did you add -Dfoo.path=/the/path to the “Optional Java VM arguments” field?

    works from the command line when glassfish is started with asadmin start-domain. ie: the settings in the server config are passed to the envirionment just fine.

    Just to clarify – does this mean you edited the asadmin.bat file and added -Dfoo.path=/the/path to it?

    #308151

    Michael Stacey
    Participant

    Yes, I added the argument to the HDK page in MyEclipse.
    Not, I did NOT editi the asadmin.bat file.

    #308152

    Brian Fernandes
    Moderator

    More info: works from the command line when glassfish is started with asadmin start-domain. ie: the settings in the server config are passed to the envirionment just fine.

    Could you please elaborate, what exactly did you do to get it to work – where did you declare this variable?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: setting system properties

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