File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Create new domain in 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Create new domain in 6.0" Watch "Create new domain in 6.0" New topic
Author

Create new domain in 6.0

Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
Wondering if anyone has created a new domain in WL6.0, as I can't seem to find any documentation on it. Any help is appreciated.
mousami bhattacharya
Ranch Hand

Joined: May 13, 2001
Posts: 40
Hi ,
I am trying to create a new domain in wls 6.0 .I am doing it thru the console window.Everything is okay ,but when I try to start the domain ,it gives me security exception ,it doesnt take the password (my bootup weblogic password) ,and says
"<Emergency> <Server> <Unable to initialize the server: 'Fatal initialization exception
Throwable: java.lang.SecurityException: Authentication for user sys
java.lang.SecurityException: Authentication for user system denied"...
How do I create anew domain thru console.I know it can be done by simply copying the default domain and changing the configuration,but I dont want to do that .
Any help ?? whats the way to create a new domain ??
Mousami
Joe McGuire
Ranch Hand

Joined: Mar 19, 2001
Posts: 293
The creation of a new domain cannot be done solely from the Admin Console. You create a new config.xml file through the console (though it could be copying and modifiying one by hand instead), and then copying over files from an existing domain into the new one and configuring the startup parameters. Here's my step-by-step approach:
1. Start the Admin Server under an existing domain, and open the Admin Console.
2. From the right pane on the Admin Consoles home page,
select WebLogic -> Domain Configurations.That will bring up the right pane "All Domain Configurations."
3. On the tree in the left pane, click on "Default."
This will add the option "Create a new Domain" in the right pane.
Select "Create a new Domain."
4. In the Configuration -> General tab, give your domain a name, click on <create>. This creates a new domain directory in the /config directory, and has only the new config.xml file. You should see the new domain name added to the tree in the left pane.
5. Click on the new domain, and in the tree on the left panel, click on servers. Click on the right pane to add a new server in your new domain (myserver is default). Enter the name of the new Admin server, and click <create>.
6. Shutdown any running WebLogic Server instance.
7. You now have a new directory for your new domain under the /config directory, and inside it is the config.xml file for your new domain. In that new directory, you need to create a subdirectory called /applications.
8. Copy the file console.war from the /mydomain/applications directory to the new /applications directory.
9. From the windows explorer, copy from the /mydomain directory, the files:
SerializedSystemIni.dat
fileRealm.properties
startWebLogic.cmd
startManagedWebLogic.cmd
setEnv.cmd
into your new domain directory.
10. In a text editor, modify the startWebLogic.cmd and startManagedWebLogic.cmd files, changing the name of the existing domain to the new domain (-Dweblogic.Domain=mydomain to -Dweblogic.Domain=somenewdomain). If the name of the administration server is different in your new domain, modify that (-Dweblogic.Name=MyServer to -Dweblogic.Name=SomeNewServer). Remember, the name of your new admin server is CaSe SeNsiTiVe.
At the end of the startWebLogic.cmd script change the cd command (cd config\mydomain to cd config\somenewdomain). There is also a line in the start script that reads:
echo startWebLogic.cmd must be run from the config\mydomain directory. Replace mydomain here with the name of the new domain.
11. From the explorer or a command prompt, select startWebLogic.cmd for your new domain.
You should be able to now logon to your new domain's Admin Console.
Avinash Kumar
Greenhorn

Joined: Jun 30, 2001
Posts: 9
Hi Moushmi,
If you don't want to do all this copy work, you can write an installation script for the same.That script can modify all relevant files as well.I have tried it and implemented it .Along with this, one added advantage is that you can go for some validation from your side which WebLogic does not provide.For this , you can try some of the WebLogic utilities, like DBPing(for database URl validation, driver name validation etc...).
I think this effort will be useful.
Regards,
Avinash
jgkwon
Greenhorn

Joined: Nov 07, 2001
Posts: 1
Hi, Avinash
I hope that you can see this message. Is that possible you can post your script here? I can not figure out how to create domain by script. If anyone know this or have a script for creating a domain, your help will be really helpful for me and other newbies. Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create new domain in 6.0
 
Similar Threads
change default server and domain
Urgent:Shell Script to automate the deployment process on weblogic6.0
Running JSP in Weblogic 8.1 afer creating a NEW Domain.
Dmain name creation using J2EE
what is the relationship of sandbox and protect domain?