Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize Web Application Management in Weblogic Environment under MyEclipse

2025-04-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to realize the Web application management of the Weblogic environment under MyEclipse, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.

Through a few days of using Weblogic, I have some understanding of this application server. Especially in the management of Web applications, Weblogic is much better than Tomcat, and it also reflects the "demeanor" of commercial software. However, at the beginning of the application, we don't know much about the deployment of Weblogic, and we can only deploy it in the most basic way. Its implementation is as follows:

1. Use MyEclipse to package and generate war file. Although Weblogic also supports directory deployment, because Myeclipse cannot automatically put the jar package on build path into the WEB-INF/lib directory (I can't find a way to do it automatically, I can explain what I know), so it's more practical to output a war package with export.

two。 To deploy using Weblogic's web version of Administration, you should first click "lock & edit" to unlock, and then install or update the packaged war package in the deployment interface.

3. If an exception occurs, modify the program again and perform the * * steps; otherwise, you will need to do something similar to submit after deployment.

4. When the deployment is complete, to run the web application, check the application and click start to start the service. This design is better than Tomcat, can only be deployed without starting, can speed up the running speed of Weblogic. At this time, an exception may also occur, so you need to modify the program and perform the * steps.

5. If all goes well, the status of the web application is Active, and it can be used normally.

The above steps are not a problem for Web applications that are close to the release, but if you are in the development stage, it will be more tedious. For example, you have to go through all the above steps to modify a simple JSP page, while in Tomcat, you only need to deploy it automatically with Myeclipse (if configured to the source directory, even the deployment can be omitted). After several days of torment of the above steps, I adopted another method of deploying Web applications in Weblogic environment with MyEclipse, which can greatly shorten the deployment time and is a good choice in the development process.

This method takes advantage of the automatic deployment feature of Weblogic. Under the directory of the Weblogic server, there is an autodeploy directory that is actually used for rapid deployment and application debugging. As long as the entire application (in the form of directory or war package) is copied to this directory, Weblogic will be automatically deployed (also seen in the deployment module of administration), and this mode does not need its own start, the application itself is active (make sure there are no errors, of course).

The rest of the work is to configure in Myeclipse, take advantage of its deployment capabilities, and put the entire web application into the autodeploy directory. First of all, you need to configure the server of weblo9.2 in Myeclipse, which is slightly more complex than tomcat. The main interface is shown below:

Then it is particularly important to adjust the order of the output at deployment time, which is shown below:

Adjustment is to adjust the term "JccWeb/src" to *. The reason is that if no adjustments are made, Weblogic will report an error when deploying because some classes in the dependency package cannot be found. After adjustment, first output all the jar packages, and then output the specific contents, there will not be the above error.

* makes use of the deployment feature of Myeclipse, which is called every time you need to debug. Add is required for * * times, and redeploy will be fine later. As shown in the following figure:

This process automatically copies the directory to the autodeploy directory. In addition, according to my calculation, if only the jsp page is updated, Weblogic does not seem to have background output, and you can see the results in the browser almost immediately after deployment. This is a great improvement over the past.

Thank you for reading this article carefully. I hope the article "how to implement Web Application Management in Weblogic Environment under MyEclipse" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report