Weblogic deployment project in three modes

Source: Internet
Author: User

Weblogic deployment project in three modes

There are three methods to deploy a project in weblogic: first, install and deploy the project in the console; second, deploy the deployment package in the autodeploy directory in the domain; and third, use the config file in the domain. xml for project deployment.

Console deployment

1. Start the weblogic service, log on to the weblogic console page, enter the user name and password, and log on to the console.

2. Click deployment on the left.

3. Click the Install button on the right to install the project.

4. The path input box is displayed. You can select the location of the project to be deployed below.

5. Enter the location of the package to be deployed and press Enter.

6. click Next.

7. continue to the next step

8. Click Finish.

9. Save the settings in the previous steps.

10. After saving the changes, you will be prompted to activate the changes without restarting.

11. Then you can perform the test. Enter the project name and you will see the welcome page of the project, that is, the project is successfully deployed.

If the previous steps are completed, but the project still cannot be accessed, you can refer to the following supplementary steps.

Procedure

1. Click deploy, select projects, and click Start.

2. When the project status is active and the health status is OK, continue the test.

Autodeploy automatic deployment

You do not need to log on to the console during Automatic deployment. There is an autodeploy directory under the main directory of the domain. You can directly copy the project package to the autodeploy directory.

There is a readme.txt file in the autodeploydirectory. open the file and read the first section.

This autodeploy directory provides a quick way to deploy applicationsto a development server. When the WebLogic Server instance is runningin development mode, applications and modules in this directory are automatically deployed.

In the development mode, when weblogic is started, the project under the autodeploy directory is automatically deployed.

Drop the deployment package servletDemo. war to the autodeploy directory, start startWeblogic. cmd, and access the servletDemo.

Welcome Page.

Config. xml configuration file deployment

The config. xml file is under the config directory of the domain. config. xml mainly configures some information about the domain.

Where should we configure the project to be deployed?

   
  
   base_domain
    
  
   12.1.3.0.0
    
      
   
    base_domain
       
         
            
     
      DefaultAuthenticator
           
          
            
     
      SystemPasswordValidator
             
     
      8
             
     
      1
           
        
       
   
    myrealm
       
   
    {AES}xLPXh4gcT6JErTB+toxRZ1pQpAS+MGMuqnnXzu/OsxWMQTB8152ggdbUlhkSXUGC9f959oL7tIzyZiu9XdeajlkK9vAu9cQlCKLLUaUMyl5Ty4C0uuJA99b14eR7oIu4
       
   
    weblogic
       
   
    {AES}n3LLdgmAsocPRoYUrFfR2waWOlEz6KDFsp7+gByNeo8=
    
    
      
   
    AdminServer
       
     
    
      
   
    base_domain
       
   
    {AES}21z8vCiCbuaYqsSj5t5+y6qvEY8dE3NdNr0zDG+K3EdwWEubzk9Vmx79Di43oxqX
     
    
  
   12.1.3.0.0
    AdminServer
 
The project deployment information is added between configuration-version and admin-server-name.
 
  12.1.3.0.0
     
 
  servletDemo
   
 
  AdminServer
   
 
  war
   
 
  C:\Users\ZhangQi\Desktop\servletDemo
   
 
  DDOnly
       AdminServer

When you first deploy the config. xml configuration file, 404 is displayed. You can modify the configuration.

Decompress the deployed war package as a folder, and then

Set War InsideWarChangeDirYou can.

 

  
 
  servletDemo
   
 
  AdminServer
   
 
  dir
   
 
  C:\Users\ZhangQi\Desktop\servletDemo
 
 
  DDOnly
 
 
  nostage
 
Start the weblogic service.

All three deployment methods can achieve the purpose of project deployment. Let's talk about the advantages and disadvantages of the three deployment methods tomorrow.

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.