Java Application Server (JBOSS+TOMCAT) installation strategy

Source: Internet
Author: User
Tags variable window jboss tomcat
j2ee| Server | Raiders Jboss+tomcat has become a free open source stable Java EE server, although the deployment of EE in JBoss no commercial Java server so convenient, basically by hand-written XML configuration files, But this will make it easier for us to understand the ins and outs of the Java EE.

Note that, just as the TOMCAT3 and Tomcat 42 versions vary greatly, JBoss 2 and JBoss 32 are significantly different, and in the case of JBoss 2, it is recommended to install JBoss 3. Jboss 3 installation is actually more simple, download decompression can be run, deployment of the same way.

1, from the JBoss home page http://www.jboss.org download JBoss integration Tomcat package.

Download ant from the Ant home page to publish the Java EE (. ear) or Web program (. War) or Java package (. jar)

2. Set environment variable

· Java_home = c:\jdk1.4--> Suppose you install the Java 2.0 SDK in c:\jdk1.4

· Ant_home = C:\jakarta-ant-1.4--> assumes that you install in C:\jakarta-ant-1.4

· Jboss_dist = C:\JBoss_Tomcat\jboss--> Suppose you install JBoss at C:\JBoss_Tomcat\jboss JBoss 3.0 There is no JBoss for this subdirectory

Settings in Windows 2000 are required to be set in the Control Panel--> system--> environment variable

3. Set path to join%java_home%\bin;%ant_home%\bin to be able to perform JDK and ANT

4, from Http://www.jboss.org/docs/manual/files/document. Tion-example.zip Download the JBoss application example. Extract to C:\JBoss_Tomcat

       
        
         
        | |----Examples---> Application example installation directory |----Jboss |----Catalina-->TOMCAT 4.0
       
        


From Windows DOS window into the Examples/build directory execution:

       
        
         
        Ant Intro-interest-ear
       
        


A series of information appears, finally "build succesfully" to the Examples/build-example/interest directory, discovering the newly established interest.ear

5, start JBoss will interest.ear copy to the C:\JBoss_Tomcat\deploy directory, in the JBoss 3.x is Server/default/deploy directory. A series of information about deploying Interest.ear is seen in the JBoss control window.

6, through the http://localhost:8080/interest/access, will appear a form, according to submit, display normal. At this point, your Java Application Server installation completed.

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.