glassfish
  1. glassfish
  2. GLASSFISH-18789

Cannot enable versioned application on Windows

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 4.1
    • Component/s: security
    • Labels:
      None
    • Environment:

      Windows XP, Windows 7, Windows 2008 R2

      Description

      Attempt to enable versioned application containing EJBs on windows platform fails with following exception:

      asadmin enable --target inst1 test:v1
      remote failure: An error occurred during replication
      Failure: Command enable failed on server instance inst1:
        remote failure: Exception while loading the app
      Error in committing security policy for ejbs of test:v1 
      -- javax.security.jacc.PolicyContextException: java.io.FileNotFoundException:
      ...\glassfish3\glassfish\nodes\localhost-domain1\inst1\generated\policy\test:v1\test_v1_internal\granted.policy 
      (The filename, directory name, or volume label syntax is incorrect)
      Command enable failed.
      

      Steps to reproduce:

      1. start domain1
      2. set PATH=<path to asadmin>;%PATH%
      3. run attached test.cmd. It will
        • create new instance
        • deploy the war file as test:v1
        • execute asadmin enable --target inst1 test:v1

        Issue Links

          Activity

          Hide
          Jeremy_Lv added a comment -

          Hi, Jeff:

          I have just ran the security dev tests without any changes and the test results are as follows:

          -----------------------
          PASSED=   736
          ------------  =========
          FAILED=   0
          ------------  =========
          DID NOT RUN=   4
          ------------  =========
          Total Expected=740
          ************************
          

          Is this the expected tests results? should all of the security tests passed?

          My work env. is Mac OS 10.8.3 and jdk is 1.7.0_21

          Thanks a lot!

          Show
          Jeremy_Lv added a comment - Hi, Jeff: I have just ran the security dev tests without any changes and the test results are as follows: ----------------------- PASSED= 736 ------------ ========= FAILED= 0 ------------ ========= DID NOT RUN= 4 ------------ ========= Total Expected=740 ************************ Is this the expected tests results? should all of the security tests passed? My work env. is Mac OS 10.8.3 and jdk is 1.7.0_21 Thanks a lot!
          Hide
          JeffTancill added a comment -

          Should pass all 740 but those 4 maybe something Mac specific, currently 740 pass on Linux. I'll have someone on the team with a Mac try a run but if your results after your changes match, I would say you are all set.

          Show
          JeffTancill added a comment - Should pass all 740 but those 4 maybe something Mac specific, currently 740 pass on Linux. I'll have someone on the team with a Mac try a run but if your results after your changes match, I would say you are all set.
          Hide
          Jeremy_Lv added a comment -

          I see. I will check the skip tests in my work environment too..
          Thanks a lot!

          Show
          Jeremy_Lv added a comment - I see. I will check the skip tests in my work environment too.. Thanks a lot!
          Hide
          Jeremy_Lv added a comment -

          The dev tests results after I have changed the source is the same as the original without any changes, I will checked in the changes later..

          Show
          Jeremy_Lv added a comment - The dev tests results after I have changed the source is the same as the original without any changes, I will checked in the changes later..
          Hide
          Jeremy_Lv added a comment -

          Changes has been checked in.
          Fix as the r62002.

          Show
          Jeremy_Lv added a comment - Changes has been checked in. Fix as the r62002.

            People

            • Assignee:
              JeffTancill
              Reporter:
              pdudits
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: