2017-05-31 34 views
0

我已經成功地盯着我的應用程序,但一段時間後,它會顯示在頁面刷新錯誤日誌。它發生了幾次,我已經解決它只是刪除目標文件夾。我認爲這不是這個問題的永久解決方案。請幫我解決這個問題。
我也嘗試過該網站上提供的各種解決方案,但無法找到一個合適的解決方案。LifecycleException:無法啓動組件

在此先感謝。

INFO: Spring WebApplicationInitializers detected on classpath: [[email protected]] 
May 31, 2017 12:47:43 PM org.apache.catalina.core.StandardContext reload 
SEVERE: Exception starting Context with name [] 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) 
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3926) 
    at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) 
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) 
    at java.lang.Thread.run(Thread.java:745) 
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\Work\iFinance\iFin\target\classes\com\iGenius\iFinance\collectionentry\dao\CollectionEntryDAOImpl.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [D:\Work\iFinance\iFin\target\classes\com\iGenius\iFinance\collectionentry\dao\CollectionEntryDAOImpl.class]; nested exception is java.lang.IllegalArgumentException 
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:281) 
    at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242) 
    at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:123) 
    at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:219) 
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:154) 
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:140) 
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:282) 
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223) 
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) 
    at com.iGenius.iFinance.init.Initializer.onStartup(Initializer.java:33) 
    at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:180) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5280) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    ... 8 more 
Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [D:\Work\iFinance\iFin\target\classes\com\iGenius\iFinance\collectionentry\dao\CollectionEntryDAOImpl.class]; nested exception is java.lang.IllegalArgumentException 
    at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:56) 
    at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) 
    at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102) 
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:257) 
    ... 21 more 
Caused by: java.lang.IllegalArgumentException 
    at org.springframework.asm.ClassReader.<init>(Unknown Source) 
    at org.springframework.asm.ClassReader.<init>(Unknown Source) 
    at org.springframework.asm.ClassReader.<init>(Unknown Source) 
    at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:53) 
    ... 24 more 

May 31, 2017 12:47:43 PM org.apache.catalina.core.StandardContext reload 
INFO: Reloading Context with name [] is completed 

回答

0

我正面臨這個問題,它會加載我的本地,但不會在CentOs上。我刪除了catalina.out,重新創建它,然後重新部署我的項目,它裝載正常。

相關問題