2016-11-14 75 views
-1

我在我的本地windows 7/liberty j2ee7/Eclipse Mars上運行的ear文件沒有任何問題。我正試圖將它部署在碼頭上的自由。我收到了錯誤消息。有什麼建議麼?liberty redhat部署不起作用

[審覈] CWWKE0001I:服務器defaultServer已啓動。

[審覈] CWWKE0100I:本產品被授權進行開發和有限生產​​使用。完整的許可條款可以在這裏查看:https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/16.0.0.3/lafiles/en.html

[審計] CWWKG0093A:處理配置下拉插件資源:/opt/ibm/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml

[警告] CWWKS3103W:沒有爲ID com.ibm.ws.security.registry.basic.config [basic]的BasicRegistry配置定義的用戶。

[審覈] CWWKS4104A:在3.308秒內創建的LTPA密鑰。 LTPA密鑰文件:/opt/ibm/wlp/output/defaultServer/resources/security/ltpa.keys

[審覈] CWWKZ0058I:監控應用程序的下載。

[審覈] CWPKI0803A:在4.004秒內創建的SSL證書。 SSL密鑰文件:/opt/ibm/wlp/output/defaultServer/resources/security/key.jks

[審覈] CWWKI0001I:CORBA名稱服務器現在可在corbaloc:iiop:localhost:2809/NameService上使用。

[審覈] CWWKZ0012I:應用程序csxstartershowcaseEAR未啓動。

[錯誤] CWWKZ0124E:應用程序csxstartershowcaseEAR不包含任何模塊。

[AUDIT] CWWKF0012I:服務器安裝了以下特徵:servlet的3.1,beanValidation-1.1,SSL-1.0,JNDI-1.0,JCA-1.7,ejbPersistentTimer-3.2,appSecurity-2.0,j2eeManagement-1.1, jdbc-4.1,wasJmsServer-1.0,jaxrs-2.0,javaMail-1.5,cdi-1.2,webProfile-7.0,jcaInboundSecurity-1.0,jpa-2.1,jsp-2.3,ejbLite-3.2,managedBeans-1.0,jsf-2.2,ejbHome- 3.2,jaxws-2.2,localConnector-1.0,jsonp-1.0,el-3.0,jaxrsClient-2.0,concurrent-1.0,appClientSupport-1.0,ejbRemote-3.2,javaee-7.0,jaxb-2.2,mdb-3.2,jacc-1.5, batch-1.0,ejb-3.2,json-1.0,jaspic-1.1,distributedMap-1.0,websocket-1.1,wasJmsSecurity-1.0,wasJmsClient-2.0]。

[審覈] CWWKF0011I:服務器的defaultServer準備運行一個更智能的星球。

我的server.xml如下。

<?xml version="1.0" encoding="UTF-8"?> 
<server description="Default server"> 

    <!-- Enable features --> 
    <featureManager> 
     <feature>javaee-7.0</feature> 
     <feature>localConnector-1.0</feature> 
    </featureManager> 


    <basicRegistry id="basic" realm="BasicRealm"> 
     <!-- <user name="yourUserName" password="" /> --> 
    </basicRegistry> 

    <!-- To allow access to this server from a remote client host="*" has been added to the following element --> 
    <httpEndpoint id="defaultHttpEndpoint" 
        host="*" 
      httpPort="9080" 
        httpsPort="9443" /> 

    <!-- Automatically expand WAR files and EAR files --> 
    <applicationManager autoExpand="true"/> 

     <!-- Datasource --> 
    <library id="derbyLibrary"> 
      <fileset dir="${shared.resource.dir}/derby" id="shared.resource.dir..derby"/> 
    </library> 
    <jdbcDriver javax.sql.ConnectionPoolDataSource="org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40" javax.sql.DataSource="org.apache.derby.jdbc.EmbeddedDataSource" javax.sql.XADataSource="org.apache.derby.jdbc.EmbeddedXADataSource40" libraryRef="derbyLibrary"> 
    </jdbcDriver> 

    <!-- Application --> 
    <enterpriseApplication id="aEAR" name="aEAR"> 
      <classloader commonLibraryRef="derbyLibrary"></classloader> 
    </enterpriseApplication> 

</server> 
+0

在Docker中,根據您部署應用程序的方式,您可能會遇到自動擴展問題。嘗試設置'applicationManager autoExpand =「false」'。或者從Eclipse進行部署 - 最新的WebSphere Developer Tools具有Docker支持,您可以直接部署到Docker容器。 – Gas

+0

@Gas嘗試autoExpand =「false」不起作用。 – rickcoup

+0

我的應用程序需要EJB,JAXWS。我是否需要將它們放入server.xml中的功能管理器中?我不需要在當地做。 – rickcoup

回答

0

終於搞明白了。我使用Oracle JRE在Eclipse中構建並運行耳朵。當我切換到IBM JRE來構建EAR時,它適用於docker liberty。 (Docker Liberty上的錯誤消息是無能爲力的。)