Jboss3.0-tomcat4.03 configuration (1)

Source: Internet
Author: User

I. Environment:
Operator System: Windows 2000 server 2
Application server: Jboss3.0-tomcat4.03
DB: Oracle8.17
JDK: jdk1.3.1
Preparations before installation:
1. Please install JDK 1.22 or a later version. We recommend that you use JDK 1.31. Download http://java.sun.com/j2se/1.3/download.html and add the relevant commands to path.
2. Please download Jboss3.0-tomcat4.03, here there is download http://sourceforge.net/projects/jboss/
3. Install Oracle8.17 with the corresponding JDBC driver classes12.zip (of course, you do not need to install it if you do not test the database)
Start installation:
Decompress the package using Winzip. After decompression, my path is F: Jboss_Tomcat.
2. After decompression, you do not need to configure it. Use the run. bat command in the bin directory. If the java command is not added to the Path during the re-installation, open the run. bat file and add set JAVA_HOME = c: jdk1.3.1 (My installed Java directory) to the start)
3. run the run. bat command to check whether any exceptions are thrown in the background.
4. If the job runs successfully, visit http: // localhost: 8083 and a blank page will appear. Normal
5. visit http: // localhost: 8080 and the welcome page of Tomcat will be displayed. If the following error occurs: Apache Tomcat/4.0.3-HTTP Status 500-No Context configured to process this request, this is normal because you have not released it yet. ear or. war application. Of course, jboss-3.0.0rc1_tomcat-4.0.3.zip won't have this problem, because the web Test File webtest. ear is included in the serverdefadedeploy directory.
6. Access http: // localhost: 8082. You can see the service started by Jboss.
7. For ntand win2ksystem, if you want to install ntor win2kservice, please first download the file javaservice.exe, Here http://www.alexandriasc.com/software/JavaService/JavaService-bin-1.2.0.zip
Decompress the package
Save the following file as Jboss_Tomcat_Service.bat. Of course, you can save it as another name.
@ Echo off
If "% 1" = "uninstall" goto uninstall
If "% 1" = "-uninstall" goto uninstall
If "% 1" = "" goto usage
If "% 2" = "" goto usage
If "% 3" = "" goto usage
If "% 1" = "-help" goto usage
If "% 1" = "-? "Goto usage
If "% 1" = "/? "Goto usage
: Install
Assumervice.exe-install JBoss30 % 1jrein \ % 3jvm. dll-Djava. class. path = % 1lib ools. jar; % 2in un. jar-start org. jboss. main-stop org. jboss. main-method systemExit-out using 2inout.txt-current % 2in
Goto eof
: Uninstall
Assumervice.exe-uninstall JBoss30
Goto eof
: Usage
Echo -------- To Install jboss' 3.0 do
Echo Usage: % 0 jdk_home jboss_home (classic/hotspot/server)
Echo NOTE: You may not use spaces in the path names. If you know how echo to fix this, please tell me.
Echo JDK 1.3 does not come with hotpot server by default,
You must echo install this seperately if you want to use it.
Echo Example: % 0 c: progra ~ 1jdk c: progra ~ 1jboss30 hotspot
Echo --------
Echo -------- To Uninstall jboss' 3.0 do
Echo Usage: % 0 uninstall echo --------
Goto eof
: Eof
To the same directory as assumervice.exe, run the following
Jboss_Tomcat_Service c: jdk1.3.1 f: Jboss_tomcat server
C: jdk1.3.1 is the java installation directory.
F: Jboss_tomcat is the Jboss installation directory.
Server is a constant parameter
You will see the command for successful installation. You can view Jboss3.0 Service in win2k or NT Service, and you can start it normally.
After installation, let's talk about the configurations, such as databases, emails, JMS, and ejbs.


Ii. configuration of Jboss3.0-Tomcat4.03 Virtual Host
1. First open the hosts file in the WINNTsystem32driversetc directory and add the name of the machine you want to virtualize to, as shown in the following example:
127.0.0.1 www www.www.systekgz.com.cn
Here www.systekgz.com.cn is my domain name.
Www is a virtual name
The name of my machine is fangm, and in the domain is fangm.www.systekgz.com.cn.
2, open the jboss-tomcat installation directory serverdefaultdeploy directory in the tomcat4-service.xml file, the original file is like this



]>










Name = "jboss. web: service = EmbeddedCatalinaSX">
& Catalina. home;




VerbosityLevel = "trace" category = "org. jboss. web. localhost. Engine"/>

Prefix = "localhost_access" suffix = ". log"
Pattern = "common" directory = "../server/default/log"/>





Port = "8080" minProcessors = "3" maxProcessors = "10" enableLookups = "true"
AcceptCount = "10" debug = "0" connectionTimeout = "60000"/>






First, find Jboss-tomcat is released under localhost by default. You should change it to your machine name. Here I changed it Note that it is not a virtual name.
2. Add the following section
Www.systekgz.com.cn



Note: And prefix = "www_access" www are virtual machine names
Of course, you can leave it unchanged. Here Change
The complete file after modification is as follows:



]>










Name = "jboss. web: service = EmbeddedCatalinaSX">
& Catalina. home;




VerbosityLevel = "trace" category = "org. jboss. web. localhost. Engine"/>

Prefix = "localhost_access" suffix = ". log"
Pattern = "common" directory = "../server/default/log"/>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.