Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-204

Solaris tomcat bin contains wrong commons-daemon.jar symlink

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JWS 3.0.3 GA
    • JWS 3.0.1 CR1
    • tomcat7, tomcat8
    • None
    • Release Notes
    • Hide
      On Solaris, if you try to use `./daemon.sh --tomcat-user your_user start`, it will hit an incorrectly expanded symlink: `commons-daemon.jar -> ../../java/commons-daemon-*.jar`.

      This error originates from the postinstall script's `createsymlink()` `ln` function, as it does not expand the `\*` in `createsymlink "../../java/commons-daemon-*.jar" commons-daemon.jar`.

      To workaround this issue, in `JWS_HOME/share/tomcat<VERSION>/bin` run:
      ----
      ln -sf ../../java/commons-daemon.jar commons-daemon.jar
      ----

      This issue will be fixed in a future release.
      Show
      On Solaris, if you try to use `./daemon.sh --tomcat-user your_user start`, it will hit an incorrectly expanded symlink: `commons-daemon.jar -> ../../java/commons-daemon-*.jar`. This error originates from the postinstall script's `createsymlink()` `ln` function, as it does not expand the `\*` in `createsymlink "../../java/commons-daemon-*.jar" commons-daemon.jar`. To workaround this issue, in `JWS_HOME/share/tomcat<VERSION>/bin` run: ---- ln -sf ../../java/commons-daemon.jar commons-daemon.jar ---- This issue will be fixed in a future release.
    • Documented as Known Issue
    • Workaround Exists
    • Hide

      In your jws-3.0/share/tomcat7/bin and jws-3.0/share/tomcat8/bin, run: ln -sf ../../java/commons-daemon.jar commons-daemon.jar.

      Show
      In your jws-3.0/share/tomcat7/bin and jws-3.0/share/tomcat8/bin , run: ln -sf ../../java/commons-daemon.jar commons-daemon.jar .
    • Hide

      Try to use ./daemon.sh --tomcat-user your_user start.

      Show
      Try to use ./daemon.sh --tomcat-user your_user start .

    Description

      If you try to use ./daemon.sh --tomcat-user your_user start it will hit an incorrectly expanded commons-daemon.jar -> ../../java/commons-daemon-*.jar. The error originated from my patch in JWS-155 where createsymlink() function's ln does not expand * in createsymlink "../../java/commons-daemon-*.jar" commons-daemon.jar.

      Furthermore, fiddling with * is actually completely unnecessary, because ../../java/commons-daemon.jar file exists; it's already a symlink to commons-daemon.jar -> commons-daemon-1.0.15-redhat-1.jar.

      fix

      Attachments

        Activity

          People

            rhn-engineering-mturk Mladen Turk
            mbabacek1@redhat.com Michal Karm
            Jean-Frederic Clere
            Radim Hatlapatka Radim Hatlapatka (Inactive)
            Lucas Costi Lucas Costi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: