Glassfish 3.1.2和Eclipse [英] Glassfish 3.1.2 and Eclipse

查看:111
本文介绍了Glassfish 3.1.2和Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



任何人都知道插件正在检查什么?
有什么变化来欺骗插件,所以也可以使用Glashfish 3.1.2运行?

解决方案

使用插件从这里(对于Indigo): http://dlc.sun.com.edgesuite.net/glassfish/ eclipse / indigo /



Helios插件不支持3.1.2。



如果你必须忍受甲骨文祝福或者继续使用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的mascarade。如果没有这样做,
会复制以下文件。



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


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



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 ?

解决方案

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.

这篇关于Glassfish 3.1.2和Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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