当前位置: 代码迷 >> 高性能WEB开发 >> S2SH配置,该如何处理
  详细解决方案

S2SH配置,该如何处理

热度:531   发布时间:2012-02-25 10:01:48.0
S2SH配置,急!!!!
小弟对S2SH开发是新手,刚配置了开发框架,tomcat给出信息为,如下:


信息: Deleted entity synthetic identifier rollback: disabled
2010-4-21 17:40:33 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
2010-4-21 17:40:33 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
2010-04-21 17:40:34,812 INFO - Terracotta 3.2.1, as of 20100304-100300 (Revision 14673 by cruise@su10mo5 from 3.2)
2010-04-21 17:40:35,968 WARN - We couldn't load configuration data from the server at 'localhost:9510'; retrying. (Error: Connection refused: connect.)
2010-04-21 17:40:40,984 WARN - We couldn't load configuration data from the server at 'localhost:9510'; retrying. (Error: Connection refused: connect.)
Fetch attempt duration: 300 seconds.

To correct this problem specify a valid configuration location using the -f/--config command-line options.
2010-4-21 17:45:35 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@17e121c: defining beans [dataSource,sessionFactory,transactionManager,userDao,userService,loginAction]; root of factory hierarchy
2010-4-21 17:45:35 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. Initial cause was java.lang.RuntimeException: com.tc.config.schema.setup.ConfigurationSetupException: 
*******************************************************************************
Could not fetch configuration data from the server at 'localhost:9510'. Fetch attempt duration: 300 seconds.

To correct this problem specify a valid configuration location using the -f/--config command-line options.
*******************************************************************************

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
  相关解决方案