OC4J 9.0.4 - Change the overall root / to different root

How can I change the default root "/" to something like "/webapps" for all applications without setting each application root to "/webapps/appname" in the http-web-site.xml file? We are going to use a proxy to access the OC4J and would like both the proxy and the application server to have the same root (proxy: mysite.com/webapps, ocj4: oc4jsite.com/webapps).

Jan,
I assume you're using OC4J stand-alone.
I recall that in one of the Apache Web Server configuration files, there is a setting which allows directory browsing and the default is to not allow it.
I'm guessing that OC4J probably has a similar setting and if there is no setting in any of the configuration files, then there could possibly be a System property, probably undocumented, I'll bet, that handles this.
Happy hunting!
Good Luck,
Avi.

Similar Messages

  • 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 :)

  • 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 overall duration of a project.  I did it once but I can't remember and can't find the answer.

    How can I change the overall duration of a project.  I did it once but I can't remember and can't find the answer.

    You could add more content.
    Or if the project contains stills, these can be lengthened. Double-click on a still photo to open the Clip Inspector. Adjust the duration by typing in the Duration box. Be aware though that if you have transitions either side of the still, you may get odd results with the duration. See this thread for more details:
    https://discussions.apple.com/thread/4269161?tstart=0
    John
    PS. I'm assuming you want to lengthen the project, not shorten it.
    Message was edited by: John Cogdell - added PS

  • Using javascript to change the "Overall Result" cell in WAD

    Hi experts,
    I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
    I dragged the web item "Script" into my web template and I inserted the following code:
    function change_overall_result_to_average() {
    var cell = document.getElementsByTagName("TD");
    var cellText;
    for (i = 0; i < cell.length; i++)
          cellText = cell<i>.innerText;
               if (cellText == "Overall Result")
                     cell<i>.innerText = "Average";               
    In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
    I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
    Best Regards,
    Morten

    Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
    After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
    [http://google.com/search?q=webuijsf+domnode+site:sun.com].
    If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

  • Is it possible to change the OVERALL RESULTS to TOTAL?

    Hi Guys,
    When we select a field and in the properties of that field select the option Always Display Results row the query displays the total for that field but the text for the total is shown as OVERALL RESULTS. Is it possible to change that to TOTAL instead of overall results?
    Thanks

    Hi,
    There is one SAP note available to change text of Result and Over all result to some other text. You can search that note in service.sap I dont have it with me.
    But the yeast is if you change that it will be applicable to all the reports and it will change the text for all the reports. In order to change it at report level you may wanna use work-book. Not sure what is the solution if you are using web-templates.
    Regards,
    Akshay

  • 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/

  • Changing the overall Length

    Hi all, i'm new to motion and this forum. I am currently working on a wedding video for a friend of mine. I am using one of the templates in motion and everthing works great but the length is too short between scenes. (they move to quick. Since i'm new and using a template i have not gotten into the guts of how motion works; that being said, is there a way to change the length in one full swoop? Meaning increasing each scene the same amount of frames? I hope that makes sence? Thanks in advance

    you get an approximate frame rate by using playmcF() and passing the appropriate parameters:
    function playmcF(mc:MovieClip,fps:Number,startFrame:Number,endFrame:Number){
    clearInterval(mc.playI);
    mc.playI=setInterval(fpsF,1000/fps,mc,endFrame);
    mc.gotoAndStop(startFrame);
    function fpsF(mc:MovieClip,endFrame:Number){
    mc.nextFrame();
    if(mc._currentframe==endFrame){
    clearInterval(mc.playI);
    p.s.  improvements can be made on this if timing is critical

  • Changing the overall 'Appearance' colour

    SystemPreferences->Appearance:Appearance provides a hard-coded choice only between two none-too-pretty colours labelled 'Blue' and 'Graphite'. (In contrast to 'Highlight Color' directly underneath it, whose pop-up offers many choices plus a customizable colour!)
    Granted, if colour-customization were made available in 'Appearance', a user could foolishly choose a colour that may conflict with other elements of the GUI; for example, black would obscure the (name of) the action on the default button of any panel. But that would be a user error (and perhaps the way to balance it would be to allow further customization: a choice of colour for GUI text) which the user could quickly rectify; such an option would not be a design flaw.
    So much for the digression: the question is: is it possible to change the 'Appearance' colour with a 'defaults write' in Terminal or by any other workaround, and if so, how?

    Unless you are really expert at Terminal commands, try a third party system enhancer. You can Google for an appropriate one for you.

  • Can you change the UseNames to a different field? e.g. FirstName+Lastname rather than displayname?

    Can you change the UseNames to a difference field? e.g. FirstName+Lastname rather than displayname?
    I have the problem that all our display names are lastname, firstname so when you join if your name is Fred Bloggs it will announce "Bloggs, Fred is joining the confernce" I'd rather it say "Fred Bloggs is joining the conference"
    I cannot change the display name used in the AD as lastname, firstname is the corporate standard.

    Please refer to http://social.technet.microsoft.com/forums/lync/en-US/839ef1ad-522b-4191-8e90-3e277d318516/ms-lync-ms-exchange-display-name-attributes 
    You can use ABSconfig from Lync Reskit tools
    Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph

  • When I add a new bookmark sub-folder, it also changes the name of a different folder to the name of the new sub-folder

    When I add a new bookmarks sub-folder, it also changes the name of another folder to the name of the new sub-folder. For example, I have folders A, B, C - I add a sub-folder to A and call it X - it does that and also changes the name of C to X.

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • I want to change the rescue email to different email

    Hi i have problem with my account i forget security question and rescue email wasn't used anymore how i can change my rescue email thank you

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    Changing the rescue email address requires supplying two of the answers. They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (108347)

  • Can I change the overall text size for the app interface...NOT the titler

    How can I increse the font size globally for all panels?? I need to make it larger I have looked for the answer, is there one...Coming from FCP which is easily changed, please help these old eyes! Thanks   CS5 on a Mac

    As time goes on, PP might just have all the things I love about FCP along with all the things I love about PP..... I hope Apple(they probably never come here) would take note of the steps Adobe take to listen to their customers. The one other thing I noticed is that premier's time indicator moves way too sensitively even when snapping is selected. They might wanna.............................they might wanna make it so i can right-click and send to a feature request form. I'm getting tired of opening that page. Never the less submitted.

  • How do I change the overall size of a document including the contents?

    I have created a document for web at 1024 x 768. I would like to reduce the size of the document without having to resize all the content manually. Is there an easy way to do this?

    See my previous post: check 'Show Import Options' in Place box. then you'll get another dialog box, similar to this:
    Here you can specify page range, crop options, layers visibility.
    However, if your document contains too many pages to manage them manually (as it is on my screenshot), you should consider another option of placing - this nice Zanelli script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both-pdf-and-i ndd-files.php

  • Change the issue quantity for different plants

    We are facing a problem in the following issue.
    A material is being used in two plants. The material is procured from vendors in packets. The pack quantity varies for each plant for the same material since it is procured from different vendor. The base unit of measure for the material in the material master is maintained as NOS and the unit of issue is PAC. The alternative unit of measure in the material master can be maintained for only one PAC. If the pack quantity varies for different plant, how to maintain in the material master.
    For example : -
    Plant I u2013 Vendor A u2013 Pack quantity u2013 200nos.
    Plant II u2013 Vendor B u2013 Pack quantity u2013 300 nos.
    While creating reservation in plant II for one pack, the stock keeping quantity is 200 nos. On issue the issue quantity is 200 nos, but our requirement is the system should issue 300 nos. Kindly give solution to the problem.

    Hy afzal,
    I don't think it is possible to maintain different Conversion factor for 2 different plant for a single material.
    Acording to me there is 3 way to comeout of this problem.
    1) Create different Material codes for both plants.
    2) Insted of using alternate unit of measure use Batch specific unit of measure.But for this Materials are Batch Managed.
    [Batch Specific Unit of measure|http://help.sap.com/bestpractices/BBLibrary/Documentation/Q24_BB_ConfigGuide_EN_US.doc]
    3) Try to convince one of the vendor to change its packing qty/Packet.
    Regards,
    Dhaval
    Edited by: Dhaval Choksi on Jul 31, 2008 11:25 AM
    Edited by: Dhaval Choksi on Jul 31, 2008 1:26 PM

Maybe you are looking for