tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert rowntree" <rownt...@mindspring.com>
Subject TC with JWSDP1.2 download - how is this version starting
Date Thu, 12 Jun 2003 19:01:22 GMT
embedded TC with JWSDP1.2 download - how does it start??
The JAX-RPC samples will run ONLY with the special TC
launcher included with the JWSDP installation.

what in the world are they using as a Launcher for their TC?

How is the normal TC "launch" changed by JWSDP's use
of the "LauncherBootstrap" class and the "jwsdp" startup argument?

I ask this question because the JWSDP version works AOK.
The JAX-RPC example is fine with the embedded version of TC.

However, when i try to launch my own version of TC 5.0 and
deploy the identical version of the JAX-RPC "HelloWorld"
sample, the server-side helloworld Webapp won't run
( always stuck in "stopped" mode ).

Below are some details on a comparison of 3 TC launch commands:

1.- start for JWSDP1.2 version of TC:
2.- Normal Catalina Start from TC 5.0
3.- from my catalina home dir, using JWSDP pattern for the TC start

only the first and 3rd commands above will host the JAX-RPC samples.
using the 2nd start approach, none of the JAX-RPC stuff will
work because the apps on the server-side remain stopped.

* * * * * * * * ** * * * * *
1. start for JWSDP1.2 version of TC:
* * * * * * * * ** * * * * *

catalina.bat -cp:   <-- JWSDP version of TC start
			  <--  is using a special "launcher"

 -classpath "%JWSDP_HOME%\jwsdp-shared\bin;
%JWSDP_HOME%\jwsdp-shared\bin\commons-launcher.jar;
%JWSDP_HOME%\apache-ant\lib\ant.jar;
%JWSDP_HOME%\apache-ant\lib\optional.jar;
%JWSDP_HOME%\jaxp\lib\jaxp-api.jar;
%JWSDP_HOME%\jaxp\lib\endorsed\sax.jar;
%JWSDP_HOME%\jaxp\lib\endorsed\dom.jar;
%JWSDP_HOME%\jaxp\lib\endorsed\xercesImpl.jar;
%JWSDP_HOME%\jaxp\lib\endorsed\xalan.jar"
-DJAVA_HOME="%JAVA_HOME%" -DCATALINA_OPTS="%CATALINA_OPTS%"
LauncherBootstrap jwsdp %CMD_LINE_ARGS%

note: the special class for the bootstrap is just above
     what is the "jwsdp" arg doing there?

     the special class location - see below
/f/jwsdp-1.2$ find -regex '.*LauncherB.*'
	    $ ./jwsdp-shared/bin/LauncherBootstrap.class

* * * * * * * * ** * * * * *
2. Normal Catalina Start from TC 5.0 - what i normally use
* * * * * * * * ** * * * * *

"f:\j2sdk1.4.2\bin\java"
-Djava.endorsed.dirs=".\common\endorsed" ]
-classpath
"f:\j2sdk1.4.2\lib\tools.jar;
.\bin\bootstrap.jar"
-Dcatalina.base="." -Dcatalina.home="."
-Djava.io.tmpdir=".\temp"
org.apache.catalina.startup.Bootstrap  start

The JAX-RPC examples won't run using the above.

* * * * * * * * ** * * * * *
3.start from my catalina home dir, using JWSDP pattern for the start:
* * * * * * * * ** * * * * *
start below is on "G:" drive but ends up on HOME_JWSDP somehow.
HOME_JWSDP is on a different drive from where i start the TC shell.

wierd how the thing below works and
does not result in Catalina Home on "G" drive

G:\jakarta-tomcat-5\dist>%java_home%\bin\java -Djava.endorsed.dirs=".\common
\endorsed" -classpath  "%JWSDP_HOME%\jwsdp-shared\bin;
%JWSDP_HOME%\jwsdp-shared\bin\commons-launcher.jar;
%JWSDP_HOME%\apace-ant\lib\ant.jar;
%JWSDP_HOME%\apache-ant\lib\optional.jar;
%JWSDP_HOME%\jaxp\lib\jaxp-api.jar;
%JWSDP_HOME%\jax\lib\endorsed\sax.jar;
%JWSDP_HOME%\jaxp\lib\endorsed\dom.jar;
%JWSDP_HOME%\jaxp\lib\endorsed\xercesImpl.jar;
%JWDP_HOME%\jaxp\lib\endorsed\xalan.jar"
-Dcatalina.base="."
-Dcatalina.home="."
-Djava.io.tmpdir=".\temp"
LauncherBootstrap jwsdp start

this version of the start ignores catalina base and catalina home

look where my context is via "manager/list"
all the apps below are not even on the same logical
drive as where Catalina was started from

List of Server Contexts from this TC start version:

OK - Listed applications for virtual host localhost
/jsp-examples:running:0:F:\jwsdp-1.2\webapps\jsp-examples
/jsf-guessNumber:running:0:../jsf/samples/jsf-guessNumber.war
/jsf-cardemo:running:0:../jsf/samples/jsf-cardemo.war
/jsf-components:running:0:../jsf/samples/jsf-components.war
/Xindice:running:0:../registry-server/webapps/Xindice.war
/jaxrpc-HelloWorld:running:0:../jaxrpc/samples/HelloWorld/jaxrpc-HelloWorld.
war
/saaj-simple:running:0:../saaj/webapps/simple.war
/jwsdp-supplement:running:0:../server/webapps/jwsdp-supplement.war
/jwsdp-catalog:running:0:../server/webapps/jwsdp-catalog
/manager:running:0:../server/webapps/manager
/admin:running:0:../server/webapps/admin
/servlets-examples:running:0:F:\jwsdp-1.2\webapps\servlets-examples
/saaj-book:running:0:../saaj/webapps/book.war
/saaj-translator:running:0:../saaj/webapps/translator.war
/RegistryServer:running:0:../registry-server/webapps/RegistryServer.war
/wsi-server:running:0:../wsi-sampleapp/wsi-server.war
/jsf-nonjsp:running:0:../jsf/samples/jsf-nonjsp.war
/jstl-examples:running:0:../jstl/samples/jstl-examples.war
/:running:0:F:\jwsdp-1.2\webapps\ROOT





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 6/1/2003


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message