Deg*_*sso 7 java glassfish java-ee netbeans-8
我正在尝试学习Java EE 8,我已经按照https://javaee.github.io/tutorial/上的官方指南进行了操作,但我遇到了这个问题:
--- cargo-maven2-plugin:1.4.4:redeploy (deploy) @ hello1 ---
[DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.4 for container glassfish5x
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 4.730s
Finished at: Mon Oct 09 16:16:40 CEST 2017
Final Memory: 18M/183M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [glassfish5x], type = [installed]], configuration type [existing]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [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
Run Code Online (Sandbox Code Playgroud)
我完全按照指南进行操作,所以我不明白错误在哪里...
编辑:对于glassfish 5和4.1.1,此错误是相同的.如果我手动部署战争包,它的工作; 所以问题是maven和glassfish服务器之间的通信......
编辑2:我发现这个https://netbeans.org/bugzilla/show_bug.cgi?id=247746但它不起作用......
小智 7
我有同样的问题,但设法解决这个问题:
在位于../glassfish5/docs/javaee-tutorial/examples目录中的父pom中,我将以下属性更改为
<cargo.plugin.version>1.6.4</cargo.plugin.version>
<glassfish.domain.name>domain1</glassfish.domain.name>
<glassfish.home>/Users/fgjensen/Java/J2EE8/glassfish5</glassfish.home>
<integration.container.id>glassfish4x</integration.container.id>
Run Code Online (Sandbox Code Playgroud)
这迫使Maven使用最新版本的货物插件.该插件目前不支持Glassfish 5作为集成容器.但是,它无论如何都会构建和安装应用程序.
在此之后,我还必须在位于/ glassfish5/glassfish/domains目录中的password.properties文件中设置asadmin密码.
我希望这能解决你的问题.
| 归档时间: |
|
| 查看次数: |
2916 次 |
| 最近记录: |