JRebel& Docker bean初始化错误

时间:2017-03-02 12:55:54

标签: java spring docker jboss

我正在使用在Docker上运行的JBoss部署我的应用程序。

当我运行脚本来构建和运行图像时,其中一个bean仍在制造麻烦:

ServerService Thread Pool -- 100| ERROR [org.springframework.web.context.ContextLoader] 
- Context initialization failed: org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'applicationValidatorService': Cannot resolve reference to bean 'applicationValidator' 
while setting constructor argument; 
    nested exception is org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'applicationValidator' defined in file [/home/exion/.jrebel/cache/ib-validation-ws-impl/deployment/META-INF/spring/ws-applications-beans.xml]: 
    Cannot resolve reference to bean 'poolTaskManager' while setting bean property 'taskManager'; 
        nested exception is org.springframework.beans.factory.BeanCreationException: 
        Error creating bean with name 'poolTaskManager' defined in file [/home/exion/.jrebel/cache/tasks/deployment/META-INF/spring/tasks-beans.xml]: 
        Cannot resolve reference to bean 'taskExecutor' while setting bean property 'taskExecutor'; 
            nested exception is org.springframework.beans.factory.BeanCreationException: 
            Error creating bean with name 'taskExecutor' defined in file [/home/exion/.jrebel/cache/tasks/deployment/META-INF/spring/tasks-beans.xml]: 
            Cannot resolve reference to bean 'actionExecutor' while setting bean property 'executor'; 

        (...)

这是我的bean定义文件:



<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:http="http://cxf.apache.org/transports/http/configuration" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd"
  default-lazy-init="true">
  <bean id="applicationValidator" class="amg.exion.ib.ws.validation.ApplicationValidatorImpl">
    <property name="taskManager" ref="poolTaskManager" />
  </bean>
  <jaxws:endpoint id="applicationValidatorService" implementor="#applicationValidator" address="/appValidator" />
  <jaxws:endpoint id="fundsBlockerService" implementor="#fundsBlocker" address="/fundsBlocker" />
</beans>
&#13;
&#13;
&#13;

我注意到当我在 ib-validation-ws-impl 上运行mvn clean然后重新构建我的应用程序时,这个错误没有出现。

此错误是否与jrebel缓存有关?如果是,那么如何清除它?

0 个答案:

没有答案