2014-01-24 82 views
0

我在生成的應用程序中遇到了一些問題。我還沒有進入它,但我評論他@EnableScheduling,它運行。看起來像春天的問題。正在運行的問題

Caused by: java.lang.NoSuchMethodError: org.springframework.scheduling.annotation.SchedulingConfiguration.setBeanFactory(Lorg/springframework/beans/factory/BeanFactory;)V 
at org.springframework.scheduling.annotation.SchedulingConfiguration$$EnhancerByCGLIB$$180fc4ed.setBeanFactory(<generated>) 
at org.springframework.context.annotation.ConfigurationClassPostProcessor$EnhancedConfigurationBeanPostProcessor.postProcessPropertyValues(ConfigurationClassPostProcessor.java:442) 
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) 
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) 
... 65 more 

接下來的應用程序配置文件中有錯誤的類:.conf。造成了一個問題。應該已經.config。

hibernate.cache.region.factory_class: com.mycompany.hipster.conf.hazelcast.HazelcastCacheRegionFactory 

而不是

hibernate.cache.region.factory_class: com.mycompany.hipster.config.hazelcast.HazelcastCacheRegionFactory 

最後DB信息未正確設置至少Postgres的。網址和用戶名缺失。如果您可以更新安裝文檔來覆蓋該文檔,或者只是將其默認爲localhost。也許在dev中運行時吐出配置信息。其他

一件事是從休眠警告:

[WARN] org.hibernate.ejb.HibernatePersistence - HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead. 

非常酷的設置。謝謝!

回答