tomcat在服务中注册好了,启动后一会自己关闭了
\直接启动startup.sh可以启动程序
启动tomcat7.exe 启动大概三十秒后自动关闭了
把tomcat7.exe放到cmd里面执行报下面的错误,
哪个大侠注册成功过,帮下
(AbstractApplicationContext.java:480)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebA
pplicationContext(ContextLoader.java:403)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4994)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5492)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1245)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1895)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:43
9)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not au
towire method: public void com.test.platform.common.cache.impl.EhcacheRepositor
y.setEhcacheManager(net.sf.ehcache.CacheManager); nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name 'eh
cacheManager' defined in class path resource [config/cache-ehcache.xml]: Invocat
ion of init method failed; nested exception is net.sf.ehcache.config.InvalidConf
igurationException: There is one error in your configuration:
* CacheManager configuration: You've assigned more memory to the on-heap
than the VM can sustain, please adjust your -Xmx setting accordingly
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.
java:643)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject
(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java
:331)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'ehcacheManager' defined in class path resource [config/cache-
ehcache.xml]: Invocation of init method failed; nested exception is net.sf.ehcac
he.config.InvalidConfigurationException: There is one error in your configuratio
n:
* CacheManager configuration: You've assigned more memory to the on-heap
than the VM can sustain, please adjust your -Xmx setting accordingly
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
findAutowireCandidates(DefaultListableBeanFactory.java:1081)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
doResolveDependency(DefaultListableBeanFactory.java:1006)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
resolveDependency(DefaultListableBeanFactory.java:904)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.
java:600)
... 29 more
Caused by: net.sf.ehcache.config.InvalidConfigurationException: There is one err
or in your configuration:
* CacheManager configuration: You've assigned more memory to the on-heap
than the VM can sustain, please adjust your -Xmx setting accordingly
at net.sf.ehcache.config.CacheConfiguration.setupFor(CacheConfiguration.
java:1591)
at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1285)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1337)
at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:758
)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:459)
at net.sf.ehcache.CacheManager.init(CacheManager.java:377)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:259)
at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterProp
ertiesSet(EhCacheManagerFactoryBean.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1627)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
... 39 more
2015-03-17 15:36:59,865 [INFO ] [AbstractEntityManagerFactoryBean.java] destroy
: 441 -- Closing JPA EntityManagerFactory for persistence unit 'default'
2015-03-17 15:37:00,052 [ERROR] [ContextLoader.java] initWebApplicationContext :
331 -- Context initialization failed
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
findAutowireCandidates(DefaultListableBeanFactory.java:1081)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
doResolveDependency(DefaultListableBeanFactory.java:1006)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
resolveDependency(DefaultListableBeanFactory.java:904)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.
java:600)
... 29 more
Caused by: net.sf.ehcache.config.InvalidConfigurationException: There is one err
or in your configuration:
* CacheManager configuration: You've assigned more memory to the on-heap
than the VM can sustain, please adjust your -Xmx setting accordingly
at net.sf.ehcache.config.CacheConfiguration.setupFor(CacheConfiguration.
java:1591)
at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1285)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1337)
at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:758
)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:459)
at net.sf.ehcache.CacheManager.init(CacheManager.java:377)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:259)
at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterProp
ertiesSet(EhCacheManagerFactoryBean.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1627)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
... 39 more
2015-03-17 15:37:00,068 [INFO ] [JoyinPlantContextListener.java] contextInitiali
zed : 37 -- *******************************************************
2015-03-17 15:37:00,068 [INFO ] [JoyinPlantContextListener.java] contextInitiali
zed : 38 -- test应用开发平台->开始启动...
2015-03-17 15:37:00,068 [INFO ] [JoyinPlantContextListener.java] contextInitiali
zed : 39 -- *******************************************************
2015-03-17 15:37:00,068 [INFO ] [JoyinPlantContextListener.java] contextInitiali
zed : 50 -- test应用开发平台->开始启动失败...