How to publish multiple Web projects with WebLogic

Source: Internet
Author: User

Author: xinxin

WebLogic is a middleware based on Java EE architecture produced by Oracle, which can be used to develop, integrate, deploy, and manage Java application servers for large distributed web applications, network applications, and database applications. Well, when you write a Web project based on Supermap iobjects Java, you can use WebLogic middleware to quickly publish on Windows or Linux systems, but because of the component products that use the Hyper-graph, In the use of WebLogic release when you have to set the relevant environment variables to smooth release. The following small series will take you to learn to deploy and publish on WebLogic the Web projects and notes that reference the Supermap iobjects Java, the process consists of the following several steps:
1. Installation of WebLogic and creation of domains
First of all, must have a written Web project, how to write a Web project will not be introduced in detail, not this point, but also to install a good weblogic, the following focus on the installation of WebLogic. Now the commonly used WebLogic version has 11g and 12c, the following small series to take a look at 12c of WebLogic in the Windows Server 2008 R2 installation steps:
(1) Download a weblogic. jar package file (such as Wls_121200.jar) that can be installed by installing the command line for the. jar package (such as Java–jar Wls_121200.jar);
(2) After the WebLogic installation, you need to create a domain to deploy and publish the Web project, and you can create a WebLogic domain by booting the installation, as shown in Figure 1:

Figure 1
(3) After entering the boot installation, we need to set the domain name and the location of the domain (the default setting) –> set the username password (password requires 8 digits and above, must have letters and numbers) –> Select the available JDK (JDK number of digits consistent with WebLogic) –> Check the Management Server  settings Management Server name and port (you can use the default settings) –> Last click Create (do not start the Management Server after successful creation);
(4) The WebLogic domain can be viewed under the domain location you set up after the domain is created, as shown in Figure 2:

Figure 2
PS: In addition to the number of digits that are selected in the process of creating a domain, you also need to set the JDK environment variable (JAVA_HOME/CLASS_PATH/PATH) in advanced system settings. It is also recommended that you use the JDK version with 1.6 or 1.7, and that version 1.8 is not recommended, and that if you want to open multiple domains simultaneously, the port requirements for each domain are inconsistent.
2. Setting Environment variables
You need to set up the path path to Supermap iobjects Java in advanced system settings before you deploy the Publish Web project with WebLogic, and the bin path in Iobjects Java is written in the path of advanced system settings, but after testing, Simply setting the environment variable WebLogic deployment is no problem, but when you publish it will find a "licensenative" error that indicates that the environment variable set in advanced system settings does not work, You need to set the path path in the Startweblogic.cmd in the WebLogic domain, and if your Web project uses database-type data, such as an Oracle data source, then you need to set the path path for the Oracle client in Startweblogic.cmd, as shown in Figure 3:

Figure 3
Ps:supermap iobjects Java has the same number of digits as the database client (database type data used in Web projects) and WebLogic, and if you publish a Web project with WebLogic, you cannot recognize the environment variables set in advanced system settings. You also need to set the path path for JDK, database client, and iobjects Java in Startweblogic.cmd (in the order set in the recommendation Figure 3).
3. Deploying and publishing Web projects in WebLogic
(1) Copy the Webroot file in the Web project (or you can make it into a. War package);
(2) Start the service of WebLogic domain, double-click startweblogic.cmd;
(3) In the browser input IP: port number/console (such as: Localhost:7001/console), pop-up a login page, enter the user name and password can be logged in, in the following figure 4:

Figure 4
(4) Click on the deployment shown in Figure 4, click Install (step-by-Step selection according to the prompts), after successful deployment in the release.
Ps:weblogic not only can you deploy a Web project on Linux on Windows, but you can achieve the same ideas and areas of attention, but when you want to publish multiple Web projects in a WebLogic domain, you'll find that you'll report "Wrapj600.dll "is occupied by other programs, this time also need to modify a place: The Webroot/web-inf/lib in each Web project to refer to the map of the jar package all deleted, and in your WebLogic domain in the Lib to add all the Web works in the reference to the Super map jar package can If you publish multiple Web projects with Tomact, this error is also resolved in this way.

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.