These session snippets show how I installed and ran Jakarta Tomcat on MPE/iX. Notice that I am using MPE/iX 5.5 and Java/iX 1.1.7 only to show that it does not even seem to require the latest versions to work (at least for those examples that I tried). As usual, this is "not HP supported" and "use at your own risk" ;-) MPE/iX:hello lars,manager.sys HP3000 Release: C.55.00 User Version: C.55.00 SAT, JUL 1, 2000, 3:20 PM MPE/iX HP31900 C.05.08 Copyright Hewlett-Packard 1987. All rights reserved. :newacct ix,mgr ;pass=acctpw :newacct ix,mgr ;onvs=user_set :altuser mgr.ix ;pass=mgrpw :altacct ix ;cap=+ph :newgroup tomcat.ix ;onvs=user_set :newgroup tomcat.ix ;homevs=user_set ;access=(r,x:ac; w,a,l,s:gl) :newuser tomcat.ix ;home=tomcat ;pass=userpw :altuser tomcat.ix ;cap=+ph,gl :hello lars,tomcat.ix HP3000 Release: C.55.00 User Version: C.55.00 SAT, JUL 1, 2000, 3:23 PM MPE/iX HP31900 C.05.08 Copyright Hewlett-Packard 1987. All rights reserved. :newdir temp Created directory "TEMP.TOMCAT.IX". :chdir temp CWD is "TEMP.TOMCAT.IX". :# at this point we upload the Jakarta Tomcat zip file to the 3000 :# this can be done with ftp or terminal emulator file transfer or by :# using samba to access the MPE/iX file system; you could even pull :# the file directly off the Internet, if you have GNU wget for MPE/iX :# installed and the 3000 can access the Internet either directly or :# through a web proxy. :listfile ./@ ,2 PATH= /IX/TOMCAT/TEMP/ CODE ------------LOGICAL RECORD----------- ----SPACE---- FILENAME SIZE TYP EOF LIMIT R/B SECTORS #X MX 1B BA 2372384 2147483647 1 9280 1 32 jakarta-tomcat.zip :xeq /usr/local/bin/unzip jakarta-tomcat.zip Archive: jakarta-tomcat.zip creating: jakarta-tomcat/ creating: jakarta-tomcat/webapps/ inflating: jakarta-tomcat/webapps/ROOT.war inflating: jakarta-tomcat/webapps/test.war inflating: jakarta-tomcat/webapps/examples.war inflating: jakarta-tomcat/webapps/admin.war creating: jakarta-tomcat/lib/ creating: jakarta-tomcat/lib/test/ . . . inflating: jakarta-tomcat/src/org/apache/jasper/Options.java inflating: jakarta-tomcat/src/org/apache/jasper/JasperException.java inflating: jakarta-tomcat/src/org/apache/jasper/EmbededServletOptions.java inflating: jakarta-tomcat/src/org/apache/jasper/JspC.java inflating: jakarta-tomcat/src/org/apache/jasper/JspCompilationContext.java : :xeq /bin/chmod "-R go-w jakarta-tomcat" : :xeq /bin/mv "jakarta-tomcat ../v31" :chdir .. CWD is "/IX/TOMCAT". :purgedir temp ;tree Purge ALL files below and including "TEMP.TOMCAT.IX"? (ALL/NO)all :listfile ./@ ,2 PATH= /IX/TOMCAT/ CODE ------------LOGICAL RECORD----------- ----SPACE---- FILENAME SIZE TYP EOF LIMIT R/B SECTORS #X MX 16W HBD 0 67107839 1 32 1 * v31/ :listfile ./v31/@ ,2 PATH= /IX/TOMCAT/v31/ CODE ------------LOGICAL RECORD----------- ----SPACE---- FILENAME SIZE TYP EOF LIMIT R/B SECTORS #X MX 1B BA 2876 2147483647 1 16 1 * LICENSE 16W HBD 0 67107839 1 32 1 * bin/ 16W HBD 0 67107839 1 32 1 * conf/ 16W HBD 0 67107839 1 32 1 * doc/ 16W HBD 0 67107839 1 32 1 * lib/ 16W HBD 0 67107839 1 32 1 * src/ 16W HBD 0 67107839 1 32 1 * webapps/ :# explore the files and directories, especially notice readme and user guide :listfile ./v31/doc/@ PATH= /IX/TOMCAT/v31/doc/ appdev/ faq readme uguide/ :listfile ./v31/doc/uguide/@ PATH= /IX/TOMCAT/v31/doc/uguide/ images/ style.css tomcat_ug.html :# from the documentation you can find out that Tomcat can either be started :# with Windows .bat or Unix .sh files that are supplied as examples, however :# instead of using the Posix Shell and the .sh files, I prefer to create a :# job for starting the server and another job for stopping the server... :listfile ./v31/lib/@.jar PATH= /IX/TOMCAT/v31/lib/ ant.jar jasper.jar servlet.jar webserver.jar xml.jar :editor HP32201A.09.00 EDIT/3000 SAT, JUL 1, 2000, 3:28 PM (C) HEWLETT-PACKARD CO. 1993 . . . /k startj,unn . . . /k stopj,unn /e END OF SUBSYSTEM : :listfile ./@ ,2 PATH= /IX/TOMCAT/ CODE ------------LOGICAL RECORD----------- ----SPACE---- FILENAME SIZE TYP EOF LIMIT R/B SECTORS #X MX 72B FA 10 10 3 16 1 1 STARTJ 72B FA 10 10 3 16 1 1 STOPJ 16W HBD 0 67107839 1 32 1 * v31/ :print startj !job server,tomcat.ix !setvar java_home "/usr/local/java/jdk1.1.7" !setvar tomcat_home "/IX/TOMCAT/v31" !chdir !tomcat_home !setvar classpath "classes:" + & ! "lib/ant.jar:lib/jasper.jar:lib/servlet.jar:" + & ! "lib/webserver.jar:lib/xml.jar" !java -nojit -Dtomcat.home=!tomcat_home & ! org.apache.tomcat.startup.Tomcat !eoj :print stopj !job stop,tomcat.ix !setvar java_home "/usr/local/java/jdk1.1.7" !setvar tomcat_home "/IX/TOMCAT/v31" !chdir !tomcat_home !setvar classpath "classes:" + & ! "lib/ant.jar:lib/jasper.jar:lib/servlet.jar:" + & ! "lib/webserver.jar:lib/xml.jar" !java -nojit -Dtomcat.home=!tomcat_home & ! org.apache.tomcat.startup.Tomcat -stop !eoj :stream startj.tomcat.ix #J889 :showjob job=tomcat.ix JOBNUM STATE IPRI JIN JLIST INTRODUCED JOB NAME #S601 EXEC 3 3 SAT 3:23P LARS,TOMCAT.IX #J889 EXEC 10S LP SAT 3:34P SERVER,TOMCAT.IX . . . :showproc job=tomcat.ix QPRI CPUTIME STATE JOBNUM PIN (PROGRAM) STEP C153 0:01.813 READY S601 119 :SHOWPROC job=tomcat.ix D202 0:00.770 WAIT J889 139 :JAVA -nojit -Dtomcat.home=!tomcat_home or$ D238 0:18.764 READY J889 61 (/JAVA/HFS/jdk1.1.7/bin/PA-RISC/green_th$ :# notice that PIN 61 is still busy (ready to use more CPU) :# Tomcat startup takes a while, so we monitor SHOWPROC later :showproc job=tomcat.ix QPRI CPUTIME STATE JOBNUM PIN (PROGRAM) STEP C155 0:01.917 READY S601 119 :SHOWPROC job=tomcat.ix D202 0:00.770 WAIT J889 139 :JAVA -nojit -Dtomcat.home=!tomcat_home or$ D203 1:36.694 WAIT J889 61 (/JAVA/HFS/jdk1.1.7/bin/PA-RISC/green_th$ :# we can also have a look at the spoolfile to see progress messages... :print !hplastspid.out.hpspool JOB SERVER,TOMCAT.IX,TOMCAT. Priority = DS; Inpri = 8; Time = UNLIMITED seconds. Job number = #j889. SAT, JUL 1, 2000, 3:34 PM. HP3000 Release: C.55.00 User Version: C.55.00 MPE/iX HP31900 C.05.08 Copyright Hewlett-Packard 1987. All rights reserved. STREAMED BY LARS,TOMCAT.IX (#S601) ON LDEV# 3 STREAM DATE: SAT, JUL 1, 2000, 3:34 PM :setvar java_home "/usr/local/java/jdk1.1.7" :setvar tomcat_home "/IX/TOMCAT/v31" :chdir !tomcat_home CWD is "/IX/TOMCAT/v31". :setvar classpath "classes:" + & : "lib .jar:lib .jar:lib .jar:" + & : "lib/webserver.jar:lib .jar" :java -nojit -Dtomcat.home=!tomcat_home & : org.apache.tomcat.startup.Tomcat Context log: path="/examples" Adding context path="/examples" docBase="webapps /examples" Context log: path="" Adding context path="" docBase="webapps/ROOT" Context log: path="/test" Adding context path="/test" docBase="webapps/test" Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install="/IX/TOMCAT/v31" home="/IX/TOMCAT/v31" classPath="class es:lib/ant.jar:lib/jasper.jar:lib/servlet.jar:lib/web Context log: path="/admin" Automatic context load docBase="/IX/TOMCAT/v31/webap ps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/IX/TOMCAT/v3 1/webapps/admin" FileNotFoundException: binaries/DO NOT PUT AN INDEX FILE IN THIS DIR Context log path="/examples"tomcat.errorPage: init Context log path="/examples"default: init Context log path="/examples"jsp: init Context log path="/test"tomcat.errorPage: init Context log path="/test"default: init Context log path="/test"jsp: init Context log path="/admin"tomcat.errorPage: init Context log path="/admin"default: init Context log path="/admin"jsp: init Context log path=""tomcat.errorPage: init Context log path=""default: init Context log path=""jsp: init Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConne ctionHandler" Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp1 2ConnectionHandler" : :# notice the above messages indicating that Tomcat is listening for port 8080 :# using the http protocol and for port 8007 using the Apache JServ protocol; the :# latter allows to interface Tomcat to Apache (or Secure Apache) using mod_jserv, :# however, we won't do it here for this simple test. :# try surfing the server with a couple of URLs :# e.g. http://your3k:8080 :# e.g. http://your3k:8080/test/ :# e.g. http://your3k:8080/test/jsp/HelloWorld.jsp :# e.g. http://your3k:8080/admin :# notice the slow response of JSP pages the first time you visit them; this is :# because Tomcat first generates .java sources for them and then compiles those :# into .class files -- the results are cached in /IX/TOMCAT/v31/work/... :# Finally we stop the server using our 2nd helper job... :stream stopj.tomcat.ix #J890 :showjob job=tomcat.ix JOBNUM STATE IPRI JIN JLIST INTRODUCED JOB NAME #S601 EXEC 3 3 SAT 3:23P LARS,TOMCAT.IX . . . :bye