Instructions for an initial Windows deployment
Make sure you have JRE 1.5.0_12 installed locally. It's likely that any 1.5.0 will do, but I've only tested 6 and 12.
Get the relevent files from SVN:
cd \
mkdir ss
cd ss
rmdir /S deploy
svn co svn://72.249.82.8/service_storage/trunk/deploy
Choose a location for the Tomcat install. I suggest:
set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5
Install Tomcat 5.5.25. Select "Full Install" and select JRE1.5.0_12 when it asks you which Java install to use. Otherwise, select the defaults. Do not run Tomcat when it offers you the opportunity at the end of the installation.
deploy\windows\apache-tomcat-5.5.25.exe
Overwrite parts of your Tomcat install with files you got from the repository:
copy /Y deploy\windows\conf\server.xml "%CATALINA_HOME%\conf"
copy /Y deploy\windows\bin\*.bat "%CATALINA_HOME%\bin"
If you plan to develop Storage Service code, you'll also want to do the following:
copy /Y deploy\windows\common\lib\*.jar "%CATALINA_HOME%\common\lib"
Replace the ROOT app with the Storage Service app. This is what I had to do to steal the main URL (storage.bsgplatform.com) from Tomcat
rmdir /S "%CATALINA_HOME%\webapps\ROOT
copy /Y deploy\bsgstorageservice.war "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT.war"
Start Tomcat - because you have no repository yet, there will be numerous exceptions in the startup log - ignore them.
"%CATALINA_HOME%\bin\startup.bat"
Edit jackrabbit-s3.properties and set the correct S3 credentials. They are initially blank because we want to do everything we can to prevent test environments accidentally impacting the production repository.
notepad "%CATALINA_HOME%\webapps\ROOT\WEB-INF\jackrabbit-s3.properties
Stop and restart Tomcat so the change can take effect.
"%CATALINA_HOME%\bin\shutdown.bat"
"%CATALINA_HOME%\bin\startup.bat"
Once Tomcat is running again, test it by trying to hit:
http://localhost:3002
If you see the Storage Service API, then the install was successful.
Create the repository from the following page. Hit the 'create' button under the 'Create a new Repository' section, using the default value for 'Repository Home":
http://localhost:3002/administration/
You should receive a response that indicates that the repository is now properly configured and running properly.
Browse your repository here (it should initially be empty, of course):
http://localhost:3002/repository/default/
Search it here:
http://localhost:3002/search.jsp
Populate it here:
http://localhost:3002/populate.jsp
Use these files to start and stop the storage service:
"%CATALINA_HOME%\bin\startup.bat"
"%CATALINA_HOME%\bin\shutdown.bat"
Alternatively, manipulate it through the service panel.
When the installation is complete, you can remove the temp directory from your drive (\ss)
To publish Storage Service updates
Shut down everything that might have a lock on your local repository or the repository directories (\usr\local\storage), Tomcat being the chief culprit.
Get the relevent files from SVN:
cd \
mkdir ss
cd ss
rmdir /S deploy
svn co svn://72.249.82.8/service_storage/trunk/deploy
Choose a location for the Tomcat install. I suggest:
set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5
Replace the ROOT app with the Storage Service app. This is what I had to do to steal the main URL (storage.bsgplatform.com) from Tomcat:
rmdir /S "%CATALINA_HOME%\webapps\ROOT"
copy /Y deploy\bsgstorageservice.war "%CATALINA_HOME%\webapps\ROOT.war"
Start Tomcat to explode the WAR:
"%CATALINA_HOME%\bin\startup.bat"
Edit jackrabbit-s3.properties and set the correct S3 credentials. They are initially blank because we want to do everything we can to prevent test environments accidentally impacting the production repository.
notepad "%CATALINA_HOME%\webapps\ROOT\WEB-INF\jackrabbit-s3.properties
Restart Tomcat to get the changes to take effect:
"%CATALINA_HOME%\bin\shutdown.bat"
"%CATALINA_HOME%\bin\startup.bat"
To reinitialize your Windows JCR repository:
WARNING - the process outlined below is utterly destructive, and you will lose the entire repository. At this point in time, there are only two repositories - one for TEST and one for PRODUCTION. As long as we are sharing a TEST repository, following the instructions below will clear not only your own test environment, but the global TEST environment.
Get and install Bucket Explorer. This is my favorite S3 client of the several I've evaluated.
Shut down everything that might have a lock on your local repository or the repository directories (\usr\local\storage), Tomcat being the chief culprit.
Delete your local repository artifacts:
cd \usr\local\storage
rmdir /S jackrabbit
Open Bucket Explorer, log into the repository using these credentials. These are the TEST credentials:
Access Key: 0C18F6Q6KVXQ8WFDV002
Secret Key: kPoGEZJ4YbEdsALCrYL3zelmWdNNjiY98q2Q7YTX
Using Bucket Explorer, delete your artifact folders - they're identifiable as <access key>.<artifact name>. At present, there are only two:
0C18F6Q6KVXQ8WFDV002.repository
0C18F6Q6KVXQ8WFDV002.workspace
Restart Tomcat, ignoring the exceptions in the log caused by the absence of the repository.
"%CATALINA_HOME%\bin\startup.bat"
Reinitialize and verify your repository as outlined in detail above, starting here:
http://localhost:3002/administration/