To set up a new J2ee Server:
1. Modify bin/setenv.sh
a. just before EXPORT CPATH, type:
. /data/java/bin/setenv.sh
CPATH=$CPATH:$CLASSPATH
2. Start up the server by typing:
j2ee -verbose &
(make sure /usr/local/bin/j2ee is linked here)
3. Deploy the tourbean from /data/java/tour
(To stop j2ee type: j2ee -stop)
To set up tomcat:
1. Open the conf/server.xml file and:
a. Change port 8000 to 80
b. Add my contexts:
<Context path=""
docBase="/data/java/tour"
crossContext="false"
debug="1"
reloadable="false"
>
</Context>
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true"
>
</Context>
c. Add the jini context:
<Context path="/jini"
docBase="/usr/local/java/jdk/jini1_1/lib"
crossContext="true"
debug="0"
reloadable="true"
trusted="false"
>
</Context>
2. Edit tomcat.sh (set my classpath - remember to include the cocoon parser
first)
*# **********Don********** - This is my code:
* . /data/java/bin/setenv.sh
oldCP=$CLASSPATH
unset CLASSPATH
* # **********Don********** - This is my code:
* java_dir=/usr/local/java
* CLASSPATH=$java_dir/util/xml/jaxp-1.1/jaxp.jar
* CLASSPATH=$CLASSPATH:$java_dir/util/xml/jaxp-1.1/xalan.jar
3. Start tomcat by typing:
tomcat start (shutdown is tomcat
stop)
To setup ftp:
1. Type:
ftp.sh
User: don
To start the JINI server:
1. Type:
jini.sh (As superuser)
To start the mail server:
1. Type:
mail.sh (As superuser)