Install development environment eclipse¶
Install Eclipse IDE for Java EE Developers Eclipse IDE for Java EE Developers into:
/data/eclipse
cd /data/ tar -xzvf eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
Create workspace
mkdir /data/impactdev
Install climate4impact from repository¶
Clone climate4impact repository
cd /data/impactdev hg clone http://dev.knmi.nl/hg/impactportal
Copy required libraries to impactportal/WebContent/WEB-INF/lib/
cd /data/impactdev wget http://climate4impact.eu/installationfiles/impactportaljarfiles.tar.gz tar -xzvf impactportaljarfiles.tar.gz -C /data/impactdev/impactportal/WebContent/WEB-INF/lib/
Install ADAGUC viewer into /data/impactdev/impactportal/WebContent¶
Adagucviewer comes from a separate repository and needs to be installed in impactportal/WebContent/
cd /data/impactdev/impactportal/WebContent/ hg clone http://dev.knmi.nl/hg/adagucviewer
Configure or replace configuration file config.js in ./adagucviewer/
cp /data/impactdev/impactportaltemplates/adagucviewer/config.js /data/impactdev/impactportal/WebContent/adagucviewer/
Configure impact portal¶
Create impactportal configurationfile in $HOME/impactportal/config.xml
mkdir ~/impactspace/ mkdir ~/impactportal/
The impactportal requires some files to create long descriptions of variables, experiments and models. They should be stored in ~/impactspace/staticdata.
Copy this directory from the impactportaltemplates:
cd /data/impactdev/impactportaltemplates/ cp -r /data/impactdev/impactportaltemplates/impactspace/staticdata ~/impactspace/
There is also a configuration file template available from impactportaltemplates:
cp /data/impactdev/impactportaltemplates/impactportal/config.xml ~/impactportal/
Configure all open entries to match your system, these are indicated with <option>. The required ones are:
<impactworkspace>%homepath%/impactspace/</impactworkspace> <loginconfig> <myproxyserverhost>pcmdi9.llnl.gov</myproxyserverhost> <myproxyserverport>7512</myproxyserverport> <myproxyserverpassword>%proxypassword%</myproxyserverpassword> <myproxyserverusernameoverride>%proxyusername%</myproxyserverusernameoverride> </loginconfig> <adagucserverconfig> <adagucexecutable>/data/software/adagucserver/bin/adagucserver</adagucexecutable> <exportenvironment>LD_LIBRARY_PATH=/data/build/lib/</exportenvironment> <exportenvironment>ADAGUC_CONFIG=/home/c4m/impactportal/adagucserver.xml</exportenvironment> <exportenvironment>ADAGUC_LOGFILE=/data/log/server.log</exportenvironment> <exportenvironment>ADAGUC_ERRORFILE=/data/log/server.errlog</exportenvironment> <exportenvironment>ADAGUC_DATARESTRICTION="SHOW_QUERYINFO|ALLOW_WCS|ALLOW_GFI|ALLOW_METADATA"</exportenvironment> </adagucserverconfig>
After you have completed these steps you are ready to start and configure eclipse
Start eclipse¶
cd /data/eclipse ./eclipse
When eclipse prompts for a workspace, enter /data/impactdev/eclipseworkspace
Install tomcat into eclipse¶
mkdir /data/impactdev/tomcat7
- In Eclipse, Choose File->New->Other->Server
- Select "Apache->Tomcat v7.0 server"
- Click "Next>"
- Select "Download and install..." button
- Select the /data/impactdev/tomcat7 directory
- Wait till tomcat is installed, somehow no progressbar is installed.
- Click finished when the button is enabled.
- Add impactportal from available to configured
- Show servers view by: Window->Show view->Other, type server and select OK.
Configure impactportal within eclipse¶
- Select File->Import existing projects into workspace
- Select /data/impactdev/impactportal
- Click Finish
- Open the Project Ecplorer
- Select the impactportal
- Select Run->Run as->Run on server
- Select Tomcat 7 server and check checkbox "Always use this server when running this project"
- Click Finish
Visit http://localhost:8080/impactportal/, if everything has gone well you should see the intro page of climate4impact. Note that WMS and WPS are not yet working.