问题描述
我有个应用原本在websphere6.1上没问题,升级到websphere8.0后慢得离谱用的是Spring2.5.5,springsecurity2.0.4,Hibernate3.3.1,struts1.2.9,JBPM3.2,DB2以下是login時的log..用了10秒才完成...2012-08-1516:41:57,998INFO[WebContainer:3][com.epi.life.common.web.filter.HttpRequestLogFilter]Beforehandletherequest.Therequesteduri:/life/loginDemoApp.do2012-08-1516:41:58,000DEBUG[WebContainer:3][com.epi.life.security.auth.AuthenticationFilter]Requestistoprocessauthentication2012-08-1516:42:08,370DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]Usingtransactionobject[org.springframework.orm.hibernate3.HibernateTransactionManager$HibernateTransactionObject@b5ae812]2012-08-1516:42:08,371DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]Creatingnewtransactionwithname[com.epi.life.security.bo.UserService.loadUserByUsername]:PROPAGATION_REQUIRED,ISOLATION_DEFAULT,-java.lang.Exception2012-08-1516:42:08,371DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]OpenednewSession[org.hibernate.impl.SessionImpl@b5aead8]forHibernatetransaction2012-08-1516:42:08,371DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]PreparingJDBCConnectionofHibernateSession[org.hibernate.impl.SessionImpl@b5aead8]2012-08-1516:42:08,380DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]ExposingHibernatetransactionasJDBCtransaction[com.ibm.ws.rsadapter.jdbc.WSJccSQLJConnection@b5b0a28]2012-08-1516:42:08,381DEBUG[WebContainer:3][org.hibernate.SQL]selectuserinfo0_.USRNMasUSRNM3_,userinfo0_.USRPWDasUSRPWD3_,userinfo0_.GENDERasGENDER3_,userinfo0_.USRSTUSasUSRSTUS3_,userinfo0_.CRTDATEasCRTDATE3_,userinfo0_.CRTBYasCRTBY3_,userinfo0_.CRTBYNasCRTBYN3_,userinfo0_.LASTMODBYasLASTMODBY3_,userinfo0_.LASTMODBYNasLASTMODBYN3_,userinfo0_.FAILLOGSasFAILLOGS3_,userinfo0_.MODPWDasMODPWD3_,userinfo0_.BIZDATEasBIZDATE3_,userinfo0_.VSTLOGSasVSTLOGS3_,userinfo0_.USRDESCasUSRDESC3_,userinfo0_.FIRLVSPVasFIRLVSPV3_,userinfo0_.SCDLVSPVasSCDLVSPV3_,userinfo0_.USREMAILasUSREMAIL3_,userinfo0_.CSUSRIDasCSUSRID3_fromACUSERuserinfo0_whereuserinfo0_.USRNM=?2012-08-1516:42:08,389DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]TriggeringbeforeCompletionsynchronization2012-08-1516:42:08,389DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]Initiatingtransactionrollback2012-08-1516:42:08,389DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]RollingbackHibernatetransactiononSession[org.hibernate.impl.SessionImpl@b5aead8]2012-08-1516:42:08,391DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]TriggeringafterCompletionsynchronization2012-08-1516:42:08,391DEBUG[WebContainer:3][org.springframework.orm.hibernate3.HibernateTransactionManager]ClosingHibernateSession[org.hibernate.impl.SessionImpl@b5aead8]aftertransaction2012-08-1516:42:08,618DEBUG[WebContainer:3][com.epi.life.security.auth.AuthenticationFilter]UpdatedSecurityContextHoldertocontainnullAuthentication2012-08-1516:42:08,618DEBUG[WebContainer:3][com.epi.life.security.auth.AuthenticationFilter]authenticationexceptionorg.springframework.security.BadCredentialsException:UserID/passwordisnotcorrectedatorg.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:124)atorg.springframework.security.providers.ProviderManager.doAuthentication(ProviderManager.java:188)atorg.springframework.security.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:46)atorg.springframework.security.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:82)atorg.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:258)atcom.epi.life.security.auth.AuthenticationFilter.doFilterHttp(AuthenticationFilter.java:76)atorg.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)atorg.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)atorg.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)atorg.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)atorg.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)atorg.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)atorg.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)atorg.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)atorg.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)atorg.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)atorg.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)atorg.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169)atorg.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)atorg.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)atorg.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)atcom.epi.life.common.web.filter.JstlInitFilter.doFilter(JstlInitFilter.java:35)atorg.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)atcom.epi.life.common.web.filter.HttpRequestLogFilter.doFilterInternal(HttpRequestLogFilter.java:86)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
解决方案
解决方案二:
学习!!!!!