myeclipse整合weblogicserver

來源:互聯網
上載者:User

標籤:des   style   blog   http   java   檔案   

今天為了學一下JMS的東東, 不得不安裝個weblogicserver, 下面是詳細的安裝步驟:


1. 首先去官網下載一個weblogic:

   : http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.zip


2. 我將檔案解壓縮到D:\develop 檔案夾, 並改名為weblogic. 點擊安裝資料夾下的 configure.cmd, 

    它會幫我們自己主動配置, 當提示是否要domain的時候, 輸入Y, 然後填寫username和password.


3. 開啟myeclipse, 進入下面檔案夾: window -> preferences -> myeclipse -> servers -> weblogic -> weblogic 10.x

    配置例如以下所看到的:


    


4. 啟動的時候會出現一下問題:

Exception in thread "main" java.lang.AssertionError: JAX-WS 2.2 API is required, but an older version was found in the JDK.
Use the endorsed standards override mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/).
1) locate the bundled Java EE 6 endorsed directory in $WL_HOME/endorsed.
2) copy those JAR files to $JAVA_HOME/jre/lib/endorsed OR add the endorsed directory to the value specified by system property java.endorsed.dirs.

解決方案,例如以下:
1) 第一步在D:\develop\weblogic\oracle_common\modules\endorsed\ 檔案夾下新增2個jar包
      jaxws-api-2.2.6.jar
      jaxb-api-2.2.jar
2) 配置參數 -Djava.endorsed.dirs=D:\ProgramSoftware\weblogic\wls1212_dev\wls12120\oracle_common\modules\endorsed

      -Djava.endorsed.dirs=D:\develop\weblogic\oracle_common\modules\endorsed


   


5. 又一次啟動, 訪問一下此頁面: http://localhost:7001/console/login/LoginForm.jsp , 假設配置成功就會進入一個登陸頁面.

    不一定要在myeclipse中啟動,點擊這個也是ok的: D:\develop\weblogic\user_projects\domains\mydomain\startWebLogic.cmd 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.