Error "NH_HOME property not set" when logging into the eHealth web

Document ID : KB000046829
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue: 

Error when logging into the eHealth web UI:

Invalid User
Exception: NH_HOME property not set. com.concord.frameworks.CoreUtilities.CuJException: NH_HOME property not set. at com.concord.lib.jdbLib.DbAccess.getDbPassword(DbAccess.java:39) at com.concord.api.util.jdbc.ConnectionUtil.getConnectionFromPool(ConnectionUtil.java:86) at com.concord.servletApp.web.common.ConnectionHelper.openConnection(ConnectionHelper.java:178) at com.concord.servletApp.web.common.Frames.doGet(Frames.java:122) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:868) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

Environment:  

eHealth 6.0 and later

All platforms

Cause: 

$NH_HOME/web/tomcat/conf/eHealth.dat does not contain the entry for NH_HOME

Resolution:

As the $NH_USER:

1. Write a new eHealth.dat with the correct variables by running

nhWebUtil -setupEnvVars 

 

2. Rewrite the Tomcat $NH_HOME/web/tomcat/conf/server.xml configuration file by running:
 

nhWebUtil -setupTomcat 

 

3. Restart Tomcat:

    a. Windows:

         Restart the eHealth<version> Tomcat service 

    b. Solaris/Linux 

         Run commands:

             nhHttpd stop
             nhHttpd start