纠结的了一上午ssh的问题

2010-6-6 11:05:07 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.19.
2010-6-6 11:05:07 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], rand
om [true].
2010-6-6 11:05:08 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-6-6 11:05:08 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2010-6-6 11:05:08 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1494 ms
2010-6-6 11:05:08 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-6-6 11:05:08 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.24
2010-6-6 11:05:08 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2010-6-6 11:05:09 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2010-6-6 11:05:09 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory test_online
2010-6-6 11:05:11 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2010-06-06 11:05:11 Root WebApplicationContext: initialization started
2010-06-06 11:05:12 Refreshing org.springframework.web.context.support.XmlWebApp
licationContext@8cd4db: display name [Root WebApplicationContext]; startup date
[Sun Jun 06 11:05:12 CST 2010]; root of context hierarchy
2010-06-06 11:05:12 Looking for matching resources in directory tree [C:\Program
Files\Apache Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes
]
2010-06-06 11:05:12 Searching directory [C:\Program Files\Apache Software Founda
tion\Tomcat 6.0\webapps\test_online\WEB-INF\classes] for files matching pattern
[C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/test_online/WEB-
INF/classes/bean-*.xml]
2010-06-06 11:05:12 Resolved location pattern [classpath:bean-*.xml] to resource
s [file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_onl
ine\WEB-INF\classes\bean-action.xml], file [C:\Program Files\Apache Software Fou
ndation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibernate.xml], file
[C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_online\WEB
-INF\classes\bean-service.xml]]
2010-06-06 11:05:12 Loading XML bean definitions from file [C:\Program Files\Apa
che Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-acti
on.xml]
2010-06-06 11:05:13 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderF
actoryImpl]
2010-06-06 11:05:14 Loading schema mappings from [META-INF/spring.schemas]
2010-06-06 11:05:14 Loaded schema mappings: {http://www.springframework.org/sche
ma/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd
, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframe
work/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema
/context/spring-context-2.5.xsd=org/springframework/context/config/spring-contex
t-2.5.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/
springframework/context/config/spring-context-2.5.xsd, http://www.springframewor
k.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.5.xs
d, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springfram
ework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/sche
ma/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.
5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springfram
ework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schem
a/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.5.xsd=org/springframe
work/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/tool/spring-tool-2.5.xsd=org/sprin
gframework/beans/factory/xml/spring-tool-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.springframewo
rk.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.5.x
sd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframewo
rk/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.springfram
ework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-ao
p-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/spri
ngframework/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.x
sd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframewo
rk/beans/factory/xml/spring-util-2.5.xsd}
2010-06-06 11:05:14 Found XML schema [http://www.springframework.org/schema/bean
s/spring-beans-2.0.xsd] in classpath: org/springframework/beans/factory/xml/spri
ng-beans-2.0.xsd
2010-06-06 11:05:14 Loading bean definitions
2010-06-06 11:05:14 No XML 'id' specified - using 'LoginAction' as bean name and
[] as aliases
2010-06-06 11:05:14 No XML 'id' specified - using 'CheckAction' as bean name and
[] as aliases
2010-06-06 11:05:14 Loading XML bean definitions from file [C:\Program Files\Apa
che Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibe
rnate.xml]
2010-06-06 11:05:14 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderF
actoryImpl]
2010-06-06 11:05:14 Found XML schema [http://www.springframework.org/schema/bean
s/spring-beans-2.5.xsd] in classpath: org/springframework/beans/factory/xml/spri
ng-beans-2.5.xsd
2010-06-06 11:05:14 Loading bean definitions
2010-06-06 11:05:14 Loading XML bean definitions from file [C:\Program Files\Apa
che Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-serv
ice.xml]
2010-06-06 11:05:14 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderF
actoryImpl]
2010-06-06 11:05:14 Found XML schema [http://www.springframework.org/schema/bean
s/spring-beans-2.0.xsd] in classpath: org/springframework/beans/factory/xml/spri
ng-beans-2.0.xsd
2010-06-06 11:05:14 Loading bean definitions
2010-06-06 11:05:14 No XML 'id' specified - using 'UserCheckService' as bean nam
e and [] as aliases
2010-06-06 11:05:14 No XML 'id' specified - using 'build' as bean name and [] as
aliases
2010-06-06 11:05:14 Loaded 9 bean definitions from location pattern [classpath:b
ean-*.xml]
2010-06-06 11:05:14 Bean factory for application context [org.springframework.we
b.context.support.XmlWebApplicationContext@8cd4db]: org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@3087f9
2010-06-06 11:05:14 9 beans defined in org.springframework.web.context.support.X
mlWebApplicationContext@8cd4db: display name [Root WebApplicationContext]; start
up date [Sun Jun 06 11:05:12 CST 2010]; root of context hierarchy
2010-06-06 11:05:15 Unable to locate MessageSource with name 'messageSource': us
ing default [org.springframework.context.support.DelegatingMessageSource@137e2dc
]
2010-06-06 11:05:15 Unable to locate ApplicationEventMulticaster with name 'appl
icationEventMulticaster': using default [org.springframework.context.event.Simpl
eApplicationEventMulticaster@16e1111]
2010-06-06 11:05:15 Unable to locate ThemeSource with name 'themeSource': using
default [org.springframework.ui.context.support.ResourceBundleThemeSource@5b5df0
]
2010-06-06 11:05:15 Pre-instantiating singletons in org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@3087f9: defining beans [LoginAction,Che
ckAction,dataSource,sessionFactory,TestDAO,StudentsDAO,QuesttionDAO,UserCheckSer
vice,build]; root of factory hierarchy
2010-06-06 11:05:15 Creating shared instance of singleton bean 'dataSource'
2010-06-06 11:05:15 Creating instance of bean 'dataSource'
2010-06-06 11:05:15 Eagerly caching bean 'dataSource' to allow for resolving pot
ential circular references
2010-06-06 11:05:15 Finished creating instance of bean 'dataSource'
2010-06-06 11:05:15 Creating shared instance of singleton bean 'sessionFactory'
2010-06-06 11:05:15 Creating instance of bean 'sessionFactory'
2010-06-06 11:05:15 Eagerly caching bean 'sessionFactory' to allow for resolving
potential circular references
2010-06-06 11:05:15 Returning cached instance of singleton bean 'dataSource'
2010-06-06 11:05:15 Invoking afterPropertiesSet() on bean with name 'sessionFact
ory'
2010-06-06 11:05:15 Hibernate 3.2.7
2010-06-06 11:05:15 hibernate.properties not found
2010-06-06 11:05:15 Bytecode provider name : cglib
2010-06-06 11:05:15 using JDK 1.4 java.sql.Timestamp handling
2010-06-06 11:05:16 trying to resolve system-id [http://hibernate.sourceforge.ne
t/hibernate-mapping-3.0.dtd]
2010-06-06 11:05:16 recognized hibernate namespace; attempting to resolve on cla
sspath under org/hibernate/
2010-06-06 11:05:16 located [http://hibernate.sourceforge.net/hibernate-mapping-
3.0.dtd] in classpath
2010-06-06 11:05:17 Mapping class: pro.ncbuct.bean.Questtion -> questtion
2010-06-06 11:05:17 Mapped property: id -> id
2010-06-06 11:05:17 Mapped property: title -> title
2010-06-06 11:05:17 Mapped property: score -> score
2010-06-06 11:05:17 Mapped property: answer -> answer
2010-06-06 11:05:17 Mapped property: option1 -> option1
2010-06-06 11:05:17 Mapped property: option2 -> option2
2010-06-06 11:05:17 Mapped property: option3 -> option3
2010-06-06 11:05:17 Mapped property: option4 -> option4
2010-06-06 11:05:17 trying to resolve system-id [http://hibernate.sourceforge.ne
t/hibernate-mapping-3.0.dtd]
2010-06-06 11:05:17 recognized hibernate namespace; attempting to resolve on cla
sspath under org/hibernate/
2010-06-06 11:05:17 located [http://hibernate.sourceforge.net/hibernate-mapping-
3.0.dtd] in classpath
2010-06-06 11:05:17 Mapping class: pro.ncbuct.bean.Students -> students
2010-06-06 11:05:17 Mapped property: id -> id
2010-06-06 11:05:17 Mapped property: name -> name
2010-06-06 11:05:17 Mapped property: loginNum -> login_num
2010-06-06 11:05:17 Mapped property: num -> num
2010-06-06 11:05:17 trying to resolve system-id [http://hibernate.sourceforge.ne
t/hibernate-mapping-3.0.dtd]
2010-06-06 11:05:17 recognized hibernate namespace; attempting to resolve on cla
sspath under org/hibernate/
2010-06-06 11:05:17 located [http://hibernate.sourceforge.net/hibernate-mapping-
3.0.dtd] in classpath
2010-06-06 11:05:17 Mapping class: pro.ncbuct.bean.Test -> test
2010-06-06 11:05:17 Mapped property: id -> id
2010-06-06 11:05:17 Mapped property: userId -> user_id
2010-06-06 11:05:17 Mapped property: questId -> quest_id
2010-06-06 11:05:17 Mapped property: SAns -> s_ans
2010-06-06 11:05:17 Mapped property: testScore -> test_score
2010-06-06 11:05:17 processing extends queue
2010-06-06 11:05:17 processing collection mappings
2010-06-06 11:05:17 processing native query and ResultSetMapping mappings
2010-06-06 11:05:17 processing association property references
2010-06-06 11:05:17 processing foreign key constraints
2010-06-06 11:05:17 Building new Hibernate SessionFactory
2010-06-06 11:05:17 Preparing to build session factory with filters : {}
2010-06-06 11:05:17 processing extends queue
2010-06-06 11:05:17 processing collection mappings
2010-06-06 11:05:17 processing native query and ResultSetMapping mappings
2010-06-06 11:05:17 processing association property references
2010-06-06 11:05:17 processing foreign key constraints
2010-06-06 11:05:17 Initializing connection provider: org.springframework.orm.hi
bernate3.LocalDataSourceConnectionProvider
2010-06-06 11:05:18 RDBMS: MySQL, version: 5.1.45-community
2010-06-06 11:05:18 JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-
java-5.0.8 ( Revision: ${svn.Revision} )
2010-06-06 11:05:18 Using dialect: org.hibernate.dialect.MySQLDialect
2010-06-06 11:05:18 Transaction strategy: org.springframework.orm.hibernate3.Spr
ingTransactionFactory
2010-06-06 11:05:18 No TransactionManagerLookup configured (in JTA environment,
use of read-write or transactional second-level cache is not recommended)
2010-06-06 11:05:18 Automatic flush during beforeCompletion(): disabled
2010-06-06 11:05:18 Automatic session close at end of transaction: disabled
2010-06-06 11:05:18 JDBC batch size: 15
2010-06-06 11:05:18 JDBC batch updates for versioned data: disabled
2010-06-06 11:05:18 Scrollable result sets: enabled
2010-06-06 11:05:18 Wrap result sets: disabled
2010-06-06 11:05:18 JDBC3 getGeneratedKeys(): enabled
2010-06-06 11:05:18 Connection release mode: auto
2010-06-06 11:05:18 Maximum outer join fetch depth: 2
2010-06-06 11:05:18 Default batch fetch size: 1
2010-06-06 11:05:18 Generate SQL with comments: disabled
2010-06-06 11:05:18 Order SQL updates by primary key: disabled
2010-06-06 11:05:18 Order SQL inserts for batching: disabled
2010-06-06 11:05:18 Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFa
ctory
2010-06-06 11:05:18 Using ASTQueryTranslatorFactory
2010-06-06 11:05:18 Query language substitutions: {}
2010-06-06 11:05:18 JPA-QL strict compliance: disabled
2010-06-06 11:05:18 Second-level cache: enabled
2010-06-06 11:05:18 Query cache: disabled
2010-06-06 11:05:18 Cache provider: org.hibernate.cache.NoCacheProvider
2010-06-06 11:05:18 Optimize cache for minimal puts: disabled
2010-06-06 11:05:18 Structured second-level cache entries: disabled
2010-06-06 11:05:18 Statistics: disabled
2010-06-06 11:05:18 Deleted entity synthetic identifier rollback: disabled
2010-06-06 11:05:18 Default entity-mode: pojo
2010-06-06 11:05:18 Named query checking : enabled
2010-06-06 11:05:18 building session factory
2010-06-06 11:05:18 Session factory constructed with filter configurations : {}
2010-06-06 11:05:18 instantiating session factory with properties: {java.runtime
.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Program Files\Ja
va\jdk1.6.0_18\jre\bin, java.vm.version=16.0-b13, shared.loader=, java.vm.vendor
=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;,
java.vm.name=Java HotSpot(TM) Client VM, tomcat.util.buf.StringCache.byte.enable
d=true, file.encoding.pkg=sun.io, user.country=CN, sun.java.launcher=SUN_STANDAR
D, sun.os.patch.level=, java.vm.specification.name=Java Virtual Machine Specific
ation, user.dir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin, java
.runtime.version=1.6.0_18-b07, java.awt.graphicsenv=sun.awt.Win32GraphicsEnviron
ment, hibernate.current_session_context_class=org.springframework.orm.hibernate3
.SpringSessionContext, java.endorsed.dirs=C:\Program Files\Apache Software Found
ation\Tomcat 6.0/common/endorsed, os.arch=x86, java.io.tmpdir=C:\Program Files\A
pache Software Foundation\Tomcat 6.0\temp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, java.naming
.factory.url.pkgs=org.apache.naming, os.name=Windows 7, sun.jnu.encoding=GBK, ja
va.library.path=C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\Apache So
ftware Foundation\Tomcat 6.0\bin, java.specification.name=Java Platform API Spec
ification, java.class.version=50.0, sun.management.compiler=HotSpot Client Compi
ler, hibernate.transaction.factory_class=org.springframework.orm.hibernate3.Spri
ngTransactionFactory, os.version=6.1, sun.io.useCanonCaches=false, user.home=C:\
Documents and Settings\Administrator, catalina.useNaming=true, user.timezone=Asi
a/Shanghai, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.
version=1.6, file.encoding=GBK, catalina.home=C:\Program Files\Apache Software F
oundation\Tomcat 6.0, user.name=Administrator, java.class.path=C:\Program Files\
Apache Software Foundation\Tomcat 6.0/bin/bootstrap.jar;C:\Program Files\Java\jd
k1.6.0_18/lib/tools.jar, hibernate.bytecode.use_reflection_optimizer=false, java
.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, package.de
finition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,o
rg.apache.jasper., java.vm.specification.version=1.0, sun.arch.data.model=32, ja
va.home=C:\Program Files\Java\jdk1.6.0_18\jre, hibernate.dialect=org.hibernate.d
ialect.MySQLDialect, java.specification.vendor=Sun Microsystems Inc., user.langu
age=zh, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.vers
ion=1.6.0_18, java.ext.dirs=C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\Win
dows\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.6.0_18\jre
\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_18\jre\lib\rt.jar;C:\Program F
iles\Java\jdk1.6.0_18\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_18\j
re\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_18\jre\lib\jce.jar;C:\Program Fil
es\Java\jdk1.6.0_18\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_18\jre\c
lasses, java.vendor=Sun Microsystems Inc., server.loader=, catalina.base=C:\Prog
ram Files\Apache Software Foundation\Tomcat 6.0, file.separator=\, java.vendor.u
rl.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.connection.provider_
class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, comm
on.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,$
{catalina.home}/lib/*.jar, sun.cpu.endian=little, sun.io.unicode.encoding=Unicod
eLittle, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.
tomcat.,org.apache.jasper.,sun.beans., sun.desktop=windows, sun.cpu.isalist=pent
ium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
2010-06-06 11:05:19 Destroying singletons in org.springframework.beans.factory.s
upport.DefaultListableBeanFactory@3087f9: defining beans [LoginAction,CheckActio
n,dataSource,sessionFactory,TestDAO,StudentsDAO,QuesttionDAO,UserCheckService,bu
ild]; root of factory hierarchy
2010-06-06 11:05:19 Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sessionFactory' defined in file [C:\Program Files\Apache Software Founda
tion\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibernate.xml]: Invocat
ion of init method failed; nested exception is org.hibernate.HibernateException:
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTu
plizer]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFac
toryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
ntextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:45)
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:7
91)
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(LifecycleSuppor
t.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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.hibernate.HibernateException: Unable to instantiate default tupli
zer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup
lizerFactory.java:110)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(En
tityTuplizerFactory.java:135)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEn
tityModeToTuplizerMapping.java:56)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:323)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntity
Persister.java:433)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTable
EntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFacto
ry.java:55)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:231)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory
(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFacto
ry(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertie
sSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 39 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup
lizerFactory.java:107)
... 52 more
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy
.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:
216)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLaz
yInitializer.java:117)
at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyF
actory.java:43)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTu
plizer.java:188)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTupli
zer.java:128)
at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java
:78)
... 57 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.CodeVisitor
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1484)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1329)
... 70 more
2010-6-6 11:05:19 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class or
g.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sessionFactory' defined in file [C:\Program Files\Apache Software Founda
tion\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibernate.xml]: Invocat
ion of init method failed; nested exception is org.hibernate.HibernateException:
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTu
plizer]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFac
toryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
ntextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:45)
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:7
91)
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(LifecycleSuppor
t.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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.hibernate.HibernateException: Unable to instantiate default tupli
zer [org.hibernate.tuple.entity.PojoEntityTuplizer]
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup
lizerFactory.java:110)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(En
tityTuplizerFactory.java:135)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEn
tityModeToTuplizerMapping.java:56)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:323)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntity
Persister.java:433)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTable
EntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFacto
ry.java:55)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:231)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory
(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFacto
ry(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertie
sSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 39 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup
lizerFactory.java:107)
... 52 more
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy
.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:
216)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLaz
yInitializer.java:117)
at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyF
actory.java:43)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTu
plizer.java:188)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTupli
zer.java:128)
at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java
:78)
... 57 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.CodeVisitor
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1484)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1329)
... 70 more
2010-6-6 11:05:19 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-6-6 11:05:19 org.apache.catalina.core.StandardContext start
严重: Context [/test_online] startup failed due to previous errors
2010-6-6 11:05:19 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearReferencesJd
bc
严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but fai
led to unregister it when the web application was stopped. To prevent a memory l
eak, the JDBC Driver has been forcibly unregistered.
2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearReferencesTh
reads
严重: A web application appears to have started a thread named [Timer-0] but has f
ailed to stop it. This is very likely to create a memory leak.
2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearReferencesTh
reads
严重: A web application appears to have started a thread named [MySQL Statement Ca
ncellation Timer] but has failed to stop it. This is very likely to create a mem
ory leak.
2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearThreadLocalM
ap
严重: A web application created a ThreadLocal with key of type null and a value of type null but failed to remove it when the web application was stopped. To preven
t a memory leak, the ThreadLocal has been forcibly removed.
2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearThreadLocalM
ap
严重: A web application created a ThreadLocal with key of type org.springframewor
k.core.NamedThreadLocal
and a v
alue of type null but failed to remove it when the web applicat
ion was stopped. To prevent a memory leak, the ThreadLocal has been forcibly rem
oved.

1个回答

这个工程是你自己做的吗?是不是一下复制了很多别人的东西啊?好像配置有问题,建议你一点点往上加,看看到底配置什么的时候报错了,本地化的一下东西还是后面再加吧,好像全都没加载那

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问