为什么我配置spring getbean事物管理的时候getbean出来的是class Proxy

Spring配置了AOP实现自动代理。但是没效果。。求解疑。。
[问题点数:100分,结帖人yy008871]
Spring配置了AOP实现自动代理。但是没效果。。求解疑。。
[问题点数:100分,结帖人yy008871]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关推荐:
本帖子已过去太久远了,不再提供回复功能。Spring通过AOP实现声明式事务管理。通常通过TransactionProxyFactoryBean设置Spring事务代理。我们需要一个目标对象包装在事务代理中。这个目标对象一般是一个普通Java对象的bean。当我们定义TransactionProxyFactoryBean时,必须提供一个相关的 PlatformTransactionManager的引用和事务属性。 事务属性含有上面描述的事务定义。
PlatformTransactionManager:
HibernateTransactionManager需要一个SessionFactory的引用
JtaTransactionManager
一.把事务放置在了DAO层:
&!—hibernateTransactionManager--&
&bean id="transactionManager"
&&&&&& class="org.springframework.orm.hibernate3.HibernateTransactionManager"&
&&&&&& &property name="sessionFactory"&
&&&&&&&&&&&&& &ref local="sessionFactory" /&
&&&&&& &/property&
&!—DAO层接口实现--&
&bean id="companyDAOTarget"
&&&&&& class="com.vstsoft.querycompany.panyDAOImpl"&
&&&&&& &property name="sessionFactory"&
&&&&&&&&&&&&& &ref local="sessionFactory" /&
&&&&&& &/property&
&!—spring对DAO层的事务代理--&
&bean id="companyDAOProxy"
&&&&&& class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"&
&&&&&& &property name="transactionManager"&
&&&&&&&&&&&&& &ref bean="transactionManager" /&
&&&&&& &/property&
&&&&&& &property name="target"&
&&&&&&&&&&&&& &ref local="companyDAOTarget" /&
&&&&&& &/property&
&&&&&& &property name="transactionAttributes"&
&&&&&&&&&&&&& &props&
&&&&&&&&&&&&& &prop key="insert*"&PROPAGATION_REQUIRED&/prop&
&&&&&&&&&&&&& &prop key="delete*"&PROPAGATION_REQUIRED&/prop&
&&&&&&&&&&&&& &prop key="find*"&
&&&&&&&&&&&&& PROPAGATION_REQUIRED,readOnly
&&&&&&&&&&&&& &/prop&
&&&&&&&&&&&&& &/props&
&&&&&& &/property&
&!—业务层接口实现,把DAO注入到Service里面--&
&bean name="companyManageTarget"
&&&&&& class="com.vstsoft.querycompany.panyManageTarget"&
&&&&&& &property name="companyDAO"&
&&&&&&&&&&&&& &ref bean="companyDAOProxy" /&
&&&&&& &/property&
&!—spring对Service层的代理--&
&bean id="companyManageProxy"
&&&&&& class="org.springframework.aop.framework.ProxyFactoryBean"&
&&&&&& &property name="proxyInterfaces"&
&&&&&&&&&&&&& &value&com.vstsoft.panyManage&/value&
&&&&&& &/property&
&&&&&& &property name="target"&
&&&&&&&&&&&&& &ref bean="companyManageTarget" /&
&&&&&& &/property&
&!—配置struts访问,把service层注入到action里面--&
&bean name="/company"
&&&&&& class="com.vstsoft.querycompany.panyAction" singleton="false"&
&&&&&& &property name="companyManage"&
&&&&&&&&&&&&& &ref local="companyManageProxy" /&
&&&&&& &/property&
二.把事务放置在了Service层:
&!—jtaTransactionManager--&
&bean id="jtaTransactionManager"
&&&&&& class="org.springframework.transaction.jta.JtaTransactionManager" /&
&!—DAO层接口实现--&
&bean id="companyDAOTarget"
&&&&&& class="com.vstsoft.querycompany.panyDAOImpl"&
&&&&&& &property name="sessionFactory"&
&&&&&&&&&&&&& &ref local="sessionFactory" /&
&&&&&& &/property&
&!—spring对DAO层的代理--&
&bean id="companyDAOProxy"
&&&&&& class="org.springframework.aop.framework.ProxyFactoryBean"&
&&&&&& &property name="proxyInterfaces"&
&&&&&&&&&&&&& &value&com.vstsoft.panyDAO&/value&
&&&&&& &/property&
&&&&&& &property name="target"&
&&&&&&&&&&&&& &ref bean="companyDAOTarget" /&
&&&&&& &/property&
&!—业务层接口实现,把DAO注入到Service里面--&
&bean name="companyManageTarget"
&&&&&& class="com.vstsoft.querycompany.panyManageTarget"&
&&&&&& &property name="companyDAO"&
&&&&&& &&&&&& &ref bean="companyDAOProxy" /&
&&&&&& &/property&
&!—spring代理业务层的事务管理--&
&bean id="companyManageProxy"
&&&&&& class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"&
&&&&&& &property name="transactionManager"&
&&&&&&&&&&&&& &ref local="jtaTransactionManager" /&
&&&&&& &/property&
&&&&&& &property name="transactionAttributes"&
&&&&&&&&&&&&& &props&
&&&&&&&&&&&&&&&&&&&& &prop key="set*"&PROPAGATION_REQUIRED&/prop&
&&&&&&&&&&&&&&&&&&&& &prop key="find*"&PROPAGATION_REQUIRED,readOnly&/prop&
&&&&&&&&&&&&& &/props&
&&&&&& &/property&
&&&&&& &property name="target"&
&&&&&&&&&&&&& &ref bean="companyManageTarget" /&
&&&&&& &/property&
&!—配置struts访问,把service层注入到action里面--&
&bean name="/company"
&&&&&& class="com.vstsoft.querycompany.panyAction" singleton="false"&
&&&&&& &property name="companyManage"&
&&&&&&&&&&&&& &ref local="companyManageProxy" /&
&&&&&& &/property&
在service层的接口实现CompanyManageImpl里面有个setData方法:按顺序执行数据查询,数据删除,数据插入数据库行为,如果哪一步出异常(运行时异常),事务回滚,只有所有行为都没成功,事务提交。我配置Spring的事务后不能得到BEAN
如果把事务的部分去掉的话就能够得到
下面这是applicationContext.xml
&?xml version="1.0" encoding="UTF-8"?&
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
&bean id="myDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&
&property name="driverClassName" value="net.sourceforge.jtds.jdbc.Driver"&&/property&
&property name="url" value="jdbc:jtds:sqlserver://localhost:1433/soft2005"&&/property&
&property name="username" value="sa"&&/property&
&property name="password" value=""&&/property&
&bean id="SessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&
&property name="dataSource" ref="myDataSource"&&/property&
&property name="mappingResources"&
&value&com/yhwj/secsms/po/Cgnx.hbm.xml&/value&
&/property&
&property name="hibernateProperties"&
&prop key="hibernate.dialect"&
org.hibernate.dialect.SybaseDialect
&/property&
&bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&
&property name="sessionFactory" ref="SessionFactory"&&/property&
&tx:advice id="myadvice" transaction-manager="txManager"&
&tx:attributes&
&tx:method name="*" /&
&/tx:attributes&
&/tx:advice&
&aop:config&
&!-- &aop:pointcut id="myPoin" expression="execution(* com.yhwj.secsms.dao.CgnxDAO.*(..))"/&
&aop:advisor id="myAdvi" advice-ref="myadvice" pointcut-ref="myPoin"/& --&
&aop:advisor pointcut="execution(* com.yhwj.secsms.dao.CgnxDAO.*(..))"
advice-ref="myadvice"/&
&/aop:config&
&bean id="CgnxDAO" class="com.yhwj.secsms.dao.CgnxDAO"&
&property name="sessionFactory"&
&ref bean="SessionFactory" /&
&/property&
&/bean&&/beans&
下面是测试类cgnxTest.java
package com.yhwj.secsms.
import java.util.I
import java.util.L
import org.springframework.context.ApplicationC
import org.springframework.context.support.FileSystemXmlApplicationC
import com.yhwj.secsms.dao.CgnxDAO;
import com.yhwj.secsms.po.C
import junit.framework.TestC
public class cgnxTest extends TestCase
ApplicationContext ac=new FileSystemXmlApplicationContext("src/applicationContext.xml");
public void testCgnxAddFind()
CgnxDAO cdao=(CgnxDAO) ac.getBean("CgnxDAO");
com.yhwj.secsms.vo.Cgnx cg=new com.yhwj.secsms.vo.Cgnx();
cg.setCgnx("12年");
Cgnx cg1=(Cgnx) cg.getPO();
cdao.save(cg1);
List l=cdao.findAll();
assertTrue(l.size()&0);
下面的是运行后LOG4J抓的东西
INFO - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3: display name [org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3]; startup date [Wed Jul 02 09:09:49 CST 2008]; root of context hierarchy
DEBUG - Class [mons.collections.map.LinkedMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: mons.collections.map.LinkedMap
DEBUG - Creating [java.util.concurrent.ConcurrentHashMap]
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Creating [java.util.concurrent.ConcurrentHashMap]
DEBUG - Creating [java.util.concurrent.ConcurrentHashMap]
DEBUG - Loading schema mappings from [META-INF/spring.schemas]
DEBUG - Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}
DEBUG - Loading schema mappings from [META-INF/spring.schemas]
DEBUG - Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}
INFO - Loading XML bean definitions from file [F:\自助设备客户服务管理系统\工程\src\applicationContext.xml]
DEBUG - Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]
DEBUG - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd]
DEBUG - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-2.0.xsd
DEBUG - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/tx/spring-tx-2.0.xsd]
DEBUG - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-2.0.xsd] in classpath: org/springframework/transaction/config/spring-tx-2.0.xsd
DEBUG - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/aop/spring-aop-2.0.xsd]
DEBUG - Found XML schema [http://www.springframework.org/schema/aop/spring-aop-2.0.xsd] in classpath: org/springframework/aop/config/spring-aop-2.0.xsd
DEBUG - Loaded mappings [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler}]
DEBUG - Loading bean definitions
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Loaded 8 bean definitions from location pattern [src/applicationContext.xml]
INFO - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@16c9867
DEBUG - 8 beans defined in org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3: display name [org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3]; startup date [Wed Jul 02 09:09:49 CST 2008]; root of context hierarchy
DEBUG - Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'
DEBUG - Creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator' with merged definition [Root bean: class [org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName=null]
DEBUG - Getting BeanInfo for class [org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator]
DEBUG - Caching PropertyDescriptors for class [org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator]
DEBUG - Found bean property 'advisorAdapterRegistry' of type [org.springframework.aop.framework.adapter.AdvisorAdapterRegistry]
DEBUG - Found bean property 'applyCommonInterceptorsFirst' of type [boolean]
DEBUG - Found bean property 'beanClassLoader' of type [java.lang.ClassLoader]
DEBUG - Found bean property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'customTargetSourceCreators' of type [[Lorg.springframework.aop.framework.autoproxy.TargetSourceC]
DEBUG - Found bean property 'exposeProxy' of type [boolean]
DEBUG - Found bean property 'frozen' of type [boolean]
DEBUG - Found bean property 'interceptorNames' of type [[Ljava.lang.S]
DEBUG - Found bean property 'opaque' of type [boolean]
DEBUG - Found bean property 'optimize' of type [boolean]
DEBUG - Found bean property 'order' of type [int]
DEBUG - Found bean property 'proxyTargetClass' of type [boolean]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'org.springframework.aop.config.internalAutoProxyCreator' to allow for resolving potential circular references
INFO - Bean 'org.springframework.aop.config.internalAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
DEBUG - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@148662]
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@178460d]
DEBUG - Creating [java.util.LinkedHashMap]
INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@16c9867: defining beans [myDataSource,SessionFactory,txManager,myadvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJExpressionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor,CgnxDAO]; root of factory hierarchy
DEBUG - Creating shared instance of singleton bean 'myDataSource'
DEBUG - Creating instance of bean 'myDataSource' with merged definition [Root bean: class [org.springframework.jdbc.datasource.DriverManagerDataSource]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName= defined in file [F:\自助设备客户服务管理系统\工程\src\applicationContext.xml]]
DEBUG - Getting BeanInfo for class [org.springframework.jdbc.datasource.DriverManagerDataSource]
DEBUG - Caching PropertyDescriptors for class [org.springframework.jdbc.datasource.DriverManagerDataSource]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'connection' of type [java.sql.Connection]
DEBUG - Found bean property 'connectionProperties' of type [java.util.Properties]
DEBUG - Found bean property 'driverClassName' of type [java.lang.String]
DEBUG - Found bean property 'logWriter' of type [java.io.PrintWriter]
DEBUG - Found bean property 'loginTimeout' of type [int]
DEBUG - Found bean property 'password' of type [java.lang.String]
DEBUG - Found bean property 'url' of type [java.lang.String]
DEBUG - Found bean property 'username' of type [java.lang.String]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'myDataSource' to allow for resolving potential circular references
INFO - Loaded JDBC driver: net.sourceforge.jtds.jdbc.Driver
DEBUG - Creating shared instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
DEBUG - Creating instance of bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor' with merged definition [Root bean: class [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName=null]
DEBUG - Did not attempt to auto-proxy infrastructure class [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor]
DEBUG - Getting BeanInfo for class [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor]
DEBUG - Caching PropertyDescriptors for class [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor]
DEBUG - Found bean property 'advice' of type [org.aopalliance.aop.Advice]
DEBUG - Found bean property 'adviceBeanName' of type [java.lang.String]
DEBUG - Found bean property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'order' of type [int]
DEBUG - Found bean property 'perInstance' of type [boolean]
DEBUG - Found bean property 'pointcut' of type [org.springframework.aop.Pointcut]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor' to allow for resolving potential circular references
DEBUG - Creating instance of bean 'org.springframework.aop.aspectj.AspectJExpressionPointcut' with merged definition [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName=null]
DEBUG - Getting BeanInfo for class [org.springframework.aop.aspectj.AspectJExpressionPointcut]
DEBUG - Caching PropertyDescriptors for class [org.springframework.aop.aspectj.AspectJExpressionPointcut]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'classFilter' of type [org.springframework.aop.ClassFilter]
DEBUG - Found bean property 'expression' of type [java.lang.String]
DEBUG - Found bean property 'location' of type [java.lang.String]
DEBUG - Found bean property 'methodMatcher' of type [org.springframework.aop.MethodMatcher]
DEBUG - Found bean property 'parameterNames' of type [[Ljava.lang.S]
DEBUG - Found bean property 'parameterTypes' of type [[Ljava.lang.C]
DEBUG - Found bean property 'pointcutDeclarationScope' of type [java.lang.Class]
DEBUG - Found bean property 'pointcutExpression' of type [org.aspectj.weaver.tools.PointcutExpression]
DEBUG - Found bean property 'runtime' of type [boolean]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Creating shared instance of singleton bean 'SessionFactory'
DEBUG - Creating instance of bean 'SessionFactory' with merged definition [Root bean: class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName= defined in file [F:\自助设备客户服务管理系统\工程\src\applicationContext.xml]]
DEBUG - Getting BeanInfo for class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
DEBUG - Caching PropertyDescriptors for class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
DEBUG - Found bean property 'cacheableMappingLocations' of type [[Lorg.springframework.core.io.R]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'collectionCacheStrategies' of type [java.util.Properties]
DEBUG - Found bean property 'configLocation' of type [org.springframework.core.io.Resource]
DEBUG - Found bean property 'configLocations' of type [[Lorg.springframework.core.io.R]
DEBUG - Found bean property 'configuration' of type [org.hibernate.cfg.Configuration]
DEBUG - Found bean property 'configurationClass' of type [java.lang.Class]
DEBUG - Found bean property 'dataSource' of type [javax.sql.DataSource]
DEBUG - Found bean property 'entityCacheStrategies' of type [java.util.Properties]
DEBUG - Found bean property 'entityInterceptor' of type [org.hibernate.Interceptor]
DEBUG - Found bean property 'eventListeners' of type [java.util.Map]
DEBUG - Found bean property 'exposeTransactionAwareSessionFactory' of type [boolean]
DEBUG - Found bean property 'filterDefinitions' of type [[Lorg.hibernate.engine.FilterD]
DEBUG - Found bean property 'hibernateProperties' of type [java.util.Properties]
DEBUG - Found bean property 'jdbcExceptionTranslator' of type [org.springframework.jdbc.support.SQLExceptionTranslator]
DEBUG - Found bean property 'jtaTransactionManager' of type [javax.transaction.TransactionManager]
DEBUG - Found bean property 'lobHandler' of type [org.springframework.jdbc.support.lob.LobHandler]
DEBUG - Found bean property 'mappingDirectoryLocations' of type [[Lorg.springframework.core.io.R]
DEBUG - Found bean property 'mappingJarLocations' of type [[Lorg.springframework.core.io.R]
DEBUG - Found bean property 'mappingLocations' of type [[Lorg.springframework.core.io.R]
DEBUG - Found bean property 'mappingResources' of type [[Ljava.lang.S]
DEBUG - Found bean property 'namingStrategy' of type [org.hibernate.cfg.NamingStrategy]
DEBUG - Found bean property 'object' of type [java.lang.Object]
DEBUG - Found bean property 'objectType' of type [java.lang.Class]
DEBUG - Found bean property 'schemaUpdate' of type [boolean]
DEBUG - Found bean property 'singleton' of type [boolean]
DEBUG - Found bean property 'typeDefinitions' of type [[Lorg.springframework.orm.hibernate3.TypeDefinitionB]
DEBUG - Found bean property 'useTransactionAwareDataSource' of type [boolean]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'SessionFactory' to allow for resolving potential circular references
DEBUG - Returning cached instance of singleton bean 'myDataSource'
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Creating [java.util.LinkedHashMap]
INFO - Hibernate 3.1.3
INFO - hibernate.properties not found
INFO - using CGLIB reflection optimizer
INFO - using JDK 1.4 java.sql.Timestamp handling
DEBUG - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
DEBUG - recognized attempting to resolve on classpath under org/hibernate/
DEBUG - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
INFO - Mapping class: com.yhwj.secsms.po.Cgnx -& cgnx
DEBUG - Mapped property: cgnxId -& cgnxID
DEBUG - Mapped property: cgnx -& cgnx
INFO - Building new Hibernate SessionFactory
DEBUG - Preparing to build session factory with filters : {}
DEBUG - processing extends queue
DEBUG - processing collection mappings
DEBUG - processing native query and ResultSetMapping mappings
DEBUG - processing association property references
DEBUG - processing foreign key constraints
INFO - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
DEBUG - Creating new JDBC Connection to [jdbc:jtds:sqlserver://localhost:1433/soft2005]
INFO - RDBMS: Microsoft SQL Server, version: 08.00.2039
INFO - JDBC driver: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase, version: 1.2.2
INFO - Using dialect: org.hibernate.dialect.SybaseDialect
INFO - Using default transaction strategy (direct JDBC transactions)
INFO - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO - Automatic flush during beforeCompletion(): disabled
INFO - Automatic session close at end of transaction: disabled
INFO - Scrollable result sets: enabled
DEBUG - Wrap result sets: disabled
INFO - JDBC3 getGeneratedKeys(): enabled
INFO - Connection release mode: on_close
INFO - Default batch fetch size: 1
INFO - Generate SQL with comments: disabled
INFO - Order SQL updates by primary key: disabled
INFO - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO - Using ASTQueryTranslatorFactory
INFO - Query language substitutions: {}
INFO - Second-level cache: enabled
INFO - Query cache: disabled
INFO - Cache provider: org.hibernate.cache.EhCacheProvider
INFO - Optimize cache for minimal puts: disabled
INFO - Structured second-level cache entries: disabled
DEBUG - Using dialect defined converter
INFO - Statistics: disabled
INFO - Deleted entity synthetic identifier rollback: disabled
INFO - Default entity-mode: pojo
INFO - building session factory
DEBUG - Session factory constructed with filter configurations : {}
DEBUG - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=D:\Program Files\MyEclipse 5.5 GA\jre\bin, java.vm.version=1.5.0_11-b03, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=CN, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 3, java.vm.specification.name=Java Virtual Machine Specification, user.dir=F:\自助设备客户服务管理系统\工程, java.runtime.version=1.5.0_11-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=D:\Program Files\MyEclipse 5.5 GA\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=GBK, java.library.path=D:\Program Files\MyEclipse 5.5 GA\jre\.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\WC:\Program Files\Java\jdk1.5.0_07\\C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\StormII\CC:\Program Files\StormII, java.specification.name=Java Platform API Specification, java.class.version=49.0, piler=HotSpot Client Compiler, os.version=5.1, user.home=C:\Documents and Settings\Administrator, user.timezone=Asia/Shanghai, hibernate.connection.release_mode=on_close, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=GBK, java.specification.version=1.5, java.class.path=F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jstl.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\standard.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\antlr-2.7.6rc1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\asm-attrs.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\asm.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\c3p0-0.9.0.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\cglib-2.1.3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-collections-2.1.1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-logging-1.0.4.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\concurrent-1.3.2.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\connector.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\dom4j-1.6.1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\ehcache-1.1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\hibernate3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jaas.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jacc-1_0-fr.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jaxen-1.1-beta-7.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jboss-cache.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jboss-common.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jboss-jmx.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jboss-system.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jdbc2_0-stdext.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jgroups-2.2.8.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jta.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jtds-1.2.2.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\log4j-1.2.11.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\oscache-2.1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\proxool-0.8.3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\swarmcache-1.0rc2.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\xerces-2.6.2.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\xml-apis.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\aopalliance.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\asm-2.2.3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\asm-commons-2.2.3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\asm-util-2.2.3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\aspectjrt.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\aspectjweaver.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\backport-util-concurrent.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\bsh-2.0b4.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\c3p0-0.9.1.1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\cglib-nodep-2.1_3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commonj-twm.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-attributes-api.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-attributes-compiler.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-dbcp.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-lang.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\commons-logging.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\ehcache-1.2.4.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\groovy-1.0.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\hessian-3.0.20.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\hibernate-annotations.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\hibernate-commons-annotations.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\hibernate-entitymanager.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\ibatis-2.3.0.677.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jakarta-oro-2.0.8.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jamon-2.4.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jboss-archive-browsing.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jdo2-api.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jmxremote.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jmxremote_optional.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jmxri.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jotm.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\jruby.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\log4j-1.2.14.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\openjpa-0.9.7-incubating.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\persistence.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\quartz-all-1.6.0.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\serp-1.12.1.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-agent.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-aop.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-beans.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-context.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-core.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-dao.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-hibernate3.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-ibatis.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-jdbc.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-jdo.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-jmx.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-jpa.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-remoting.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-support.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-tomcat-weaver.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\spring-toplink.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\toplink-api.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\toplink-essentials.F:\自助设备客户服务管理系统\工程\WebRoot\WEB-INF\lib\xapool.D:\Program Files\MyEclipse 5.5 GA\eclipse\plugins\org.junit_3.8.1\junit./D:/Program Files/MyEclipse 5.5 GA/eclipse/plugins/org.eclipse.jdt.junit_3.2.1.r321_v/junitsupport./D:/Program Files/MyEclipse 5.5 GA/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.2.1.r321_v/junitruntime.jar, user.name=Administrator, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=D:\Program Files\MyEclipse 5.5 GA\jre, hibernate.dialect=org.hibernate.dialect.SybaseDialect, java.specification.vendor=Sun Microsystems Inc., user.language=zh, awt.toolkit=sun.awt.windows.WToolkit, =mixed mode, hibernate.cglib.use_reflection_optimizer=true, java.version=1.5.0_11, java.ext.dirs=D:\Program Files\MyEclipse 5.5 GA\jre\lib\ext, sun.boot.class.path=D:\Program Files\MyEclipse 5.5 GA\jre\lib\rt.D:\Program Files\MyEclipse 5.5 GA\jre\lib\i18n.D:\Program Files\MyEclipse 5.5 GA\jre\lib\sunrsasign.D:\Program Files\MyEclipse 5.5 GA\jre\lib\jsse.D:\Program Files\MyEclipse 5.5 GA\jre\lib\jce.D:\Program Files\MyEclipse 5.5 GA\jre\lib\charsets.D:\Program Files\MyEclipse 5.5 GA\jre\D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\activation.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\javax.servlet.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\javax.servlet.jsp.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\jboss-j2ee.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\jboss-jaxrpc.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\jboss-jsr77.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\jboss-saaj.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\mail.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\namespace.D:\Program Files\MyEclipse 5.5 GA\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_5.5.0\data\libraryset\1.4\xml-apis.jar, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=/cgi-bin/bugreport.cgi, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
DEBUG - Creating new CacheManager with default config
DEBUG - Configuring ehcache from classpath.
WARN - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/F:/%e8%87%aa%e5%8a%a9%e8%ae%be%e5%a4%87%e5%ae%a2%e6%88%b7%e6%9c%8d%e5%8a%a1%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f/%e5%b7%a5%e7%a8%8b/WebRoot/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
DEBUG - Disk Store Path: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
DEBUG - Static SQL for entity: com.yhwj.secsms.po.Cgnx
DEBUG -& Version select: select cgnxID from secsms.dbo.cgnx where cgnxID =?
DEBUG -& Snapshot select: select cgnx_.cgnxID, cgnx_.cgnx as cgnx0_ from secsms.dbo.cgnx cgnx_ where cgnx_.cgnxID=?
DEBUG -& Insert 0: insert into secsms.dbo.cgnx (cgnx, cgnxID) values (?, ?)
DEBUG -& Update 0: update secsms.dbo.cgnx set cgnx=? where cgnxID=?
DEBUG -& Delete 0: delete from secsms.dbo.cgnx where cgnxID=?
DEBUG -& Identity insert: insert into secsms.dbo.cgnx (cgnx) values (?)
DEBUG - Static select for entity com.yhwj.secsms.po.Cgnx: select cgnx0_.cgnxID as cgnxID0_0_, cgnx0_.cgnx as cgnx0_0_ from secsms.dbo.cgnx cgnx0_ where cgnx0_.cgnxID=?
DEBUG - Static select for entity com.yhwj.secsms.po.Cgnx: select cgnx0_.cgnxID as cgnxID0_0_, cgnx0_.cgnx as cgnx0_0_ from secsms.dbo.cgnx cgnx0_ where cgnx0_.cgnxID=?
DEBUG - Static select for entity com.yhwj.secsms.po.Cgnx: select cgnx0_.cgnxID as cgnxID0_0_, cgnx0_.cgnx as cgnx0_0_ from secsms.dbo.cgnx cgnx0_ where cgnx0_.cgnxID=?
DEBUG - Static select for entity com.yhwj.secsms.po.Cgnx: select cgnx0_.cgnxID as cgnxID0_0_, cgnx0_.cgnx as cgnx0_0_ from secsms.dbo.cgnx cgnx0_ where cgnx0_.cgnxID=?
DEBUG - Static select for action ACTION_MERGE on entity com.yhwj.secsms.po.Cgnx: select cgnx0_.cgnxID as cgnxID0_0_, cgnx0_.cgnx as cgnx0_0_ from secsms.dbo.cgnx cgnx0_ where cgnx0_.cgnxID=?
DEBUG - Static select for action ACTION_REFRESH on entity com.yhwj.secsms.po.Cgnx: select cgnx0_.cgnxID as cgnxID0_0_, cgnx0_.cgnx as cgnx0_0_ from secsms.dbo.cgnx cgnx0_ where cgnx0_.cgnxID=?
DEBUG - initializing class SessionFactoryObjectFactory
DEBUG - registered: ae151ae011ae151b9410000 (unnamed)
INFO - Not binding factory to JNDI, no JNDI name configured
DEBUG - instantiated session factory
DEBUG - Checking 0 named HQL queries
DEBUG - Checking 0 named SQL queries
DEBUG - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
DEBUG - Creating shared instance of singleton bean 'txManager'
DEBUG - Creating instance of bean 'txManager' with merged definition [Root bean: class [org.springframework.orm.hibernate3.HibernateTransactionManager]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName= defined in file [F:\自助设备客户服务管理系统\工程\src\applicationContext.xml]]
DEBUG - Getting BeanInfo for class [org.springframework.orm.hibernate3.HibernateTransactionManager]
DEBUG - Caching PropertyDescriptors for class [org.springframework.orm.hibernate3.HibernateTransactionManager]
DEBUG - Found bean property 'autodetectDataSource' of type [boolean]
DEBUG - Found bean property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'dataSource' of type [javax.sql.DataSource]
DEBUG - Found bean property 'defaultTimeout' of type [int]
DEBUG - Found bean property 'entityInterceptor' of type [org.hibernate.Interceptor]
DEBUG - Found bean property 'entityInterceptorBeanName' of type [java.lang.String]
DEBUG - Found bean property 'failEarlyOnGlobalRollbackOnly' of type [boolean]
DEBUG - Found bean property 'globalRollbackOnParticipationFailure' of type [boolean]
DEBUG - Found bean property 'jdbcExceptionTranslator' of type [org.springframework.jdbc.support.SQLExceptionTranslator]
DEBUG - Found bean property 'nestedTransactionAllowed' of type [boolean]
DEBUG - Found bean property 'prepareConnection' of type [boolean]
DEBUG - Found bean property 'resourceFactory' of type [java.lang.Object]
DEBUG - Found bean property 'rollbackOnCommitFailure' of type [boolean]
DEBUG - Found bean property 'sessionFactory' of type [org.hibernate.SessionFactory]
DEBUG - Found bean property 'transactionSynchronization' of type [int]
DEBUG - Found bean property 'transactionSynchronizationName' of type [java.lang.String]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'txManager' to allow for resolving potential circular references
DEBUG - Returning cached instance of singleton bean 'SessionFactory'
DEBUG - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
DEBUG - Creating [java.util.LinkedHashSet]
INFO - Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@76db09] of Hibernate SessionFactory for HibernateTransactionManager
DEBUG - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
DEBUG - Creating shared instance of singleton bean 'myadvice'
DEBUG - Creating instance of bean 'myadvice' with merged definition [Root bean: class [org.springframework.transaction.interceptor.TransactionInterceptor]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName=null]
DEBUG - Did not attempt to auto-proxy infrastructure class [org.springframework.transaction.interceptor.TransactionInterceptor]
DEBUG - Getting BeanInfo for class [org.springframework.transaction.interceptor.TransactionInterceptor]
DEBUG - Caching PropertyDescriptors for class [org.springframework.transaction.interceptor.TransactionInterceptor]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'transactionAttributeSource' of type [org.springframework.transaction.interceptor.TransactionAttributeSource]
DEBUG - Found bean property 'transactionAttributeSources' of type [[Lorg.springframework.transaction.interceptor.TransactionAttributeS]
DEBUG - Found bean property 'transactionAttributes' of type [java.util.Properties]
DEBUG - Found bean property 'transactionManager' of type [org.springframework.transaction.PlatformTransactionManager]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'myadvice' to allow for resolving potential circular references
DEBUG - Returning cached instance of singleton bean 'txManager'
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Creating instance of bean '(inner bean)' with merged definition [Root bean: class [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName=null]
DEBUG - Getting BeanInfo for class [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource]
DEBUG - Caching PropertyDescriptors for class [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'nameMap' of type [java.util.Map]
DEBUG - Found bean property 'properties' of type [java.util.Properties]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Adding transactional method
with attribute [PROPAGATION_REQUIRED,ISOLATION_DEFAULT]
DEBUG - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
DEBUG - Creating [java.util.LinkedHashSet]
DEBUG - Creating shared instance of singleton bean 'CgnxDAO'
DEBUG - Creating instance of bean 'CgnxDAO' with merged definition [Root bean: class [com.yhwj.secsms.dao.CgnxDAO]; scope= abstract= lazyInit= autowireCandidate= autowireMode=0; dependencyCheck=0; factoryBeanName= factoryMethodName= initMethodName= destroyMethodName= defined in file [F:\自助设备客户服务管理系统\工程\src\applicationContext.xml]]
DEBUG - Getting BeanInfo for class [com.yhwj.secsms.dao.CgnxDAO]
DEBUG - Caching PropertyDescriptors for class [com.yhwj.secsms.dao.CgnxDAO]
DEBUG - Found bean property 'class' of type [java.lang.Class]
DEBUG - Found bean property 'hibernateTemplate' of type [org.springframework.orm.hibernate3.HibernateTemplate]
DEBUG - Found bean property 'sessionFactory' of type [org.hibernate.SessionFactory]
DEBUG - Creating [java.util.LinkedHashMap]
DEBUG - Eagerly caching bean 'CgnxDAO' to allow for resolving potential circular references
DEBUG - Returning cached instance of singleton bean 'SessionFactory'
DEBUG - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
DEBUG - Returning cached instance of singleton bean 'myadvice'
DEBUG - Creating [java.util.IdentityHashMap]
DEBUG - Creating implicit proxy for bean 'CgnxDAO' with 0 common interceptors and 1 specific interceptors
DEBUG - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [com.yhwj.secsms.dao.CgnxDAO@19855ed]
DEBUG - Publishing event in context [org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3]: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3: display name [org.springframework.context.support.FileSystemXmlApplicationContext@8f4fb3]; startup date [Wed Jul 02 09:09:49 CST 2008]; root of context hierarchy]
DEBUG - Returning cached instance of singleton bean 'CgnxDAO'
采纳的答案
java.lang.ClassNotFoundException:
路径写错了,
ApplicationContext ac=new FileSystemXmlApplicationContext("src/applicationContext.xml");&
怎么改要看你的applicationContext.xml放在了哪
已解决问题
未解决问题

我要回帖

更多关于 spring mvc getbean 的文章

 

随机推荐