Windows Vista requires Tomcat 6 which requires >= Java 5 to get Remote GS3 working
|Reported by:||ak19||Owned by:||ak19|
|Priority:||moderate||Milestone:||Greenstone 3 wishlist|
Tomcat 5 when running on Win Vista does not seem to pass the shell environment, so the check-installation cmd to gliserver.pl fails. This issue seems to have been fixed in Tomcat 6. But Tomcat 6 no longer provides compatibility patches for Java 4 and requires >= Java 5.
- downloaded Tomcat 6 and tested that it works on getting the remote GS3 to work on Vista
- have a server.xml template file for tomcat 6, while we still retain the server.xml template for tomcat 5. The latter has been renamed
- have added an updated xercesImpl.jar to GS3/web/lib folder, and added the xml-apis.jar to the same folder for the first time, since these are no longer available in the latest tomcat. Instead, they get copied into tomcat 6's lib folder. In tomcat 5 they were already available in its common/endorsed directory which does not exist in tomcat 6.
- build.xml has been changed to take all the above into account: it first sets the tomcat.version.major property based on what version of Java is being used. This property will be set to 5 (for tomcat 5) if using Java 4, or else it will be set to 6 (tomcat 6). This property is then consulted to work out which apache tomcat zip file to grab, which server.xml template file to copy across, to set the classpath to the tomcat library jar files which is different in the different tomcat versions.
- updated wiki instructions on the Remote_Greenstone3 page, since resources/tomcat/greenstone3.xml requires the extra attribute privileged="true" added to its context element. Some other additional instructions.
All the above has been completed, tested on Vista with Java 5 and sort of tested with Java 4 (which required some bypassing of the Java 4/tomcat5/Vista problem). Then the changes were committed and tested on Linux.
Still need to test the above from the installer versions on Linux and Windows.