This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194711

Summary: Error occurred during deployment: Application name Product_Portal is already in use
Product: serverplugins Reporter: David Konecny <dkonecny>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description David Konecny 2011-01-25 20:54:27 UTC
While testing issue 188740 I experienced following problem. I run EAR project attached to issue 188740 and got the problem reported there - ClassNotFoundException. I did some small change in my project sources and Run project again. But this time I got nothing new in server log and project output window says:

pre-run-deploy:
Initial deploying Product Portal to /home/dev/projs/aaaa-fixed (copy)/Company/Domain/Departement/Product Portal/dist/gfdeploy/Product_Portal
Completed initial distribution of Product Portal
Initializing...
deploy?DEFAULT=/home/dev/projs/aaaa-fixed (copy)/Company/Domain/Departement/Product Portal/dist/gfdeploy/Product_Portal&name=Product_Portal&force=true failed on GlassFish Server 3.x 
 Error occurred during deployment: Application name Product_Portal is already in use. Please pick a different name.. Please see server.log for more details.
/home/dev/projs/aaaa-fixed (copy)/Company/Domain/Departement/Product Portal/nbproject/build-impl.xml:284: 
The module has not been deployed.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)


If I restart the GlassFish the problem goes away.
Comment 1 Vince Kraemer 2011-01-26 03:41:02 UTC
I filed a gf issue to try to get this fixed at the root... http://java.net/jira/browse/GLASSFISH-15690

I do not think there is anything the plugin can do to fix this situation (the server has not completely cleaned up after the deployment failure)
Comment 2 Quality Engineering 2011-01-29 05:29:22 UTC
Integrated into 'main-golden', will be available in build *201101290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/47c0f4d5ba3a
User: vince kraemer <vkraemer@netbeans.org>
Log: #194711 : provide better message for 'space in submodule directory name' limitation of GlassFish 3.0 and 3.1
Comment 3 Vince Kraemer 2011-01-29 06:49:46 UTC
is your project old or brand new?

What happens if you 
1. exit out of NB
2. delete the build-impl.xml file from the app client project
3. restart NB 
4. try to run your project again
Comment 4 Vince Kraemer 2011-01-29 06:51:20 UTC
disregard the previous comment...
(In reply to comment #3)
> is your project old or brand new?
> 
> What happens if you 
> 1. exit out of NB
> 2. delete the build-impl.xml file from the app client project
> 3. restart NB 
> 4. try to run your project again