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                                                                                                                                                                                                                   

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

  • 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

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

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

  • 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

  • How to include custom application.xml in JDev9i project

    Can anybody explain to me how to include a custom application.xml file when deploying to an .ear file? I need to include application wide security roles, and I can't see where in Jev9i how to do this.
    After searching this forum, I see that jdev9i can't include the orion-application.xml, but I want to include just the standard J2EE application.xml. Is this possible?
    Thanks,
    matt

    The standard application.xml file unfortunately can't be customized in JDev 9.0.2. The reasons why this capability was left out of JDev 9.0.2 are same reasons why the other EAR-level XML files were excluded. The OTN thread
    Re: Regarding 11i and E-business suite
    has a summary of those reasons, which you've probably seen. We know this is an area in need of improvement and will be adding this functionality in the JDev 9.0.3 release. Until then, you'll have to go with a work-around like an Ant build file, batch file, Java application, or some other kind of script.
    Below is a sample Java application which can be used to insert <security-role> elements into an EAR file's application.xml. Modify the main() method to customize for your purposes, and put xmlparserv2.jar on the classpath (in a JDev project, add the "Oracle XML Parser v2" library):
    package mypackage4;
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    public class PostProcessEAR
    public static void main( String[] args ) throws IOException
    final String earFile = "C:\\temp\\myapp.ear";
    final PostProcessEAR postProcess = new PostProcessEAR( earFile );
    postProcess.addSecurityRole( null, "first_role" );
    postProcess.addSecurityRole( "Description for the second role", "second_role" );
    postProcess.commit();
    System.out.println( "Done." );
    private final File _earFile;
    private final ArrayList _securityRoles = new ArrayList();
    public PostProcessEAR( String earFile )
    _earFile = new File( earFile );
    public void addSecurityRole( String description, String roleName )
    if ( roleName == null )
    throw new IllegalArgumentException();
    _securityRoles.add( description );
    _securityRoles.add( roleName );
    * Write out modified EAR file.
    public void commit() throws IOException
    if ( _securityRoles.size() == 0 )
    return;
    final ZipFile zipFile = new ZipFile( _earFile );
    final Enumeration entries = zipFile.entries();
    final File outFile = new File( _earFile.getAbsolutePath() + ".out" );
    final ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( outFile ) ) );
    while ( entries.hasMoreElements() )
    final ZipEntry entry = (ZipEntry) entries.nextElement();
    final InputStream in = zipFile.getInputStream( entry );
    if ( "META-INF/application.xml".equals( entry.getName() ) )
    final XMLDocument modifiedApplicationXml = insertSecurityRoles( in );
    final ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
    modifiedApplicationXml.print( byteOutput );
    final int numBytes = byteOutput.size();
    entry.setSize( numBytes );
    if ( entry.getMethod() == ZipEntry.STORED )
    entry.setCompressedSize( numBytes );
    final CRC32 crc32 = new CRC32();
    crc32.update( byteOutput.toByteArray() );
    entry.setCrc( crc32.getValue() );
    out.putNextEntry( entry );
    byteOutput.writeTo( out );
    else
    // Copy all other zip entries as they are.
    out.putNextEntry( entry );
    copy( in, out );
    in.close();
    out.close();
    private XMLDocument insertSecurityRoles( InputStream in ) throws IOException
    final DOMParser domParser = new DOMParser();
    domParser.setAttribute( DOMParser.STANDALONE, Boolean.TRUE );
    try
    domParser.parse( in );
    final XMLDocument doc = domParser.getDocument();
    final Element docElem = doc.getDocumentElement();
    final Iterator iter = _securityRoles.iterator();
    while ( iter.hasNext() )
    final String desc = (String) iter.next(); // might be null
    final String roleName = iter.next().toString(); // must not be null
    final Element securityRoleElem = doc.createElement( "security-role" );
    if ( desc != null )
    securityRoleElem.appendChild( createPcdata( doc, "description", desc ) );
    securityRoleElem.appendChild( createPcdata( doc, "role-name", roleName ) );
    docElem.appendChild( securityRoleElem );
    return doc;
    catch ( SAXException e )
    e.printStackTrace();
    return null;
    private Element createPcdata( XMLDocument doc, String elemName, String pcdata )
    final Element elem = doc.createElement( elemName );
    elem.appendChild( doc.createTextNode( pcdata ) );
    return elem;
    private final byte[] buffer = new byte[4096];
    private void copy( InputStream in, OutputStream out ) throws IOException
    while ( true )
    final int bytesRead = in.read( buffer );
    if ( bytesRead < 0 )
    break;
    out.write( buffer, 0, bytesRead );

  • Data-source.xml location

    Hi.
    I have a web application, so I included the file data-source.xml and orion-application.xml in the project.
    If I run the application through JDeveloper every thing is ok.
    But if I make a deploy in the server, I get the following error:
    javax.naming.NameNotFoundException: jdbc/smCoreDS not found
    I was checking the ear and war file and I realized that the data-sources and orion-appications.xml were in the war file instead of the ear file.
    How can I make to JDeveloper puts the file in the path META-INF in the ear.file instead of in the path WEB-INF\classes\META-INF in the war file
    regards

    To the web.xml of the web application add
    <resource-ref>
      <res-ref-name>jdbc/smCoreDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
    </resource-ref>

  • Stop boundless growth of myapp/application.xml

    I've put an orion-application.xml in my EAR in META-INF, with the <log> tag commented out.
    (if this is how you turn off creating the application.log ??)
    I see this orion-application.xml file in home/applications but oc4j (9.0.2) seems to ignore
    this deployed version and mfg's it's own an puts into home/application-deployments/myapp
    Any thoughts?
    BTW, I'm managing my own global log from the stdout/stderr from the VM.
    I wouldn't fool with my tool that manages the stdout/stderr logging into my own log file and .bak
    when it grows too big, if OC4J would do this for it's stdout/stderr and each application's logging
    into application.log. A file that grows boundless has a few liabilities in my view. :)
    Thanks, curt

    Boundless growth of all the log files is a big deal for a 24x7 critical app!!
    Bouncing the appserver just to clear the logs doesn't make sense, no?
    Any help in sight? If so how we configure log rolling?
    Thanks, curt

  • Application.xml - Unknown Assembly Tag

    Hello:
    Has anyone encountered the error:
    05/11/18 10:01:39 Error instantiating application at ..... Unknown assembly tag in file:..... <library>
    This happens when I start up the oc4j application server...
    I am positive that it happens because of the following line in my application.xml file:
    <library path="../bvp-web/WEB-INF/lib"/>
    When I take that line out, the applicaiton starts up fine.
    Does anyone have any thoughts as to why I am getting that error? Isn't <library> a tag that is expected to be in the application.xml file?
    I need that line in there since my jsps refer to classes that are in that directory.
    Thanks for your help.

    <library> tag only applies to the orion-application.xml in META-INF/ of a j2ee application or the j2ee/home/config/application.xml, which is actually the orion-application.xml of the default application of oc4j.

  • Add virtual directory to orion-web.xml file of embedded OC4J instance

    I'd like to add a virtual directory to the orion-web.xml file of the embedded OC4J application which comes with JDeveloper (version 10.1.3.3.0.4157). Every time I run my application however, a new orion-web.xml file is created which overwrites the orion-web.xml file with my virtual directory. The orion-web.xml is located in the <JDev_Home>\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\<app Name> directory.
    Does anybody know a solution to this problem?
    Regards,
    Matthieu

    hi there,
    i have the same problem, all the configuration files are included in the EAR file, like application.xml,...
    but the orion-web.xml is not included.
    I dont have that option that you mencioned File->New->Deployment Descriptiors -> web...for oc4j...
    I can create a EAR, WAR or JAR in File->New->Deployment Profiles.
    I need the orion-web.xml to define the MIME types the servlet can return, is it really needed?
    regards,
    Laura

Maybe you are looking for

  • How to create subfolders in a form?

    Hi, I have two folders in my form. Inside each folder i want to create 2 new subfolder. I've tried to do this by associating a panel number to folders in screen painter but i obtain only one level of folder. Can you help me? Thanks.

  • HTTPURLConnection doesn’t work in the Portal

    Hi, We try to develop an web service on the SAP Portal 7.0 SP11, and we have the following behavior. If we implement the following code through java console this works fine. URL url = new URL("https://server/info?A030=M005&A001=2=0&C001=0"); System.o

  • Integrating Apex with Cocoon (does it make pdf from taking data from DB)

    Friends, I integrated Apex with appache with cocoon. Its working fine with reports but i want it to work with form on a table or view.The steps below which i have followed for integrating Apex with Cocoon Steps of pdf Printing of Report with cocoon:

  • How to load composite business key into Dimension

    Hi, Maybe what I'm asking is very basic but, well, here I go: I have a dimension, CollectingAgent, and several tables to populate from: Bank (bank_code, bank_name ) [PK: bank_code] Agency (bank_code, agency_code, agency_name, address, etc) [PK: bank_

  • How to open a browser using button?

    Hi,experts, I create a button in a view in the WDJ. I can get a URL through call a webservice when I click the button and I need open a browser using the URL automatically.  How can I do it? Best regards, tao