How do I change the document root and servlets root in WL 6.0

Please reply fast.
Suresh Wilson

In 5.1, you specify the "name" via the property:
weblogic.httpd.webApp.NAME=<path_to_war>
... where NAME is the path in the URL where you want your webapp to be
access from
Say:
weblogic.httpd.webApp.sampleapp=/home/weblogic/product/wls/5.1/sample.war
... the application's root is http://hostname/sampleapp
In 6.0, it seems to be the name of the war file itself. I deployed the
war twice, one using sampleapp.war and the other using sampleapp2.war,
and the webapps' root are http://hostname/sampleapp and
http://hostname/sampleapp2, respectively.
Is this rigth? Well, that is at least what I observed. The admin docs
regarding deploying was not clear on what is defined as "name" or where
it gets it from ... until I tried the above.
For a while, I thought that the application's root are defined by the
servlet spec.
John
Gene Chuang wrote:
>
Servlets in 6.0 must be deployed in .war; "document root" setting is irrelevant in 6.0.
Gene
"suresh wilson" <[email protected]> wrote in message news:[email protected]..
Please reply fast.
Suresh Wilson
Homepage: http://homepages.tig.com.au/~jmsalvo/

Similar Messages

  • Changing the document root in WLS 6.0 SP1

    Hello,
              I want to change the deployment folder of
              config/<domainName>/applications
              to another folder in our source tree. Is this possible? The reason we
              want to do this is because our root tree contains the java source code
              and web-related content in our configuration management system. It
              would seem very odd to map our web-related stuff to
              /WLS6.0sp1/config/<mydomain>/applications and everything else to the
              standard structure.
              In 5.1, setting the weblogic.httpd.documentRoot property does this.
              However, I understand that WLS 6.0 uses a classloader for the
              /applications directory. Can I use a system to property to notify WLS
              6.0 to look at a different directory instead?
              There seems to be error in docs related to this.
              http://e-docs.bea.com/wls/docs60///////config_xml/properties.html
              Says DocumentRoot entry can be set in config.xml.
              But the entry is not found in DTD (config.dtd)
              http://e-docs.bea.com/wls/docs60///////config_xml/config.html
              Thanks.
              --Bahar
              

    Bahar,
              The docs you pointed out is absolutely right. There is no error in the
              document.
              If you want to change the document root make the following
              modifications in your config.xml as per the example here:
              <Application Deployed="true" Name="DefaultWebApp_myserver"
              Path="d:\docmain">
              <WebAppComponent Name="DefaultWebApp_myserver"
              Targets="myserver" URI="www"/>
              </Application>
              Where Your document root is : d:\docmain\www
              Make sure that you have web.xml under
              d:\docmain\www\WEB-INF
              Kumar.
              Bahar Limaye wrote:
              > Hello,
              >
              > I want to change the deployment folder of
              > config/<domainName>/applications
              > to another folder in our source tree. Is this possible? The reason we
              > want to do this is because our root tree contains the java source code
              > and web-related content in our configuration management system. It
              > would seem very odd to map our web-related stuff to
              > /WLS6.0sp1/config/<mydomain>/applications and everything else to the
              > standard structure.
              >
              > In 5.1, setting the weblogic.httpd.documentRoot property does this.
              > However, I understand that WLS 6.0 uses a classloader for the
              > /applications directory. Can I use a system to property to notify WLS
              > 6.0 to look at a different directory instead?
              >
              > There seems to be error in docs related to this.
              > http://e-docs.bea.com/wls/docs60///////config_xml/properties.html
              > Says DocumentRoot entry can be set in config.xml.
              > But the entry is not found in DTD (config.dtd)
              > http://e-docs.bea.com/wls/docs60///////config_xml/config.html
              >
              > Thanks.
              >
              > --Bahar
              

  • How can i change the full download and install path because my C: ist full and it automaticly downloads it on C: i allready changed in on adobe creative cloud but it dont work

    How can i change the full download and install path because my C: ist full and it automaticly downloads it on C: i allready changed in on adobe creative cloud but it dont work

    Read the part about SSDs. Otehrwise there is nothing you can do. Certain components wil lalways install on your system root drive.
    Mylenium

  • How do I change the copyright info and links in collection pages?

    Can anyone tell me how I can change the copyright info and links on a collection page using the new updated Public Site Manager?
    1. When I click on 'Configure selected collection' there doesn't seem to be an option to edit copyright information and I've tried editing the info in Settings > Copyright Notice but it doesn't filter through to the collection pages.
    2. When I click on 'Configure selected collection' the links tab is empty but on my collection page there is a link called 'website' which links to our University website but the url is incorrect so I need to change it.
    Example screenshot -
    Thanks

    Also when I add a url list to a collection page and then delete all the links I'm left with a blank url list showing in preview page in iTunes. This should not happen, the admin guide says -
    "To delete a collection page URL list, delete all the links in the list. When you publish, if you have a URL list with no links, iTunes U Public Site Manager hides the empty URL list."
    It doesn't. At least it doesn't for me when I preview the collection in iTunes.
    Example screenshot

  • How do I change the font size and color in a text box?

    How do I change the font size and color in a text box?

    Really frustrating to find the first time but simple once you figure it out. I think I spent hours trying to find this. Simply right click on a blank spot in the toolbar up top and select Properties Bar. There it is! The available properties will change depending on whether you have the content (text) selected or the box itself.
    I haven't found a way yet to make it show up as a regular part of the toolbar. It floats around and gets in the way so I don't leave it on and then have to open it again when I need it. Again - frustrating; but at least it's there!

  • How i can change the arabic date and time mode to english date and time mode

    how i can change the arabic date and time mode to english number mode

    Settings app > General > International > Region format.

  • HT201240 I have a new macbook pro that did not have a disk, OS X was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., so how do i

    I have a new macbook pro that did not have a disk, OS X lion 7.3.4 was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., now there is some mysterious administrator name and or password??

    See #5
    Step by Step to fix your Mac

  • How do i change the administrator name and password when i forgot both of them

    how do i change the administrator name and password when i forgot both of them?

    Find the user name and then reset the password.
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box under “Select user account”.
    Note down the user account name.
    Enter a new password.
    Reenter the new password for the user.
    Note it down.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • How do I change the admin name and password on my iMac?

    How do I change the admin name and password on my iMac? It's been about two years since I've done that and I've totally forgotten how to. Your help is appreciated!

    Hi Haldane, and a warm welcome to the forums!
    Changing the name can be dangerous, use ChangeShortName 10.4 only...
    http://www.macupdate.com/info.php/id/16620
    Many way to change the PW then, the Accounts Pref Pane, unlock the Lock, click on change Password.

  • How do I change the administrator name and password?

    I am trying to put some needed applications on my G3 Lombards and it won't let me because the previous administrator of the computer failed to erase all of his info before I bought it.
    How do I change the administrator name and password?
    This is the most ridiculous thing I have ever seen yet.
    Please help. FAST
    Edited by an Apple Discussions Host

    Robert:
    May I strongly urge you to get a set of installer CDs. They will come in handy as you need them for much more than just installing the OS. From time to time, e.g. you may need to boot from the installer disk to Repair Disk (you can Repair Disk Permissions from Disk Utility on the HDD, but to Repair Disk, you must boot from a different volume). And if you had installer CDs changing the password and creating a new Admin Account would be a breeze.
    You can get universal installer disks at applerescue. Another option in your situation is to do a complete re-install. That will not only enable you to create your own admin account, but it will automatically change the computer short name. However, for that you need installer disks.
    Meanwhile, <a href=""http://discussions.apple.com/thread.jspa?threadID=121786&tstart=0>here is another article that should help.
    Good luck.
    cornelius
    Message was edited by: cornelius

  • How can I changed the system username and password

    How can I changed the system username and password
    Need help urgent

    Paolo,
    If I understand his requirement good (to have system user but must be called xxxx) then that's the option.
    Well, that's obvious...Sure, but sometimes we see complicated thing but not something what is obvious...
    Also your demonstration to OP how to change user password indicate that OP-level of knowing Oracle user management is such that OP maybe need help for something what is for you or me obvious...
    Cheers!
    Message was edited by:
    Faust

  • How do I change the context-root of a web app with a deployment plan?

    I've been trying to figure this out for several hours.
    I'm deploying a .ear file which sets the context root for the single web application it deploys in its application.xml deployment descriptor:
    <application>
    <display-name>MyApp</display-name>
    <module>
    <web>
    <web-uri>MyAppViewControler.war</web-uri>
    <context-root>MyApp</context-root>
    </web>
    </module>
    </application>
    I want to change the context-root from /MyApp to something else when deploying the ear file. It seemed to me that using a deployment plan was the way to do this. But when I use this plan:
    <deployment-plan>
    <application-name>MyApp<application-name>
    <variable-definition>
    <variable>
    <name>NEWCONTEXTROOT</name>
    <value>foobar</value>
    </variable>
    </variable-definition>
    <module-override>
    <module-name>MyApp</module-name>
    <module-type>ear</module-type>
    <module-descriptor external="false">
    <root-element>application</root-element>
    <uri>META-INF/application.xml</uri>
    <variable-assignment>
    <name>NEWCONTEXTROOT</name>
    <xpath>/application/module/web/context-root</xpath>
    </variable-assignment>
    </module-descriptor>
    </module-override>
    </deployment-plan>
    I get an error:
    weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    /bea/user_projects/domains/devod1/nullplan.xml:0: problem: cvc-complex-type.2.4a: Expected element 'web-uri@http://java.sun.com/xml/ns/javaee' instead of 'context-root@http://java.sun.com/xml/ns/javaee' here in element web@http://java.sun.com/xml/ns/javaee:<nullplan.xml>
    I looked at http://e-docs.bea.com/wls/docs103/pdf/deployment.pdf which says:
    "You cannot use a deployment plan to change the context-root in an application.xml
    file. However, if an application is deployed as a library, you can either change the
    context-root through an weblogic-application.xml file or use the deployment plan
    to change the context-root in an weblogic-application.xml file."
    I don't understand what this means. I'm not deploying my application as a library.
    Does anyone know how to change the context-root for an application?
    Any help would be greatly appreciated!

    Hi James,
    I am quite new to Welogic if i am wrong please correct me.I have re-deployed my application (.war) with this Plan.xml
    &lt;?xml version='1.0' encoding='UTF-8'?&gt;
    &lt;deployment-plan xmlns="http://www.bea.com/ns/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/deployment-plan http://www.bea.com/ns/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false"&gt;
    &lt;application-name&gt;BrowserR08.003&lt;/application-name&gt;
    *&lt;variable-definition&gt;*
    * &lt;variable&gt;*
    * &lt;name&gt;CONTEXTROOT&lt;/name&gt;*
    * &lt;value&gt;BrowserWeb/servlet/BrowserServlet&lt;/value&gt;*
    * &lt;/variable&gt;*
    * &lt;/variable-definition&gt;*
    &lt;module-override&gt;
    &lt;module-name&gt;BrowserWeb.war&lt;/module-name&gt;
    &lt;module-type&gt;war&lt;/module-type&gt;
    &lt;module-descriptor external="true"&gt;
    &lt;root-element&gt;weblogic-web-app&lt;/root-element&gt;
    &lt;uri&gt;WEB-INF/weblogic.xml&lt;/uri&gt;
    &lt;hash-code&gt;1231953167814&lt;/hash-code&gt;
    *&lt;variable-assignment&gt;*
    * &lt;name&gt;CONTEXTROOT&lt;/name&gt;*
    * &lt;xpath&gt;/weblogic-web-app/context-root&lt;/xpath&gt;*
    * &lt;operation&gt;add&lt;/operation&gt;*
    * &lt;/variable-assignment&gt;*
    &lt;/module-descriptor&gt;
    &lt;module-descriptor external="false"&gt;
    &lt;root-element&gt;web-app&lt;/root-element&gt;
    &lt;uri&gt;WEB-INF/web.xml&lt;/uri&gt;
    &lt;/module-descriptor&gt;
    &lt;module-descriptor external="true"&gt;
    &lt;root-element&gt;wldf-resource&lt;/root-element&gt;
    &lt;uri&gt;META-INF/weblogic-diagnostics.xml&lt;/uri&gt;
    &lt;/module-descriptor&gt;
    &lt;/module-override&gt;
    &lt;config-root&gt;/export/home1/tecapp/BrowserR08.003/plan&lt;/config-root&gt;
    &lt;/deployment-plan&gt;
    I do not know wether i will require the other module descriptor definition in this Plzn.xml. Now when I go to following link.
    Deployments --&gt; MyApp --&gt; Testing
    It gives me following url as a test page:
    http://localhost:7001/BrowserWeb/servlet/BrowserServlet
    as soon as i click on to the above link it redirects me to following.
    http://localhost:7001/BrowserWeb/servlet/BrowserServlet/servlet/BrowserServlet
    Same if i remove these context-root part my normal Testing menu shows me following link as my webapp access path
    http://localhost:7001/BrowserWeb &lt;-- My war file name is BrowserWeb.war so it is default name of my deployed application if i am not wrong
    and as soon as i click on above link it redirects me to the following one.
    http://localhost:7001/BrowserWeb/servlet/BrowserServlet
    It means application server know that my full web access page is with '*servlet/BrowserServlet*' because its adding it in both the cases.
    What I want is a constant URL whcih does not change?
    Hope this helps :)

  • How do I change the personal settings and "reset" a used MacBook Air?

    My friend bought a MacBook Air for work but it turned out that his office wasn't MAC friendly so he sold it to me. How do I change the user name/password to be mine? He also asked if I could make sure his personal info. is gone from the computer. I'm not really experienced with Macs - is this something I can do at home and avoid a trip to the genius bar. I'm studying for law school finals and would love to avoid losing time, precious time! Also, on the Macbook I use now I have Microsoft word installed - can I transfer that to the Air and can I transfer my ical entries? Any help would be much appreciated. Sorry if these are silly questions. Thanks.

    Set up the wireless network booting on which, my old mac book or the air?
    Set it up on the old MacBook.
    How will the air even appear on the network if I can't log in?
    Just follow the instructions linked to above. Unless there's a firmware password on the computer, don't be concerned about the fact you don't have a password for it.
    (38013)

  • How do I change the font size and color in my e-mail?

    I'm using the regular MAIL application on my Macbook (OSX 10.5.5) and I'm wondering how to change the font size and color of my incoming and outgoing mail.
    Any suggestions?
    thanks!

    I'm using the regular MAIL application on my Macbook (OSX 10.5.5) and I'm wondering how to change the font size and color of my incoming and outgoing mail.
    For outgoing email you the Fonts and Colors buttons found in the New Message pane (note that settings you make in Mail > Preferences do not affect outgoing messages).

  • How do I change the document name on my iPad after editing it?

    I have forms to fill multiple time for different projects!  On the iPad, I can not tell if they are different because I can't see the changes when saved to iBook or emailed. Do I have to wait until I'm at me PC, if yes the iPad and your app are useless!

    You can change the document name before editing it, using the Duplicate feature.  You can do this in the File Manager by going into ‘Edit’ mode, selecting the file, and choosing Duplicate option.
    Adobe Reader currently does not support saving a copy of a file after changes are made to it (and not yet saved in the original).  This is a feature we would consider for a future update.
    Thanks for your feedback.
    -Gaurav

Maybe you are looking for

  • TS3274 I restored my iPad on iTunes and I still can't get it to turn on, is there anything else that can be done?

    I restored my iPad using iTunes to try to get it to turn on etc. and still it won't do anything.  What else can be done before I have to throw in the towel and send it in?

  • Reading dvd or dvix on ibook 500mhz

    Hi everybody, (May be this issue has already been adressed but i could not find it.) i am the proud owner of a ibook 500 with 640 ram and using Panther 10.3.9. When I read DVD or a Divx, - with an external DVD recorder/player Lacie linked with firewi

  • RMAN Backup Clone

    Hi All, Oracle 10gR2. Usual RMAN backups are taken to tapes using HP Data Protector. Want to create a RMAN secondary backup (daily full backups) on the same SAN storage. So that we can restore very fast. What options do I have to take the backups.

  • Charging iPod abroad--can I plug into the USB port of a foreign computer?

    I'm going to Guatemala and will be bringing my iPod touch. I expect that I'll be in internet cafes on a fairly regular basis. Is there any currency conversion problem if I charge my iPod off of the USB port in a foreign computer? Guatemala uses the s

  • A data-binding issue with a combo box.

    Hi, Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record wh