Issue Details (XML | Word | Printable)

Key: GLASSFISH-17801
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Hong Zhang
Reporter: Kulbhushan
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
glassfish

On Windows can not deploy an application with a version

Created: 22/Nov/11 01:33 PM   Updated: 19/Jan/12 06:38 PM   Resolved: 12/Dec/11 09:35 PM
Component/s: deployment
Affects Version/s: 3.1.1_b12
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

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


Tags: 3_1_2-review application_versioning version
Participants: easarina, Hong Zhang, jclingan, Kulbhushan and nkanayan


 Description  « Hide

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.



Hong Zhang added a comment - 12/Dec/11 09:04 PM

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.


easarina added a comment - 12/Dec/11 09:35 PM

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


nkanayan added a comment - 04/Jan/12 09:26 PM

Check web.xml file if everything is correct there.


jclingan added a comment - 14/Jan/12 10:43 PM

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.


jclingan added a comment - 14/Jan/12 10:51 PM

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


Hong Zhang added a comment - 19/Jan/12 06:38 PM

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.