10.1.3 - OEM Deployment generating invalid orion-web.xml

Hi,
I've playing around with OracleASjms resource adapters, JMS Connector, etc - with some good results. I noticed that one of my test applications, when deployed (via OEM) gets an orion-web.xml which is not according to the XML schema and am wondering whether this is designed behavior.
In my servlet I'm using some logical names for javax.jms.ConnectionFactory and javax.jms.Destination, which I specify in the web.xml. Deploying the ear file I get the change to resolve environment references to 'physical' JNDI locations. I map the logical javax.jms.ConnectionFactory to an OracleASjms resource adapter connection factory (which in turn is pointing to an JMS ConnectionFactory) and the javax.jms.Destination I map to an OracleASjms Administered resource.
The applications deploys and works fine, however I have a question with respect to the orion-web.xml that Oracle is generating based. More specifically I see (<....> are replaced with actual values):
   <message-destination-ref-mapping
         name="<logical name>"
         location="<OracleAsjms/Administerered Object>"/>The element message-destination-ref-mapping isn't declared in the XML schema for orion-web.xml, but still it works, how come?

http://www.oracle.com/technology/oracleas/schema/index .html
http://www.oracle.com/technology/oracleas/schema/orion-web-10_0.xsd
Thanks, jvissers. It seems that orion-web-10_0.xsd is outdated. It is probably that it was posted for the 10.1.3 preview. When the 10.1.3 production release is available, at least that schema is not updated. Hmm, all things that are changing but kept at different places are just very susceptible to inconsistency. Hmm, OracleAs team should probably make automated tests to make sure that they are in sync. (I am just thinking loudly). Let me try to communicate to someone who can further take care of this matter of outdated schemas. Thanks again, jvissers.
Where did you look?Inside my oc4j installation! oc4j will not go to the web to download the oc4j-specific schemas in case of need. The orion-web-10_0.xsd is at OC4J_HOME/j2ee/home/lib/schemas.jar!META-INF/orion-web-10_0.xsd. That is where I looked. So the orion-web.xml generated by OEM is indeed valid.

Similar Messages

  • Orion-web.xml

    What is the siginificanc of orion-web.xml file with respect to 9iAS? It seems to be like a configuration file. But I would like to know where it comes into picture and what role it plays with forms9i/9ias.
    Thanks in advance
    Sheba

    Sheba,
    you use this file to define classpath settings and virtual mappings for a Web deployment context, like /forms90.
    For example: defining
         <virtual-directory virtual-path="/img" real-path="D:\appImages/myImages" />
    in the forms deployment context to access images on the Web will make them accessible through
    http:// server :Port/forms90/img/<image name>
    The virtual directory is created under the context root of the deployment owning the orion-web.xml file
    Frank

  • FORMAUTH Filter in orion-web.xml ignored

    I am trying to use a JAAS Custom Login Module with a customized logon.jsp (and Struts). So I defined a FORMAUTH Filter in orion-web.xml to intercept the logon.
    However, Oracle 10g 10.1.3.2 did not deploy it. Why? How can I fix this problem?
    ===========================================================
    Deployed Application:
    {ORACLE_10_1_3_2_HOME}\j2ee\home\application-deployments\{APPLICATION}\{APPLICATION_WAR}\orion-web.xml contained:
    <?xml version="1.0"?>
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"
         deployment-version="10.1.3.1.0"
         deployment-time="1189531757046"
         development="true"
         jsp-cache-directory="./persistence"
         jsp-cache-tlds="standard"
         simple-jsp-mapping="false"
         temporary-directory="./temp"
         servlet-webdir="/servlet"
         context-root="visit"
    schema-major-version="10" schema-minor-version="0" >
         <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
         <web-app>
         </web-app>
    </orion-web-app>
    ===========================================================
    BUT: APPLICATION.EAR structure:
    APPLICATION_WAR\WEB-INF\orion-web.xml contained:
    <?xml version="1.0"?>
    <!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd">
    <orion-web-app
         deployment-version="10.1.3.1.0"
         temporary-directory="./temp"
         internationalize-resources="false"
         default-mime-type="application/octet-stream"
         jsp-cache-directory="./persistence"
         servlet-webdir="/servlet"
         development="true">
              <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
    <web-app>
    <filter>
    <filter-name>AuthenicationFilter</filter-name>
    <filter-class>gov.dhs.visit.filter.AuthenicationFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>AuthenicationFilter</filter-name>
    <dispatcher>FORMAUTH</dispatcher>
    <url-pattern>*.do</url-pattern>
    </filter-mapping>
    </web-app>
    </orion-web-app>

    I've used this before, and it worked fine. The only difference I can see is that you have a url-pattern element in the filter-mapping config.
    In the short term, try removing that and see if it then works.
    -steve-

  • 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

  • JDev 10.1.3 Preview Create orion-web.xml Problem

    When I use JDev 10.1.3 to create an orion-web.xml file, it generates something like this:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <orion-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd" schema-major-version="10" schema-minor-version="0" servlet-webdir="/servlet/"/>
    Shouldn't it create something without the closing "/>" marker on the <orion-web-app> line?
    9.0.5 did something like:
    <orion-web-app servlet-webdir="/servlet/">
    </orion-web-app>

    If the orion-web-app element does not have sub-elements
    <orion-web-app servlet-webdir="/servlet/"/>
    is equivalent to
    <orion-web-app servlet-webdir="/servlet/">
    </orion-web-app>

  • Orion-web.xml -- web-app-class-loader

    Hi all, I posted this in the jDeveloper section and someone suggested that I ask you guys what the importance of the orion-web.xml file is. Currently my files looks like ...
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
    <orion-web-app servlet-webdir="/servlet/">
    </orion-web-app>
    But it keeps adding the line that I mention below...
    I have a system that consists of multiple projects. When I deploy all projects they all work fine except for one. We discovered that this is due to the following line in the orion-web.xml file in that project ....
    <web-app-class-loader search-local-classes-first="true"/>
    I removed that line and everything is now fine. However, whenever I open up the application in jDev is puts that line back (even if I don't make changes).
    Is there a setting somewhere that is forcing this line to be put there and, if so, why? And how do I switch it off?
    Thanks,
    Russell

    Hey Steve,
    I must admit that this post confused me a bit.
    I can find no deployment plan editor. We have a WAR Deployment Profile, an EAR Deployment Profile and an EJB JAR Deplyment Profile.
    I use the debug functionality (using the embedded OC4J) to test the application locally during development and then deply the EAR Deployment Profile to an EAR file which then gets deployed using an Application Server.
    Further to this I have tried deleting the file (from everywhere), changing the EAR Deployment Properties and even changing the code within the ORION-WEB.XML to say <web-app-class-loader search-local-classes-first="false"/> all to no avail.
    If I remove the file completed, it add its back when I reopen the project. If I change it to false, it changes it back to True.
    Very confused I must admit.
    Thanks,
    Russell

  • Orion-web.xml access-mask not working

    Hi, I am trying to restrict access to a specific application via the orion-web.xml descriptor. This would be OC4J in OAS 10.1.3.4.
    I have done this in the GUI by using the "Advanced Deployment Plan Editing -> Edit Deployment Plan" option. I thought this would be safer than editing the files by hand. The application deploys successfully, and in orion-web.xml of my deployed application, this translates into:
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"       
            deployment-version="10.1.3.4.0"
            deployment-time="1241707803607"
            jsp-cache-directory="./persistence"
            jsp-cache-tlds="standard"
            jsp-taglib-locations=""
            temporary-directory="./temp"
            context-root="MyApp"
    schema-major-version="10" schema-minor-version="0" >
            <access-mask default="deny">
                    <ip-access  ip="127.0.0.1" mode="allow" netmask="255.255.255.255" />
                    <ip-access  ip="192.168.0.100" mode="allow" netmask="255.255.255.255" />
                    <ip-access  ip="192.168.0.101" mode="allow" netmask="255.255.255.255" />
            </access-mask>
            <!-- Uncomment this element to control web application class loader behavior.
                    <web-app-class-loader search-local-classes-first="true"  include-war-manifest-class-path="true" />
            -->
            <resource-ref-mapping name="jdbc/myDB" location="jdbc/myDB" />
            <web-app>
            </web-app>
    </orion-web-app>This looks OK to my eyes, but unfortunately it doesn't restrict any access at all. I have restarted the specific application, and I have also restarted the entire OC4J. No access is restricted; I can pull up the application from any IP address. My intention was to restrict access only to the 2 IP addresses (and localhost by IP) listed above.
    I have reviewed multiple metalink articles on this topic:
    Note 438493.1 - How to Restrict access for EM Database Control only from Specific Hosts / IPs
    Note 178665.1 - How to Restrict Access to OC4J to Specific Hosts or IP Addresses
    Note 311137.1 - How to restrict access to EM website based on IP Addresses/Domain Names
    None of them seem to indicate that I have done anything wrong.
    If anyone has any feedback on this topic, identifies a problem with my config, or has knowledge of a product bug, please respond to this thread.
    Many thanks in advance for your feedback.

    were you able to resolve this?

  • Making sure setting ojsp-init tags-reuse from orion-web.xml is used

    I'm facing a problem with the following setting in my application's orion-web.xml:
    <ojsp-init tags-reuse="compiletime-with-release"/>
    previously, we had this setting in global-web-application.xml, but we would like to specify it per application, to get rid of the OC4J post-installation step to manually add the following lines:
    <init-param>
    <param-name>tags_reuse_default</param-name>
    <param-value>compiletime_with_release</param-value>
    </init-param>
    However, the latter works, and the former doesn't seem to have any effect whatsoever. But as far as I can see, the orion-web.xml is correctly following the XSD:
    <?xml version="1.0"?>
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"      deployment-version="10.1.3.3.0"
         deployment-time="1198148775354"
         jsp-cache-directory="./persistence"
         jsp-cache-tlds="standard"
         jsp-taglib-locations=""
         temporary-directory="./temp"
         servlet-webdir="/servlet/"
         context-root="/messagecontrol"
    schema-major-version="10" schema-minor-version="0" >
         <!-- Uncomment this element to control web application class loader behavior.
              <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
         -->
         <ojsp-init tags-reuse="compiletime-with-release"/>
    </orion-web-app>
    http://www.oracle.com/technology/oracleas/schema/orion-web-10_0.xsd
    Am I missing something here? Do we need to do something specific to make sure the ojsp-init values are actually used? The documentation seems to indicate that the two settings are equivalent:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28961/devconfig.htm#BHCFICDA
    Any help would be appreciated.
    Jaap

    Update:
    In the meantime I've logged a SR for this. The settings "none" and "compiletime" do work and behave the same as their global-web-application.xml counterparts. It's just the "compiletime-with-release" that does not work as expected.

  • Orion-web.xml and resource-env-ref-mapping correct usage

    What happened to resource-env-ref-mapping element in orion-web.xml? I have a 9.0.4.1 server running several .EAR files containing web applications using this attribute to configure JMS related items. But when deploying the .EAR to newer versions (9.0.5.2) of the server this attribute doesn't appear to be valid any longer?
    Here it is in the 9.0.4 documentation:
    http://strogoff.unex.es/oradoc/form_y_report_10g/web.904/b10322/apdx_a.htm
    Any help would be appreciated?

    I should have been more clear about the issue. The error only occurs when running inside the embedded OC4J container of JDeveloper 10.1.2 build 1913. The error does NOT occur in JDeveloper 9.0.3. The application also runs fine when deployed to a 10.1.2 Enterprise application server. The error only occurs in JDeveloper.
    The following error occurs when validating my orion-web.xml file. The entry is:
    orion-web.xml:
    <orion-web-app>
    <resource-ref-mapping name="jms/mQueueConnectionFactory" location="jms/matchingQueueConnectionFactory"/>
    <resource-env-ref-mapping name="jms/mQueue" location="jms/matchingQueue"/>
    </orion-web-app>
    web.xml
    <resource-env-ref>
    <resource-env-ref-name>jms/mQueue</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    java.lang.IllegalArgumentException: Unrecognized parent-elem combination: interface oracle.jdeveloper.xml.oc4j.war.OrionWebApp - resource-env-ref-mapping
         at oracle.javatools.xml.bind.XMLBinding.throwUnrecognizedElem(XMLBinding.java:127)
         at oracle.jdeveloper.xml.j2ee.war.WebAppBinding.elem2intImpl(WebAppBinding.java:637)
         at oracle.javatools.xml.bind.XMLBinding.elem2int(XMLBinding.java:104)
         at oracle.javatools.xml.bind.XMLBinding.insertBetween(XMLBinding.java:88)
         at oracle.javatools.xml.bind.BindingContext.insertNewElement(BindingContext.java:121)
         at oracle.javatools.xml.bind.BindingContext.insertElem(BindingContext.java:95)
         at oracle.javatools.xml.bind.BindingContext.setElement(BindingContext.java:71)
         at oracle.javatools.xml.bind.SetImpl.callSetterForUniqueElem(SetImpl.java:66)
         at oracle.javatools.xml.bind.SetImpl.callSetter(SetImpl.java:57)
         at oracle.javatools.xml.bind.SetImpl.invoke(SetImpl.java:26)
         at oracle.javatools.xml.bind.ElementProxy.invoke(ElementProxy.java:35)
         at $Proxy10.setWebApp(Unknown Source)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.ensureLocalPageReposRootIsSet(Oc4jWorkspaceConfig.java:633)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.transmogrifyConfigFiles(Oc4jWorkspaceConfig.java:269)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.configureAll(Oc4jWorkspaceConfig.java:114)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(Oc4jStarter.java:618)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(Oc4jStarter.java:268)
         at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:756)
         at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:461)
         at oracle.ide.runner.RunProcess$2.run(RunProcess.java:699)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • O/R tool generates invalid ejb-jar.xml for 1-n cmp bean-to-bean relations

    TopLink generates:
    <ejb-relation>
    <ejb-relation-name>Parent-Child</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Parent-has-childs</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>Parent</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>childs</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>child-owned-by-Parent</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete></cascade-delete>
    <relationship-role-source>
    <ejb-name>Child</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    what's wrong?
    it's missing the following tag:
    '<cmr-field-type>java.util.Collection</cmr-field-type>'
    which should be in the <cmr-field> element after the <cmr-field-name>.
    I cannot get the UI tool to add this tag, whenever I manually add it to the ejb-jar.xml it gets removed the next time I generate the ejb-jar.xml. Additionally, if I try to update the project from the ejb-jar.xml, the O/R tool loses ALL my mappings for entity beans.
    Expected questions:
    TopLink 9.0.3
    WebLogic 7.0.1
    CMP 2.0
    JDK 1.3.1_03
    Yes the getter/setter are defined (on the local interface and bean)
    FYI,
    Andrew

    This should take care of it
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>IDMaster</ejb-name>
    <home>maxateev.mondial.brg.idmaster.IDMasterHome</home>
    <remote>maxateev.mondial.brg.idmaster.IDMaster</remote>
    <local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
    <local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
    <ejb-class>maxateev.mondial.brg.idmaster.IDMasterEJB</ejb-class>
    <persistence-type>Container</persistence-type>
    <ejb-local-ref>
    <ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
    <local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
    </ejb-local-ref>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>IDMaster</abstract-schema-name>
    <cmp-field>
    <field-name>idPrefix</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>idValue</field-name>
    </cmp-field>
    <primkey-field>idPrefix</primkey-field>
    <ejb-local-ref>
    <ejb-ref-name>ejb/IDMasterLocalHome</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>maxateev.mondial.brg.idmaster.IDMasterLocalHome</local-home>
    <local>maxateev.mondial.brg.idmaster.IDMasterLocal</local>
    </ejb-local-ref>
    <query>
    <query-method>
    <method-name>findAllIDMasters</method-name>
    <method-params/>
    </query-method>
    <ejb-ql><![CDATA[SELECT OBJECT (f) FROM IDMaster as f]]></ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>IDMaster</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

  • About the element, 'expiration-setting' in the orion-web.xml

    orion-web.dtd says
    <!-- Specifies the Expires setting for a given set of resources, useful for caching policies (for instance for browsers not to reload images as frequently as documents etc). -->
    <!ELEMENT expiration-setting (#PCDATA)>
    <!ATTLIST expiration-setting expires CDATA #IMPLIED
    url-pattern CDATA #IMPLIED
    >
    I thought this element will help for tuning.
    My question is,
    if there is a frequently accessed images, and url-pattern is "http://image.myserver.com", i assumed the syntax like the following,
    <expiration-setting expire="?" url-pattern="http://image.myserver.com">
    but i don't know what's the meaning of the attribute value 'expire'? And big or small one in my situation? and Basically does it work in the oc4j server?
    null

    See
    Oracle® Application Server Performance Guide
    *10g Release 2 (10.1.2)*
    *6.6 Improving Servlet Performance in Oracle Application Server*
    Here is an example:
    --- snip ---
    <PRE>
    <orion-web-app
    deployment-version="2.0.0.0"
    jsp-cache-directory="./persistence"
    temporary-directory="./temp"
    servlet-webdir="/servlet/">
    <!-- Session-tracking settings for this application.
    Do not use cookies to track servlet sessions -->
    <session-tracking cookies="disabled"/>
    <expiration-setting expires="86400" url-pattern="*.jar"/>
    <expiration-setting expires="never" url-pattern="*.gif"/>
    </orion-web-app>
    </PRE>
    --- snap ---

  • Deployment plan to update web.xml

    Hello,
    Is it possible to use a deployement plan to update the web.xml file of an war inside an ear ?
    I would like to map a servlet on a new URI using a new workmanager by configuration (I mean once my application is built) I suppose it is possible to use the deployment plan to add a section inside the web.xml.
    For example, I would like to add the folowing section :
    <servlet>
    <servlet-name>DummyServlet</servlet-name>
    <servlet-class>com.company.servlets.DummyServlet</servlet-class>
    <init-param>
    <param-name>wl-dispatch-policy</param-name>
    <param-value>DummyWorkManager</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>DummyServlet</servlet-name>
    <url-pattern>/myDummyServlet</url-pattern>
    </servlet-mapping>
    Thank you for helping me on this point
    Best Regards,
    C.

    To my knowledge you can not add elements to your deployment descriptors, but you can change them, for example
    say we have the following ejb-jar.xml
    <ejb-jar ...>
        <enterprise-beans>
            <session>
                <ejb-name>Bedrijf</ejb-name>
                <env-entry>
                    <env-entry-name>something</env-entry-name>
                    <env-entry-type>java.lang.String</env-entry-type>
                    <env-entry-value>iets</env-entry-value>
                </env-entry>
            </session>
        </enterprise-beans>
    </ejb-jar>and we want to change the value of something. Now we can generate a plan.xml (for example by using weblogic.Plangenerator
    http://download.oracle.com/docs/cd/E13222_01/wls/docs90/deployment/wlplangenerator.html). When we do this for an EAR
    file we get something like the following:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
      <application-name>test</application-name>
      <variable-definition>
        <variable>
          <name>SessionDescriptor_timeoutSecs_12870427304900</name>
          <value>1800</value>
        </variable> 
        <variable>
            <name>something</name>
            <value>anders</value>
        </variable>
      </variable-definition>
      <module-override>
        <module-name>EJBSessionBeans.ear</module-name>
        <module-type>ear</module-type>
        <module-descriptor external="true">
          <root-element>weblogic-application</root-element>
          <uri>META-INF/weblogic-application.xml</uri>
          <variable-assignment>
            <name>SessionDescriptor_timeoutSecs_12870427304900</name>
            <xpath>/weblogic-application/session-descriptor/timeout-secs</xpath>
          </variable-assignment>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>application</root-element>
          <uri>META-INF/application.xml</uri>
        </module-descriptor>
        <module-descriptor external="true">
          <root-element>wldf-resource</root-element>
          <uri>META-INF/weblogic-diagnostics.xml</uri>
        </module-descriptor>
      </module-override>
      <module-override>
        <module-name>Model.jar</module-name>
        <module-type>ejb</module-type>
        <module-descriptor external="true">
          <root-element>weblogic-ejb-jar</root-element>
          <uri>META-INF/weblogic-ejb-jar.xml</uri>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>ejb-jar</root-element>
          <uri>META-INF/ejb-jar.xml</uri>
           <variable-assignment>
            <name>something</name>
            <xpath>/ejb-jar/enterprise-beans/session/[ejb-name="Bedrijf"]/env-entry/[env-entry-name="something"]/env-entry-value</xpath>
            <operation>replace</operation>
          </variable-assignment>
        </module-descriptor>
      </module-override>
      <module-override>
        <module-name>Userinterface.war</module-name>
        <module-type>war</module-type>
        <module-descriptor external="true">
          <root-element>weblogic-web-app</root-element>
          <uri>WEB-INF/weblogic.xml</uri>
          <hash-code>1287042734068</hash-code>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>web-app</root-element>
          <uri>WEB-INF/web.xml</uri>
        </module-descriptor>
      </module-override>
      <config-root>...</config-root>
    </deployment-plan>To this plan.xml we added a variable definition
    <variable-definition>
          <variable>
            <name>something</name>
            <value>anders</value>
        </variable>
    </variable-definition>To change the contents of the variable something we add the following to the ejb-jar module section
    <module-descriptor external="false">
          <variable-assignment>
            <name>something</name>
            <xpath>/ejb-jar/enterprise-beans/session/[ejb-name="Bedrijf"]/env-entry/[env-entry-name="something"]/env-entry-value</xpath>
            <operation>replace</operation>
          </variable-assignment>
        </module-descriptor>The same steps can be followed when you want to change the contents of your web.xml (but note that the elements must be present
    otherwise the xpath assignment will not work)

  • 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

  • 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

  • Erasing webb-app element in orion-web

    Hi,
    In documentation about a file orion-web.xml, there is a information that one is allowed to put into that file element &lt;web-app&gt; 'to augment the normal config settings in web.xml.' So I did, and everything works fine when works in jdeveloper with standalone OC4J.
    But when deploy to OAS 10G(by EM), in application-deployments directory, Enterprise manager erased element &lt;web-app&gt; from orion-web.xml, and my app couldn't start, because it needs information from &lt;webb-app&gt;&lt;context-param&gt;.
    When I edit orion-web.xml on OAS manually, my app works. Of course till next deployment only.
    Looks like a bug. Am I wrong?

    I've used this before, and it worked fine. The only difference I can see is that you have a url-pattern element in the filter-mapping config.
    In the short term, try removing that and see if it then works.
    -steve-

Maybe you are looking for

  • [JS] Find hyperlinks in a block of text

    Is there any way I can easily, given a block of text, find which hyperlinks have their SourceTexts inside that block of text, or overlapping it? The only way I could think of was to loop through all the hyperlinks in the document and then check to se

  • Ripping Dvd's

    I am trying to use my new ipod and i was wondering does Super DVD to Ipod Converter,rip dvds to your computer and then convert them so itunes can use it? Please answer this somebody who know this!!!   Windows XP  

  • Flash player goes green and crackling

    For the last couple of months any time i use the flash player for anything after either a few mins or even a few seconds the video stops, the timer on the bottom starts fast forwarding and the screen goes green. All you can hear then is a crackling s

  • My I Phone 4s stopped working/ won't even turn on. What should I do?

    My I Phone 4s stopped working/ won't turn on. What should I do?

  • How can i personnalize search page ????

    When i bring up orig search page has the firefox insignia how do i personnalize it ??? Tried drag and drop but no luck, only has gibberish.... like xxxxpppppwwwwwkkkkkkk etc. Any help would be appreciated. And Thank You