glassfish
  1. glassfish
  2. GLASSFISH-17801

On Windows can not deploy an application with a version

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.1_dev
    • Fix Version/s: None
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Windows Server 2003 SP2 or Windows 7 Glassfish 3.1.1 (build 12)

      Description

      While deploying, the following command fails:

      asadmin deploy --name test:1.4 test-1.4.war

      The error in the logs is

      SEVERE|glassfish3.1.1|javax.enterprise.system.core.security|_ThreadID=238;_ThreadName=Thread-2;|Unable to create policy file [C:\glassfish-3.1.1\glassfish\domains\domain1/generated/policy\test:1.4/test_1_4_internal\granted.policy] caught java.io.FileNotFoundException: C:\glassfish-3.1.1\glassfish\domains\domain1\generated\policy\test:1.4\test_1_4_internal\granted.policy (The filename, directory name, or volume label syntax is incorrect

      SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=238;_ThreadName=Thread-2;|Error deleting repository directory C:\glassfish-3.1.1\glassfish\domains\domain1\applications\test:1.4

      But the following command without version works fine

      asadmin deploy --name test test-1.4.war

      The war file being deployed contains both web and ejb components.

        Activity

        Hide
        Hong Zhang added a comment -

        I tried with windows XP (SP3) and did not have any issue deploying the versioned application, I will see if I can find other variants of windows OS to try. You can also try with a windows XP box if it's available to you to see if it's some environment related issues.

        Show
        Hong Zhang added a comment - I tried with windows XP (SP3) and did not have any issue deploying the versioned application, I will see if I can find other variants of windows OS to try. You can also try with a windows XP box if it's available to you to see if it's some environment related issues.
        Hide
        easarina added a comment -

        I also can not reproduce the issue using 3.1.2 b13 on Win 2008. So I'm closing this bug.

        Show
        easarina added a comment - I also can not reproduce the issue using 3.1.2 b13 on Win 2008. So I'm closing this bug.
        Hide
        nkanayan added a comment -

        Check web.xml file if everything is correct there.

        Show
        nkanayan added a comment - Check web.xml file if everything is correct there.
        Hide
        jclingan added a comment -

        I have duplicated this issue on Windows 7 Service Pack 1:

        asadmin deploy --name=JavaEE6App:Version2 JavaEE6App.war
        remote failure: Error deleting repository directory C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\applications\JavaEE6App:Version2 : java.io.FileNotFoundException: C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\applications\JavaEE6App:Version2
        C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\applications\JavaEE6App:Version2
        Command deploy failed.

        Show
        jclingan added a comment - I have duplicated this issue on Windows 7 Service Pack 1: asadmin deploy --name=JavaEE6App:Version2 JavaEE6App.war remote failure: Error deleting repository directory C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\applications\JavaEE6App:Version2 : java.io.FileNotFoundException: C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\applications\JavaEE6App:Version2 C:\Program Files\glassfish-3.1.1\glassfish\domains\domain1\applications\JavaEE6App:Version2 Command deploy failed.
        Hide
        jclingan added a comment -

        I'd like to add that I have also duplicated this issue on Mac OS Lion:

        johnclingan@jclingan-mac:~/NetBeansProjects/JavaEE6App> asadmin deploy --name JavaEE6App:Version2 dist/JavaEE6App.war
        Enter admin user name> admin
        Enter admin password for user "admin">
        remote failure: Error deleting repository directory /Users/johnclingan/apps/glassfish3.1.1/glassfish/domains/domain1/applications/JavaEE6App:Version2 : java.io.FileNotFoundException: /Users/johnclingan/apps/glassfish3.1.1/glassfish/domains/domain1/applications/JavaEE6App:Version2
        /Users/johnclingan/apps/glassfish3.1.1/glassfish/domains/domain1/applications/JavaEE6App:Version2
        Command deploy failed.
        johnclingan@jclingan-mac:~/NetBeansProjects/JavaEE6App> uname -a
        Darwin jclingan-mac.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

        Show
        jclingan added a comment - I'd like to add that I have also duplicated this issue on Mac OS Lion: johnclingan@jclingan-mac:~/NetBeansProjects/JavaEE6App> asadmin deploy --name JavaEE6App:Version2 dist/JavaEE6App.war Enter admin user name> admin Enter admin password for user "admin"> remote failure: Error deleting repository directory /Users/johnclingan/apps/glassfish3.1.1/glassfish/domains/domain1/applications/JavaEE6App:Version2 : java.io.FileNotFoundException: /Users/johnclingan/apps/glassfish3.1.1/glassfish/domains/domain1/applications/JavaEE6App:Version2 /Users/johnclingan/apps/glassfish3.1.1/glassfish/domains/domain1/applications/JavaEE6App:Version2 Command deploy failed. johnclingan@jclingan-mac:~/NetBeansProjects/JavaEE6App> uname -a Darwin jclingan-mac.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
        Hide
        Hong Zhang added a comment -

        I was able to reproduce with John's test case, but it seems a different problem than the original reported problem (which we were not able to reproduce). The problem with this test case is when the deployment fails and the deployment logic tries to roll back, the roll back code did not handle the versioning properly. I have checked in a fix for this in the trunk.

        Show
        Hong Zhang added a comment - I was able to reproduce with John's test case, but it seems a different problem than the original reported problem (which we were not able to reproduce). The problem with this test case is when the deployment fails and the deployment logic tries to roll back, the roll back code did not handle the versioning properly. I have checked in a fix for this in the trunk.

          People

          • Assignee:
            Hong Zhang
            Reporter:
            Kulbhushan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: