หลังจากลง tomcat ใหม่เป็น 5.5 แล้วก็ลองใส่ jLibrary ดู ทำตามนี้ตรงๆ :
To install the jLibrary WAR application you should follow the next steps:
- Go to the jLibrary downloads section on sourceforge.net and download the .WAR distribution bundle. If you want to create an up-to-date distribution, checkout the build guide on the developers section to find how to build jLibrary sources from CVS.
- Once you have downloaded the bundle, you'll find a zip file with the web application archive. Also there is some documentation in the form of a README.txt file, and a jaas.config file. Now, you can place the jlibrary.war file on your webapps directory.
- The next step is to add the jaas.config file to your Apache Tomcat conf directory. If you already have a jaas.config file, then you can add to it the following lines:
Jackrabbit {
org.apache.jackrabbit.core.security.SimpleLoginModule required anonymousId="anonymous";
}; - And finally you must tell to tomcat where is the jaas.config file if you haven't done yet. This can
be done in several ways from your catalina file. For example adding the following line to the
java command, or to the CATALINA_OPTS environment variable:-Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config
Configure different storage locations.
On the jLibrary configuration file there are several locations in which you will have to define paths to directories in which content will be stored. For example, the he first section of the jLibrary configuration allows you to change the location on the file system where the jLibrary repositories system data will be created. You can see it here:
As you can see, this section (and many others on the configuration file) is using a special variable ${rep.home}. The real location on the file system for this variable depends on the applaction server in which you are running jLibrary. For example, on Apache Tomcat it will be the bin directory. Proabably you really won't like to store contents on that place. If this is the case, you can replace all the occurrences of the ${rep.home} with any other custom location. Even more, you can use different locations for different things. This is a sample with the location changed:
These are all the places in which the ${rep.home} variable appears and that you can easily replace by other locations:
- Base repository structure location (seen on the example)
- Workspaces location. This will correspod with each jLibrary repositry.
- Versions location. The place in which version history file data will be stored.
- System index. The place in which the search information for version history will be stored.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น