Tomcat FileNotНайдено исключение - PullRequest
0 голосов
/ 18 февраля 2019

Я пытаюсь развернуть военный файл весеннего проекта на tomcat.при развертывании я получаю следующую ошибку в журнале.

    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: /${X_CONF_DIR}/ext-catalog/app.properties (No such file or directory)
.

Я определил X_CONF_DIR для bash_profile, и когда я набираю cmd env, X_CONF_DIR отображается правильно.

Я пытался

cd /${X_CONF_DIR}/ext-catalog/

и он идет в это место.Но все равно каким-то образом я получаю исключение, не найденное в файле.

config.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:mongo="http://www.springframework.org/schema/data/mongo"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo.xsd
        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

  <context:property-placeholder
      location="file:///${X_CONF_DIR}/ext-catalog/app.properties,
      file:///${X_CONF_DIR}/ext-catalog/mongo.properties,
      file:///${X_CONF_DIR}/ext-catalog/solr.properties,
      file:///${X_CONF_DIR}/ext-catalog/redis.properties,
      file:///${X_CONF_DIR}/ext-catalog/domain-event-publisher.properties,
      file:///${X_CONF_DIR}/ext-catalog/domain-event-subscriber.properties"
      properties-ref="applicationDefaultProperties" ignore-resource-not-found="false"
      ignore-unresolvable="false"/>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...