当前位置: 代码迷 >> J2EE >> 部署示范应用出错,求解
  详细解决方案

部署示范应用出错,求解

热度:81   发布时间:2016-04-17 23:43:05.0
部署示例应用出错,求解!
[DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.2 for container glassfish4x
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 7.207s
Finished at: Mon Aug 25 22:45:15 CST 2014
Final Memory: 18M/168M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.2:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.2: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]


环境 JavaEE 7 + Glassfish4

使用Maven部署应用
报错

说明: Glassfish4 明明安装在D盘,但不知为何在C盘有一个Glassfish4的空目录

感觉错误点在红色部分,但不知道如何解决,求教
------解决方案--------------------
1、你看下报错的后面两句:

Please configure the container before attempting to perform any local deployment.
请在视图执行的部署地方配置容器

 Read more on: http://cargo.codehaus.org/Local+Configuration
请阅读 http://cargo.codehaus.org/Local+Configuration  这个网站, 虽然纯英文没看懂....

2、没搞懂你是要搭服务器还是客户端。
如果是服务器,建议你看下这三个:
http://jingyan.baidu.com/article/63f236280b3d690208ab3dbd.html

http://www.daimami.com/eclipse/1311954.html

http://download.csdn.net/detail/xmlimei/6930157

如果是客户端,你自己找找吧,困了..


------解决方案--------------------
看看maven在IDE上的配置
  相关解决方案