Glassfish服务器库在Eclipse Kepler中不可用? [英] Glassfish Server Library not available in Eclipse Kepler?
问题描述
当我去
$ b时,我正在使用Eclipse Kepler建立一个新的开发机器,以部署在Glassfish 3.1.2.2实例上。$ b
项目属性> java构建路径>图书馆>添加库>服务器运行时
没有添加Glassfish服务器库的选项。 / p>
我所做的一些其他注意事项(无论是否帮助...):
- 手动安装GF
- 为Juno安装OEPE
- GF服务器已添加
- GF服务器启动/停止没有问题(从Eclipse)
在我的其他机器上我几乎有相同的设置,使用Juno而不是开普勒(不过,我也尝试过上面的一个新鲜的Juno安装)。那台机器有一切工作,但是在一段时间之前就已经设置好了根据我的理解,GF,Eclipse插件等已经有了很多变化: https://blogs.oracle。 com / piotrik / entry / glassfish_3_1_2_2 。所以也许它仍然在工程中,并没有完全准备好?
在此期间,我使用Modules文件夹中的Glassfish jar文件创建了一个用户库。不是理想的解决方案,但它现在适用。
但是,我仍然宁愿使用更干净的方法来添加服务器运行时。想法?
查看线程 GlassFish工具在Oracle论坛中不提供用于Java构建路径的服务器运行时间。
摘要:他们不再提供服务器运行时用于普通Java项目。相反,项目需要是一个方面的项目,并有一个目标运行时。
要配置此项,请执行以下操作:
- 转到项目属性> 项目方面
- 如有必要,请点击转换为分面。 ..
- 在运行版标签中,选择 GlassFish 3.1
如果您需要将GlassFish库导出到依赖项目,还要执行以下操作:
- 在项目方面属性中,选择实用程序模块,然后单击应用
- 构建路径> 订单和导出,选择 GlassFish系统库
I'm setting up a new dev machine with Eclipse Kepler to deploy on a Glassfish 3.1.2.2 instance.
When I go to
project properties > java build path > libraries > add library > server runtime
There is no option to add the Glassfish server libraries.
Some other notes of what I've done (whether they help or not...):
- Manually installed GF
- Installed OEPE for Juno
- GF Server already added
- GF Server starts / stops no problem (from Eclipse)
I pretty much had the same setup on my other machine with the exception that I used Juno instead of Kepler (however, I tried the above with a fresh Juno install as well). That machine has everything working but was set up a while ago. From what I understand, there has been a lot of changes with GF, Eclipse plugins and such: https://blogs.oracle.com/piotrik/entry/glassfish_3_1_2_2 . So perhaps it's still under works and not fully ready?
In the meantime, I created a User Library with the Glassfish jar files from the Modules folder. Not the ideal solution but it works for now.
However, I still rather have the "cleaner" method of adding a Server Runtime instead. Ideas?
See the thread GlassFish Tools does not provide a Server Runtime for Java Build Path in the Oracle forum.
Summary: They no longer provide a "Server Runtime" for plain Java projects. Instead, the project needs to be a faceted project and have a target runtime.
To configure this, do the following:
- Go to the project properties > Project Facets
- If necessary, click on Convert to faceted form...
- In the Runtimes tab, select GlassFish 3.1
In case you need to export the GlassFish libraries to dependent projects, also do the following:
- In Project Facets properties, select Utility Module and click Apply
- In Java Build Path > Order and Export, select GlassFish System Libraries
这篇关于Glassfish服务器库在Eclipse Kepler中不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!