Rabbit Eight Brother Note 7: WebLogic Platform8.1 Use Drop (1)

zhaozj2021-02-16  49

Rabbit Eight Brother Note 7: WebLogic Platform8.1 Use Drop (1)

This note mainly organizes how to set the system default page in WLS, and the configuration of Workshop's domain, if there is an error, please correct!

One. WLS is set in default.

I have used Tomcat, WLS, Apache, know that when the server is started, enter http: // localhost: port number in IE, there will be a default page to show it, there is a friend (if I don't want to make mistakes Username _i_) ask me how to set your own application default, and how to specify the default page with your application, and the second question is not entered "/ myjsp" and only enter "/" can appear yourself. The specified default page, I made an experiment and found that 2 questions can be solved together.

1. If you have WLS8.1, then start the server, enter: http: // localhost: 7001 / after you will display the following page.

2. I have an application is a simple custom label experiment, which is detailed in my other note, the implementation interface is as follows:

Please pay attention to the address in IE: http: // localhost: 7001 / hello.jsp actually I just enter http: // localhost: 7001 / After return, I will automatically display the page, how did I do it? ? The old bird should not look down, so as not to see, ^ _ ^

Proceed as follows:

Prerequisites: The custom application name in the example is Myjsp, which requires this app that has been properly deployed on the WLS.

1. I first modify the web.xml of this application for my custom label to add an default page for this app. See the picture:

2. I found the default program of WLS in the WLS directory, and its path is as follows:

Bea / user_projects / applications / mydomain / defaultWebapp, in this directory, this is the default page of defaultwebapp. That is, the web page we see in the first figure.

Open Web.xml in web-inf, see the following:

We see that the default page is INTEX.html here.

3. We look at another file weblogic.xml in web-infers, as follows:

/ means the default application on the WLS.

4. Now let's copy this weblogic.xml to our application myjsp's web-inflight, and modify the content of DefaultWebApp's WebLogic as follows:

5. At this point our app, the content of WebLogic.xml under Myjsp is exactly consistent in the third step.

Everyone pays that it is displayed in the title bar in the figure.

6. At this point, we have finished the work, start WLS, enter http: // localhost: 7001, see which page is displayed!

So, how did the original application access? Try to enter the following address: http:// localhost: 7001 / dreaming, see what effect!

7. Let us look at Config.xml content

The brighten part is our application, that is, the virtual host is defined here. Of course, this is not my handwritten, the result after configuring the tool wizard through WebLogic. This part is at the bottom, I have moved it to the top. 8. Let's see what content in config.xml:

The specific meanings of each project can be used to access the help of WLS.

two. Workshop's domain configuration.

Workshop is a development tool for WebLogic Platform, which can develop some controls defined by BEA, such as page stream (JPF), work, except for some standard programs (JSP, Servlet, HTML, EJB, etc.). Flow (JPD), etc.

I remember that an article was released online with the name of the BEA company, how to explain how JBuilder is integrated with WebLogic. It seems that BEA has its own tools now, you can use customers to use others's development tools.

It is said that this tool is the original Microsoft's VB development group team to BEA development. Personally feel that the interface is more accustomed to JB, but the speed is really not compliment, I use it this morning to generate Workshop's own EAR file to generate a morning has not completed it. I feel that it is a nightmare. But there is also the same, because my machine configuration is too low (Run 3 733 128M memory), but this guy is really too slow, but if your machine is configured, it is not bad, and if you want to use BEA's page flow technology seems to have to use this tool.

This tool is already installed after fully installed WebLogic Platform8.1, but if you don't have a Workshop domain, this tool cannot integrate debugging and running with WebLogic Server. The method of configuring is simple, but I also cost it very much, "HOW Do I ..." part of Workshop help. After the configured success last night, I was running, because the machine's machine was configured tall, so I quickly compiled, generated the EAR package, and then I deploy it to WLS and click the "START" button. Run it. I feel okay!

If your project must use this tool, and your Workshop displays "Start WebLogic Server" when debug code, it is wrong, or it is not reflected, then it is probably not installed in your Workshop domain. If this is this, please follow the method below! The following method is to finish the help of Workshop after finishing.

WebLogic Platform 8.1 Workshop This machine runs the configuration of the web application

Start the configuration wizard

2. The following interface appears

3. Click on the interface after "Next"

4. Select "Basic WebLogic Workshop Domain" Click the "Next"

5. Click "Next"

6. Enter "User Password", click Next "

7. Click "Next"

8. Don't change anything, click "CREATE"

9. After completing, click "DONE"

10. Start Workshop

11. Select "Application Properties" of Tools

12. Make sure the "WebLogic Domain" of the Settings section is "Workshop", "WebLogic Server" is "CGServer". These two values ​​are displayed in the sections 7 steps.

13. Click "OK" to complete the configuration. Observe the start menu, I found more Workshop domain, start the domain. 14. Open the console and find the CGServer we just installed under Server.

Originally, I am going to use Workshop to run an example, and then catch a few pictures to explain the Workshop usage, but my machine is really unrestrained, I can't generate EAR, I have to make a good job!

If you don't ask me about Workshop, I know these, haha!

2003-11-11 afternoon

转载请注明原文地址:https://www.9cbs.com/read-28041.html

New Post(0)