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 247746

Summary: Failing to deploy local JEE examples through Netbeans to Glassfish
Product: javaee Reporter: djrushon
Component: MavenAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:

Description djrushon 2014-10-06 19:44:27 UTC
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:deployer-deploy (default-cli) on project hello1: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:deployer-deploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.glassfish.GlassFish4xInstalledLocalDeployer for the parameters (container [id = [glassfish4x]], deployer type [installed]). InvocationTargetException: The container configuration directory "c://glassfish4/glassfish/domains" does not exist. Please configure the container before attempting to perform any local deployment. Read more on: http://cargo.codehaus.org/Local+Configuration -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Comment 1 Petr Hejl 2015-06-09 09:43:40 UTC
Please provide a steps to reproduce not just process output.
Comment 2 opeokesola 2016-05-04 09:04:35 UTC
I encountered similar error, the solution is very simple You need to edit the pom.xml file as follows. Replace line 38:
<glassfish.home>${glassfish.home.prefix}/glassfish4</glassfish.home>
to your GlassFish home, I run GlassFish 4.1.1 installed in C:\ drive. So my modification is:
<glassfish.home>${glassfish.home.prefix}glassfish-4.1.1</glassfish.home>.

Please note the slash before glassfish was removed too. The slash after c: in line 51 suffice. 
Build it again. Should be fine.