specweb 2005 configuration : Java Jsp Setup
This blog entry forms one part of a larger guide to specweb2005 which
is indexed here.
Java Jsp Setup : Deploying the Warfiles
Specbweb2005 provides two different options for the server side script implementation,
PHP or Jsp. To use jsp rather than php the Specweb2005 distribution includes a number
of Java application warfiles which must be deployed on the webserver under test.
To deploy the warfiles on the Sun Java webserver is quite easy, the
following few lines of shell will do it for a webserver in the default
location of /opt/SUNWwbsvr:
Deploy the java warfiles
WDEPLOY=/opt/SUNWwbsvr/bin/https/bin/wdeploy
WEBSERVER=/opt/SUNWwbsvr/https-${SERVER}-1
cd /export/bench/specweb2005-102/scripts/jsp
for file in `ls *.war`
do
name=`echo $file |cut -f1 -d.`
$WDEPLOY deploy -u /$name -i https-${SERVER}-1 -v https-${SERVER}-1 -d $WEBSERVER/webapps/$name $DIR/$file
echo $?
done
For each of the three warfiles you should get output similar to the following:
[wdeploy] The directory /export/bench/opt/SUNWwbsvr/https-oaf-x-1/webapps/bank doesn't exist. Creating it.
[wdeploy] Trying to change the ownership of the deployed files to nobody.
[wdeploy] Deploying web application
[wdeploy] Loading new configuration
[wdeploy] Exception when reconfiguring the server failure: server not running
[wdeploy] Exception is ignored, please reconfigure manually...
[wdeploy] Web application deploy successful
Once this is done you can restart your webserver. The startup with php and java both configured should
now look something like:
Sun ONE Web Server 6.1SP5 B04/18/2005 14:49
info: php5_init reports: Initialized PHP Module (128 threads exspected)
info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_04] from [Sun Microsystems Inc.]info: WEB0100: Loading web module in virtual server [https-oaf-x-1] at [/bank]
info: WEB0100: Loading web module in virtual server [https-oaf-x-1] at [/ecommerce]
info: WEB0100: Loading web module in virtual server [https-oaf-x-1] at [/support]
info: WEB0100: Loading web module in virtual server [https-oaf-x-1] at [/search]
info: HTTP3072: [LS ls1] http://oaf-x-1:80 ready to accept requests
startup: server started successfully
In the case of apache you will need to install the apache tomcat application server,
and deploy the warfiles on it. The good folks at apache have a better guide to this
that I could ever find which you will find here.
The zeus webserver can be configured using the app server of your choice,
tomcat is one possability. Zeus have documented all of this here.
Finally the specweb2005 configuration files will need to be modified to use jsp rather
than php as they are set to by default. This will be covered in a later section of this guide.
Posted at
09:31AM Feb 03, 2006
by nmullen in Performance |