整合SSH2的登录实例的时候总是出错

整合SSH2的登录实例的时候总是出现下面这个错
Struts2+hibernate3.2+spring2
已经搞了一整天了,快疯了,求大侠帮助,感激不尽,附上代码,哪位大侠有空帮小弟改改

HTTP Status 404 -


type Status report

message

description The requested resource () is not available.

控制台:
2010-9-18 16:28:18 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.20.
2010-9-18 16:28:18 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
2010-9-18 16:28:19 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-9-18 16:28:19 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2010-9-18 16:28:19 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1487 ms
2010-9-18 16:28:19 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-9-18 16:28:19 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
(0 ms) [Thread-2] INFO : org.springframework.web.context.ContextLoader#initWebAp
plicationContext : Root WebApplicationContext: initialization started
(60 ms) [Thread-2] INFO : org.springframework.web.context.support.XmlWebApplicat
ionContext#prepareRefresh : Refreshing org.springframework.web.context.support.X
mlWebApplicationContext@ff2413: display name [Root WebApplicationContext]; start
up date [Sat Sep 18 16:28:20 CST 2010]; root of context hierarchy
(180 ms) [Thread-2] INFO : org.springframework.beans.factory.xml.XmlBeanDefiniti
onReader#loadBeanDefinitions : Loading XML bean definitions from ServletContext
resource /WEB-INF/applicationContext.xml [Thread-2] INFO : org.springframework.web.context.support.XmlWebApplic
ationContext#obtainFreshBeanFactory : Bean factory for application context [org.
springframework.web.context.support.XmlWebApplicationContext@ff2413]: org.spring
framework.beans.factory.support.DefaultListableBeanFactory@17a1767
(2990 ms) [Thread-2] INFO : org.springframework.beans.factory.support.DefaultLis
tableBeanFactory#preInstantiateSingletons : Pre-instantiating singletons in org.
springframework.beans.factory.support.DefaultListableBeanFactory@17a1767: defini
ng beans [dataSource,sessionFactory,userDao,userService,saveUserAction]; root of
factory hierarchy
(3195 ms) [Thread-2] INFO : org.hibernate.cfg.Environment# : Hibernate 3
.2.5
(3200 ms) [Thread-2] INFO : org.hibernate.cfg.Environment# : hibernate.p
roperties not found
(3205 ms) [Thread-2] INFO : org.hibernate.cfg.Environment#buildBytecodeProvider
: Bytecode provider name : cglib
(3215 ms) [Thread-2] INFO : org.hibernate.cfg.Environment# : using JDK 1
.4 java.sql.Timestamp handling
(3705 ms) [Thread-2] INFO : org.hibernate.cfg.HbmBinder#bindRootPersistentClassC
ommonValues : Mapping class: com.test.bean.User -> user
(3750 ms) [Thread-2] INFO : org.springframework.orm.hibernate3.LocalSessionFacto
ryBean#buildSessionFactory : Building new Hibernate SessionFactory
(3875 ms) [Thread-2] INFO : org.hibernate.connection.ConnectionProviderFactory#n
ewConnectionProvider : Initializing connection provider: org.springframework.orm
.hibernate3.LocalDataSourceConnectionProvider
(4300 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : RD
BMS: MySQL, version: 5.1.40-community
(4300 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : JD
BC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.8 ( Revision:
${svn.Revision} )
(4335 ms) [Thread-2] INFO : org.hibernate.dialect.Dialect# : Using dialect
: org.hibernate.dialect.MySQLDialect
(4350 ms) [Thread-2] INFO : org.hibernate.transaction.TransactionFactoryFactory#
buildTransactionFactory : Using default transaction strategy (direct JDBC transa
ctions)
(4355 ms) [Thread-2] INFO : org.hibernate.transaction.TransactionManagerLookupFa
ctory#getTransactionManagerLookup : No TransactionManagerLookup configured (in J
TA environment, use of read-write or transactional second-level cache is not rec
ommended)
(4355 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Au
tomatic flush during beforeCompletion(): disabled
(4355 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Au
tomatic session close at end of transaction: disabled
(4355 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : JD
BC batch size: 15
(4360 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : JD
BC batch updates for versioned data: disabled
(4365 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Sc
rollable result sets: enabled
(4365 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : JD
BC3 getGeneratedKeys(): enabled
(4365 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Co
nnection release mode: on_close
(4370 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Ma
ximum outer join fetch depth: 2
(4370 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : De
fault batch fetch size: 1
(4370 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Ge
nerate SQL with comments: disabled
(4375 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Or
der SQL updates by primary key: disabled
(4375 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Or
der SQL inserts for batching: disabled
(4375 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#createQueryTransla
torFactory : Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
(4385 ms) [Thread-2] INFO : org.hibernate.hql.ast.ASTQueryTranslatorFactory# t> : Using ASTQueryTranslatorFactory
(4385 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Qu
ery language substitutions: {}
(4385 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : JP
A-QL strict compliance: disabled
(4385 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Se
cond-level cache: enabled
(4385 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Qu
ery cache: disabled
(4390 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#createCacheProvide
r : Cache provider: org.hibernate.cache.NoCacheProvider
(4390 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Op
timize cache for minimal puts: disabled
(4390 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : St
ructured second-level cache entries: disabled
(4400 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : St
atistics: disabled
(4405 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : De
leted entity synthetic identifier rollback: disabled
(4405 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : De
fault entity-mode: pojo
(4405 ms) [Thread-2] INFO : org.hibernate.cfg.SettingsFactory#buildSettings : Na
med query checking : enabled
(4460 ms) [Thread-2] INFO : org.hibernate.impl.SessionFactoryImpl# : build
ing session factory
(4970 ms) [Thread-2] INFO : org.hibernate.impl.SessionFactoryObjectFactory#addIn
stance : Not binding factory to JNDI, no JNDI name configured
(5045 ms) [Thread-2] INFO : org.springframework.web.context.ContextLoader#initWe
bApplicationContext : Root WebApplicationContext: initialization completed in 50
35 ms
2010-9-18 16:28:25 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-9-18 16:28:25 org.apache.catalina.core.StandardContext start
严重: Context [/ssh] startup failed due to previous errors
(5060 ms) [Thread-2] INFO : org.springframework.web.context.support.XmlWebApplic
ationContext#doClose : Closing org.springframework.web.context.support.XmlWebApp
licationContext@ff2413: display name [Root WebApplicationContext]; startup date
[Sat Sep 18 16:28:20 CST 2010]; root of context hierarchy
(5060 ms) [Thread-2] INFO : org.springframework.beans.factory.support.DefaultLis
tableBeanFactory#destroySingletons : Destroying singletons in org.springframewor
k.beans.factory.support.DefaultListableBeanFactory@17a1767: defining beans [data
Source,sessionFactory,userDao,userService,saveUserAction]; root of factory hiera
rchy
(5060 ms) [Thread-2] INFO : org.springframework.orm.hibernate3.LocalSessionFacto
ryBean#destroy : Closing Hibernate SessionFactory
(5065 ms) [Thread-2] INFO : org.hibernate.impl.SessionFactoryImpl#close : closin
g
2010-9-18 16:28:25 org.apache.catalina.loader.WebappClassLoader clearReferencesJ
dbc
严重: The web application [/ssh] registered the JBDC driver [com.mysql.jdbc.Driv
er] but failed to unregister it when the web application was stopped. To prevent
a memory leak, the JDBC Driver has been forcibly unregistered.
2010-9-18 16:28:25 org.apache.catalina.loader.WebappClassLoader clearReferencesT
hreads
严重: The web application [/ssh] appears to have started a thread named [Timer-0
] but has failed to stop it. This is very likely to create a memory leak.
2010-9-18 16:28:25 org.apache.catalina.loader.WebappClassLoader clearReferencesT
hreads
严重: The web application [/ssh] appears to have started a thread named [MySQL S
tatement Cancellation Timer] but has failed to stop it. This is very likely to c
reate a memory leak.
2010-9-18 16:28:25 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2010-9-18 16:28:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2010-9-18 16:28:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2010-9-18 16:28:25 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-9-18 16:28:25 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2010-9-18 16:28:25 org.apache.catalina.startup.Catalina start
信息: Server startup in 6626 ms

1个回答

applicationcontext.xml配置正确吗?估计是jar包拷错了

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