Unable to Start OpenVPMS After Java Update

This may be of use to some users of OpenVPMS.

A Java update was applied yesterday to my OpenVPMS server.  Today, after installing some Winows updates and rebooting the server, I was unable to start OpenVPMS, I received an error message "Unable to reach OpenVPMS".

When I checked Tomcat in My Computer | Manage | Services, I found that Tomcat was stopped and I was "unable to start Tomcat" on clicking "Start".

On further checking Java, I found that the "C:\Program Files\jre6" folder was empty and there was a new "C:\Program Files\jre7" folder dated yesterday.

I updated references to Java in three places:

1 & 2.  Right-click Computer | Properties | Advanced system settings | Advanced | Environment Variables.  Under System Variables, find CLASSPATH , double-click and edit "jre6" to "jre7".  Find JAVA_HOME, double-click and edit "jre6" to "jre7". Then click "Ok", "Ok" and close Window.

3. Start | All Programs | Apache Tomcat n.n | Configure Tomcat. Click on Java tab, and edit the path to the Java Virtual Machine changing "jre6" to "jre7". Click "Ok" and reboot server. All working again: this would have been fun for my staff to debug tomorrow morning (not).

Now at home, I checked my home "evaluation" version of OpenVPMS on my laptop and found that the references above have been updated to "jre7" without any intervention on my part.  Both are Win7 machines, so I'm unsure why the Java update on one PC had updated the references above and the other hadn't.  But if you've suddenly got no OpenVPMS, Java paths might be the place to start.

HTH.

Yuri.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Unable to Start OpenVPMS After Java Update

Also some programs : - an example is 7edit - come with thier own java.exe file, and sometimes (quite randomly) the programmers decide copying it to c:\windows\system32 is a good idea....go figure...end result this means that if you PATH has C:\windows\system32 before your actual java path...it will use the version in that directory...

Finally...having multiple java installations on one pc can also cause issues...uninstall old jre's so you can be sure which one is default.

Re: Unable to Start OpenVPMS After Java Update

Wierdly I just had to reinstall Java on all machines that had autoupdated...Java would not run at all...I got noclassdef errors if I tried to run java -version from the java bin directory....

Also I am not sure but I am now getting a heap of argumentexception errors on my  kettle files, where previously I didnt get any.

Re: Unable to Start OpenVPMS After Java Update

Ben - I suspect that you are suffering from a known problem listed in the Oracle readme.  On some systems the current Java auto updates (I have had it happen on the last two) cause java to "disappear" - the Control panel no longer shows it, and web pages that need it cannot find it.  The advised fix is to do an 'off line update' - ie download the latest version and install by yourself. It will bitch during the install that it is already installed - tell it to go ahead. [On the Hong Kong system the web app that shows the output of the room monitor cameras refuses to run. The machine is running Win 2003 server.]

Regards, Tim G

Re: Unable to Start OpenVPMS After Java Update

Having this exact problem at the moment. Updated Java this morning, Openvpms was unable to start. Apache Tomcat had not restarted automatically and when I attempted to restart it manually it was unable. When I went looking for Java it had disappeared completely.

Went to Java website and downloaded it again. It now shows up in the control panel (although it is labelled Java 7 update 60 (64 bit). I followed all the steps in Yuri's post but still no joy. Any further suggestions?

 

Re: Unable to Start OpenVPMS After Java Update

From Yuri's points above:

3. Start | All Programs | Apache Tomcat n.n | Configure Tomcat. Click on Java tab

Make sure the displayed Java Virtual Machine actually exists. It will be something like:

C:\Program Files\Java\jre7\bin\server\jvm.dll

 

 

Re: Unable to Start OpenVPMS After Java Update

It can also help if you go to the Tomcat directory open a command line window and type

java -version

See what gets returned and what you expected....tells you if your environment is setup properly.

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Unable to Start OpenVPMS After Java Update

Thanks got it working eventually. I had to download the 32 bit Java for it to be compatible with my browser and perform the java reference updates above.

 

Syndicate content