Index
Downloads
Documentation
Technologies
Architecture
Screenshots
Release Notes
API Docs
Install
Installation on JServ
Installation on Tomcat
Installation on Resin
Code Repository
Mail Lists
Live Demo
Credits
SourceForge Logo
Sourceforge Project Page

Requirements

Apache Jserv installation

 

Requirements

This document describes the webEditor installation procedure under the more stable Apache Group Servlet Engine: Apache Jserv 1.1.2

For generic recommendations, please, read the webEditor generic installation document

 

Apache Jserv installation

First at all, you have to download the webEditor latest release from our web site http://sourceforge.net/projects/webeditor

Once you have the distribution file, proceed to uncompress it to any location of you local drives (For example: /usr/local/java/webEditor).

Now, take a look to the bin and lib directories; there you will find all the external libraries that webEditor needs:

$INSTALL_PATH/bin/webEditor.jar

$INSTALL_PATH/lib/jakarta-regexp-1.2.jar

$INSTALL_PATH/lib/xalan.jar

$INSTALL_PATH/lib/xerces.jar

You must edit the jserv.properties file (usually under the conf or etc directory of your Jserv installation), and add a line like this for all the previous files:

 

wrapper.classpath=$INSTALL_PATH/bin/webEditor.jar

wrapper.classpath=$INSTALL_PATH/ lib/xerces.jar

...

 

Doing this, Jserv will be able to load the webEditor libraries.

Next, you need to create a new servlet zone called "webEditor". You can do this by editing again the jserv.properties. You have to find the line where the servlet zones are described and add the webEditor zone. You must also specify a line for the webEditor zone properties file (It will work well with the default Jserv zone file). For example:

#

# Servlet Zones parameters

###########################

# List of servlet zones Apache Jserv manages

# Syntax: zones=[servlet zone],[servlet zone]... (Comma separated list of String)

# Default: NONE

zones=root,webEditor

# Configuration file for each servlet zone (one per servlet zone)

# Syntax: [servlet zone name as on the zones list].properties=[full path to configFile] (String)

# Default: NONE

# Note: if the file could not be opened, try using absolute paths.

root.properties=c:\apachegroup\ApacheJServ_1.1.2\servlets\zone.properties

webEditor.properties=c:\apachegroup\ApacheJServ_1.1.2\servlets\zone.properties

 

You need also to edit the jserv.conf file, and insert the following line:

ApJServMount /webEditor/servlet /webEditor

In the next step, you will need to edit the properties file for your servlet zone. If you have a typical Jserv installation, this file is located in servlets/zone.properties, under your Jserv installation directory. You have to insert the following lines:

servlet.wEd.code=webEditor.wEd

servlet.wEd.initArgs=wEd_root=$INSTALL_PATH/editors/editor_1

 

The last step is to create an alias for webEditor into the Apache configuration. You must edit the conf/httpd.conf file under your Apache installation directory, and add the following lines:

 

Alias /editor_1/ "$INSTALL_PATH/editors/editor_1/docs/"

Alias /myNews/ "$INSTALL_PATH/editors/myNews/"

<Directory "$INSTALL_PATH/editors/editor_1/docs/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>

<Directory "$INSTALL_PATH/editors/myNews/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>

 

Don't forget to grant write access to the news directory for your webEditor SO user!!.

Well, that's all. You only have to restart Apache (and Jserv if this doesn't happened automatically) and take a look the webEditor main URL:

http://localhost/webEditor/servlet/wEd

If everything is ok, you will see this pretty cool page: