就是new ClassPathXmlApplicationContext("applicationContext.xml");这句报错了
错误代码如下:----------
2009-11-10 14:20:08,062 INFO (AbstractApplicationContext.java:411) - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1b3f8f6: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1b3f8f6]; startup date [Tue Nov 10 14:20:08 GMT 2009]; root of context hierarchy
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,140 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,140 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,203 INFO (XmlBeanDefinitionReader.java:323) - Loading XML bean definitions from class path resource [applicationContext.xml]
2009-11-10 14:20:08,218 DEBUG (DefaultDocumentLoader.java:72) - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
2009-11-10 14:20:08,281 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/beans/spring-beans-2.5.xsd]
2009-11-10 14:20:08,296 DEBUG (PluggableSchemaResolver.java:125) - Loading schema mappings from [META-INF/spring.schemas]
2009-11-10 14:20:08,296 DEBUG (PluggableSchemaResolver.java:131) - Loaded schema mappings: {http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/jms/spring-jms-2.5.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.5.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/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.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/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/jms/spring-jms.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.5.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/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.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/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd}
2009-11-10 14:20:08,296 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-2.5.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
2009-11-10 14:20:08,437 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/context/spring-context-2.5.xsd]
2009-11-10 14:20:08,437 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/context/spring-context-2.5.xsd] in classpath: org/springframework/context/config/spring-context-2.5.xsd
2009-11-10 14:20:08,453 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/aop/spring-aop-2.5.xsd]
2009-11-10 14:20:08,468 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/aop/spring-aop-2.5.xsd] in classpath: org/springframework/aop/config/spring-aop-2.5.xsd
2009-11-10 14:20:08,484 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/tx/spring-tx-2.5.xsd]
2009-11-10 14:20:08,500 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-2.5.xsd] in classpath: org/springframework/transaction/config/spring-tx-2.5.xsd
2009-11-10 14:20:08,515 DEBUG (DefaultBeanDefinitionDocumentReader.java:86) - Loading bean definitions
2009-11-10 14:20:08,546 DEBUG (DefaultNamespaceHandlerResolver.java:153) - 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,
..............我的xml文件如下:<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
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.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<context:component-scan base-package="com.cfd"></context:component-scan>
<aop:aspectj-autoproxy/>
<bean id="mydatasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql://localhost:3306/my_test"></property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
<property name="initialSize" value="1"></property>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="mydatasource"></property>
<property name="mappingResource">
<list>
<value>com/cfd/ssh/bean/person.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.hbm2ddl.auto">
update
</prop>
</props>
</property>
</bean>
<bean id="personServiceImp" class="com.cfd.ssh.service.impl.PersonServiceImp">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<tx:annotation-driven transaction-manager="txManager"/>
</beans>
错误代码如下:----------
2009-11-10 14:20:08,062 INFO (AbstractApplicationContext.java:411) - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1b3f8f6: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1b3f8f6]; startup date [Tue Nov 10 14:20:08 GMT 2009]; root of context hierarchy
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,140 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,140 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:20:08,203 INFO (XmlBeanDefinitionReader.java:323) - Loading XML bean definitions from class path resource [applicationContext.xml]
2009-11-10 14:20:08,218 DEBUG (DefaultDocumentLoader.java:72) - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
2009-11-10 14:20:08,281 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/beans/spring-beans-2.5.xsd]
2009-11-10 14:20:08,296 DEBUG (PluggableSchemaResolver.java:125) - Loading schema mappings from [META-INF/spring.schemas]
2009-11-10 14:20:08,296 DEBUG (PluggableSchemaResolver.java:131) - Loaded schema mappings: {http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/jms/spring-jms-2.5.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.5.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/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.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/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/jms/spring-jms.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.5.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/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.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/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd}
2009-11-10 14:20:08,296 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-2.5.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
2009-11-10 14:20:08,437 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/context/spring-context-2.5.xsd]
2009-11-10 14:20:08,437 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/context/spring-context-2.5.xsd] in classpath: org/springframework/context/config/spring-context-2.5.xsd
2009-11-10 14:20:08,453 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/aop/spring-aop-2.5.xsd]
2009-11-10 14:20:08,468 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/aop/spring-aop-2.5.xsd] in classpath: org/springframework/aop/config/spring-aop-2.5.xsd
2009-11-10 14:20:08,484 DEBUG (PluggableSchemaResolver.java:103) - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/tx/spring-tx-2.5.xsd]
2009-11-10 14:20:08,500 DEBUG (PluggableSchemaResolver.java:114) - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-2.5.xsd] in classpath: org/springframework/transaction/config/spring-tx-2.5.xsd
2009-11-10 14:20:08,515 DEBUG (DefaultBeanDefinitionDocumentReader.java:86) - Loading bean definitions
2009-11-10 14:20:08,546 DEBUG (DefaultNamespaceHandlerResolver.java:153) - 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,
..............我的xml文件如下:<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
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.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<context:component-scan base-package="com.cfd"></context:component-scan>
<aop:aspectj-autoproxy/>
<bean id="mydatasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql://localhost:3306/my_test"></property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
<property name="initialSize" value="1"></property>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="mydatasource"></property>
<property name="mappingResource">
<list>
<value>com/cfd/ssh/bean/person.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.hbm2ddl.auto">
update
</prop>
</props>
</property>
</bean>
<bean id="personServiceImp" class="com.cfd.ssh.service.impl.PersonServiceImp">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<tx:annotation-driven transaction-manager="txManager"/>
</beans>
2009-11-10 14:56:09,109 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'perInstance' of type [boolean]
2009-11-10 14:56:09,109 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'pointcut' of type [org.springframework.aop.Pointcut]
2009-11-10 14:56:09,109 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'transactionAttributeSource' of type [org.springframework.transaction.interceptor.TransactionAttributeSource]
2009-11-10 14:56:09,109 DEBUG (DefaultSingletonBeanRegistry.java:214) - Creating shared instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'
2009-11-10 14:56:09,109 DEBUG (AbstractAutowireCapableBeanFactory.java:383) - Creating instance of bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'
2009-11-10 14:56:09,125 DEBUG (CollectionFactory.java:195) - Creating [java.util.concurrent.ConcurrentHashMap]
2009-11-10 14:56:09,125 DEBUG (AbstractAutowireCapableBeanFactory.java:459) - Eagerly caching bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' to allow for resolving potential circular references
2009-11-10 14:56:09,125 DEBUG (CachedIntrospectionResults.java:218) - Getting BeanInfo for class [org.springframework.transaction.annotation.AnnotationTransactionAttributeSource]
2009-11-10 14:56:09,140 DEBUG (CachedIntrospectionResults.java:234) - Caching PropertyDescriptors for class [org.springframework.transaction.annotation.AnnotationTransactionAttributeSource]
2009-11-10 14:56:09,140 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'class' of type [java.lang.Class]
2009-11-10 14:56:09,140 DEBUG (AbstractAutowireCapableBeanFactory.java:411) - Finished creating instance of bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'
2009-11-10 14:56:09,140 DEBUG (AbstractAutowireCapableBeanFactory.java:411) - Finished creating instance of bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2009-11-10 14:56:09,156 DEBUG (AbstractAutowireCapableBeanFactory.java:459) - Eagerly caching bean 'mydatasource' to allow for resolving potential circular references
2009-11-10 14:56:09,156 DEBUG (CachedIntrospectionResults.java:218) - Getting BeanInfo for class [org.apache.commons.dbcp.BasicDataSource]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:234) - Caching PropertyDescriptors for class [org.apache.commons.dbcp.BasicDataSource]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'accessToUnderlyingConnectionAllowed' of type [boolean]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'class' of type [java.lang.Class]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'connection' of type [java.sql.Connection]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'defaultAutoCommit' of type [boolean]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'defaultCatalog' of type [java.lang.String]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'defaultReadOnly' of type [boolean]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'defaultTransactionIsolation' of type [int]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean
property 'driverClassName' of type [java.lang.String]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'initialSize' of type [int]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'logAbandoned' of type [boolean]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'logWriter' of type [java.io.PrintWriter]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'loginTimeout' of type [int]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'maxActive' of type [int]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'maxIdle' of type [int]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'maxOpenPreparedStatements' of type [int]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'maxWait' of type [long]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'minEvictableIdleTimeMillis' of type [long]
2009-11-10 14:56:09,171 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'minIdle' of type [int]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'numActive' of type [int]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'numIdle' of type [int]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'numTestsPerEvictionRun' of type [int]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'password' of type [java.lang.String]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'poolPreparedStatements' of type [boolean]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'removeAbandoned' of type [boolean]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'removeAbandonedTimeout' of type [int]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'testOnBorrow' of type [boolean]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'testOnReturn' of type [boolean]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'testWhileIdle' of type [boolean]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'timeBetweenEvictionRunsMillis' of type [long]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'url' of type [java.lang.String]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'username' of type [java.lang.String]
2009-11-10 14:56:09,187 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'validationQuery' of type [java.lang.String]
2009-11-10 14:56:09,203 DEBUG (TypeConverterDelegate.java:347) - Converting String to [int] using property editor [org.springframework.beans.propertyeditors.CustomNumberEditor@bf053f]
2009-11-10 14:56:09,203 DEBUG (AbstractBeanFactory.java:214) - Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2009-11-10 14:56:09,203 DEBUG (AbstractBeanFactory.java:214) - Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2009-11-10 14:56:09,218 DEBUG (AbstractAutowireCapableBeanFactory.java:411) - Finished creating instance of bean 'mydatasource'
2009-11-10 14:56:09,218 DEBUG (DefaultSingletonBeanRegistry.java:214) - Creating shared instance of singleton bean 'sessionFactory'
2009-11-10 14:56:09,218 DEBUG (AbstractAutowireCapableBeanFactory.java:383) - Creating instance of bean 'sessionFactory'
2009-11-10 14:56:09,218 DEBUG (AbstractBeanFactory.java:214) - Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2009-11-10 14:56:09,265 DEBUG (AbstractAutowireCapableBeanFactory.java:459) - Eagerly caching bean 'sessionFactory' to allow for resolving potential circular references
2009-11-10 14:56:09,265 DEBUG (CachedIntrospectionResults.java:218) - Getting BeanInfo for class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:234) - Caching PropertyDescriptors for class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'beanClassLoader' of type [java.lang.ClassLoader]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'cacheProvider' of type [org.hibernate.cache.CacheProvider]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'cacheableMappingLocations' of type [[Lorg.springframework.core.io.Resource;]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'class' of type [java.lang.Class]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'collectionCacheStrategies' of type [java.util.Properties]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'configLocation' of type [org.springframework.core.io.Resource]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'configLocations' of type [[Lorg.springframework.core.io.Resource;]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'configuration' of type [org.hibernate.cfg.Configuration]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'configurationClass' of type [java.lang.Class]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'dataSource' of type [javax.sql.DataSource]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'entityCacheStrategies' of type [java.util.Properties]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'entityInterceptor' of type [org.hibernate.Interceptor]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'eventListeners' of type [java.util.Map]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'exposeTransactionAwareSessionFactory' of type [boolean]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'filterDefinitions' of type [[Lorg.hibernate.engine.FilterDefinition;]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'hibernateProperties' of type [java.util.Properties]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'jdbcExceptionTranslator' of type [org.springframework.jdbc.support.SQLExceptionTranslator]
2009-11-10 14:56:09,281 DEBUG (CachedIntrospectionResults.java:243) - Found bean property 'jtaTransactionManager' of type [javax.transaction.TransactionManager]
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=GBK, java.library.path=C:\Program Files\MyEclipse 6.5\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Java\jdk1.5.0_04\bin;D:\oracle\product\10.1.0\Db_1\bin;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\eclipse\plugins\org.junit4_4.3.1\junit.jar;/C:/Program Files/MyEclipse 6.5/eclipse/configuration/org.eclipse.osgi/bundles/66/1/.cp/;/C:/Program Files/MyEclipse 6.5/eclipse/configuration/org.eclipse.osgi/bundles/67/1/.cp/;/C:/Program Files/MyEclipse 6.5/eclipse/configuration/org.eclipse.osgi/bundles/65/1/.cp/, user.name=Administrator, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\Program Files\MyEclipse 6.5\jre, hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.specification.vendor=Sun Microsystems Inc., user.language=zh, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.5.0_11, java.ext.dirs=C:\Program Files\MyEclipse 6.5\jre\lib\ext, sun.boot.class.path=C:\Program Files\MyEclipse 6.5\jre\lib\rt.jar;C:\Program Files\MyEclipse 6.5\jre\lib\i18n.jar;C:\Program Files\MyEclipse 6.5\jre\lib\sunrsasign.jar;C:\Program Files\MyEclipse 6.5\jre\lib\jsse.jar;C:\Program Files\MyEclipse 6.5\jre\lib\jce.jar;C:\Program Files\MyEclipse 6.5\jre\lib\charsets.jar;C:\Program Files\MyEclipse 6.5\jre\classes;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\activation.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\javax.servlet.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\javax.servlet.jsp.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\jboss-j2ee.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\jboss-jaxrpc.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\jboss-jsr77.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\jboss-saaj.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\mail.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\namespace.jar;C:\Program Files\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806\data\libraryset\1.4\xml-apis.jar, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.hbm2ddl.auto=update, 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}
2009-11-10 14:56:10,656 DEBUG (AbstractEntityPersister.java:2766) - Static SQL for entity: com.cfd.ssh.bean.Person
2009-11-10 14:56:10,656 DEBUG (AbstractEntityPersister.java:2771) - Version select: select t_id from person_ssh where t_id =?
2009-11-10 14:56:10,656 DEBUG (AbstractEntityPersister.java:2774) - Snapshot select: select person_.t_id, person_.name as name0_ from person_ssh person_ where person_.t_id=?
2009-11-10 14:56:10,656 DEBUG (AbstractEntityPersister.java:2777) - Insert 0: insert into person_ssh (name, t_id) values (?, ?)
2009-11-10 14:56:10,656 DEBUG (AbstractEntityPersister.java:2778) - Update 0: update person_ssh set name=? where t_id=?
2009-11-10 14:56:10,687 DEBUG (AbstractEntityPersister.java:2779) - Delete 0: delete from person_ssh where t_id=?
2009-11-10 14:56:10,687 DEBUG (AbstractEntityPersister.java:2783) - Identity insert: insert into person_ssh (name) values (?)
2009-11-10 14:56:10,718 DEBUG (EntityLoader.java:102) - Static select for entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=?
2009-11-10 14:56:10,718 DEBUG (EntityLoader.java:102) - Static select for entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=?
2009-11-10 14:56:10,718 DEBUG (EntityLoader.java:102) - Static select for entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=? for update
2009-11-10 14:56:10,718 DEBUG (EntityLoader.java:102) - Static select for entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=? for update
2009-11-10 14:56:10,718 DEBUG (EntityLoader.java:102) - Static select for entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=? for update
2009-11-10 14:56:10,734 DEBUG (CascadeEntityLoader.java:57) - Static select for action ACTION_MERGE on entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=?
2009-11-10 14:56:10,734 DEBUG (CascadeEntityLoader.java:57) - Static select for action ACTION_REFRESH on entity com.cfd.ssh.bean.Person: select person0_.t_id as t1_0_0_, person0_.name as name0_0_ from person_ssh person0_ where person0_.t_id=?
2009-11-10 14:56:10,734 DEBUG (SessionFactoryObjectFactory.java:62) - initializing class SessionFactoryObjectFactory
2009-11-10 14:56:10,734 DEBUG (SessionFactoryObjectFactory.java:99) - registered: 4028818224de98400124de9841ee0000 (unnamed)
2009-11-10 14:56:10,734 INFO (SessionFactoryObjectFactory.java:105) - Not binding factory to JNDI, no JNDI name configured
2009-11-10 14:56:10,734 DEBUG (SessionFactoryImpl.java:340) - instantiated session factory
2009-11-10 14:56:10,750 INFO (SchemaUpdate.java:155) - Running hbm2ddl schema update
2009-11-10 14:56:10,750 INFO (SchemaUpdate.java:167) - fetching database metadata
2009-11-10 14:56:10,765 INFO (SchemaUpdate.java:179) - updating schema
2009-11-10 14:56:10,765 DEBUG (Configuration.java:1153) - processing extends queue
2009-11-10 14:56:10,765 DEBUG (Configuration.java:1157) - processing collection mappings
2009-11-10 14:56:10,765 DEBUG (Configuration.java:1168) - processing native query and ResultSetMapping mappings
2009-11-10 14:56:10,765 DEBUG (Configuration.java:1176) - processing association property references
2009-11-10 14:56:10,765 DEBUG (Configuration.java:1198) - processing foreign key constraints
2009-11-10 14:56:10,796 INFO (TableMetadata.java:62) - table found: my_test.person_ssh
2009-11-10 14:56:10,796 INFO (TableMetadata.java:63) - columns: [t_id, name]
2009-11-10 14:56:10,796 INFO (TableMetadata.java:65) - foreign keys: []
2009-11-10 14:56:10,796 INFO (TableMetadata.java:66) - indexes: [primary]
2009-11-10 14:56:10,796 INFO (SchemaUpdate.java:217) - schema update complete
2009-11-10 14:56:10,796 INFO (UpdateTimestampsCache.java:57) - starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
2009-11-10 14:56:10,796 INFO (DefaultSingletonBeanRegistry.java:421) - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4865ce: defining beans [org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,mydatasource,sessionFactory,personServiceImp,txManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor]; root of factory hierarchy
2009-11-10 14:56:10,828 DEBUG (DisposableBeanAdapter.java:203) - Invoking destroy method 'close' on bean with name 'mydatasource'
web.xml里面直接配置啊
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLaction</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>