Don't know if this helps anyone but here's my attempt at a Windows batch
file. Seems to work ok for me, although the Apache JServ bit hasn't been
touched - run it under Tomcat !
Cheers,
Simon
=====================================================================
/bin/start-jetspeed.bat
=====================================================================
@echo off
rem #
rem # Copyright (c) 1998 The Java Apache Project. All rights reserved.
rem #
rem # Redistribution and use in source and binary forms, with or without
rem # modification, are permitted provided that the following conditions
rem # are met:
rem #
rem # 1. Redistributions of source code must retain the above copyright
rem # notice, this list of conditions and the following disclaimer.
rem #
rem # 2. Redistributions in binary form must reproduce the above copyright
rem # notice, this list of conditions and the following disclaimer in
rem # the documentation and/or other materials provided with the
rem # distribution.
rem #
rem # 3. Every modification must be notified to the Java Apache Project
rem # and redistribution of the modified code without prior notification
rem # is not permitted in any form.
rem #
rem # 4. All advertising materials mentioning features or use of this
rem # software must display the following acknowledgment:
rem # "This product includes software developed by the Java Apache
Project
rem # (http://java.apache.org/)."
rem #
rem # 5. The names "Jetspeed", "Apache Jetspeed" and "Apache Jetspeed
rem # Project" must not be used to endorse or promote products
rem # derived from this software without prior written permission.
rem #
rem # 6. Redistributions of any form whatsoever must retain the following
rem # acknowledgment:
rem # "This product includes software developed by the Java Apache
Project
rem # (http://java.apache.org/)."
rem #
rem # THIS SOFTWARE IS PROVIDED BY THE JAVA APACHE PROJECT "AS IS" AND ANY
rem # EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
rem # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
rem # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JAVA APACHE PROJECT OR
rem # ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
rem # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
rem # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
rem # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
rem # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
rem # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
rem # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
rem # OF THE POSSIBILITY OF SUCH DAMAGE.
rem #
rem # License version 1.0
rem
############################################################################
####
rem # EXAMPLE: Servlet Engine script
#
rem
############################################################################
####
rem #
rem # This is provided as an example on how to start a Servlet Engine so
that
rem # Jetspeed can be configured with the right options. It might not work
on all
rem # configurations. The goal is to allow you to run it in different
"modes" such
rem # as RUN, DEBUG, PROFILE, etc and also so that you can swap Servlet
Engines from
rem # JServ to Tomcat, etc.
rem #
rem # The target env for this script is:
rem # - Windows (tested on Windows 2000 server)
rem # - Java >= 1.1.8 (tested on Sun JDK 1.3)
rem #
rem
############################################################################
####
rem ###################################
rem # Define the JIT Compiler #
rem ###################################
set JAVA_COMPILER=javac
rem set JAVA_COMPILER=NONE
rem ###################################
rem # Mode for your Servlet Engine #
rem ###################################
rem set MODE=DEBUG
set MODE=RUN
rem set MODE=PROFILE
rem set MODE=REMOTE_DEBUG
rem ###################################
rem # Set your Servlet Engine #
rem ###################################
rem set ENGINE=JSERV
set ENGINE=TOMCAT
rem ###################################
rem # Setup JVM options. #
rem ###################################
if "%JAVA_VERSION%" == "1.1.8" (
set MIN_MEMORY_OPTION=-ms40000000
set MAX_MEMORY_OPTION=-mx64000000
set MISC_OPTIONS=-noclassgc
) else
set MIN_MEMORY_OPTION=-Xms40000000
set MAX_MEMORY_OPTION=-Xmx64000000
set MISC_OPTIONS=
)
rem ###################################
rem # Compute your Servlet Engine #
rem ###################################
rem # Compute all Servlet Engine info including CLASSPATH, SERVLET_ENGINE,
etc
if "%ENGINE%" == "JSERV" (
set
CLASSPATH=/usr/local/apache/libexec/ApacheJServ.jar;/usr/local/jdk-classes/s
ervlet/jsdk.jar;%CLASSPATH%
set SERVLET_ENGINE=org.apache.jserv.JServ
/usr/local/apache/conf/jserv/jserv.properties
)
if "%ENGINE%" == "TOMCAT" (
set TOMCAT_HOME=.\tomcat
set
CLASSPATH=.\tomcat\lib\jasper.jar;.\tomcat\lib\servlet.jar;.\tomcat\lib\webs
erver.jar;%CLASSPATH%;.\tomcat\lib\xml.jar
set SERVLET_ENGINE=-Dtomcat.home=.\tomcat
org.apache.tomcat.startup.Tomcat
)
rem ###################################
rem # Bootstrap.............. #
rem ###################################
if "%MODE%" == "DEBUG" (
echo Running JServ in debug mode
set JAVA_CMD=jdb %MIN_MEMORY_OPTION% %MAX_MEMORY_OPTION% %MISC_OPTIONS%
%SERVLET_ENGINE%
) else (
echo Running under Java %JAVA_VERSION%
rem #now run this under the JVM
if "%MODE%" == "RUN" (
set JAVA_CMD=java %MIN_MEMORY_OPTION% %MAX_MEMORY_OPTION%
%MISC_OPTIONS% %SERVLET_ENGINE%
)
if "%MODE%" == "PROFILE" (
if "%JAVA_VERSION%" == "1.1.8" (
set PROFILE_OPTION=-prof:java.prof.txt
) else (
set
PROFILE_OPTION=-Xrunhprof:cpu=samples,depth=6,thread=y,monitor=y,doe=y
)
rem #reset the profile file
echo > java.prof.txt
set JAVA_CMD=java %MIN_MEMORY_OPTION% %MAX_MEMORY_OPTION%
%PROFILE_OPTION% -Djava.compiler=NONE %PROFILE_OPTION% %MIN_MEMORY_OPTION%
%MAX_MEMORY_OPTION% %SERVLET_ENGINE%
)
if "%MODE%" == "REMOTE_DEBUG" (
set JAVA_CMD=java %MIN_MEMORY_OPTION%
%MAX_MEMORY_OPTION% -Xbootclasspath:%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jr
e\lib\rt.jar;%JAVA_HOME%\lib\jpda.jar -Xdebug %SERVLET_ENGINE%
)
)
if "%JAVA_COMPILER%" == "" (
echo JVM: Using a JIT for increased performance
) else (
echo JVM: Using the JAVA_COMPILER: %JAVA_COMPILER%
)
call .\bin\classpath.bat
echo JVM: Now JServ under Java %JAVA_VERSION% in %MODE% mode with the
command:
echo JVM: %JAVA_CMD%
%JAVA_CMD%
=====================================================================
/bin/classpath.bat
=====================================================================
rem #setup your classpath required for Jetspeed.
set JETSPEED_HOME=./jetspeed
set
CLASSPATH=%JETSPEED_HOME%\Jetspeed.jar;%JETSPEED_HOME%\lib\castor.jar;%JETSP
EED_HOME%\lib\ecs.jar;%JETSPEED_HOME%\lib\village.jar;%JETSPEED_HOME%\lib\co
coon-ext-servlet2.2.jar;%JETSPEED_HOME%\lib\jyve-2.0.jar;%JETSPEED_HOME%\lib
\xalan.jar;%JETSPEED_HOME%\lib\cocoon.jar;%JETSPEED_HOME%\lib\turbine-2.0.ja
r;%JETSPEED_HOME%\lib\xerces.jar;%CLASSPATH%
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Nacho
Sent: 24 June 2000 15:27
To: 'JetSpeed'
Subject: RE: ANNOUNCE: Jetspeed/Tomcat distribution.
Hola a todos
I'm a poor man i've M$ installed and still can't run jetspeed right from
his tarball, arghhhghghg.
There are somebody thas is less lazy than i and has made a bat, please
open source it!!! :-)
Except than i can not already see JetSpeed, hi Kevin thanks for the
effort.
If nobody is volunteer to make the bat, hmmm, perhaps the curiosity make
me works and i'll do the infamous bat :-))))).
Keep on Coding dude!!
Saludos ,
Ignacio J. Ortega
> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]En nombre de burtonator
> Enviado el: viernes 23 de junio de 2000 3:52
> Para: [EMAIL PROTECTED]
> Asunto: ANNOUNCE: Jetspeed/Tomcat distribution.
>
>
> OK Boys and Girls :)
>
> I got sick of everyone complaining how hard Jetspeed is to setup :)
>
> I took Jon's good idea and provided an impl. I bundled up
> Tomcat/Cocoon/Jetspeed/Turbine/etc and formed a distribution
> of all this
> stuff for download: http://relativity.yi.org/download
>
> So what does this change.
>
> If you want to run Jetspeed and don't want to go through the hassle of
> configuring it just download the dist and do this.
>
> - Install a JVM on your system
> - untar the whole dist
> - run ./bin/startup-jetspeed.sh
> - connect to http://localhost:8080/servlet/jetspeed
>
> DONE
>
> If anyone has any feedback I would appreciate it. Jetspeed should be
> configured as a .jar in Tomcat but I didn't feel like taking the time.
> The other issue is that there is no .bat file for NT. If you install
> cygwin and bash you can probably run the above shell script.
>
> Thoughts?
>
> --
> Kevin A Burton (e-mail: [EMAIL PROTECTED], UIN: 73488596, ZKey:
> burtonator)
> http://relativity.yi.org
> Message to SUN: "Please Open Source Java!"
> To fight and conquer in all your battles is not supreme excellence;
> supreme
> excellence consists in breaking the enemy's resistance
> without fighting.
> - Sun Tzu, 300 B.C.
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]