Substitution variables in config XML files?

Can we use substitution variables in any of the configuration XML files?

Hi Betsy,
What have you tried, and what error messages are you getting as a result?
Cheers,
Avi. Avi,
Lots of trying, all the error messages are "unknown assembly tag <property>.
The official word, is that the OC4J server does not support this, however they are going to make an enhancement request, so we may see this supported in the furture.
For now, I will have to build an Ant target to create my configuration xml files with my substitutions already there.
Betsy

Similar Messages

  • [svn] 3867: Add new user-agent info to the sample services-config.xml file.

    Revision: 3867
    Author: [email protected]
    Date: 2008-10-24 07:13:10 -0700 (Fri, 24 Oct 2008)
    Log Message:
    Add new user-agent info to the sample services-config.xml file.
    Modified Paths:
    blazeds/trunk/resources/config/services-config.xml

    Resolved! The problem was in the php code the wizard had generated as an example and that I had edited in Dreamweaver. I had tried to start a session and set session objects in the php code. I developed if() { statements} to check the session variable before executing the function in some of my data services. Apparently the wizard does not like this. I removed all references to session. I reconfigured the input types and the return types for each service. With the code now clean the wizard created the example code and placed the proper package in the scr.services package. I still have custom php code and it executes.
    Things I learned:
    If the php code stops when a session variable is not available in the if statement and the data service is refreshed, the wizard will not "look" beyond the if statement.
    Functions downstream of a session variable misshap will show in the data services window but the functions will have a circle icon to the left of the function name and each variable to be passed to the php code will be declared as type = Object in Flashbuilder. The input types and return types will have to be reconfigured for each non-functioning function. Simply commenting out a portion of the php code and attempting a refresh will not make it work again.
    When the wizard is unable to refresh properly because of a stop in the php code it stops working completely so additional refreshes or creation of code is not carried out.
    I decided to create a My SQL table for user and other identifiers rather than attempting the session object again.
    Sorry, I did not make screen shots as I solved this problem. I hope the solution is not hard to visualize.
    Thanks for looking and considering how to help me. I hope my solution works for you.

  • How to specify the webLogic server startup script to use different config.xml  file ??

    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file for startWebLogic_recovery.sh
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

    I guess you're using Weblogic 6.1 with WLCS 3.5. I think you're supposed to work with one config.xml for the same domain, and not have a different config.xml.
    To start up different applications or EJBs, use the "target" property to control which applications to start up for the particular instance.
    YY

  • Trying to dynamically load CSS for project at compile time via config XML file to select CSS file.

    I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
    The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
    I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
      styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
    The path traces out correctly as:
    assets_embed/styles/project2.swf
    For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
      <fx:Style source="assets_embed/styles/project1.css"/>
    If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
    So, why do I need the fx:Style line if the css is being loaded via StyleManager?
    Why is there "cross talk" between style definitions?
    Is there a better way to select styles at compile time?

    I read this quickly so I might have missed a detail.  I think your describing an issue with recent Flex releases that is described in the fine print somewhere.  If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
    import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
    (Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking).

  • Issue with faces-config.xml file

    Hi,
    I'm working on a project which needs more no. of JSF Pages and JSF Navigations,
    But when i trying to creat pages more than 25 pages,the process becoming too slow,does this
    effects the Application performance?Can any one suggest me why it happens and what are the
    limitations for creating the JSF pages.
    Does their any alternative to solve this Issue,I'm thing to create more faces-config.xml files as the
    Jsf pages increases,does this solves?
    Please suggest me.
    Thank you,
    Bandaru,

    Hi Bandaru,
    Are you trying to use the visual diagram option of faces-config? Coz i encountered difficulties when using it with many pages (more than 40) and the faces-config.oxd_faces was no longer able to support the diagram. "Solution" was to use only the overview and the sources of the faces-config. I don't know exactly but my problems were caused by the faces-config.oxd_faces and i don't think it affects performances for the application.
    For information, that was on a Jdev 10.1.3.0.4
    Regards,
    Tif

  • Reference faces-config.xml file from java code.

    I would like to reference the navigation rules I have set up in my faces-config.xml file from inside my source code.
    For example:
    Navigation Rule:
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>pricingEngine</from-outcome>
    <to-view-id>/faces/template/t_pricing_engine.jsf</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    I would like do some sort of lookup by 'pricingEngine' and get '/faces/template/t_pricing_engine.jsf' back.
    Any ideas?

    I would like to reference the navigation rules I have set up in my faces-config.xml file from inside my source code.
    For example:
    Navigation Rule:
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>pricingEngine</from-outcome>
    <to-view-id>/faces/template/t_pricing_engine.jsf</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    I would like do some sort of lookup by 'pricingEngine' and get '/faces/template/t_pricing_engine.jsf' back.
    Any ideas?

  • Jabber-config.xml file, settings do not apply

    hi
    as i have a very simple setup i never used a jabber-config.xml file but as i have some display name issues and i thought it would be good to set some other settings as well i created a file but for some reason the settings do not seem to stick (do not show picture, docked window top right, presence server type
    in internet explorer and notepad the file looks fine but when i paste it in here there seem to be line breaks.
    below is my file
    <?xml version="1.0" encoding="utf-8"?>
    <config version="1.0">
    <Presence>
       <PresenceServerType>CUP</PresenceServerType>
    </Presence>
    <Directory>
       <DirectoryServerType>EDI</DirectoryServerType>
       <ConnectionType>0</ConnectionType>
       <PrimaryServerName>uk-dc2.domain.com</PrimaryServerName>
       <ServerPort1>3268</ServerPort1>
       <SecondaryServerName>uk-dc1.domain.com</SecondaryServerName>
       <ServerPort2>3268</ServerPort2>
       <UseWindowsCredentials>1</UseWindowsCredentials>
       <UseSSL>0</UseSSL>
       <UseSecureConnection>0</UseSecureConnection>
       <CommonName>cn</CommonName>
       <DisplayName>displayName</DisplayName>
       <FirstName>givenName</FirstName>
       <LastName>sn</LastName>
       <EmailAddress>mail</EmailAddress>
       <SipUri>msRTCSIP-PrimaryUserAddress</SipUri>
       <PhotoSource>thumbnailPhoto</PhotoSource>
       <BusinessPhone>telephoneNumber</BusinessPhone>
       <MobilePhone>mobile</MobilePhone>
       <HomePhone>homePhone</HomePhone>
       <OtherPhone>otherTelephone</OtherPhone>
       <Title>title</Title>
       <CompanyName>company</CompanyName>
       <UserAccountName>sAMAccountName</UserAccountName>
       <DomainName>userPrincipalName</DomainName>
       <Location>co</Location>
       <Nickname>Nickname</Nickname>
       <PostalCode>postalCode</PostalCode>
       <City>l</City>
       <State>st</State>
       <StreetAddress>streetAddress</StreetAddress>
       <BaseFilter>(&amp;(objectCategory=person))</BaseFilter>
       <PredictiveSearchFilter>anr=</PredictiveSearchFilter>
       <DisableSecondaryNumberLookups>0</DisableSecondaryNumberLookups>
       <SearchTimeout>5</SearchTimeout>
       <UseWildcards>1</UseWildcards>
       <MinimumCharacterQuery>3</MinimumCharacterQuery>
       <SearchBase1>ou=domain Users,dc=domain,dc=com</SearchBase1>
       <PhotoUriSubstitutionEnabled>false</PhotoUriSubstitutionEnabled>
       <UseSIPURIToResolveContacts>false</UseSIPURIToResolveContacts>
    </Directory>
    <Policies>
       <Screen_Capture_Enabled>true</Screen_Capture_Enabled>
       <File_Transfer_Enabled>true</File_Transfer_Enabled>
       <EnableVideo>false</EnableVideo>
       <InitialPhoneSelection>deskphone</InitialPhoneSelection>
       <UserDefinedRemoteDestinations>false</UserDefinedRemoteDestinations>
       <enableLocalAddressBookSearch>true</enableLocalAddressBookSearch>
       <EnableAccessoriesManager>false</EnableAccessoriesManager>
       <ForceFontSmoothing>true</ForceFontSmoothing>
    </Policies>
    <Options>
       <Set_Status_Away_On_Inactive>true</Set_Status_Away_On_Inactive>
       <Set_Status_Inactive_Timeout>15</Set_Status_Inactive_Timeout>
       <Set_Status_Away_On_Lock_OS>true</Set_Status_Away_On_Lock_OS>
       <StartCallWithVideo>false</StartCallWithVideo>
       <Start_Client_On_Start_OS>true</Start_Client_On_Start_OS>
       <AllowUserCustomTabs>false</AllowUserCustomTabs>
       <ShowContactPictures>false</ShowContactPictures>
       <ShowOfflineContacts>true</ShowOfflineContacts>
       <DockedWindowVisible>true</DockedWindowVisible>
       <DockedWindowPosition>TopRight</DockedWindowPosition>
    </Options>
    </config>

    when a user logs in for the first time and then exits jabber and logsin again the contact pictures are now no longer showing so those setttings seems to stick on the 2nd login
    but not the docked window setting for instance

  • Error message in adf-faces-config.xml file in myEclipse

    hello,
    i'm trying to customize appearance of my JSF/ADF Faces app (which worked fine until now), and tried to insert a adf-faces-config.xml file in my WEB-INF directory, this is it (copied from a tutorial) :
    <?xml version="1.0"?>
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
    <!-- Enable debug output -->
    <debug-output>true</debug-output>
    <!-- Pick accessibility options based on a per-user managed bean -->
    <accessibility-mode>#{user.accessibilityMode}</accessibility-mode>
    <!-- A silly use of EL: English users get one appearance, -->
    <!-- others get another -->
    <skin-family>
    #{view.locale.language=='en' ? 'minimal' : 'oracle'}
    </skin-family>
    </adf-faces-config>
    after saving the file (in myEclipse) i get the following error message on the second line :
    cvc-elt.1 : Cannot find the declaration of element 'adf-faces-config'
    what does that mean and what should i do ?
    thx...

    hello,
    i'm trying to customize appearance of my JSF/ADF
    Faces app (which worked fine until now), and tried to
    insert a adf-faces-config.xml file in my WEB-INF
    directory, this is it (copied from a tutorial) :
    <?xml version="1.0"?>
    <adf-faces-config
    xmlns="http://xmlns.oracle.com/adf/view/faces/config">
    <!-- Enable debug output -->
    <debug-output>true</debug-output>
    <!-- Pick accessibility options based on a per-user
    managed bean -->
    <accessibility-mode>#{user.accessibilityMode}</accessi
    bility-mode>
    <!-- A silly use of EL: English users get one
    appearance, -->
    <!-- others get another -->
    <skin-family>
    #{view.locale.language=='en' ? 'minimal' : 'oracle'}
    </skin-family>
    </adf-faces-config>
    after saving the file (in myEclipse) i get the
    following error message on the second line :
    cvc-elt.1 : Cannot find the declaration of element
    'adf-faces-config'
    what does that mean and what should i do ?
    thx...Hello again,
    i'm still stuck with this, could somebody PLEASE give me a hint ?
    thx,
    dom.

  • Where can I find the config.xml file for my Edge project?

    Or is that a nonsensical question?
    Basically, I am producing a very simple iPad app using Edge and PhoneGap Build. It's all good to go apart from the orientation - I want to be able to lock it to portrait. On researching, it appears that I need to specify the web build/app as portrait in the config.xml file - so where would I find this?
    Thanks!

    I am not familiar with the phonegap process but I suspect the file you should be attempting to modify is called manifest.xml.
    Example, see someone else's solution posted here. jQuery Mobile lock orientation - Stack Overflow
    hth
    Darrell

  • No route to host:connect -- error in the struts-config.xml file

    hi all,
    acutally am doing a struts application in that i have written everything properly
    but getting this kinda no route to host:connect error
    my struts-config.xml file is like this...
    <struts-config>
    <form-beans>
    <form-bean name="myForm" type="MyForm">
    </form-beans>
    <action-mappings>
    <action path="/action"
                   name="myForm"
                   type="MyAction"
                   scope="request"
                   validate="true" >
                   <forward name="success" path="/success.jsp" />
                   <forward name="failure" path="/failure.jsp" />
         </action>
    </action-mappings>
    </struts-config>
    sikandar 

    Hi Lee,
    I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsEditLink" path="/unitsEdit.do"/>
    </action>
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsCreateLink" path="/unitsCreate.do"/>
    </action>
    I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
    Please shed some light.
    Thanks,
    Regards,
    Michael

  • More than one struts-config.xml files in one project

    Hi all
    Can we have more than one struts-config.xml files in one project developed using struts.
    If so what is purpose and how to do this.
    Anybody please explain on this topic.
    Thanks
    Parvathy

    Hi all
    Can we have more than one struts-config.xml files in
    one project developed using struts.
    yes it is possible
    If so what is purpose and how to do this.
    it is use for odular application so developer won't share a single configureation file.. as you know struts-config.xml is defined on the web.xml
    like this:
    <servlet>
    <servlet-name>mybank</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet
    </servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/module1</param-name>
    <param-value>
    /WEB-INF/struts-module1-config.xml
    </param-value>
    </init-param>
    </servlet>

  • Saving user variable data in XML file

    I am using Captivate 5.5. Can I save user variable data of several variables on an XML file ?

    Can be done with Javascript, have a look at the Javascript articles by Jim Leichliter, here is one link:
    Retrieve variables in Captivate
    Lilybiri

  • The Managed Bean in the faces-config.xml File

    I am still very new to JSF. I am confused about the managed bean.
    For example, I have a button in my web page. A click on this button invokes an action; say, ListAction.java.
    In this ListAction class, I instantiate a business delegate; say, ListPersonnel.java and call a method in this business delegate to return an ArrayList: personnel. Of course, this business delegate goes through facade, DAO, etc. to populate the ArrayList. This ArrayList is a collecation of a JavaBean called PersonnelBean that gets and sets a number of personnel information; such as ssn, name, etc.
    Upon this ArrayList is successfully populated and received by the ListAction class, I am going to display a web page with a table. In JSF, it is <h:dataTable ...>.
    My questions are regarding the managed bean in the faces-config.xml file.
    1. Which one is my <managed-bean-class>? packageName.ListAction? or packageName.PersonnelBean? or something else?
    2. What should be my <managed-bean-name>? I guess that I can give a name I like. Is it right? What about xyz?
    3. Then, how do I specify the "value" attribute of my <h:dataTable ...> tag when I display a web page to show the data table? Is it correct to specify value="#{xyz.personnel}"? What is the correct specification if it is wrong?
    4. I guess that I can give any name to the "var" attribute in the <h:dataTable ...> tag. Is it right?

    1. Which one is my <managed-bean-class>?
    packageName.ListAction? or
    packageName.PersonnelBean? or something else?ListAction
    2. What should be my <managed-bean-name>? I guess
    that I can give a name I like. Is it right? What
    about xyz?Anything you like. xyz is OK.
    3. Then, how do I specify the "value" attribute of my
    <h:dataTable ...> tag when I display a web page to
    show the data table? Is it correct to specify
    value="#{xyz.personnel}"? What is the correct
    specification if it is wrong?xyz.personnel is OK assuming that ListAction class has a public
    method getPersonnel() which returns the ArrayList of PersonnellBeans.
    4. I guess that I can give any name to the "var"
    attribute in the <h:dataTable ...> tag. Is it right?Yes, you can give any name you like.

  • ASC 2.0 ant - does not load compiler constants from config.xml files

    Constants added to the mxmlc task with a config xml file do not work.
    Below, the CONFIG::debug and CONFIG::release constants will compile, but the one defined in the config-common.xml file (CONFIG::pi) does not.
    Portion of an ant macro:
    <mxmlc
    file="@{source.dir}/@{source.file}"
    output="@{output.dir}/@{project.name}.@{output.extension}"
    debug="@{debug}"
    target-player="@{target-player}"
    accessible="@{accessible}"
    use-network="@{use-network}"
    swf-version="@{swf.version}"
    inline="@{inline}"
    default-frame-rate="@{frameRate}"
    >
    <default-size width="@{width}" height="@{height}" />
    <source-path path-element="@{source.dir}" />
    <define name="CONFIG::debug" value="@{debug}"/>
    <define name="CONFIG::release" value="!CONFIG::debug"/>
    <load-config filename="config-common.xml" />
    <load-config filename="config-as-beta.xml" />
    <load-config filename="@{load-config}" />
    <arguments />
    </mxmlc>
    contents of config-common.xml:
    <flex-config>
    <compiler>
    <define append="true">
    <name>CONFIG::pi</name>
    <value>3.1415926535897932384626433832795</value>
    </define>
    </compiler>
    </flex-config>
    Compiling a ".as" file with something something like "trace(CONFIG::pi);" will result in "Error: Can not resolve config constant: 'pi'" with the ant macro.
    Using the Flash Builder 4.7 compiler with "Addition compiler arguments" set to "-define+=CONFIG::debug,true -define+=CONFIG::release,false -load-config+=config-common.xml -inline" does not produce the error. 

    I'm not sure I added the bug to the right place anymore.  It's been added to bugbase.adobe.com under AIR 3.4, but  I'm not sure if that covers the actionscript compiler 2 or not because I found another bug tracker at bugs.adobe.com.  The actual bug is here: https://bugbase.adobe.com/index.cfm?event=bug&id=3339017
    Does anyone know where to post bugs for the actionscript compiler 2.0?

  • Bug in OHW config.xml file

    Hi Team,
    I am using a master helpset file that refers to multiple <subhelpset>s.
    This works fine in OracleHelp for Java, but is broken when I display the same files in Oracle Help for the Web.
    In my owhConfig.xml file, I point to the master helpset file:
    + the combined TOC shows up fine.
    + the combined Index shows up fine.
    But none of the links work because the *MAP.xml files are not being read correctly.
    Why are the TOC.xml files and the INDEX.xml files detected and read into memory, but the *MAP.xml files are not? The only way to fix it is to list every single help set (that is already specified in my master helpset) a second time in the ohwConfig.xml file.
    Can this bug be fixed?
    Thanks for the help with this,
    Wendy Studinski

    Hi Wendy,
    I suspect the MAP files are being read correctly (OHJ and OHW use the same code to process a helpset). What I suspect is going on is that you need to specify some contentLocations in your ohw-config.xml file.
    For security reasons, we require that you explicitly list contentLocations in your ohw-config.xml file. We automatically assume that the directory that contains a helpset file listed in ohw-config.xml is a valid content location, but we don't extend this to subhelpsets (if they are in a different directory than the master helpset then the contentLocation needs to be explicitly defined).
    If there is a link to a file outside of list of contentLocations that OHW knows about, then OHW will not serve up that file, which in most cases appears like a broken link.
    You can read about contentLocations in the Oracle Help Guide. If I guessed wrong, and it is not a contentLocation issue then just let us know and we'll take it from there....

Maybe you are looking for

  • Team Calendar problem in ESS

    hi, I've done the customization for team calendar is spro settings. When the Manager logs in on ESS, he is not able to see the employees reporting to him. What settings I'm missing? I've used one rule group & in that I've assigned team view mode to v

  • Data types in pi 7.1

    Hi, when do you use core, free and aggregated data types? Thanks in advance regards, Ramya Shenoy

  • Sort by EXIF Date/Time

    Would be nice to be able to srt by EXIF Date Time Original or EXIF Date Time Digitized. The existing file based Date Time Create or Date Time Modified may not be accurate. Some of our events (like a wedding) have photographs taken from a number of ph

  • .xhtml file in ADF stack

    Hi Experts, can we have "*.xhtml*" file in ViewControler project instead of .jspx file ? thnks

  • Firefox always opens disc on desktop

    I just switched back to Firefox from Google Chrome (because Google Chrome's color management no longer works). Every time I open Firefox, Firefox puts a disc on my desktop, and opens a second window that invites me to drag the Firefox file to the app