2012-01-25 36 views
17

我剛剛下載了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安裝... 我需要一切都能夠調試我的Web應用程序在Eclipse中。Glassfish 3.1.2和Eclipse

任何人都知道插件正在檢查什麼? 有什麼變化來欺騙插件,所以也會與Glashfish 3.1.2一起運行?

+1

除非出現明顯的錯誤(如完全不指定目錄),否則我真的懷疑這是可能的。 – Eugene

回答

18

使用插件從這裏(靛藍):http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/

赫利奧斯公司的插件不支持3.1.2。

如果你不得不忍受的是由Oracle祝福或繼續使用赫利俄斯位,那麼你可以嘗試下面的技巧:

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.

+1

任何想法爲什麼插件的Indigo版本不在Eclipse Marketplace中?這是否表明該項目是死的,非官方的或其他? http://dlc.sun.com.edgesuite.net/glassfish/eclipse/建議插件最後更新於2009年12月 –

+0

如果你在eclipse indigo中啓動eclipse marketplace,然後輸入glassfish然後按下find你將找到適用於Eclipse的Glassfish Java EE應用服務器插件,您可能需要Eclipse Indigo EE版。第二個選項是Eclipse的GlassFish工具包,但我使用第一個選項,因爲它是最新的。您也可以爲Eclipse Indigo安裝GlassFish Tools Bundle for Eclipse。 –

6

如果你是太陽神,你可以嘗試以下方法:

雖然插件說靛藍,這也是太陽神爲我工作。它爲Glassfish 3.1.1和3.1.2服務器提供了選項(更改前後名稱)。

請注意,它下載Glassfish本身並安裝內部服務器。如果你有一臺你想要的現有服務器(就像我一樣),你可以刪除它,並安裝你自己的服務器(「新服務器...」)。

HTH。

相關問題