weblogic deployment war package

Use various IDE tools to make the project into a War package (of course, you can also configure the server as Weblogic Server directly in the IDE), and deploy it to Weblogic, there are many ways: 

1. Use the Console console: After logging in to the console , select the tree menu on the left "Deployment - Web Application Module", then select "Deploy New Web Application Module" on the right side of the interface, and then select the path where the War file is located (the program will automatically place the War file in the directory list) and deploy it. 

2. Use Weblogic Builder: There is a built-in tool Weblogic Bulider in the Weblogic installation directory (menu), which can modify the content of the files in the War package, and then publish them directly.
The steps are: first start the Weblogic Server service, open the Weblogic Bulider, configure it in the "Tools---Connect to Server" interface, and connect to WLS (there is a sign in the status bar below after the connection is successful); then "File--Open" opens War package, after modification, press "Tools---Deploy Module..." to deploy. 

3. Put the War package directly under "user_projects\domains\mydomain\applications". When WLS starts, it will automatically detect the War package in this directory and deploy it automatically.
After the deployment is successful, you will see the name of the deployed project in the menu on the left side of the Console - Web Application Deployment. Deploying the WAR package under WLS is not like Tomcat deployment (Tomcat will unpack the War package and generate a separate folder), it will automatically unpack the WAR package when WLS starts, and put it into a temporary file under the domain clip,
For example, under bea\user_projects\domains\workshop\cgServer\.wlnotdelete\extract. (I haven't tried it, if the IDE server is directly configured as Weblogic, will a folder be generated)   
After deploying the program, enter "http://127.0.0.1:7001/" or "http://" in the address bar to run the program. 127.0.0.1:7001/projectname/", which needs to be determined according to the virtual path accessed by the Weblogic.xml configuration in the deployment project:  
if it is:  
<weblogic-web-app>
   <context-root>WebApp</context-root>
</ weblogic-web-app>    
access is to use the following address "http://localhost:7001/WebApp".
If you don't write <context-root/>, you will access the path of the application or the name of *.war by the name of the web application.  
If you write:
<context-root>/</context-root>
then you can directly access "http://localhost:7001/ "

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326483182&siteId=291194637