3 Replies Latest reply on Jun 16, 2009 10:44 AM by yiskenderoglu

    Running JBoss as non-root user while listening on ports 80 a

    zzzz8

      How does one setup JBoss to run correctly while still being able to listen on ports 80 and 443 for http and https, respectively? I don't want to run as root. Unfortunately, my JBoss AS runs on a virtual machine - and the hosting company doesn't allow port forwarding. Would something like jsvc work for JBoss?

        • 1. Re: Running JBoss as non-root user while listening on ports
          gabewong

          You may consider Apache WebServer as a proxy on port 80

          • 2. Re: Running JBoss as non-root user while listening on ports
            zzzz8

            Actually, I am using JBoss Native - but I don't see any options for running on port 80 as a non superuser. Is there any way I can do it with JBoss Native?

            • 3. Re: Running JBoss as non-root user while listening on ports
              yiskenderoglu

              I have an ugly solution to make org.jboss.Main start inside jsvc by calling it in another class that implements the commons.Daemon interface.

              The idea is, to extract contents from run.jar, and merge it back with your own class, and adding commons-daemon to the classpath, among with the newly prepared run.jar and sun's tools.jar, and give them all to jsvc.

              You must write a new Manifest for this jar, as the one from run.jar will probably vanish.

              BUT

              I have other newâ„¢ problems by doing so:
              SOAP is no longer working as expected, marshalling of objects produces empty results. And God knows, what else is no longer working...

              Even though I double checked if I miss some options run.sh is producing....