| 1 | This README is for running rapla as server. You will find more information on our |
|---|
| 2 | documentation pages on |
|---|
| 3 | |
|---|
| 4 | http://rapla.sourceforge.net/documentation.html |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | The rapla server: |
|---|
| 8 | --------------------------- |
|---|
| 9 | |
|---|
| 10 | Since version 0.10.2 rapla server installation is very easy: |
|---|
| 11 | Download the binary-distribution or build one with "build dist-bin" |
|---|
| 12 | |
|---|
| 13 | You can start it with: |
|---|
| 14 | |
|---|
| 15 | raplaserver.bat (Windows) |
|---|
| 16 | call raplaserver.bat (NT) |
|---|
| 17 | raplaserver.sh run (Unix) |
|---|
| 18 | |
|---|
| 19 | If you want to install Rapla-Server as a SERVICE on Win NT/2000/XP/Vista/7 |
|---|
| 20 | use the scripts in the service folder to test/install/uninstall rapla as a service. |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | With a running server point your browser to |
|---|
| 24 | http://localhost:8051 |
|---|
| 25 | |
|---|
| 26 | You should see the rapla welcome screen. Click on start with webstart |
|---|
| 27 | and the webstart client should launch. If not launched automatically, |
|---|
| 28 | you should choose the webstart program from your |
|---|
| 29 | java installation (e.g. C:\Programme\Java\jre1.5.0_06\bin\webstart.exe under Windows). |
|---|
| 30 | |
|---|
| 31 | You can login with username "admin" and empty password |
|---|
| 32 | |
|---|
| 33 | Thats it. |
|---|
| 34 | |
|---|
| 35 | Installing into another servlet container |
|---|
| 36 | ----------------------------------------- |
|---|
| 37 | |
|---|
| 38 | If you want to use another servlet container (e.g. tomcat) you can |
|---|
| 39 | copy the webapp (without s) folder to the webapps (with s) folder of |
|---|
| 40 | your servlet container and rename webapp (without s) to rapla. |
|---|
| 41 | See the documentation of your servelt-container for more details |
|---|
| 42 | |
|---|
| 43 | Installing in Apache or IIS |
|---|
| 44 | ---------------------------- |
|---|
| 45 | |
|---|
| 46 | You can install Jetty with apache or IIS by uncommenting |
|---|
| 47 | the AJP13 listener in jetty/conf/main.xml. |
|---|
| 48 | |
|---|
| 49 | See http://jetty.mortbay.org/ for more information |
|---|
| 50 | |
|---|
| 51 | Troubleshooting: |
|---|
| 52 | ---------------- |
|---|
| 53 | 1. The most commen error will be long stacktrace with |
|---|
| 54 | "Caused by: java.net.BindException: Could not bind to port 8051" |
|---|
| 55 | somewhere hidden between the lines. This means that either another |
|---|
| 56 | rapla server is running (so stop or kill this process) or that this |
|---|
| 57 | port is blocked by another application. You need to configure |
|---|
| 58 | another the port in jetty/conf/main.xml |
|---|
| 59 | |
|---|
| 60 | <Call name="addListener"> |
|---|
| 61 | <Arg> |
|---|
| 62 | <New class="org.mortbay.http.SocketListener"> |
|---|
| 63 | <Set name="Port"><SystemProperty name="jetty.port" default="8051"/></Set> |
|---|
| 64 | |
|---|
| 65 | 2. look in the troubleshooting faq under http://rapla.sourceforge.net/documentation.html |
|---|
| 66 | |
|---|
| 67 | 3. Post a question to rapla-developers@lists.sourceforge.net |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | Running Multiple Rapla servers: |
|---|
| 71 | ------------------------------- |
|---|
| 72 | |
|---|
| 73 | There is no Problem running multiple rapla servers on one computer. You just need to copy the webapp folder and rename it e.g. webapp2 |
|---|
| 74 | and add a new webapplication to jetty/jetty.xml |
|---|
| 75 | |
|---|
| 76 | <New class="org.mortbay.jetty.webapp.WebAppContext"> |
|---|
| 77 | <Arg><Ref id="contexts"/></Arg> |
|---|
| 78 | <Arg><SystemProperty name="jetty.home" default="."/>/webapp2</Arg> |
|---|
| 79 | <Arg>/rapla2</Arg> |
|---|
| 80 | <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/jetty/webdefault.xml</Set> |
|---|
| 81 | <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/webapp2</Set> |
|---|
| 82 | </New> |
|---|
| 83 | |
|---|
| 84 | Of course you need to change the context of the first webapp from / to /rapla |
|---|
| 85 | |
|---|
| 86 | <New class="org.mortbay.jetty.webapp.WebAppContext"> |
|---|
| 87 | <Arg><Ref id="contexts"/></Arg> |
|---|
| 88 | <Arg><SystemProperty name="jetty.home" default="."/>/webapp</Arg> |
|---|
| 89 | <Arg>/rapla</Arg> |
|---|
| 90 | <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/jetty/webdefault.xml</Set> |
|---|
| 91 | <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/webapp</Set> |
|---|
| 92 | </New> |
|---|
| 93 | |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | Now you should have two applications running |
|---|
| 98 | http://localhost:8051/rapla/ |
|---|
| 99 | http://localhost:8051/rapla2/ |
|---|
| 100 | |
|---|
| 101 | |
|---|
| 102 | Acknowlegdement |
|---|
| 103 | ----------------- |
|---|
| 104 | |
|---|
| 105 | Rapla includes free software developed by the Apache Software Foundation |
|---|
| 106 | (http://www.apache.org/) and other organizations |
|---|
| 107 | For more Information see legal/LIBRARIES-FAQ |
|---|
| 108 | |
|---|