Java 我的 GlassFish Server,部署,空,假

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22830799/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 18:10:32  来源:igfitidea点击:

my GlassFish Server, deploy, null, false

javajakarta-eeglassfishglassfish-3javabuilders

提问by Ryu

In my GlassFish Server, I got this error message:

在我的 GlassFish Server 中,我收到以下错误消息:

In-place deployment at D:\simpers\simpers\simpers-war\build\web<br>
GlassFish Server, deploy, null, false<br>
D:\simpers\simpers\simpers-war\nbproject\build-impl.xml:1118: The module has not been deployed.<br>
See the server log for details.<br>
BUILD FAILED (total time: 5 seconds)<br>

回答by JohnRose

I guess your jar file is broken or missing.

我猜您的 jar 文件已损坏或丢失。

Solution: For Netbeans IDE go to project, select Project Properties.

解决方案:对于 Netbeans IDE 转到项目,选择项目属性。

From Project Properties wizard, Select Libraries.

从项目属性向导中,选择库。

select compile (tab), see any red line indicating Broken reference or missing library.

选择编译(选项卡),看到任何表示损坏的引用或缺少库的红线。

If you find any thing, remove it.

如果您发现任何东西,请将其删除。

Add the corresponding library/JAR to the project.

将相应的库/JAR 添加到项目中。

回答by Guerino Rodella

I got the same problem. Check you log and verify if it throws a missing Jar exception, that was my problem. For example, this was the log file

我遇到了同样的问题。检查您的日志并验证它是否会引发丢失的 Jar 异常,那是我的问题。例如,这是日志文件

Caused by: java.lang.Exception: java.lang.NoClassDefFoundError: de/undercouch/bson4Hymanson/BsonFactory

Then, just add the missing Jar files.

然后,只需添加缺少的 Jar 文件。

You can find your server log file at:

您可以在以下位置找到您的服务器日志文件:

Your_GlassFish_Location\glassfish\domains\domain1\logs\server.log

Hope it helps you! CYA

希望对你有帮助!CYA