DistributeMe Registry project can be checked out from svn:
svn://svn.anotheria.net/opensource/distributeme/trunk/distributeme-registry
Building project or Downloading the war
There is also pom.xml in the project's directory so building this project with Maven:
mvn clean install
Getting the next:
... [INFO] Webapp assembled in [1903 msecs] [INFO] Building war: /Users/bezuhlyi/projects/distributeme-registry/target/distributeme.war [INFO] WEB-INF/web.xml already added, skipping [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ distributeme-registry --- [INFO] Installing /Users/bezuhlyi/projects/distributeme-registry/target/distributeme.war to /Users/bezuhlyi/.m2/repository/net/anotheria/distributeme-registry/1.3.0-SNAPSHOT/distributeme-registry-1.3.0-SNAPSHOT.war [INFO] Installing /Users/bezuhlyi/projects/distributeme-registry/pom.xml to /Users/bezuhlyi/.m2/repository/net/anotheria/distributeme-registry/1.3.0-SNAPSHOT/distributeme-registry-1.3.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 27.194s [INFO] Finished at: Fri Oct 26 17:13:45 EEST 2012 [INFO] Final Memory: 13M/81M [INFO] ------------------------------------------------------------------------ Process finished with exit code 0
alternatively you can simply download the latest registry from maven central and rename it to distributeme.war:
Configuring Tomcat
Prapare your Tomcat for running DistributeMe Registry. Set up port for HTTP protocol connector to 9229, editing Tomcat's server.xml config file, for example:
<Connector port="9229" URIEncoding="UTF-8" useBodyEncodingForURI="true" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
Save changes to server.xml.
Deploying application
Next step - starting tomcat. As usual, execute /../tomcat_directory/bin/catalina.sh run from terminal in Unix-based systems. Output is something like this:
bezuhlyi:distributeme-registry bezuhlyi$ bin/catalina.sh run Using CATALINA_BASE: /Users/bezuhlyi/tomcats/distributeme-registry Using CATALINA_HOME: /Users/bezuhlyi/tomcats/distributeme-registry Using CATALINA_TMPDIR: /Users/bezuhlyi/tomcats/distributeme-registry/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/bezuhlyi/tomcats/distributeme-registry/bin/bootstrap.jar:/Users/bezuhlyi/tomcats/distributeme-registry/bin/tomcat-juli.jar Listening for transport dt_socket at address: 8999 26 ???? 2012 18:19:22 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java 26 ???? 2012 18:19:23 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-9229"] 26 ???? 2012 18:19:23 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 26 ???? 2012 18:19:23 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1494 ms 26 ???? 2012 18:19:23 org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 26 ???? 2012 18:19:23 org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.27 26 ???? 2012 18:19:23 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /Users/bezuhlyi/tomcats/distributeme-registry/webapps/distributeme.war 26 ???? 2012 18:19:26 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /Users/bezuhlyi/tomcats/distributeme-registry/webapps/ROOT 26 ???? 2012 18:19:28 org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-9229"] 26 ???? 2012 18:19:28 org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] 26 ???? 2012 18:19:28 org.apache.catalina.startup.Catalina start INFO: Server startup in 5162 ms
Now we need to deploy built DistributeMe Registry to Tomcat. Go to directory where you have checked out the DistributeMe Registry project and place distributeme.war from target directory to webapps directory of already configured and running Tomcat.
Application will be extracted and deployed automatically. And using the browser by the http://localhost:9229/distributeme/ you should see the next:
If you does, it means that all is in an order - Registry is running.