InvocationTargetException: The container configuration directory does not exist.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangbingfengf98/article/details/53590390

描述:在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就好

猜你喜欢

转载自blog.csdn.net/wangbingfengf98/article/details/53590390