This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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.
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
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com