Default Web Application

In the link below
http://e-docs.bea.com/wls/docs81/ConsoleHelp/web_applications.html#1108437
they are saying how to create a default web application.(changing weblogic.xml for .war file).But i could not do that.
It is in .war format i do not want to  unpack it and change the weblogic.xml(context-root).I tried from console going to that particular webapplication  after that configuration-->Descriptor--> i can find web.xml and weblogic.xml.I clicked on it but it just shows me the file.It does not allow me to edit it .Any of the experts know how to do this and give me the format of context-root that i have to add to make that particular application as default web application.
Thanks
koppcha
LVL 8
koppchaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sompol_kiatkamolchaiCommented:
To make your web application to be default web app. You can do it by using administrator console.
On the left side pane go to Server and then browse throgh the tab on the right side and look for something like "Default Web Application" or "Default Context Root" There will be drop down list of web application you deployed on that server. Select your application to be default. I am not sure for the menu. I will try to find it for you later.

Note. You can enter admin console by http://xxx.xxx.xxx.xxx:port/console and then put username/password to logon.

SoMpOL
0
sompol_kiatkamolchaiCommented:
The above solution will override all configuration in each Web Application.

I think that you can do that after you configure weblogic.xml because there is already another web application that set to be default web application and deployed on server.
0
vzilkaCommented:
You can not edit the configuration files when you deploy a packed format (war files). YOu can however use the WebLogic BUilder tool to edit the WAR file, so it will include the default context /.
I don't know of a way to do it through the administration console directly.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

rama_krishna580Commented:
Hi,

The default Web Application is presented to clients who do not specify a URI (or specify "/" as the URI). To deploy a Web Application as a default Web Application, set the value of the context-root element to "/" in its deployment descriptor.

You can specify the context-root element in the weblogic.xml deployment descriptor for Web Applications that are packaged as a .war archive or exploded .war directory. If you package the Web Application as part of an Enterprise Application (.ear archive or exploded .ear), specify the context-root in application.xml. Note that the application.xml context-root takes precedent over the weblogic.xml value.

For more info. refer here..it is providing valuable information about administrating the server....i hope it may help you

http://www.itcourseware.com/Webpdfs/webjt-wls8a.pdf

R.K
0
koppchaAuthor Commented:
This is one of the ways to make any application as default webapplication.Using the Webserver element in config.xml.
<WebServer AuthCookieEnabled="true"
            DefaultWebApp="defaultwebapp"
            LogFileName="./logs/access.log" Name="portalServer"/>
0
koppchaAuthor Commented:
Hi
  I am the author of the question figured out the answer my self and that is what i have given in my earlier comment.Tell me what i need to do.
0
VenabiliCommented:
Post a question here:
http://www.experts-exchange.com/Community_Support/
With title:
"Please PAQ and refund"
and text:
"Please PAQ and refund http://www.experts-exchange.com/Web/Application_Servers/Weblogic/Q_21220408.html as I solved it myself - the answer is posted"

It won't ask you for points :)

Venabili
0
moduloCommented:
Closed, 250 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.