spring MVC Web工程发布到Resin3.1.8的问题
Web工程用MyEclipse8.5开发,开发用Resin3.1.8与发布用Resin完全相同(同目录),开发时一切正常,关闭MyEclipse,用Resin内的httpd.exe启动服务时,发生错误:(非缺少包spring-asm-3.1.1.RELEASE.jar,asm在spring-core-3.2.0.RELEASE.jar中包含)
Starting Resin on Thu, 03 Nov 2016 01:16:39 +0800 (CST)
[01:16:41.207] {main} 'select-manager' requires Resin Professional. See http://www.caucho.com for information and licensing.
[01:16:41.208] {main}
[01:16:41.208] {main} Windows 7 6.1 amd64
[01:16:41.208] {main} Java(TM) SE Runtime Environment 1.8.0_65-b17, GBK, zh
[01:16:41.208] {main} Java HotSpot(TM) 64-Bit Server VM 25.65-b01, 64, mixed mode, Oracle Corporation
[01:16:41.208] {main} user.name: johooon_tiger
[01:16:41.208] {main} resin.home = D:\webserver\resin-3.1.8
[01:16:41.209] {main} resin.root = D:\webserver\resin-3.1.8
[01:16:41.209] {main} resin.conf = /D:/webserver/resin-3.1.8/conf/resin.conf
[01:16:41.209] {main}
[01:16:41.458] {main} WebApp[http://localhost:8082] Set web app root system property: 'vpmsystem.root' = [D:\webserver\resin-3.1.8\webapps\vpms\]
[01:16:41.510] {main} WebApp[http://localhost:8082] Initializing log4j from [classpath:config/log4j.properties]
[01:16:41.641] {main} WebApp[http://localhost:8082] Initializing Spring root WebApplicationContext
2016-11-03 01:16:41,642[INFO]org.springframework.web.context.ContextLoader - [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:272)] - <Root WebApplicationContext: initialization started>
2016-11-03 01:16:41,819[INFO]org.springframework.web.context.support.XmlWebApplicationContext - [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:510)] - <Refreshing Root WebApplicationContext: startup date [Thu Nov 03 01:16:41 CST 2016]; root of context hierarchy>
2016-11-03 01:16:41,905[INFO]org.springframework.beans.factory.xml.XmlBeanDefinitionReader - [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)] - <Loading XML bean definitions from class path resource [config/spring/dao.xml]>
2016-11-03 01:16:42,345[INFO]org.springframework.beans.factory.xml.XmlBeanDefinitionReader - [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)] - <Loading XML bean definitions from class path resource [config/spring/service.xml]>
2016-11-03 01:16:42,631[ERROR]org.springframework.web.context.ContextLoader - [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:307)] - <Context initialization failed>
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:52)
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)
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 org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at com.caucho.server.webapp.WebApp.start(WebApp.java:1866)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
at com.caucho.server.host.Host.start(Host.java:450)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
at com.caucho.server.cluster.Server.start(Server.java:1319)
at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
at com.caucho.server.resin.Resin.start(Resin.java:703)
at com.caucho.server.resin.Resin.initMain(Resin.java:1162)
at com.caucho.server.resin.Resin.main(Resin.java:1365)
[01:16:42.677] {main} java.lang.IllegalArgumentException
[01:16:42.677] {main} at org.springframework.asm.ClassReader.<init>(Unknown Source)
[01:16:42.677] {main} at org.springframework.asm.ClassReader.<init>(Unknown Source)
[01:16:42.677] {main} at org.springframework.asm.ClassReader.<init>(Unknown Source)
[01:16:42.677] {main} at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52)
[01:16:42.677] {main} at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
[01:16:42.677] {main} at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
[01:16:42.677] {main} at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)
[01:16:42.677] {main} at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)
[01:16:42.677] {main} at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)
……
字数所限,回帖中贴完整的出错信息和web.xml
求大侠帮忙看看原因,求解决办法,不胜感激!