DISQUS

sethbc's (infrequent) blog...: Install Glassfish for Deployment on Ubuntu 8.10

  • main · 1 year ago
    Hey,
    a nice topic would be to find out if it is possible to use Jruby's Ahead-Of-Time compile feature with glassfish and rails.
  • sethbc · 1 year ago
    I believe you can, but I'm not sure that it would yield much benefit (unless you consider the actual spin-up time for the processes). I believe the AOT and JIT amount to the same thing after the rails processes are warmed up. I'll definitely take a look at it though!
  • dermotbrennan · 1 year ago
    This is great. Just what I was looking for.

    One small thing though -
    sudo useradd -r $GLASSFISH_USER -d /opt/$GLASSFISH_HOME
    should be
    sudo useradd -r $GLASSFISH_USER -d $GLASSFISH_HOME
    right?

    I also got this error when running ./glassfish-v3-prelude-unix.sh
    Entering setup...
    java.lang.UnsatisfiedLinkError: no Terminal in java.library.path

    It turns out based on https://glassfish.dev.java.net/issues/show_bug.... that if you are installing on a system that doesn't have a GUI (as I was), that the installer won't work. I am guessing this is probably something they will fix in the final version but not in the prelude versions.
  • sethbc · 1 year ago
    It's actually possible to install it in silent mode using a configuration file. I'll post a write-up later this week detailing the steps.
  • JGeiger · 1 year ago
    line 22 should be

    sudo chown $GLASSFISH_USER:$GLASSFISH_USER -R $GLASSFISH_HOME
  • sethbc · 1 year ago
    Thanks - that fix is committed.
  • JGeiger · 1 year ago
    headless install file here:
    http://gist.github.com/34348

    revised install script:
    http://gist.github.com/34346
  • Andrei V Maksimov · 8 months ago
    I think that's not a real bug. If so, this bug can be fixed easily by following this steps:

    1. download glassfish-v3-prelude-unix-ml.sh installation script
    2. echo "License.license.ACCEPT_LICENSE=0" > v3-prelude-answer
    3. sh glassfish-v3-prelude-unix-ml.sh -s -a v3-prelude-answer

    Hope, this helps :)