JavaEE 8 Tutorial,在hello1项目上部署失败 [英] The JavaEE 8 Tutorial, deploy failed on hello1 project

查看:213
本文介绍了JavaEE 8 Tutorial,在hello1项目上部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习Java EE 8,我已经按照 https:// javaee的官方指南进行了操作。 github.io/tutorial/ 但我有这个问题:

I'm try to learn Java EE 8, I have followed the official guide at https://javaee.github.io/tutorial/ but I have this problem:

--- 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

我完全按照指南进行操作,所以我不明白错误在哪里......

I have followed exactly the guide so I don't understood where is the mistake...

编辑:
对于glassfish 5和4.1.1,此错误是相同的。
如果我手动部署war包,它就可以工作了;所以问题是maven和glassfish服务器之间的通信......

This error is the same for glassfish 5 and 4.1.1. If I deploy manually the war package it's work; so the problem is the communication between maven and the glassfish server...

编辑2:
我发现这个 https://netbeans.org/bugzilla/show_bug.cgi?id=247746 但它不起作用......

EDIT 2: I have found this https://netbeans.org/bugzilla/show_bug.cgi?id=247746 but it dosen't work...

推荐答案

我遇到了同样的问题,但设法解决了这个问题:

I had the same problems, but managed to solved it this way:

在位于../glassfish5/docs/javaee-tutorial/examples目录的父pom中,我将以下属性更改为

In the parent pom located in ../glassfish5/docs/javaee-tutorial/examples directory I change the following properties to

<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> 

这迫使Maven使用最新版本的货物插件。该插件目前不支持Glassfish 5作为集成容器。但是,无论如何它都会构建和安装应用程序。

This forces Maven to use the latest version of the cargo plugin. The plugin does not support Glassfish 5 as integration container currently. However, it builds and installs the applications anyway.

之后我还必须在/ glassfish5 / glassfish / domains中的password.properties文件中设置asadmin密码。目录。

After this I also had to set the asadmin password in the password.properties file located in the /glassfish5/glassfish/domains directory.

我希望这能解决你的问题。

I hope this solves your problems.

这篇关于JavaEE 8 Tutorial,在hello1项目上部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆