Wlst: changing classpath values in wls.jar template startscript

I need to edit my start script to include application-specific pre and post classpath additions.
Can anyone think of a way of doing this in a single pass using WLST readTemplate() etc?
I also need to add -D parameters.
My aim is to avoid any post domain creation tasks (ie. editing the setEnv or startWebLogic scripts).

WLST does not have any capability to update a JAR.
WLS 10.3 (still in tech preview) has the ability to override properties
files inside the jar with an external properties file. This would allow you
to deploy the same ear to different environments, and then only deploy a
different properties file in the plan directory.
<Rishi Shah> wrote in message news:[email protected]..
Hi,
I have an application that contains EJB. The environment values needed for
initial context of the ejb is kept in a .properties file. I have created an
ear of the application. Inside the ear there is a jar which contains the
.properties file. I need to deploy the ear to different environments.
However before deploying I need some kind of script to change the values in
the .properties file inside the jar in the ear.
Can anyone provide some help/pointers about how can I achieve it (Using
ANT/WLST)

Similar Messages

  • Change value parameter in RTF template

    Hi
    sorry if possible change a value parameter in RTF template?
    Thanks in advance for any insights!

    Thanks but I already tried it and it works.But if there is a second page with the parameter value rebooting.
    For this reason I wanted to reset the parameter value.
    Thanks

  • Pass variable value to different Web Templates??

    Hi BI gurus,
    The scenario is: we have 2 web templates, and at the top of template A, there is Menu Item for the users to switch to template B. Time Variable: Fiscal_Qtr (a custom exit variable which by default set the value as Current Quarter) is being used in both templates. And, there is drop down box of Fiscal_Qtr in the layouts for the users to change when they do the planning.
    The requirement is to keep the last value of the Fiscal Quarter when the users switch to different templates.
    The difficulty is how to read the fiscal quarter from the buffer and pass the value when launch another template, because it is a totally new session. The new session always set to the default value.
    Please share your thoughts if you have any experience about similar case.
    Thanks a lot!
    Eunice

    I dont think you an read from the buffer when you use javascript. The value is shown as request_1 in the url or something like that. This is with reference to WAD 3.x... you could customize the context menu and see if you can do an RRI instead...

  • How to change default values in SCC?

    Hi,
    does anyone knows how to change the default values of the Sybase Control Center e.g.:
    Activation Code Expiration (Hours) – indicates how long an activation code is valid. The default is 72 hours.
    Within SCC the field is deactivated, it's changeable after creating a connection, but I need to set it within the connection template.
    Thanks in advance, Christian

    You're right, but we want to change the default setting of the template, to avoid this step.
    Thanks, Christian

  • Change PaymentAmountText value in XML Data file of Format Payment Instructr

    How to change the value of PaymentAmountText in XML file generated during of IBY_FD_PAYMENT_FORMAT module: Format Payment Instructions?? This XML Data file is being used by the Check Print rtf template.
    The checks will be used for a Singapore$ (S$) Bank account and USD$ Bank account.
    For the S$ check in XML data file :
    <PaymentAmountText>Eighty-Five Dollars And Sixty***********************</PaymentAmountText> for S$85.60
    For the USD$ check in XML data file:
    <PaymentAmountText>Eighty-Five Dollars And Sixty Cents***********************</PaymentAmountText> for USD$85.60
    I have to add 'cents' for the value of the S$ check.
    It looks to me that since it shows for USD and not for SGD, that one can change this in some kind of set up issue. But where and how?? Or can I manipulate this value in the rtf template too??
    Edited by: user1596364 on 24-mei-2012 8:54

    I have solved my problem in following way.
    For example, I would like 'POUNDS' instead of 'DOLLARS'. Currently my check reads 1000 Dollars and 50 cents. It should read 1000 Pounds and 50 pennies
    You need to change the verbiage in the options field for the payment format. (This is the explanation for GUI users.)
    Copy your Format Payment and add some options to it to make the verbiage read Pounds and pennies. Then create a new Payment Format that uses this new Format Payment. Then put this new Payment Format on the Bank Payment Document for the bank account that needs to pay in Irish Pounds.
    1. Define a new Payment Program under System Administrator.
    Navigate to Concurrent -> Program -> Define
    Query up the Evergreen payment program you are using (ex. APXPBFEG).
    2. Click on the 'Copy to' button.
    Enter a value in the 'Program' field type, for example, "Irish Pounds Program".
    Enter a value in the 'Short name' field type, for example, "APXPBIPP".
    3. Edit the Options field in the Executable zone (Do not click the 'Parameters' button.) In the 'Options' field, enter the following 4 options on one line with one blank space between each option:
    P_UNIT_SINGULAR="Pound"
    P_UNIT_PLURAL="Pounds"
    P_SUB_UNIT_SINGULAR="penny"
    P_SUB_UNIT_PLURAL="pennies"
    (For other currencies, replace "Pound" with "Lira", "Peso",etc.)

  • Cannot Change Parameter Value in afterParameterFormTrigger

    I am unable to change parameter values in the afterParameterFormTrigger. All of the parameters are defined as global variables in the default package.
    What I am trying to do is this:
    In RDFs, I would have place holder or formula columns at the top level of the data model (outside of any query group), and the values of these would appear one time just within the root element of the XML data.
    I saw that, with data templates, the parameters appear one time within the root element, so I thought I could just populate these in the default package, but it does not seem to let me. Is this possible?
    If this is not possible, how can I do the equivalent of the place holder column (outside of any query in the RDF) that will output one value within the root element?
    Thanks,
    Kurz

    Please find the URL which causes issue .
    I am not able to invoke the dispatch action in struts.
    /11/09 15:36:03 EFLBuilder: [instance=152748_BUILDERKIT_777946304, id=115210371784,4] ERROR: AbstractResourceRenderer.renderBody - Resource
    "/seminarDetails.mcs;jsessionid=0ad16e5530d73bf00b218e744ea3b74adf8413a2ef58.e34RahmKa3mRay0Lc3aKbhiLbxaKe6fznA5Pp7ftolbGmkTy?Menu=customer&'amp;actionCmd=seminarDetails
    Regards
    Prem

  • Setting CLASSPATH wthin a runnable Jar

    OK bear with me here, I'm not a total newbie.. really! I've built executable jars before, but with just the directories of raw classes inside.
    Now, I want to package up some jars, and point the classpath at these.
    So in my Ant build file I have
        <jar jarfile="CSVConverter.jar" basedir="." excludes="cvs CSVConverter.jar *.xml *.pdf *.xls *.bat">
           <manifest>
              <attribute name="Main-Class" value="CSVConverter"/>
              <attribute name="Class-Path" value=".;fclui.jar;dom4j.jar;fop.jar;avalon-framework-4.1.5.jar"/>
           </manifest>
        </jar>I added the "." to the claspath because it wasn't finding the Main Class. That seems wrong for a start!
    But it also can't find classes in the specified jars which ARE in the jar file, Ant tells me it's adding them, and I've checked.
    FYI, the error message is
    Exception in thread "main" java.lang.NoClassDefFoundError: com/fcl/xmlutils/CSVXMLReader$CSVSourceAnd that is in fclui.jar which is in the main jar: CSVConverter.jar.
    In case anyone is curious, it's a tool to use a SAX parser to create XML parse events from a CSV document, use XSL to massage the document into either the correct XML format for Excel (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexcl2k2/html/odc_xmlss.asp), or FOP (http://xml.apache.org/fop/), and through fop to PDF. Basically the top line of the CSV is headers, subsequent lines are data, and out comes a very nicely formatted, and scaled report either Excel or PDF.

    The Class-Path is used as a hint to browsers to so
    they can down load additional JARs before they are
    called.
    This attribute is not use by java and the claspath
    cannot be set this way.Sorry, but this is just plain wrong!
    Please see http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#JAR%20Manifest
    "Class-Path :
    The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. The application or extension class loader uses the value of this attribute to construct its internal search path."
    Still, JARs in a JAR will not work, AFAIK ...

  • HR API User Hooks - Can I use to change a value in the table the API for?

    I am trying to initialize a descriptive flexfield on per_all_people_f. I originally tried doing the initialization using a “before row insert” database trigger directly on the table per_all_people_f. Seems to work great in the People form (PERWSHRG), but does not seem to work consistently when a new employee is entered through a template like Enter Employees (PERWSQHM).
    Does anyone know if you can use an API User Hook to initialize a value on one o the tables the API is inserting? For example, could I put a "Before Process" user hook on the "Create_ Employee" API to change the value of a descriptive flexfield?
    Any other good ideas?
    Currently I have a concurrent request that runs once every 30 minutes to default the descriptive flexfield. The delay is causing issues.

    In such cases you should write the code to default the values in the front end PUIs. As one person pointed out, User hooks are provided either to validate the already entered values, or to insert/update data in some custom tables but not for updating values in the same table where data is being inserted/updated.
    BTW for your information:-
    Person form (People Enter and Maintain) does not use APIs so anything written inside the user hook would be ignored by the application when this form is used. (The reason is this is one of the oldest form in HRMS, was created even before the concept of user hook came).
    Template form PERWSQHM uses APIs, so user hook is called when this form is used to create/update the data.
    Hope this is useful.

  • How to change the value of "DenyOnNotProtected " in OAM 11g

    Hi,
    I just wanted to know how we can change the value of the parameter "DenyOnNotProtected " in OAM 11g. In the documentation it is mentioned that we can't change the value. When I tried from console, I am not able to. Is there any other way to do this?
    Thanks,
    Srikanth

    Hi Colin,
    Thanks for the update. What you said is correct. Even though I change the attribute its updating in console (check box). But behavior is not changing. Even setting Antonymous authentication also seems to be of no use. Here I am integrating WebCenter with OAM. I have done all the configurations as per Oracle documentation. But when I try to access a protected URL (say https://oimtest.example.com/webcenter/adfAuthentication with a valid user creds, I am getting the error: Access to the URL /webcenter/oracle/webcenter/webcenterapp/view/templates/publichtml/LandingGateway.jsp has been denied for the user. I have made /webcenter/.../* as public with Anonymous authentication. Still getting access denied error. What could be the issue?
    Thanks,
    Srikanth

  • ADF 11g: Change Text Value within af:dialog

    Any guidance much appreciated: I'm new to ADF 11g and java scripting...
    I have a popup containing a dialog inside my af:document. I want to be able to dynamically change the text message being displayed inside the dialog at runtime prior to showing the popup. I have added an af:panelGroupLayout inside the dialog component, with an af:outputText component inside that.
    <af:popup id="nexusAlertPopup">
    <af:dialog id="nexusAlert"
    inlineStyle="vertical-align:top; text-align:left; font-size:small;"
    type="ok" closeIconVisible="false" title="Change Me"
    affirmativeTextAndAccessKey="Continue">
    <af:panelGroupLayout id="nexusAlertPanelGroup">
    <af:outputText id="nexusAlertText"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    When I look at the ADF javascript API, I cannot find a set method to change the value of the outputText in my JS Function. Can you use a normal setAttribute method on any ADF object?
    Regards,
    Mario

    Branislav Nemec wrote:
    Is there a particular reason you need to change the title in JS function?Thanks for your reply Branislav.
    To make a short story long: I am trying to create a dynamic popup dialog on an ADF page template. We have Oracle Form Modules which are being clipped inside this center panel of the pages using this template and the communication between the ADF application and our Forms application happens through JS on the client. What I need to do is on the Forms side, override all forms alerts with a call to a JS Function which would popup a synchronous ADF dialog and return the result back to Forms in a Global variable. So the text of the alert needs to be dynamically passed through and this needs to preferably happen on the client side without a roundtrip to the ADF server. If it is possible. Also, it is not the TITLE I am concerned about as there is a setTitle() method in the AdfRichDialog class.
    Hope this sheds some light on the issue...

  • How to change APP_USER value of 'nobody' to something else?

    I have set my pages to public user. Now in the lower left corner there is the word 'nobody'. I assume this is the value of the APP_USER.
    Where do I go to change the value of APP_USER when the page is public?
    Thanks,
    Maggie

    I am providing the exact steps I followed for the APEX newbie in the future.
    Go to SHARED COMPONENTS > TEMPLATES
    Down in PAGE section, select the one used and you will be put into EDIT PAGE TEMPLATE
    Down in DEFINITION region, in the BODY area
    Change part of the code from this:
    <td height="41" align="right" valign="middle" colspan="3" class="t8copyright"><span class="t8User">&APP_USER.</span><!-- Copyright --><span class="t8Customize">#CUSTOMIZE#</span></td>
    to this:
    <td height="41" align="right" valign="middle" colspan="3" class="t8copyright"><span class="t8User"><!-- &APP_USER. -->For Internal Use Only</span><!-- Copyright --><span class="t8Customize">#CUSTOMIZE#</span></td>

  • Change item value when a specific item has changed... how can i do that?

    Hi guys, i need to ask something...
    Is it possible to have a process or a computation, that gives value to an item, only when one specific item has changed.
    I have other items on my page too, but this two are related, and i need to give a specific value to the first one, only when the value of the second has changed...
    Help please
    tsveti:)

    Hey Farhan, i guess i need some help on that easy javascript...
    i havent done much thing with it so i have almost none experience with js....
    So in 'HTML Form Element Attributes' for the second item I m trying this :
    onchange="javascript:{document.getElementById('P1_SUBPROJECT').value = '-1';}"
    but when i change the value of this second item, the first one (P1_SUBPROJECT) dont get -1
    what am i doing wrong?

  • SPEL? make REASON field required if user has changed the value in SALARY

    I have a requirement to make REASON field required if user has changed the value in SALARY field. Is it possible using spel? what are my options?

    Karan,
    You can change the Rendered Property through personalization.
    But in your requirement you need to attach the Spell through personalization & extend the existing CO to set the value of the SPELL based upon the condition.
    Note - Refer this thread http://forums.oracle.com/forums/thread.jspa?threadID=2176729&tstart=0. If you have worked on SSHRParams kindly help the user.
    Regards,
    Gyan

  • Changing the value of a control in a subvi

    I think the answer is out there somewhere but I've read through many threads found with searches similar to this topic so sorry to repost...
    I would like to change the value of a top-level VI control from a sub-vi.  The data is being used as a parameter, I was thinking about using a local/global but I've seen this discouraged.  Is there a way I can do it with references, property, or invoke nodes (or some other suggested method) ?
    I am guessing that if I am not using globals I will need to wire into the sub-vi?
    Dave

    I'd like to clarify what I am trying to do a bit more...
    The sub-vi has a control of the same type as the top-level vi.  The inital control value is being passed into the sub-vi from the top-level vi.  The sub-vi uses the control value in several places through local variables (reading and writing to it)
    I would like to modify the vi so the top-level vi control value changes whenever the sub-vi changes the control value that is passed to it.
    My last attempt was to make a refnum control in the sub-vi (by dragging from top-level block diagram to sub front panel) and then creating a property node from that refnum control.  Using the property node "value" did not give me the value of the control from the top-level vi as I had hoped.  Wiring it to a terminal that was expecting the same type of control (a cluster of two numerics) caused a wiring conflict.
    I noticed elsewhere in the code that the programmer used a text file to save options (unfortunately the control I am working on was not originially included in the options).  There is a vi that, when called, either reads or writes to the text file.  From a C/C++ programming perspective it seems quite odd to me not to just keep all this data in memory and pass it around.  Is using a file to store variables a typical practice in LV programming (even when they are retrieved multiple times during program execution) ?

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

Maybe you are looking for

  • Picture not centralized on my Sharp 42"?

    Use DVI-HDMI from Macmini to the Sharp LC-42XD1E. My problem is that the picture is not in center of the TV but 2cm to the left leaving a black stripe to the right of the screen. The TV settings for vertical and horizontal changes is not active in th

  • Nokia music update no longer carries mix radio fea...

    Hello I am a little disturb after coming to realize that the recent update for the Nokia Music app does not consist the mix radio feature on my phone that was one my favourite things that I had liked about it including the option of having offline ra

  • Oil paint filter -- image doesn't show up

    I'm running CS6 on Windows7, Intel HD Graphics P4000 with driver updated.  I have used the oil paint filter successfully in the past.  Now when I try to use it, the filter window comes up, and it notes that the image I want to work on is at 25% size,

  • On one of my "older" laptops, I'm runninig OS 10.4.11 and I can't find a version of iTunes that will run.

    On one of my "older" laptops, I'm runninig OS 10.4.11 and I can't find a version of iTunes that will run. Where can I locate the correct version?

  • Bounding box and 3D

    I have an issue with getting movieclip's bounding box when it has nonzero z-property. Here's the example of code producing correct result shown on figure A: var m : Meat = new Meat(); addChild(m); m.x = 100; m.y = 100; m.z = 100; m.rotationY = 45; va