This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes domain Creation.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "domain Creation.." Watch "domain Creation.." New topic

domain Creation..

deep venu
Ranch Hand

Joined: Jun 09, 2001
Posts: 56
I want to create a domain in WLS6.1.. I was wondering as to how/when does the DefaultWebApp or the domain server folder get created?
The reason is ai want to host a jsp and i am unable to do so. I had created a jsp folder under applications/DefaultWebApp
and put my jsp there in mydomain and was able to host the jsp
But how do I host the jsp in the new domain created by me?
Thank you
Joe McGuire
Ranch Hand

Joined: Mar 19, 2001
Posts: 293
You need to go into the Admin Console to create a new domain. Step-by-step instructions are given in the bea docs.
Copy over and modify the startWeblogic.cmd and setEnv.cmd files, and the console.war file. Also, don't forget to copy the SerializedSystemIni.dat and files into the \newdomain\ directory before starting the server.
Once your domain is up and running okay, copy your JSP file into the WL_HOME\config\newdomain\applications\DefaultWebApp\ directory. If you put everything into its default location, you should be able to get to your jsp from the browser at http://localhost:7001/yourJSPfile.jsp
deep venu
Ranch Hand

Joined: Jun 09, 2001
Posts: 56
Hey Joe,
thanx alot..though i had solved the problem before ur help could reach me :-)
nevertheless ..I had done whatever u have suggested but the problem was that this piece of code inside the server tag of config.xml was not there and hence the DefaultWebApp folder was not made.
<Server ListenPort="9001" Name="testServer"
<WebServer DefaultWebApp="DefaultWebApp"
LoggingEnabled="true" Name="testServer"/>
but once i put it into the config.xml everything was fine..all i had to do was to create a jsp folder under DefaultWebApp and put my jsps in it and then call http:://localhost ort/jsp/MyJsp.jsp
Neways thanx a lot...

I agree. Here's the link:
subject: domain Creation..
jQuery in Action, 3rd edition