Page 1 of 1
OpenKM Cannot Login Error Message javax.servlet.ServletException: java.lang.ExceptionInInitializerErro
PostPosted:Fri Apr 01, 2016 2:52 am
by nanda_danis
Hellow
Help me please. OpenKM 6.3.0 error on Login. Application Error Class: org.apache.jasper.JasperException Error Message "javax.servlet.ServletException: java.lang.ExceptionInInitializerError". This is happen after i run apt-get update om my Ubuntu 14.04.1 LTS. Please help my. Thanks
Re: OpenKM Cannot Login Error Message javax.servlet.ServletException: java.lang.ExceptionInInitializerErro
PostPosted:Fri Apr 01, 2016 10:36 pm
by jllort
We need to take a look at your catalina.log file ( sure there is an error what will help us understanding what's happening in your environement ).
1- stop openkm
2- delete all files into $TOMCAT_HOME/logs
3- start openkm
4- try to login
5- post here into zip file the catalina.log file
Re: OpenKM Cannot Login Error Message javax.servlet.ServletException: java.lang.ExceptionInInitializerErro
PostPosted:Mon Apr 04, 2016 3:49 am
by nanda_danis
Thanks mr Jlort for your response. This is my logs detail.
Re: OpenKM Cannot Login Error Message javax.servlet.ServletException: java.lang.ExceptionInInitializerErro
PostPosted:Mon Apr 04, 2016 9:09 pm
by jllort
Seems you have stopped the application incorrectly ( computer power shutdown or similar issue ) what caused the lucene searh engine was not stopped correctly.
Can try two things:
1- Only remove the two write lock files at ( with application stopped )
/opt/tomcat/repository/index/com.openkm.dao.bean.NodeBase/write.lock
/opt/tomcat/repository/index/com.openkm.dao.bean.NodeDocumentVersion/write.lock
2- stop application
remove entire /opt/tomcat/repository/index/ ( folder )
start application
go to adminitration -> tools -> Rebuild indexes -> Rebuild search indexes ( for rebuild the search engine )
Re: OpenKM Cannot Login Error Message javax.servlet.ServletException: java.lang.ExceptionInInitializerErro
PostPosted:Tue Apr 05, 2016 5:54 am
by nanda_danis
Thanks Mr Jllort. I have try these two option. Option 1 seems cannot solved the problem the browser doesnt display anything and there is no error message. Option 2 still cannot solve the problem,the browser display text "ERROR" but no error message.
And then I try to combine option 2.
1.After i remove entire /opt/tomcat/repository/index/ i start my aplication.
2.stop aplication
3.copy my old /opt/tomcat/repository/index/com.openkm.dao.bean.NodeBase and /opt/tomcat/repository/index/com.openkm.dao.bean.NodeDocumentVersion
(except 2 file write.lock file segmen.gen and old segmen_*) to /opt/tomcat/repository/index/
4.start aplication again
and the login page succesfully displayed.
But Mr Jllort i can't find this menu adminitration -> tools -> Rebuild indexes -> Rebuild search indexes ( for rebuild the search engine )
and the application run slower than before.
Re: OpenKM Cannot Login Error Message javax.servlet.ServletException: java.lang.ExceptionInInitializerErro
PostPosted:Tue Apr 05, 2016 6:42 am
by jllort
If you remove index is not good idea, copy partial data again, is better entire rebuild.
In the administration at top righ, you have tools menu, into you should found a button name Rebuild indexes.
About performance why do you consider is going slower ? Which behavior is the cause you think it ?