Default Web Application

Posted on 2004-11-25
Last Modified: 2013-12-10
In the link below
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.
Question by:koppcha
    LVL 11

    Expert Comment

    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 and then put username/password to logon.

    LVL 11

    Expert Comment

    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.
    LVL 9

    Expert Comment

    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.
    LVL 23

    Expert Comment


    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 is providing valuable information about administrating the server....i hope it may help you

    LVL 8

    Author Comment

    This is one of the ways to make any application as default webapplication.Using the Webserver element in config.xml.
    <WebServer AuthCookieEnabled="true"
                LogFileName="./logs/access.log" Name="portalServer"/>
    LVL 8

    Author Comment

      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.
    LVL 20

    Expert Comment

    Post a question here:
    With title:
    "Please PAQ and refund"
    and text:
    "Please PAQ and refund as I solved it myself - the answer is posted"

    It won't ask you for points :)


    Accepted Solution

    Closed, 250 points refunded.

    Community Support Moderator
    Experts Exchange

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
    Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now