OC4J orion-application.xml - elements and attributes

Hi. i read in oracle docs sentense like this: "Each property maps to an element attribute in the orion-application.xml descriptor." These properties are from deployment plan and i need to know what is the name of the element in orion-application.xml wich is mapped to webSiteBinding property (from deployment plan).

I just did a quick test of this, and it seems to work for me.
I used the following XML:
<?xml version="1.0" encoding="iso-8859-1"?>
<Employees xmlns="
http://www.foo.com/Employees">
<Employee Id="001">
<LastName>Davis</LastName>
<FirstName>Kirk</FirstName>
</Employee>
<Employee Id="002">
<LastName></LastName>
<FirstName>James</FirstName>
</Employee>
<Employee Id="003">
<FirstName>Anthony</FirstName>
</Employee>
<Employee>
</Employee>
</Employees>
With the XPath "/Employees/Employee" I got rows in the data
set and things displayed fine in my page. Changing it to
"/employees/employee" caused the data set to have no rows which I
would expect since things should be case sensitive.
Can you provide me with some sample XML and XPath that
doesn't work?
Thanks!
--== Kin ==--

Similar Messages

  • Newbie: orion-application.xml in both deployment and applications dirs

    Okay,
    I am using OAS 10.1.2.2 and have deployed an OC4J instance with a web application. The web application that I deployed (from a .war file) was installed normally but for some reason I have an orion-application.xml file in both the +/application-deployments/webappname/+ and the +/applications/webappname/META-INF/+ directories. They look almost identical with the differences noted below:
    applications directory version:
    This file has a complete definition for the jazn provider but is missing a reference to the principals.xml file.
    jazn section looks like this:
         <jazn provider="LDAP" location="ldap://ldap.server.edu:389">
              <property name="ldap.user" value="cn=username" />
              <property name="ldap.password" value="!password" />
              <property name="ldap.cache.session.enable" value="false"/>
              <property name="ldap.cache.realm.enable" value="false"/>
              <property name="ldap.cache.policy.enable" value="false"/>
              <property name="jaas.username.simple" value="true" />
              <jazn-web-app auth-method="SSO"/>
         </jazn>
    application-deployments directory version:
    It points to a principals.xml file and gives a generic definition for the jazn provider (specifies provider="LDAP" and a default-realm but no location attribute in the jazn tag).
    jazn section looks like this:
         <jazn provider="LDAP" default-realm="whidbey1">
              <jazn-web-app auth-method="SSO"/>
              <property name="jaas.username.simple" value="true" />
         </jazn>
    I assume the one defined in the +/applications/webappname/META-INF+ is the proper one since it has all the detailed OID connection information. However, are both needed? If so, why? If not, which one is being used and why would there be two of them?
    I've checked all the documentation and have found several references to it being installed in one or the other place but not both.
    Any help you can provide would be much appreciated.

    Hi,
    The difference between these files is this:
    The one in the applications/ tree is the one that comes packaged in your ear file. This is a way to package your deployment preferences. At deployment time, enterprise manager extracts this file to configure your deployment.
    The one in the application-deployments directory is the one that is actually in use.
    LDAP connection from OC4J containers is specified on the container level, because this is container-level security. This means that using the enterprise manager, you configure your container to connect to the LDAP (enterprise manager, tab administration, item Identity Management). In the orion-application.xml, you no longer need the details because they are stored on container level. So these are removed when deploying your application, leaving only what you see.
    The configuration parameters you specify can be added as container startup parameters using -Dparam=value.
    Regards,
    Jeroen van Veldhuizen

  • [JS-CS4] - How to read the XML Element and its Attributes

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

  • Restart of OC4J required ? If orion-application.xml changes

    Hello,
    If i make a change in the orion-application.xml, basically i am interested in changing the JAZN LDAP configuration settings --- do i need to restart the OC4J ?
    If yes, where is this mentioned in the documentation ?
    Does the answer (yes / no) apply to all versions (10g minor versions) of OC4J.
    Please confirm.
    Thanks in advance.
    Warm Regards
    AB

    Hi Deepak,
    I fully agree with you that changes in the orion-application.xml require a restart.
    Infact, when i do that practically, a message is displayed on the OEM console that the changes have been saved to the XML file but for the changes to take effect, i need to restart my container.
    Agreed.
    But where is it specifically mentioned in the official documentation ?
    In the link you forwarded, there is not a single mention about orion-application.xml
    Every statement over there talks about jazn.xml
    I even checked the documentation for orion-application.xml, there too i could not locate that statements like you gave "any change to the jazn configuration (either in jazn.xml or otherwise) will need a restart."

  • Integrating orion-application.xml deployment with JDeveloper?

    Hi all,
    I am trying to create JAAS secured web/ear application but haven't found the
    way to integrate the orion-application.xml file in the JDeveloper
    deployment process. An alternative would be to insert orion-application.xml tags
    into orion-web.xml and copy this one to the usual WEB-INF along with web.xml
    another possibility would be directly copying orion-application.xml to the
    %J2EE_HOME%\application-deployments\MyApp\orion-application.xml after deployed
    in the OC4J Server, but would be lot easier just having JDeveloper deploy it
    automatically, what is the way to do it?
    Regards,
    Giovanni

    See http://forums.oracle.com/forums/message.jsp?id=978411&gid=315684

  • Customized orion-application.xml

    Configuration:
    Jdeveloper 9i Release 2 Production Version
    I have a customized orion-application.xml file under <project-directory>/src/META-INF directory. I would like to package this along with my application.
    How do I include it in my Deployment Profile (.ear)?
    TIA,
    Ranga

    Another OTN thread on this topic:
    http://forums.oracle.com/forums/message.jsp?id=988554
    The middle of that thread (read the beginning to get the full context) has an answer relevant to your question here.
    ------ begin quoted --------------------------------------------------------------------
    Hello,
    JDeveloper 9.0.2 is limited in this area unfortunately. For the use case you are describing, there are two work-arounds:
    1) Use an Ant build file (or any other script) as you mentioned.
    2) Do your testing in the embedded OC4J server instead of an external OC4J server. You should then be able to make manual changes to the orion-application.xml file used by the embedded server -- it's in the Workspace directory and has a name like "Workspace1-oc4j-app.xml".
    We were expecting users to use Oracle Enterprise Manager (OEM) to configure production J2EE applications, since JDeveloper is a development tool whereas OEM is the real server administration tool. For some time, we've debated internally on the JDev team whether that kind of feature separation across Oracle products makes sense. It's clear that developers like you need to perform some administration tasks in the course of testing a production app, so we focused on allowing that for JDeveloper's integrated OC4J server ("embedded OC4J") and left the administration of an external OC4J server to OEM.
    For future JDeveloper releases, we will probably have an increasing level of direct support for OC4J administration, but to what extent we will pursue that is still in discussion.
    For 9.0.3, I've filed bug 2392697 to track the issue you are reporting (with reference to this OTN thread) to make sure that it is resolved properly for the 9.0.3 release.
    ------ end quoted -----------------------------------------------------------------------

  • Autocreate-tables="false" orion-application.xml

    using oc4j standalone(9.0.3). CMP2.0. jeveloper(9.0.3).
    The jdeveloper Domain UML entity diagram and generated
    entity beans are deployed with default tables generated. The EJB2.0 Dev Guide(9.0.3), says to copy the generated orion-ejb-jar.xml from the deployment directory to the source meta-inf directory to prevent the tables from being re-genrated in the database. However the EJB2.0 Howtos say to set autocreate-tables="false" in orion-application.xml to do this.
    Do I need the orion-application.xml file in the application ear file in addition to the orion-ejb-jar.xml? So far I've been able to deploy and run without any orion files, and I would rather keep them to a minimum

    "Self I said..."
    Got frostbite waiting for a reply. I tried deploying
    with just the orion-ejb-jar.xml in the application ear file. Table were not created, so it looks like I can go with just one orion file for now. I can leave the orion-application.xml with autocreate=false, out of the ear file, for now anyways.

  • Orion-application.xml

    I am packaging an application for deployment. Using JDeveloper, I created an orion-application.xml and it was placed in src/META-INF. When I deploy to an ear file, I see that my orion-application.xml is packaged. However, when I deploy it to my stand-alone OC4J instance, a new, default orion-applicaiton.xml is created and mine is nowhere to be found. I see no errors reported in any of the logs about any possible syntax errors with mine. Anyone know what I may have done wrong? Thanks!

    Did you check how the EAR was formed by your JDeveloper? There should be an orion-application.xml file with in META-INF dir starting from the root of your ear file check for this.
    Any how when it you deploy to standalone oc4j, it modifies your packaged orion-application.xml file a little bit i.e it addes the items to it and then deployes.
    The items that gets added to orion-application.xml before it gets deployed is as follows.
    <namespace-access>
              <read-access>
                   <namespace-resource root="">
                        <security-role-mapping>
                             <group name="jazn.com/administrators"/>
                        </security-role-mapping>
                   </namespace-resource>
              </read-access>
              <write-access>
                   <namespace-resource root="">
                        <security-role-mapping>
                             <group name="jazn.com/administrators"/>
                        </security-role-mapping>
                   </namespace-resource>
              </write-access>
         </namespace-access>
    </orion-application>
    -Mallik

  • Orion-application.xml gets overwriten when deploying with admin_client.jar

    Hi,
    I am trying to deploy an ear in OC4J 10.1.3.3.0. The ear contains a META-INF folder with a application.xml and a orion-application.xml files.
    When running the admin-client command line, the deployment overwrittes the orion-application.xml file.
    I really don't know how to solve this problem.
    What else could I do?

    Greetings,
    The file orion-application.xml is an oc4j-specific file. If you do not create this yourself it will be created during deployment of your application.
    Reference for additional information:
    "OCA Oracle Application Server 10g Administrator Exam Guide"
    This is an Oracle Press book and treats the topic very thoroughly.
    -Michael

  • Check Required Elements and Attributes in JAXB

    Hi
    I need check required elements and attributes in JAXB java classes , if there are any value for them place it , otherwise place default value in xml file , because of it I upgrade JAXB2.0 to JAXB 2.1 to support "required" in "XmlElement" , I read in "JavaWS(JAXB)Tutorial.pdf" that JAXB itself check required elements and attributes , if there are any value for them place it , otherwise place default value in xml file , the exact part of document is :
    << A property is said to have a set value if that value was assigned to it during unmarshalling or by invoking its mutation method. The value of a property is
    its set value, if defined; otherwise, it is the property’s schema specified default value, if any; otherwise, it is the default initial value for the property’s base type as it would be assigned for an uninitialized field within a Java class. >>
    I want to know , dose JAXB do this task ? (now I work with JAXB2.1 but it doesnt do this task.Maybe I must set some configuration)
    and if JAXB doesnt do it , how I can check required elements and attributes in JAXB ?
    Please help me.
    Shariat

    its all on Apple's Developer site
    http://developer.apple.com/DOCUMENTATION/AppleApplications/Reference/FinalCutPro _XML/index.html

  • Orion-application.xml location

    Hi,
    I am building an EAR file in JDeveloper 10.1.3.4 and then deploying it on 10G server. I need to add the orion-application.xml file to my EAR file. Where should I put it relatively to the home directory of my web application?
    This file already exists on the server in application-deployments/<app_name> directory, however it was copied there manually.
    thanks in advance

    You have to put it in the META-INF of the EAR. The directory where the application.xml resides.
    --olaf                                                                                                                                                                                                                   

  • Setup meta-inf/orion-application.xml through jdeveloper

    Hi,
    I have a bc4j application. I don't want to use the default orion-application.xml file.
    I created a new one and put that under a new folder named meta-inf.
    In project properties, I created a new file groups named meta-inf and defined my new meta-inf folder.
    when the project gets deployed, doesn't have my custom orion-application.xml file.
    it is still using the default one.
    Any idea?
    thanks,
    Setare

    Hi,
    you can only have one orion-application.xml in a project and it need to be in the specified location. You can change the default with your file, but this is what you can do.
    If you don't believe, open the deployment profile of your application, which is the part creating teh WAR and EAR file, and add a new File Group pointing to this directory (note that the directory must be under the SRC folder of the project
    Frank

  • Parsing (COunting Elements and Attributes)

    Can anyone point me to the method sfor counting elements and attributes in a parsed XML document. For example, I have a XML document that contains a number of 'word' files, I need to produce a printout that gives the total number. The files have a size attribute and I need to calculate and printout the total size of all the files together

    ChuckBing,
    Thanks for the pointers. I now have the following method:
    }  public void startElement(String elementName, AttributeList al) throws SAXException
          String attributeValue;
          if (elementName.equals("PRICE"))
          if(al.getLength()>0)
          for(int j = 0;j<al.getLength();j++)
            attributeValue = al.getValue(j);
            System.out.println("Total Attribute value is " + attributeValue);
          }This obviously allows me to extract the detail from "PRICE" but "PRICE" actually has two attributes. I can't find another method that allows me to extract out the detail for a specific attribute.
    Can you suggest anything?

  • How to move some xml element and its content to a new frame

    Hi All,
    How to move some xml element and its content to a new frame.

    Hi Chinnadk,
    Sorry my code its comment some lines. Now only I check the forum thread, you just try one more time.
    #target InDesign;
    #include "/Program Files (x86)/Adobe/Adobe InDesign CS5.5/Scripts/XML Rules/glue code.jsx"
    var myDoc = app.activeDocument;
    //____________________ XML RULE SET
    var myRuleSet = new Array (new margintag);
    with(myDoc){
        var elements = xmlElements;
        __processRuleSet(elements.item(0), myRuleSet);
    function margintag(){
        this.name = "margintag";
        //this.xpath = "//margintag[@type='mn2']";
        this.xpath = "//margintag";
        this.apply = function(myElement, myRuleProcessor){
            with(myElement){
                app.select(myElement);
                try{
                    var myPrePara = app.selection[0].paragraphs[-1].parentTextFrames[0].paragraphs.previousItem(app.selection[0].paragraphs[-1]);
                    if(myPrePara.characters[-1].contents=="\r"){
                        myPrePara.characters[-1].remove();
                    var myTextframe = myElement.placeIntoInlineFrame(["7p9","6p"]);
                    myTextframe.appliedObjectStyle= myDoc.objectStyles.item("MN1");
                    myTextframe.fit(FitOptions.FRAME_TO_CONTENT);
                    myTextframe.parentStory.paragraphs.everyItem().appliedParagraphStyle = app.activeDocument.paragraphStyles.itemByName("MN1");
                    }catch(e){}
                app.selection = null;
            return true;
    thx,
    csm_phil

  • I need to find all XML elements and add a line break to the text of each of them

    I need to find all XML elements and add a line break to the text of each of them.
    Is this possible with a script?

    I need to go from this ...
    to this...
    but looking for the XML elements (not paragraphs) and then adding text ...
    Thanks for your attention !!!

Maybe you are looking for

  • Problem sending data with HTTPS  using client authentication.

    Hi, I�m tryingto send a message to a secure server using for this client certificate, apparently if I make a GET of "/" (server root) , everything works fine (authentication, and data received), from the moment that I try to ways send data to the "/p

  • Jsp on tomcat

    I found myself in a little bit of a jam. I was asked to have a link to a page in a program running jsp files under tomcat. I found the jsp file but when I change something nothing different is appear. I guess I need to compile, but what and how? The

  • Jsf aware ajax enabled lifecycle

    I am developing a custom component and will be using ajax. My reference uses an approach that requires an alternate lifecycle, but nowhere in the book does it describe how to extend the lifecyclefactory to do this. 1) Can anyone point me at a basic e

  • False sequence of ViewLinks "firing"

    Hi! We're still stuck with 9.03 Preview. But I hope it's more like a general question. The structure of one of our AppModules looks very much like this: AppModule    |    |- WorklistView           |           |- WorklistProxyView (via ViewLink)      

  • Why is my iPhone not finding my network anymore?

    I have been using my home network with my iPhone for months and never has issues. All of a sudden, my iPhone is not finding it anymore. It is encrypted, so I entered the network name and password (the correct one indeed) and I keep getting the messag