2013-03-23 51 views
0

我安裝了最新的WebSphere Liberty配置文件到Mac:的IntelliJ 12和WebSphere 8.5自由接下來β - Application Server庫沒有發現

wlp-developers-runtime-8.5.next.beta.jar 

的WebSphere版本顯示爲的IntelliJ 8.5.next.beta

在的IntelliJ 12我嘗試添加該WebSphere Application Server和我得到:

無法保存設置:未找到Application Server庫

如果我期待在文件系統似乎位置:

  • com.ibm.ws.javaee.jsp.2.2_1.0.0.0.jar
  • com.ibm.ws.javaee.servlet.3.0_1.0.0.jar

有我不知道從/dev/spec/dev/api/spec

變化,如果這是根本原因,但似乎的IntelliJ這些在以前的版本添加到類路徑。有沒有辦法讓intellij啓動並運行我可以更改它尋找庫的位置嗎?

+0

您應該從[支持功能請求]開始(http://youtrack.jetbrains.com/issues/IDEA)。 – CrazyCoder 2013-03-23 17:31:27

+1

完成 - http://youtrack.jetbrains.com/issue/IDEA-103787 – planetjones 2013-03-23 17:44:16

回答

2

有同樣的問題。有兩種方法。

將wlp 8.5解壓縮到您想要使用wlp 8.5.next的文件夾中。解壓後,將IntelliJ指向該文件夾,它會檢測到它。一旦檢測到,只需刪除wlp文件夾並將8.5.next解壓縮到相同位置即可。完成後,更正庫路徑。

或;打開的IntelliJ的other.xml文件(通常是在〜/ .IntelliJIDEA12 /配置/選項/ other.xml),並修改如下:

<?xml version="1.0" encoding="UTF-8"?> 
<application> 
    <!-- other stuff --> 
    <component name="AppserversManager"> 
    <LibraryTable> 
     <library name="WebSphere 8.5.Next.Beta"> 
     <CLASSES> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.annotation.1.1_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.cdi.1.0_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.ejb.3.1_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.el.2.2_1.0.1.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.interceptor.1.1_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jaxb.2.2_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jaxrs.1.1_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jaxws.2.2_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jms.1.1_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jsf.2.0_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jsf.tld.2.0_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jsp.2.2_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jsp.tld.2.2_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.jstl.1.2_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.persistence.2.0_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.servlet.3.0_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.transaction.1.1_1.0.0.jar!/" /> 
      <root url="jar:///opt/wlp/dev/api/spec/com.ibm.ws.javaee.validation.1.0_1.0.0.jar!/" /> 
     </CLASSES> 
     <JAVADOC /> 
     <SOURCES /> 
     </library> 
    </LibraryTable> 
    <ServerDK NAME="WebSphere 8.5.Next.Beta"> 
     <option name="SOURCE_INTEGRATION_NAME" value="WebSphere Server" /> 
     <DATA> 
     <state> 
      <option name="home" value="/opt/wlp" /> 
      <option name="version" value="8.5.next.beta" /> 
     </state> 
     </DATA> 
    </ServerDK> 
    </component> 
    <!-- rest --> 
</application> 
相關問題