[英]Compatibility Glassfish and Eclipse for WebApplications
I tried some tutorials for creating Web Applications using Eclipse Neon 3, Hibernate, Spring and Glassfish
server 4.1. 我尝试了一些使用Eclipse Neon 3,Hibernate,Spring和
Glassfish
服务器4.1创建Web应用程序的教程。 I downloaded Glassfish
Tools via Eclipse Marketplace, but I don't know how to solve my error about not publishing via Glassfish
server the project. 我通过Eclipse Marketplace下载了
Glassfish
工具,但是我不知道如何解决有关不通过Glassfish
服务器发布项目的错误。 Could you tell me what is the compatibility between them? 你能告诉我它们之间的兼容性是什么吗?
Glassfish
tools don't refer to the Glassfish
server 4.1, just 4. I read another questions and tried the solutions found there but it didn't work. Glassfish
工具没有引用Glassfish
服务器4.1,仅引用了4。我阅读了另一个问题,并尝试了在那里找到的解决方案,但是它没有用。
The error is: Could not publish to the server. 错误是:无法发布到服务器。
java.lang.NullPointerException
cannot Deploy [project_name]
deploy is failling = java.util.concurrent.TimeoutException
In Eclipse Project---> Clean --> Clean all projects---> ok. 在Eclipse Project ---> Clean-> Clean all projects ---> ok中。 Try to run the project Run as server.
尝试运行项目“以服务器身份运行”。
Right click on the Glassfish Server -> Properties -> GlassFish -> Tick on the Use JAR Archives for deployment. 右键单击Glassfish服务器->属性-> GlassFish->选中“使用JAR存档进行部署”。 (at the bottom)
(在底部)
This might work. 这可能有效。
And also if you get any domain related errors, just change the location of the installed Glassfish server from C: drive to other drives as Glassfish needs administrative access if placed in C: drive. 而且,如果遇到任何与域相关的错误,只需将已安装的Glassfish服务器的位置从C:驱动器更改为其他驱动器,因为如果将Glassfish放置在C:驱动器中,则需要管理访问权限。 So better place in other drives.
更好的放置在其他驱动器中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.