Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6250

The server cannot run under a security manager when symlinks are contained within jboss home path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • JBossAS-5.0.0.GA
    • None
    • Test Suite
    • None

      The tests-security-manager fails to run when there are symlinks within the jboss.dist path.

      [hudson@conf2 testsuite]$ ./build.sh -Dnode0=10.16.93.25 -Dnode1=10.16.93.26 -DudpGroup=227.43.88.165 -Djboss.dist=/home/hudson/eap5-as/jboss-5.0.0 tests-security-managerSearching for build.xml ...Buildfile: /qa/services/hudson/eap5-as/jboss-5.0.0-src/testsuite/build.xmltests-security-manager: [echo] Starting default with policy /qa/services/hudson/eap5-as/jboss-5.0.0-src/testsuite/output/resources/securitymgr/server.policy [echo] jboss.home.dir=/home/hudson/eap5-as/jboss-5.0.0
      [echo] jboss.server.home.dir=/home/hudson/eap5-as/jboss-5.0.0/server/default
      [server:start] Starting server "securitymgr", with command (start timeout is 240 seconds ):
      [server:start] /qa/tools/opt/jdk1.5.0_15/bin/java -cp /home/hudson/eap5-as/jboss-5.0.0/bin/run.jar:/qa/tools/opt/jdk1.5.0_15/lib/tools.jar -Xms128m -Xmx256m -XX:MaxPermSize=512m -Djboss.home.dir=/home/hudson/eap5-as/jboss-5.0.0 -Djboss.server.home.dir=/home/hudson/eap5-as/jboss-5.0.0/server/default -Djboss.test.deploy.dir=/qa/services/hudson/eap5-as/jboss-5.0.0-src/testsuite/output/lib -Djava.security.manager -Djava.security.policy==/qa/services/hudson/eap5-as/jboss-5.0.0-src/testsuite/output/resources/securitymgr/server.policy -Djava.security.debug=failure -Djava.protocol.handler.pkgs=org.jboss.handlers.stub -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/home/hudson/eap5-as/jboss-5.0.0/lib/endorsed org.jboss.Main -c default -b 10.16.93.25 -g DefaultDomain -u 227.43.88.165
      [server:start] Failed to start server "securitymgr" before timeout. Destroying the process.

      BUILD FAILED
      /qa/services/hudson/eap5-as/jboss-5.0.0-src/testsuite/build.xml:1640: Error starting server "securitymgr": Server failed to start in time; see logs.

      The real path is /qa/services/hudson, but the often used symlink is /home/hudson with which it doesn't work. When I use the real path it works and there is no problem.

            pskopek@redhat.com Peter Skopek
            exd-mmalina Martin Malina
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: