ssh事务-SSH配置事务tomcat启动报错问题

问题描述

SSH配置事务tomcat启动报错问题

tomcat启动报错:
严重: Exception sending context initialized event to listener instance of class org.apache.struts.plugin.PluginContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fault10kvService' defined in ServletContext resource [/WEB-INF/conf/spring/app-spring-flex-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy2 implementing org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'app.com.tellhow.drs.fault.dao.Fault10KvDAO' for property 'fault10KvDAO'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy2 implementing org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [app.com.tellhow.drs.fault.dao.Fault10KvDAO] for property 'fault10KvDAO': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.apache.struts.plugin.PluginContextLoaderListener.initPluginApplicationContext(PluginContextLoaderListener.java:48)
at org.apache.struts.plugin.PluginContextLoaderListener.contextInitialized(PluginContextLoaderListener.java:31)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy2 implementing org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'app.com.tellhow.drs.fault.dao.Fault10KvDAO' for property 'fault10KvDAO'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy2 implementing org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [app.com.tellhow.drs.fault.dao.Fault10KvDAO] for property 'fault10KvDAO': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
... 34 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy2 implementing org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [app.com.tellhow.drs.fault.dao.Fault10KvDAO] for property 'fault10KvDAO': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
... 40 more
2013-12-10 9:13:12 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-12-10 9:13:12 org.apache.catalina.core.StandardContext start
严重: Context [/TBPWeb] startup failed due to previous errors
2013-12-10 9:13:12 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2013-12-10 9:13:12 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type org.springframework.core.NamedThreadLocal and a value of type null but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2013-12-10 9:13:12 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type org.springframework.core.NamedThreadLocal and a value of type null but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

后来我把下面*DAO删除,启动不报错,这是什么原因?(fault10KvDAO这个bean配置是没问题的)

DAO
*Management
workflow

tbp.sys.TransactionInterceptor

解决方案

是不是你在xml文件里面那个DAO的配置写错了,启动服务的时候找不到文件。

时间: 2024-10-02 12:53:53

ssh事务-SSH配置事务tomcat启动报错问题的相关文章

tomcat启动报错这个怎么解决?

问题描述 tomcat启动报错这个怎么解决? 解决方案 tomcat(错误一) 解决启动报错问题一tomcat启动报错tomcat启动报错原因分析及解决 解决方案二: 配置有误?可以重新启动或重新部署tomcat 解决方案三: 换个绿色版的tomcat,重新部署下.

eclipse插件-eclips tomcat启动报错

问题描述 eclips tomcat启动报错 刚开始导入项目的时候是可以运行的,但是修改部分代码后,项目没报错,但tomcat就启动不了了. 报错内容是:Server Tomcat v8.0 Server at localhost failed to start. 请各位帮忙看看是怎么回事. 解决方案 看下配置文件,配置的问题,没有启动 解决方案二: tomcat 启动报错touch Linux中IDEA 下启动tomcat报错tomcat启动报错,以下是错误日志 解决方案三: 你给出的报错信息

eclips tomcat启动报错

问题描述 eclips tomcat启动报错 启动tomcat时报错了,错误如下: erver Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 搜了一下,说是将timeouts-start的值设置大一点,但是这样也不行啊 以前也遇到这种情况

tomcat启动报错

myeclipse tomcat 启动报错,但是不影响访问. 解决问题: 各种查询,只看到相同的问题,没有发现有效的解决办法. 最后的解决是,更换了tomcat,使用了一个免安装的tomcat 8.0.5,启动正常了. 问题如下: 七月 22, 2016 10:15:32 上午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows

tomcat启动报错-Tomcat 启动报错 好像说mysql连接数超了 求帮助

问题描述 Tomcat 启动报错 好像说mysql连接数超了 求帮助 014-06-12 10:37:06500 ERROR [com.neusoft.common.CommonDao] - 公共模块-初始化字典表失败 org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception

tld-linux tomcat 启动报错不能运行jar包

问题描述 linux tomcat 启动报错不能运行jar包 WARNING: Failed to process JAR [jar:file:/root/tomcat7.2/webapps/sms/WEB-INF/lib/axis2-kernel-1.4.1.jar!/] for TLD files java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method)

tomcat启动报错啊,不知道哪里的错误。。

问题描述 tomcat启动报错啊,不知道哪里的错误.. 有哪位大神知道吗 严重: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/llsfw-web]] at org.apache.catalina.util.Lifec

tomcat启动报错-同一项目在我的电脑上启动报错(缺少jar包,其实是有的),但在别人的电脑上却能正常启动,请求帮助

问题描述 同一项目在我的电脑上启动报错(缺少jar包,其实是有的),但在别人的电脑上却能正常启动,请求帮助 解决方案 如果是这样,那说明你引入的有问题啊, 1. 重新引入jar一下!!!对着jar右键add- 2. clean一下!!! 3. 重新发布项目 解决方案二: web项目直接放在lib文件夹下,就不需要add了吧, 此外,这项目在别的电脑可以正常运行 解决方案三: 有可能是jar包没有引入,在build path 把项目所有jar包都引进去 解决方案四: 谢谢各位,问题已解决.缘由是t

tomcat启动报错-空web工程启动tomcat为什么报错?求高手解决

问题描述 空web工程启动tomcat为什么报错?求高手解决 严重: StandardServer.await: create[localhost:8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source)