The easiest way to get Cloud42 up and running is to use the binary distribution from the download page.
This description assumes you have already installed Java 1.6 and Apache Tomcat 6.x or Jetty 6.x. Please note that Cloud42 was designed to work with one of these containers. It will run on other Servlet containers or newer versions of Tomcat/Jetty, too, but you may have to add or remove some of the libraries bundled with Cloud42 to get it working.
/etc/cloud42/config.properties or in your home folder (on Windows!). An example of this file comes with the binary distribution. Please copy it to the destination folder mentioned above and adjust it to your needs.
tools/hsqldb/database and typejava -classpath ../lib/hsqldb.jar org.hsqldb.Server.
cloud42.war contains the
Web application for the graphical part of the management framework, whereas the file cloud42WS.war contains the
Web service interface of Cloud42.That's it!
To test your installation, browse to http://localhost:8080/Cloud42 to access the GUI part of Cloud42.
The WSDLs for the Web service interface can be found at http://localhost:8080/Cloud42WS/Cloud42BaseService?wsdl,
http://localhost:8080/Cloud42WS/Cloud42FileService?wsdl,
http://localhost:8080/Cloud42WS/Cloud42RemotingService?wsdl and
http://localhost:8080/Cloud42WS/Cloud42NotificationService?wsdl .
This section describes the steps required if you want to build Cloud42 yourself.
The project uses the Maven build system along with Jetty, a lightweight container. This makes installing and deploying Cloud42 very easy. Here are the instructions for you when working with the source code.
JAVA_HOME environment variable is set.
core/service/src/main/resources/config.properties. You should copy the file to /etc/cloud42/config.properties or into your home folder (on Windows!). Please read the comments in the file carefully and adjust all(!) the settings to your needs.
core/module-configuration/src/main/resources/access.properties to /etc/cloud42 or into your home folder, open it and fill in your keys.-Dmaven.test.skip to the mvn clean install command mentioned below.
mvn clean installfrom the directory where you unpacked the files.
tools/hsqldb/database and typejava -classpath ../lib/hsqldb.jar org.hsqldb.Server
webapp folder, runmvn jetty:run
http://localhost:8080/Cloud42 and enjoy.
webservice folder, typemvn jetty:run
http://localhost:8080/Cloud42WS/Cloud42BaseService?wsdl,
http://localhost:8080/Cloud42WS/Cloud42FileService?wsdl,
http://localhost:8080/Cloud42WS/Cloud42RemotingService?wsdl and
http://localhost:8080/Cloud42WS/Cloud42NotificationService?wsdl .
-Djetty.port=8081 to your command.
target folders in the subdirectories webapp/ or webservice/.
Some useful hints when working with the code:
mvn eclipse:clean eclipse:eclipsefrom the root folder and import the resulting project files into your Eclipse workspace.
M2_REPO pointing to your local Maven repository.
mvn sitefrom the root folder to create the Maven project site. Then:
mvn site:stage -DstagingDirectory="(your_folder)"to deploy it to a folder of your choice.
utils/NotificationEndpoint contains a tool that is very useful for testing the Cloud42 notification mechanism.
See the corresponding readme file.
BPEL/Cloud42BPELSample contains a sample BPEL process created with Oracle JDeveloper.