Java error after upgrade from version 1.6.2 to 1.7.1
Submitted by Guest on Wed, 31/12/2014 - 15:46
Hi,
I have just upgraded openvpms from version 1.6.2 to version 1.7.1 and we get the following java error now when we try to run it. I followed the instructions on the readme file exactly. any ideas? tomcat logs attached as well.
HTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/openvpms/web/resource/util/Messages
type Exception report
message javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/openvpms/web/resource/util/Messages
description The server encountered an internal error that prevented it from fulfilling this request.
exception
Re: Java error after upgrade from version 1.6.2 to 1.7.1
Karen:
a) the openvpms.txt file you attached just consists of lots of "WARN JRBoxFactory,http-8080-1" messages
b) the message you are getting (HTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError:) feels to me as though the OpenVPMS components did not install correctly - if you look in <TOMCAT-HOME> you should see something like:
Note all the openvpms- files - you can see that these all include "1.8-SNAPSHOT" - that is because on the machine I am using is running a pre-release version of 1.8 - in your case (if the 1.7.1 install worked) you should see "-1.7". If it didnt work these will be "1.6".
If this is indeed the case (ie there are "-1.6"s) then I expect that something went wrong when you ran step 2.5 in the readme.txt - ie
2.5 Web application The existing web application should be removed before installing the new version. To do this: 1. Shut down Apache Tomcat if it is already running. 2. Delete or move directory: <TOMCAT_HOME>/webapps/openvpms Do not move it to another directory under <TOMCAT_HOME>/webapps/ as Tomcat will continue to launch it. 3. Delete the file: <TOMCAT_HOME>/webapps/openvpms.war 4. Copy <OPENVPMS_HOME>/webapps/openvpms.war to the directory <TOMCAT_HOME>/webapps 5. Start Apache Tomcat - this will extract <TOMCAT_HOME>/webapps/openvpms.war and build <TOMCAT_HOME>/webapps/openvpms
Regards, Tim G
Re: Java error after upgrade from version 1.6.2 to 1.7.1
Hi Tim,
apologies for the delay, i have only just gotten time to replicate this on another machine(but with a backup from the machine i was orginally having issues on)
They are all version 1.7 in the WEB-INF folder. are there certain files that should be in there? perhaps something is missing.
the openvpms files in WEB-INF are:
openvpms-archetypes-1.7.1.jar
openvpms-esci-adapter-1.7.1.jar
openvpms-esci-service-1.0-beta-3.jar
openvpms-esci-ubl-1.0-beta-3.jar
openvpms-framework-1.7.1.jar
openvpms-macro-1.7.1.jar
openvpms-reports-1.7.1.jar
openvpms-sms-1.7.1.jar
openvpms-subscription-core-1.0-beta-1.jar
openvpms-web-component-1.7.1.jar
openvpms-web-echo-1.7.1.jar
openvpms-web-resource-1.7.1.jar
openvpms-web-workspaces-1.7.1.jar
Cheers,
Karen
Re: Java error after upgrade from version 1.6.2 to 1.7.1
none of them have SNAPSHOT as part of the file name though.
Re: Java error after upgrade from version 1.6.2 to 1.7.1
seems like it is missing a .jar but i am not sure what is missing
Re: Java error after upgrade from version 1.6.2 to 1.7.1
I have just rebuilt as version 1.6.2 to compare and it looks like the classes folder under WEB-INF is missing a lot of files.
Re: Java error after upgrade from version 1.6.2 to 1.7.1
Hi Tim,
Just ignore all my posts from tonight. it was a permissions error. I gave users full control to the .war file i copied across from 1.7.1 and it loaded as it should.
Cheers,
Karen
Re: Java error after upgrade from version 1.6.2 to 1.7.1
1.7 restructured the way the War was designed hence the apparent missing class's u noted. They aren't missing of course they arent required with a 1.7 build compared with 1.6.
Good to know you sorted it out.