• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Create new domain in 6.0  RSS feed

Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
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.
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!