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 - Failing to deploy local JEE examples through Netbeans to Glassfish
Summary: Failing to deploy local JEE examples through Netbeans to Glassfish
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 19:44 UTC by djrushon
Modified: 2016-05-04 09:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.