2016-06-07 140 views
1

我有一個包含以下模塊的耳朵項目:Wildfly部署問題

  1. RedemtionService
  2. RedemptionWeb
  3. RedemtionBean
  4. RedemptionCache
  5. RedemptionCommon

在本地wildfly服務器I已經成功部署了它,但是當我時要部署該另一個生產服務器,然後它拋出一個異常如下:

2016-06-07 14:46:06,289 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 76) JBAS015870: Deploy of deployment "Test.ear" was rolled back with the following failure message: 
{ 
    "JBAS014771: Services with missing/unavailable dependencies" => [ 
     "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl]", 
     "jboss.deployment.subunit.\"Test.ear\".\"RedemptionCache.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"Test.ear\".\"RedemptionCache.jar\".beanmanager]", 
     "jboss.deployment.subunit.\"Test.ear\".\"RedemptionBeans.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"Test.ear\".\"RedemptionBeans.jar\".beanmanager]", 
     "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService.HandleDelegate is missing [jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl.Validator is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl]", 
     "jboss.deployment.subunit.\"Test.ear\".\"RedemptionService.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"Test.ear\".\"RedemptionService.jar\".beanmanager]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl]", 
     "jboss.deployment.unit.\"Test.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"Test.ear\".beanmanager]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl.ORB is missing [jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService.InstanceName is missing [jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService]", 
     "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl.InAppClientContainer is missing [jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl]", 
     "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl.ValidatorFactory is missing [jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl]" 
    ], 
    "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => { 
     "Services that were unable to start:" => [ 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionBeans.jar\".INSTALL", 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionCache.jar\".INSTALL", 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionService.jar\".INSTALL", 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionWeb.war\".INSTALL", 
      "jboss.deployment.unit.\"Test.ear\".INSTALL" 
     ], 
     "Services that may be the cause:" => [ 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionBeans.jar\".beanmanager", 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionCache.jar\".beanmanager", 
      "jboss.deployment.subunit.\"Test.ear\".\"RedemptionService.jar\".beanmanager", 
      "jboss.deployment.unit.\"Test.ear\".beanmanager", 
      "jboss.http-upgrade-registry.default", 
      "jboss.naming.context.java.comp.Test.RedemptionBeans.CacheDaoImpl", 
      "jboss.naming.context.java.comp.Test.RedemptionBeans.FGSFDaoImpl", 
      "jboss.naming.context.java.comp.Test.RedemptionBeans.GenericDAOImpl", 
      "jboss.naming.context.java.comp.Test.RedemptionCache.AppCacheService", 
      "jboss.naming.context.java.comp.Test.RedemptionService.AsyncSMSServiceImpl", 
      "jboss.naming.context.java.comp.Test.RedemptionService.FGSFRedeemServiceImpl", 
      "jboss.naming.context.java.comp.Test.RedemptionService.FGSFServiceImpl", 
      "jboss.remoting.remotingConnectorInfoService.http-remoting-connector" 
     ] 

我怎樣才能解決這個問題呢?我在過去2天內搜索此解決方案表單,但仍未找到任何內容。

+0

你有什麼地方和生產wildflies的版本? – Sergio

+0

@Sergio兩者都是一樣的8.2.0最終 –

+0

都是在同一模式下啓動的野蠅嗎? (例如,standalone.xml vs standalone-full.xml?)是否是免費的http端口? – user140547

回答

1

默認情況下,耳朵部署中一個模塊中的類無法訪問其他模塊的類。您必須提供一個jboss-deployment-structure.xml並覆蓋默認行爲。您必須將ear-subdeployments設置爲false,以啓用類的共享。欲瞭解更多詳情,請諮詢有關EAR類裝載部分按以下鏈接:

https://docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly?_sscc=t

+0

ear-subdeployments-isolated已將此屬性設置爲false wildfly –

+0

通過查看錯誤日誌,似乎焊接未能註冊bean也許beans.xml缺失?或者,也許你是在JEE-light配置文件中開始wildfly,導致這些bean失敗(因爲它們依賴於JMS等子系統) – saby

+0

什麼是JEE-Light配置文件?現在我正在全哈公開個人資料? –