部署到WebLogic的Spring应用程序 - <fast-swap>设置为true - org.springframework.beans.factory.BeanCreationException

时间:2017-05-16 17:25:42

标签: java spring weblogic weblogic12c

如果没有添加到weblogic.xml

,应用程序就可以正常运行
<fast-swap>
    <enabled>true</enabled>
</fast-swap>

以下是使用<fast-swap>

的文档

Using FastSwap Deployment to Minimize Redeployment

这是整个错误

   [[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fleetSeriesHelpRepo': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property beaInvoke found for type FleetSeriesHelp!
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)

1 个答案:

答案 0 :(得分:0)

显然,WebLogic的快速交换对反射的支持有限 - Spring在任何地方都使用它。

https://zeroturnaround.com/forums/topic/javarebel-vs-fastswap/