#282 Configure Wrapper to pass -server parameter to JVM

v3.4.0
open
5
2010-05-27
2010-05-27
CWright
No

I cannot find any information via Google or the TanukiWrapper instructions on how to pass the -server flag to the JVM for my application (JBoss SOA). Adding wrapper.java.additional.#=-server did not work.

Please advise, and update documentation on the site to show this configuration.

Thanks.

Discussion

  • Leif Mortenson
    Leif Mortenson
    2010-05-27

    What is the error that you are seeing. We have several applications running with the following parameter:
    wrapper.java.additional.1=-server

    Could you please also set the following to verify the command line being generated.
    wrapper.java.command.loglevel=INFO

    Please attach your wrapper.log file below so I can take a look at it.

    Cheers,
    Leif

     
  • Leif Mortenson
    Leif Mortenson
    2010-05-27

    • assigned_to: nobody --> mortenson
     
  • CWright
    CWright
    2010-05-27

    It appears after checking the log that my Java installation may have defaulted to the JRE as opposed to the JDK, as no server option is available. See attached wrapper.conf and wrapper.log files. Any assistance you may be able to provide in resolving this would be helpful.

    Thank you, Leif.

     
  • CWright
    CWright
    2010-05-27

     
    Attachments
  • CWright
    CWright
    2010-05-27

     
    Attachments
  • Leif Mortenson
    Leif Mortenson
    2010-05-27

    Yes, your java command is being located on the system PATH. This may not be what you expect when running as a service. I would recommend doing the following to make sure you are getting the correct location.

    set.JAVA_HOME.default=C:¥Sun¥jdk123
    wrapper.java.command=%JAVA_HOME%/bin/java

    The first line sets the environment variable IF it is not already defined. It will force the value if the ".default" portion is removed. See the following:
    http://wrapper.tanukisoftware.org/doc/english/props-envvars.html

    Please let me know how this works for you.

    Cheers,
    Leif