Glassfish 3.1.2 和 Eclipse

发布于 2024-12-28 15:25:06 字数 447 浏览 2 评论 0原文

我刚刚下载了 Glassfish 版本 3.1.2,这还不是正式版本。 我需要这个版本,因为我的 Web 应用程序正在使用 websockets。 我现在遇到的问题是 Eclipse 的 Glassfish 插件,他无法识别新的 Glassfish 版本。 使用 Eclipse 中的 Glassfish 版本 3.1.1 一切正常。 我正在使用 Oracle 的 Oracle Glassfish Server Tools(Eclipse 插件)版本 2.0.0.20111104904(我可以下载的最后一个版本)。 如果我尝试在 Eclipse 中为 Glassfish 3.1.2 添加新的服务器运行时环境,则会收到错误消息: 指定目录中没有有效的 GlassFish 安装... 我需要一切才能在 Eclipse 中调试我的 Web 应用程序。

有人知道插件在检查什么吗? 有任何更改可以欺骗插件,因此也可以与 Glashfish 3.1.2 一起运行吗?

I just downloaded the Glassfish version 3.1.2, this is not yet an official release.
I need this version because my web application is using websockets.
The problem I have now is with the Glassfish plugin for eclipse, he is not recognizing the new Glassfish Version.
With the Glassfish Version 3.1.1 in Eclipse everything works fine.
I am using Oracle Glassfish Server Tools (Eclipse plugin ) version 2.0.0.20111104904 from Oracle(last version I could download).
If I try to add a new Server Runtime Environment in Eclipse for the Glassfish 3.1.2 I get the error:
There is no valid GlassFish installation in the specified directory...
I need everything to be able to debug my web application in Eclipse.

Anyone know what the plugin is checking ?
There is any change to trick the plugin so will run with Glashfish 3.1.2 too ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

樱花落人离去 2025-01-04 15:25:06

使用此处的插件(对于 Indigo):http://dlc.sun.com.edgesuite.net /glassfish/eclipse/indigo/

Helios 插件不支持 3.1.2。

如果您必须忍受 Oracle 所祝福的部分或继续使用 Helios,那么您可以尝试以下技巧:

创建几个文件......

${glassfish.rootdirectory}/modules/jsf-impl.jar 和
${glassfish.rootdirectory}/modules/jstl-impl.jar

这些文件在 3.1.1 和 3.1.2 之间被重命名...

您可以通过以下方式将 3.1.2 伪装成 3.1.1
使用上述名称创建空文件。如果这还不行的话
复制以下文件就可以了。

jstl-impl.jar 的新名称是
gf312/glassfish/modules/javax.servlet.jsp.jstl.jar

jsf-impl.jar 的新名称是
gf312/glassfish/modules/javax.faces.jar。

Use the plugin from here (for Indigo): http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/

The plugin for Helios does not support 3.1.2.

If you have to live with the bits the are blessed by Oracle or keep using Helios, then you can try the following trick:

create a couple files....

${glassfish.rootdirectory}/modules/jsf-impl.jar and
${glassfish.rootdirectory}/modules/jstl-impl.jar

These files were renamed between 3.1.1 and 3.1.2...

You may be able to get the 3.1.2 to mascarade as 3.1.1 by just
creating empty files with the above names. If that doesn't do it,
make copies of the following files should do it.

The new name for jstl-impl.jar is
gf312/glassfish/modules/javax.servlet.jsp.jstl.jar

The new name for jsf-impl.jar is
gf312/glassfish/modules/javax.faces.jar.

无所谓啦 2025-01-04 15:25:06

如果您使用的是 Helios,则可以尝试以下操作:

虽然插件说的是 indigo,但它在 Helios 中也适用于我。它提供了 Glassfish 3.1.1 和 3.1.2 服务器的选项(名称更改前和后)。

请注意,它会下载 Glassfish 本身,并安装内部服务器。如果您想要使用现有的服务器(就像我所做的那样),您可以删除该服务器,然后安装您自己的服务器(“新服务器...”)。

HTH。

If you are on Helios, you can try the following:

Though the plugin says indigo, it is also working for me in Helios. And it gives options for both Glassfish 3.1.1 and 3.1.2 servers (pre and post name changes).

Note that it downloads Glassfish itself, and installs an internal server. You can delete that one, and install your own server ("New server...") if you have an existing server you want to work with (as I did).

HTH.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文