InvocationTargetException: The container configuration directory does not exist.

本文描述了在NetBeans IDE 8.1中构建JavaEE7 dukes-forest项目时遇到的错误,并提供了详细的解决方案。主要是由于Cargo Maven插件无法创建部署器导致的问题,通过修改pom.xml文件中的glassfish安装目录来解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

描述:在NetBeans IDE 8.1中build工程Java EE7 dukes-forest时报如下所示错误
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project dukes-payment: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy 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]
注:例子中使用的是Java ee7中的example

解决方法:将glassfish4/docs/javaee-tutorial/examples下pom.xml文件的<glassfish.home.prefix><glassfish.home>两个属性值更改成自己的glassfish的安装目录,再重新build就好

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值