dev@glassfish.java.net

V3 Regression- Deployment of simple webapp on windows is broken

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Wed, 13 Feb 2008 18:39:35 -0800
With latest sources, we get following while deploying a simple webapp on windows.

[#|2008-02-13T18:32:48.984-0800|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=10;_ThreadName=Thread-4;|Exception while invoking class com.sun.enterprise.security.SecurityDeployer prepare method
java.lang.RuntimeException: Error in generating security policy for basicwebapp -- javax.security.jacc.PolicyContextException: java.io.FileNotFoundException: C:\work\v3\publish\glassfish\config\..\domains\domain1\generated\policy\-C:-work-v3-publish-glassfish-config-..-domains-domain1-applications-basicwebapp-\-C_-work-v3-publish-glassfish-config-__-domains-domain1-applications-basicwebapp-\granted.policy (The filename, directory name, or volume label syntax is incorrect)
    at org.glassfish.deployment.common.SimpleDeployer.prepare(SimpleDeployer.java:69)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:311)
    at com.sun.enterprise.v3.services.impl.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:263)
    at com.sun.enterprise.v3.services.impl.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:120)
    at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:114)
    at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:50)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:39)
    at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:22)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:71)
    at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:19)
    at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:125)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:388)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:351)
    at com.sun.enterprise.module.bootstrap.Main.start(Main.java:154)
    at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:70)
Caused by: org.glassfish.deployment.common.IASDeploymentException: Error in generating security policy for basicwebapp -- javax.security.jacc.PolicyContextException: java.io.FileNotFoundException: C:\work\v3\publish\glassfish\config\..\domains\domain1\generated\policy\-C:-work-v3-publish-glassfish-config-..-domains-domain1-applications-basicwebapp-\-C_-work-v3-publish-glassfish-config-__-domains-domain1-applications-basicwebapp-\granted.policy (The filename, directory name, or volume label syntax is incorrect)
    at com.sun.enterprise.security.SecurityUtil.generatePolicyFile(SecurityUtil.java:244)
    at com.sun.enterprise.security.SecurityDeployer.generatePolicy(SecurityDeployer.java:109)
    at com.sun.enterprise.security.SecurityDeployer.generateArtifacts(SecurityDeployer.java:73)
    at org.glassfish.deployment.common.SimpleDeployer.prepare(SimpleDeployer.java:65)
    ... 14 more


I have not tried to debug it further

Thanks,
Mitesh