Opened 10 years ago

Closed 10 years ago

#442 closed task (fixed)

Resolve java and servlet container versions

Reported by: camerons Owned by: live-demo@…
Priority: normal Milestone:
Component: OSGeoLive Keywords:
Cc:

Description

Ideally we should only have one Java version on the LiveDVD. This is because:

  • The VM is RAM constrained (to 512Meg) and Java is RAM intensive.
  • Users are expected to open up one application after another, often not closing the prior applications. This will use up RAM, and once RAM is exceeded the machine will slow to the point of being unusable.
  • Also a somewhat important is to conserve space on the LiveDVD.

So we need to update the install_scripts to take this into account. As per this email thread http://lists.osgeo.org/pipermail/live-demo/2009-September/000409.html , it seems that:

deegree is happy with either sun-java5 (preferred) or sun-java-6, GeoServer? runs under sun-java-5 or sun-java-6 (preferred), gvsig runs under sun-java-5 only.

We should:

  • move: install_sunjre6.sh to install_java.sh
  • Update install_java.sh to install sun java 5
  • Update main.sh so that it doesn't install tomcat any more.
  • Ensure OpenJDK is not installed as nobody seems to be using it

Change history (9)

comment:1 Changed 10 years ago by camerons

I forgot to mention:

  • All java projects should include a comment to help future packages in their install_xxx.sh script along the lines of:

# Geoserver version 1.7 runs with both java-sun-1.5 and java-sun-1.6. # It works best with java-sun-1.6 # It can be installed into servlet containers: ... # The preferred servlet container is ...

comment:2 Changed 10 years ago by tmitchell

Component: GeneralLiveDVD
Owner: changed from tmitchell to live-demo@…

Please remember to set the "Component" item of these new tickets to "LiveDVD". All the "General" ones go automatically to me and will go unnoticed to by the livedvd folks.

Reassigning...

comment:3 Changed 10 years ago by jmays

I've done all this:

  • move: install_sunjre6.sh to install_java.sh
  • Update install_java.sh to install sun java 5
  • Update main.sh so that it doesn't install tomcat any more.

Someone should please make sure its working properly

What still needs to be done is this:

  • Ensure OpenJDK is not installed as nobody seems to be using it

Someone else will need to take care of this.

comment:4 Changed 10 years ago by Jive

Okay so there is where I am confused - the above discussion will provide a jre for applications like OpenJump? to run.

install_geoserver still includes:

### Install proper Sun JDK echo "Installing Sun JDK 6" apt-get install --yes sun-java6-jdk

It is because of the install_geoserver that geonetwork and deegree can run...

Steps to take:

  • create install_jdk in addition to install_java

comment:5 Changed 10 years ago by Jive

it looks like geoserver is setting its own JAVA_HOME in its start and stop scripts; JAVA_HOME=/usr/lib/jvm/java-6-sun

With this in mind I am going to let the alpha-6 go out and see how the other applications are making out.

comment:6 Changed 10 years ago by hamish

is this one done?

comment:7 Changed 10 years ago by jive

There has been no discussion - is having the geoserver install providing a jdk working out?

comment:8 Changed 10 years ago by wildintellect

All but one project are using java-5-sun. I don't recall which one stuck to 6 but they included it in their script.

comment:9 Changed 10 years ago by camerons

Resolution: fixed
Status: newclosed

Java version numbers resolved by release 2.0.3 (although not in the most consistent fashion).

Setting issue to fixed.

Note: See TracTickets for help on using tickets.