Hello everyone! How are you? I’m going to write a series of articles to show you basic stuffs of Java EE 6 platform technologies. We will start from Java EE 6 environment configuration, then go to JSF, JPA, EJB, Web Services, Dependency Injection…
My personal opinion maybe has mistakes, so I’d like you to pointed out and commented blow the articles! 😀
To start this tutorial, you need two tools, Eclipse IDE, and Weblogic application server, you could choose other servers if you are familiar with, JBOSS, GlassFish etc. You can download these tools in the following links:
Weblogic server 12c: http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html
The weblogic server download page is like this:
I have chosen Generic Installer (997MB) – for use with 64-bit JVM, you can choose other installer files depend on your operation system and JVM version.
Note: You need to login to download the installation file.
Go to directory that you downloaded weblogic installer file:
In my case, the weblogic installation file is a jar file, run it in cmd:
java -Xmx1024m -jar wls1211_generic.jar
The installation guide will be shown(sorry my operation system is Chinese localized, but it dosen’t matter 😀 )
Choose middleware home directory(H: is my secondary SATA hard drive, I didn’t make partition, so I created some folders D, E, F, G, 😀 So it looks strange. ). Click Next.
Type your Email which was registered when downloading the installation file. If you want to receive security updates, you need type your password. Click Next.
Select installation type, you could choose Typical or Custom(In my case, I want to show you what would be installed). Click Next.
You can see, except Examples, all of the components are being installed, so, I kept default selection, and then click Next.
You have to choose the JDK directory, select one like above. Click Next.
Choose directories to install Weblogic and Coherence, respectively. Click Next. Verify your installation infomation, then click Next to install.
If no error occurs, congratulations! You have installed weblogic successfully.
Create a domain
Open Welogic Configuration Wizard from start menu.
choose create a new weblogic domain, click Next.
Give the domain a name, and location, I use the default. Click Next.
Choose Development Mode, make sure that there’s one JDK available. Click Next.
Choose optional configuration, I use default which is none selected. Click Next.
Set the Admin Server name(you needn’t to care about it now), Keep other’s default. You can change the Port as needed. Click Next.
make confirmation, click Create. When creation complete, you can go to your base_domain folder to start the server, Mine is located at:
find startWebLogic.cmd, open it. Wait seconds, util <The server started in RUNNING mode.> has been showed.(This line may not be the last one)
Now you can open your web browser, open “localhost:7001/console”, you will see the login page, use your admin user name and password to login. Now, the weblogic configuration is completed. Next, we well configure Eclipse to integrate with weblogic.
Extract your Eclipse, open it, in the servers pane, click new server wizard…
There’s no weblogic server type be default, we need to get one. Click Download additional server adapters.
select Oracle Weblogic Server Tools, click Next.
You must accept the agreements, click Finish.
click OK when promoted. The installation will begin, when it finished, you must restart Eclipse to take effect.
Now, Lets create Weblogic Server now, click new server wizard…
Now you can see Weblogic Server adapter, select Oracle Weblogic Server 12c, give Server a host name and Server name, click Next.
Choose Weblogic home and Java home, click Next.
choose your domain directory that we created before. Click Finish. OK, that’s it!
To simplify the process of Java EE 6 Environment Configuration, follow the instructions below:
- Install Weblogic Server
- Confiure Weblogic Domain
- Install Eclipse
- Add Weblogic Server Adapter
- Add Weblogic Server
That is quite simple, I post plenty of pictures to give you more details of the configuration. Hope you can learn useful information from this article. 😀