Yup, done that and I managed to login but it displays the HTTP500 error page instead.
Should I proceed to do a reinstall? Can't figure out what could be the problem here.
Cheers! = ]
--START SCREENDUMP AFTER LOGIN--
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.lamsfoundation.lams.web.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:151)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
org.lamsfoundation.lams.web.session.SystemSessionFilter.doFilter(SystemSessionFilter.java:71)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
java.lang.NullPointerException
org.apache.jasper.compiler.Localizer.getMessage(Localizer.java:56)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.lamsfoundation.lams.web.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:151)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
org.lamsfoundation.lams.web.session.SystemSessionFilter.doFilter(SystemSessionFilter.java:71)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
--END SCREENDUMP AFTER LOGIN--
--START LAMS.LOG--
12:22:16,337 [http-0.0.0.0-8080-1:] DEBUG org.lamsfoundation.lams.security.JspRedirectStrategy - ===>LOGIN PAGE: there is no auth obj in session or accessing login page before login succeed, auth obj created. session id: C4675EF35D22A4BA8C63332E5977141D
12:22:16,343 [http-0.0.0.0-8080-1:] ERROR org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId
12:22:16,344 [http-0.0.0.0-8080-1:] DEBUG org.lamsfoundation.lams.web.filter.LocaleFilter - Locale set from server is en,AU
12:22:16,357 [http-0.0.0.0-8080-1:] DEBUG org.lamsfoundation.lams.security.JspRedirectStrategy - Set locale information for login page:en_US
12:22:16,392 [http-0.0.0.0-8080-1:] ERROR org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId
12:22:16,484 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - ==>Couldn't find the sso cookie
12:22:16,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - ==>Created one - ff808081193bb64c01193bb82ea60049
12:22:16,493 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - SessionManager: cookie is null, generating a new session
12:22:16,503 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - SessionManager: creating new session ff808081193bb64c01193bb82ead004a
12:22:17,601 [http-0.0.0.0-8080-1:] DEBUG org.lamsfoundation.lams.security.JspRedirectStrategy - ===>LOGIN PAGE: there is no auth obj in session or accessing login page before login succeed, auth obj created. session id: C4675EF35D22A4BA8C63332E5977141D
12:22:19,024 [http-0.0.0.0-8080-1:] ERROR org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId
12:22:19,024 [http-0.0.0.0-8080-1:] DEBUG org.lamsfoundation.lams.web.filter.LocaleFilter - Locale set from server is en,AU
12:22:19,024 [http-0.0.0.0-8080-1:] DEBUG org.lamsfoundation.lams.security.JspRedirectStrategy - Set locale information for login page:en_US
12:22:19,025 [http-0.0.0.0-8080-1:] ERROR org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId
12:22:19,026 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - ==>Couldn't find the sso cookie
12:22:19,026 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - ==>Created one - ff808081193bb64c01193bb83892004b
12:22:19,026 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - SessionManager: cookie is null, generating a new session
12:22:19,026 [http-0.0.0.0-8080-2:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - SessionManager: creating new session ff808081193bb64c01193bb83892004c
12:22:24,232 [http-0.0.0.0-8080-3:] INFO org.lamsfoundation.lams.security.UniversalLoginModule - initialize
12:22:24,234 [http-0.0.0.0-8080-3:] INFO org.lamsfoundation.lams.security.UniversalLoginModule - login
12:22:24,235 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===> validatePassword() called: a159b7ae81ba3552af61e9731b20870515944538 :
12:22:25,246 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===> authenticating user: sysadmin
12:22:25,251 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===>dsJndiName = java:/jdbc/lams-ds
12:22:25,251 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===>principalsQuery = select password from lams_user where login=?
12:22:25,251 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===>rolesQuery =
SELECT DISTINCT r.name,'Roles' FROM
lams_user u LEFT OUTER JOIN lams_user_organisation uo USING(user_id)
LEFT OUTER JOIN lams_user_organisation_role urr USING(user_organisation_id)
LEFT OUTER JOIN lams_role r USING (role_id)
WHERE u.login=?
12:22:25,251 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===> authentication type :LAMS
12:22:25,255 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===> LAMS:: user:sysadmin:a159b7ae81ba3552af61e9731b20870515944538 authenticated!
12:22:25,256 [http-0.0.0.0-8080-3:] ERROR org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId
12:22:25,276 [http-0.0.0.0-8080-3:] DEBUG org.lamsfoundation.lams.security.UniversalLoginModule - ===> exception: java.lang.NullPointerException
java.lang.NullPointerException
at org.lamsfoundation.lams.security.UniversalLoginModule.validatePassword(UniversalLoginModule.java:185)
at org.lamsfoundation.lams.security.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:151)
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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:483)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:425)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:251)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:230)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:619)
--END LAMS.LOG--
Posted by Martyn Yap