Hi,
Please write a howto and send it to jboss-docs mailing list.
-- Juha
On Mon, 5 Mar 2001, Scott Warren wrote:
> Guys + Gals,
>
> I have successfully got the Jakarta NT Server (Tomcat's Version) to work
> with JBoss Final 2.0 with Non-Embedded Tomcat. And it works quite well on my
> Win2K Pro. Should I write an FAQ anyone ....
>
> Basically the idea is to use the wrapper.properties file to point to
> everything Jboss.
>
> I have the wrapper.properties file for my Jboss Below.
>
> wrapper.tomcat_home=d:\jboss\
> wrapper.jboss_home=d:\jboss
> #
> # wrapper.java_home should point to your Java installation. Normally
> # you should have a bin and lib directories beneath it.
> #
> wrapper.java_home=c:\JBF4\jdk1.3
> #
> #------ ADVANCED MODE ------------------------------------------------
> # Make sure that you read the how-to before making too many changes.
> #---------------------------------------------------------------------
> #
>
> #
> # Defining where the service is going to put the standard
> # output of Tomcat. This is where System.out.println and
> # System.err.println goes to.
> #
> wrapper.stdout=$(wrapper.tomcat_home)\jvm.stdout
> wrapper.stderr=$(wrapper.tomcat_home)\jvm.stderr
>
> #
> # Additions to the path. put here directories where you store DLLs for
> # native methods etc.
> #
> wrapper.ld_path=d:\
> wrapper.ld_path=c:\
>
> #
> # Defining the classpath. All the rows that belongs to the class_path
> # property are concatenated to create the classpath for Tomcat.
> #
> # If you have additional locations that you would like to add to the
> # claspath you should add a new wrapper.class_path=<location> line.
> wrapper.class_path=d:\java\myclasses
>
> wrapper.class_path=$(wrapper.jboss_home)\bin\run.jar
> wrapper.class_path=D:\Jakarta-TomCat\lib
> wrapper.class_path=D:\Jakarta-TomCat\lib\jasper.jar
> wrapper.class_path=D:\Jakarta-TomCat\lib\webserver.jar
> wrapper.class_path=D:\Jakarta-TomCat\lib\xml.jar
> wrapper.class_path=D:\Jakarta-TomCat\lib\jaxp.jar
> wrapper.class_path=D:\Jakarta-TomCat\lib\parser.jar
> wrapper.class_path=D:\Jakarta-TomCat\lib\servlet.jar
> wrapper.class_path=$(wrapper.jboss_home)\lib\jdbc2_0-stdext.jar
> wrapper.class_path=$(wrapper.jboss_home)\lib\jboss-jaas.jar
> wrapper.class_path=D:\jSQLConnect\JSQLOptionalAPI.jar
> wrapper.class_path=D:\jSQLConnect\JSQLConnect.jar
>
>
>
> #
> # This is where Javac is located in JDK1.2.x
> #
> wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
> #
> # and a tribute to JDK1.1.x
> #
> #wrapper.class_path=$(wrapper.java_home)\lib\classes.zip
>
> #
> # This is the Java interpreter used for running Tomcat
> #
> wrapper.javabin=$(wrapper.java_home)\bin\java.exe
>
> #
> # This is Tomcat's startup class (the class that contains Tomcat's
> # starting point.
> #
> wrapper.startup_class=org.jboss.Main
>
> #
> # This is the location where tomcat's server.xml configuration file
> # is located.
> #
> wrapper.server_xml=d:\jakarta-tomcat\conf\server.xml
>
> #
> # The NT service uses AJP12/AJP13 to shutdown Tomcat. The
> # wrapper.shutdown_port tells the service the identity of the port that
> # is used by AJP12/AJP13.
> #
> wrapper.shutdown_port=8007
>
> #
> # Can either be ajp12 or ajp13 depending on your configuration.
> #
> # Default value is ajp12
> #
> wrapper.shutdown_protocol=ajp12
>
> #
> # This is the command line that is used to start Tomcat. You can *add* extra
> # parameters to it but you can not remove anything.
> #
> wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path)
> -Duser.dir=D:\Jboss\Bin -Dtomcat.home=d:\jakarta-tomcat
> $(wrapper.startup_class)
>
> I apoligies for the comments being there, but I have not finished working
> with it yet. I only got this working 2 days ago, so I have more testing to
> do.
>
> Hope this helps
>
> Regards
>
>
> Scott Warren
> Lead Internet Technologies Developer
> ----------------------------------------------------------------------------
> -
> Phone: +61 3 5222 6240
> mailto: [EMAIL PROTECTED]
> web: www.advancedresource.com.au
> ----------------------------------------------------------------------------
> -
>
>
> -----Original Message-----
> From: David Li [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 3 March 2001 6:41 AM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] Problem of setting up a JBoss_Tomcat to start as a
> NT service in Win2K
>
>
>
> > Hi, there.
> >
> > Can someone please help on setup a JBoss_Tomcat to start as a NT
> > service in Win2K?
> >
> > We have setup a JBoss_Tomcat bundle to host our JAVA application.
> > Everything works just so great that everyone here is loving it very
> > much. But, when I tried to following the FAQ posted on JBoss site to
> > install a NT service to automate its start, I failed all the time
> > regardless which way I tried. Below described what I did:
> >
> > * System: Windows 2000 SP1
> > * Server: JBoss 2.0 bundled with Tomcat 3.2 b7
> > * Methods I tried to install it as NT service:
> > 1. The contrib module in CVS has an ntservice module that may be used
> > 2. JNT for Windows NT/2000 <http://www.eworksmart.com/JNT/>
> > * results: on Method 1, the win2k returned a system message saying
> > "could not start the service on the local computer. The service did
> > not return an error. This could be an interanl Windows error or an
> > internal service error."
> > on Method 2, the JNT servie can be started but then shut down
> > immediately. The JNT log is attached as below:
> > 03/01/01 16:28:16 -
> > ---------------------------------
> > Now starting Java Service Launcher V1.0.1 beta
> > Copyright (C) 2000 by eWorkSmart, LLC
> > 03/01/01 16:28:16 - Executing JVM Command: JBossTomcat Server
> > /SDf:\jboss_tomcat\jboss-2.0-final\bin -cp
> > %CLASSPATH%;F:\jboss_tomcat\tomcat-3.2-b7\lib;F:\jboss_tomcat\tomcat-3
> > .2-b7\lib\jasper.jar;F:\jboss_tomcat\tomcat-3.2-b7\lib\webserver.jar;F
> > :\jboss_tomcat\tomcat-3.2-b7\lib\xml.jar;F:\jboss_tomcat\tomcat-3.2-b7
> > \lib\jaxp.jar;F:\jboss_tomcat\tomcat-3.2-b7\lib\parser.jar;F:\jboss_to
> > mcat\tomcat-3.2-b7\lib\servlet.jar;F:\JDK1.3\lib\tools.jar;..\lib\jdbc
> > 2_0-stdext.jar;..\lib\jboss-jaas.jar;
> > -Dtomcat.home=F:\jboss_tomcat\tomcat-3.2-b7 org.jboss.Main %1 %2 %3 %4
> > %5 %6 %7 %8 %9
> > 03/01/01 16:28:16 - Shutting down service...
> > 03/01/01 16:28:16 -
> > ---------------------------------
> >
> > Thanks a lot.
> >
> > _________________________
> > [EMAIL PROTECTED]
> >
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]