I am using windows 10 with weblogic 10.3. I am assuming that you have already installed weblogic 10.3 on your machine. Click here for weblogic 10.3 installation details.
Follow below steps to create a new domain in weblogic
Step 1 : Click on Windows button on left corner and search for config. It will show configuration wizard. Click on that.
Step 2 : It will open an Oracle’s window for domain creation. Select “Create a new Weblogic domain” and click on Next.
Step 3 : Select “ generate a domain . . . . “ and click on Next.
Steps 4 : On this screen create a username and password of your choice , which would be used for login on admin console of your domain. Memorize the credentials or keep it in safe place. Click on Next.
Step 5 : On this screen, You can configure whether you want to create domain for development purposes or it’s a production domain and which jdk version you want to use. Weblogic is bundled with sun jdk and jrockit but it also provide option to choose a custom jdk. Choose your options accordingly.For this tutorial I am using development mode with sunJDk provided by weblogic.
Step 6 : There are some pre-defined domain configuration (defined by weblogic), on this screen you can choose to modify that or can go with existing pre-defined configuration. For demonstration purposes, I will choose to configure it by my own (you can select “No” and move forward). Select “Yes” and click Next.
Step 7 : On this screen you can configure a RDBMS secure store which is nothing but creating datasource. We can do that later as well. Since “I don’t want to change anything here” I will choose so and click on next.
Step 8 : On this screen , you can configure your admin server eg. Name of server, listening port, whether it should handle SSL request or not etc. Default Listen port address is 7001, I am using a custom listening port (10001) which I know is not being used on my machine. Click on Next.
Step 9 : Through this screen we can add managed servers to your domain, numbers could vary based on your application’s requirement. Managed servers are nothing but an instance of weblogic server which can host your application and using a load balancer you can manage the load. This can be discussed in detail in clustering. I am not adding any specific managed server and will run only admin server. Click on Next.
Step 10 : Using this screen, we can add multiple machines on which we can start weblogic server instances and using admin server we can configure all the managed servers (from local as well as remote machines which would be added here) under one cluster. So, a Weblogic cluster consists of managed servers residing on different machines. Since we are setting up a simple domain we will not add any machine here. Click on Next.
Step 11 : It’s just a review screen about the information we entered on previous screens. Click Next.
Step 12 : Enter the name and location of your domain and click on create.
Woow! ! ! ! Your new domain is created
Step 13: After clicking create you will see screen as below. Select “Start Admin Server” and click on Done. It will openup a windows console and admin server will get started in Running mode.
Step 14: Open any browser and access this url : http://localhost:<port>/console , replace port with listen port number that you have entered in step 8. And use the same username password to login.
Starting and Stopping Servers
1) Go to your domains location : E:\bea\user_projects\domains\blogDomain
2) Execute startWebLogic.cmd or startWebLogic.sh based on your OS type. This will start the admin server for that domain.
3) To Stop the server – go on the running console and do ctrl+C