Question of deployment plan

I have the following code in my Spring applicationContext.xml-

<! - WebLogic JNDI - >
< bean id = "dataSource".
Class = "org.springframework.JNDI.JndiObjectFactoryBean" > "
< property name = "jndiName".
value = "cyncssit" / >
< / bean >

I would like to change the jndi data source name based on the environment in which the application is deployed. I understand that the weblogic deployment plan can override only properties in the weblogic-specific deployment descriptors and not properties applicaton.xml, web.xml or spring config files. I was wondering if there is a way to specify the name of the data source's jndi in weblogic application. XML or weblogic.xml and ask of this name in my spring config file? Bottom line is I need to substitute the name of source data during deployment. Any solution would be greatly appreciated.

Thanks in advance!

Yes, you are right. Plan cannot be used for this purpose... because it can be used only to change the Standard J2EE/WebLogic deployment descriptors.


This solution requires changes in your application... Then you can love him not.
But as an Alternative option, you can do the following:
To learn more about "virtual directories -" Please see:

(Step 1).

Inside your app * "WEB-INF/weblogic.xml" * configure a virtual directory mapping in your "weblogic.xml" as follows:

         *. XML

(Step 2).

"Now, put your *"applicationContext.xml"* inside * ' C:\DELETE\Spring_JNDI_Demo"* directory... so that when you want you can change... (JNDIName).

(Step 3).

inside of your * "WEB-INF/web.xml" * provide the mapping of the context-param as below:




(Step 4).

Now deploy your Application... .and then later when you want to change the JNDI name... "You want to edit *"applicationContext.xml"* inside * ' C:\DELETE\Spring_JNDI_Demo"*, then redeploy the Application


After work sample is attached... Here: you can try. The sample Application is tested in WLS10.3

Thank you
Jay SenSharma (WebLogic wonders are here)

Tags: Fusion Middleware

Similar Questions

  • WebLogic deployment plan


    I am using weblogic 10.3.6.

    In weblogic console, I initially deployed a web application and then update the web application [Select application-> update-> path of deployment Plan] with a deployment plan.

    Now if I want to delete the web application deployment plan, I am unable to do so.

    Please let me know how to achieve this.

    Thank you


    1. stop the server (s) where the application is deployed.

    2. in the of the subtree of the config.xml remove (comment) element for the app in question.

    3. start the server (s).

    It would be useful to say that one must be very careful while editing/modifying the config.xml.

  • Location of Composites of the EBS and the deployment Plan generator

    Hi all
    I have a question of high level on the AIA.
    I understand that a PIP (process integration Pack) is an integration of end to end into the information system from one end to the other. If the names of a pip could be:
    SAP for integration of Ebiz invoice
    Ebiz integration Portal invoice
    I also understand that a BSE (Business Enterprise) is a reusable service that can be invoked by a number of different applicants. For example, InvoiceEBS, etc.
    My understanding is that an EBS can be part of many glitches.

    I worked through the update and I got to the point of using the deployment Plan generator to generate a deployment plan. When you run it I came across this message:
    [java] EBS composites should be under $AIA_HOME/pips / < projectCode > or $AIA_HOME/pips / < projectIndustry > / < projectCode > for the seeds of the industry.
    [java] The CBA and the AdapterServices must be under $AIA_HOME/services.

    That said, it is expected that the composite EBS under the directory of a PIP in particular. This means that if SAP_to_Ebiz_Invoice_Int and Portal_to_Ebiz_Invoice_Int use the same EBS then composite EBS must be duplicated in the two directories. This is clearly wrong that we would have to keep several copies. (This has implications for maintenance, Version control, etc.)

    It is not sensible, so there must be an error in my logic. Does anyone know where I have gone wrong?
    Oracle expects that in a few years when we need to make an update to BSE or other objects in the PIP as go us back and use the same project in PLW or should we create a new project in PLW and add all objects?

    Thank you

    I checked with the genius of the FP and it comes to new behaviors introduced with that I wasn't aware of the institutions. I have recorded a request for internal improvement because I think that it is not ideal for the clients of the FP.

    It seems it must be under $AIA_HOME/pips /, where is the code that you have entered in the PLW and you would also find in the BOM.xml. Have you tried both?

    Just to make sure that I understood: the error means only that RFP generator cannot find the composite and, therefore, can not assing a path to the composite in the DP and you will need to add that manually. Or is the generation of DP even stop alltogether?


  • AIA FP - generation Deployment Plan for migration Dev test

    Hi all

    Can you post what follows the point of view of Test deployment of Dev. We have almost completed the development of an interface using AIA 11 g and are moving from one instnace to another interface, and any help is appreciated.

    Let us take purchase order integration between a legacy application and the purchase of the Oracle File adapter-> ABC-> EBS applicant-> supplier ABC-> DB adapter, which is a classic flow.

    1. the functional person defines a project in the Workbench of Life Cycle of the project
    2. functional decomposition made through business purchase stopped and components of the Service Solution task for each composite in the classical stream
    3. the ABCSs are created by linking the components of Solution of the corresponding Service of the FI using the constructor function. These composite.xmls will have the annotation filled by the manufacturer of the Service. It is normal that these composites have concrete wsdls during the development phase, but the concreate those need to be replaced to abstract before plans geenrating of deployment.
    4. the EBS is not changed, it will be pre-filled annotations and there is no need to add any annoations their
    5. the File adapter and adapters (adapters Transport?) DB must be annotated based on the developer's guide
    6. the XSD and wsdl go in the mds based using the provided scripts. All other common components can also be placed in MDS.
    7. Once done development, harvest composites using the Harvester of the AIA.
    8. after the harvest, the AIA LCW, generate the BOM. If we harvest all the composite 5 for the task together and do generate BOM, it captures all composites? Or they capture only the composite created with the constructor for Service? Or add the compistes manually to the task of company?
    9. add content harvested by changing the Nomenclature-> option "search and add existing composites. We could not find the option "Add harvested Composite" everything right by clicking on the business task.
    10. once all composites harvested have been added to the BOM, export in XML format
    11 using the Nomenclature, generate the DeploymentPlan. The deployment plan will be references to the WSDL and XSD files in MDS
    12 using the deployment Plan and assistance, deploy the composite in a new instanec.

    These are the questions I have,
    1 as above is correct?
    2. given that the MDS is in database Dev, a sine qua non to AID seems to be the deployment of xsd and WSDL in the Test MDS schema. Can you please post?
    3. what happens to the XSL files, bpels, mplans etc? How they move from one instance to another?

    Kind regards

    Hi Anish,

    Yes, you need to ftp the project on the server where you could carry out the plan of deployment and the compositedir.

    should point to this ftped directory.


  • How to change the source of data in application with the deployment plan


    JDev Version: 12.1.3

    I can't change the source data with the deployment plan bc4j.

    Any example on this requirement?

    Thank you


    Well, if you take a look at:

    (one of the links in the link you get), you will see Edvin Biemond answwer:

    "you must change the configuration of module of the Application so that it uses a data source. and in the deployment of applications disable deployment of jdbc connection.

    Now you is enough to make the good source of data on each wls and deploy ears. »

    The simplest (and probably the best) way is, as I told you, and you are also mentioned: open up JDeveloper and change declaratively and re-download the ears

  • Smart View for Essbase unavailable in rapid deployment planning

    I managed to deploy EMP by following the steps in the deployment planning guide ( However, when I do the Smart View by using a URL of shared connections to http://< servername >: 9000/area of work/SmartViewProviders, I only get the connections for the planning and of the declaration and framework. How an I get a connection for Essbase?

    It turns out that rapid deployment planning wizard does not install Essbase service provider, just planning service provider and Reporting and analysis of service provider. Until that I installed Essbase service provider, I wasn't yet able to create a private to Essbase connection. I had to run InstallTool.cmd and select "Provider of Services Web Application" in the Essbase selection screen section. I also had to run the configuration utility and select "Deploy to the application server" under "Service provider" in the Essbase selection screen section.

    After that, I was able to create a connection in Essbase with this URL: http://: 9000/aps/APS

    Even though the private connection was working now, the Essbase connection was still does not like a shared connection in Excel, when I put the Excel Smart View option for shared connections URL http://: 9000/area of work/SmartViewProviders. I could get this job to rerun the configuration utility and selecting "Configure the Web server" in the section "Hyperion Foundation" of the selection screen.

    I was also able to create an XML file as Celvin suggested using http://: 9000/aps/APS for connecting to Essbase. Thanks for the suggestion!


  • Error during the deployment of OEDQ with a weblogic deployment plan


    I try to install OEDQ on a linux machine. I followed the link below


    The documentation suggests using a deployment plan. On doing so, I get the following error

    Dynamic properties not found to be updated Bean: weblogic.j2ee.descriptor.WebAppBeanImpl FilterMappings (REMOVE [email protected] (/ FilterMappings [[CompoundKey: OAMAgentFilter [CompoundKey:] [CompoundKey: / *]]]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13defbd6, value proposed: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13c72836] FilterMappings (REMOVE [email protected] (/ FilterMappings [[CompoundKey: JpsFilter [CompoundKey:] [CompoundKey: / *]]]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13defbd6, value proposed: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13c72836] FilterMappings ([email protected] REMOVE (/))]]]] FilterMappings [[CompoundKey: DMSSystemFilter [CompoundKey:] [CompoundKey: / *]]]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13defbd6, value proposed: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13c72836] FilterMappings (REMOVE [email protected] (/ FilterMappings [[CompoundKey: SSOSessionSynchronizationFilter [CompoundKey:] [CompoundKey: / *]]]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13defbd6, value proposed: [Lweblogic.j2ee.descriptor.FilterMappingBeanImpl;@13c72836] filters (REMOVE [email protected](/Filters[SSOSessionSynchronizationFilter]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13def9c4, value proposed: [filters]]]]]] Lweblogic.J2EE.Descriptor.FilterBeanImpl;@13c72800] (REMOVE [email protected](/Filters[DMSSystemFilter]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13def9c4, proposed value: filters [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13c72800] (REMOVE [email protected](/Filters[JpsFilter]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13def9c4, value proposed: [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13c72800] filters (REMOVE [email protected](/Filters[OAMAgentFilter]))(Dynamic=false) [original value: [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13def9c4, value proposed: [Lweblogic.j2ee.descriptor.FilterBeanImpl;@13c72800]]]]]]]

    I don't know what it means or if I'm missing something.

    Any suggestions or pointers?

    No, this must be it - as long as SSL is enabled.

    Published by: MikeMatthews on February 11, 2013 04:07

  • Deployment of EBF with a human task and task usingAIA Deployment Plan forms

    Hi all

    I have a set of composite materials for an invoice interface - File, Req ABC, EBS, ABC Prov. adapter, adapter DB, RESP EBS and an EBF. If my Bill cross due to validation errors, I let the user change the invoice using a human task called from my EBF.

    When I deploy the jdeveloper EBF, he deploys the both task form, and they deployed properly. For test and production instances, we use scripts to HELP, and they work very well for all components of the AIA. I'm looking for suggestions on how to deploy the task (ADF) form bound to the human task of a component of the AIA.

    Thanks for the help.


    Task forms are not really different from other applications for deployment through a deployment plan for AIA. There are examples available for own FP deployment plan, for example like this:

    WlServer = "fp" failonerror = "false" action = "deploy" / >

    So these task forms can simply be deployed like any other ear, you just call explicitly the deployment plan.


  • Update adf URL connection using deployment plan

    Hi all

    This is my first experience with the deployment plan file and I need a little help.

    I am trying to use the deployment plan to replace the values of my adf connections in the connections.xml file.
    I am trying to replace the value of the url of my TARGET_URLconnection, but it does not, the value is not updated after deployment.

    See below my plan:

    <? XML version = "1.0" encoding = "UTF - 8"? >
    <-plan of deployment xmlns = "" xmlns: xsi = "" xsi: schemaLocation = "" - global variables = "false" >
    < application name - > TVLPortal < / application_name >
    > definition of variable <
    < variable >
    < name > Web_tvlportal_contextRoot_13426112217490 < / name >
    < value > / tvlportal < / value >
    < / variable >
    < variable >
    < name > TARGET_URL < / name >
    < value > < /value >
    < / variable >
    < / variable-definition >
    < module-override >
    < module name > TVLPortal.ear < / module-name >
    ear of < module-type > < / module-type >
    < descriptor-external module = "false" >
    applications weblogic < root > < / root >
    < uri > META-INF/weblogic - application.xml < / uri >
    < / module-descriptor >
    < descriptor-external module = "false" >
    References > root element < < / root >
    < uri > adf/META-INF/connections.xml < / uri >
    > assignment of variable <
    < name > TARGET_URL < / name >
    /References/reference[@name="TARGET_URL"]/RefAddresses/XmlRefAddr/contents/[email protected] < xpath > < / xpath >
    Replace < operation > < / operation >
    < / variable assignment >
    < / module-descriptor >
    < / module-override >

    My connections.xml file:

    <? XML version = "1.0" encoding = "UTF - 8"? >
    < reference xmlns = "" >
    < reference name = "TARGET_URL" className = "oracle.adf.model.connection.url.HttpURLConnection" xmlns ="" > "
    < className="oracle.adf.model.connection.url.URLConnectionFactory"/ factory >
    < RefAddresses >
    < XmlRefAddr addrType = "TARGET_URL" >
    < content >
    < name urlconnection = "TARGET_URL" url = "" / >
    < / Summary >
    < / XmlRefAddr >
    < / RefAddresses >
    < / reference >

    Thanks in advance.

    Bruno Barreto


    to quote "The Oracle® Fusion Middleware of Oracle JDeveloper User Guide" (

    + "' You can control how an application is deployed by using a deployment plan that allows you to make settings of configuration in the Web.XML for application, weblogic.xml, application.xml and weblogic deployment descriptors - application.xml." + "

    It does not list the specific connections.xml of ADF

    Here's a post explaining how to use a URL of proxy in a the Web.XML context parameter:

    Not sure whether this also works in your case


  • Location of the FBE Composite.xml to allow creating the deployment plan

    I created a BOM that contains several components of EBF. However when I run the generation of deployment plan, it fails with the following text:

    [java] EBS composites should be under $AIA_HOME/pips / < projectCode > and ABC and AdapterServices should be under $AIA_HOME/services.
    [java] oracle.apps.aia.core.deploy.CompositeNotFoundException: Composite: CeaseIRStudentLoadCustomerPartyEnrolmentEBF not found.
    [java] EBS composites should be under $AIA_HOME/pips / < projectCode > and ABC and AdapterServices should be under $AIA_HOME/services.

    I tried placing the composite under two places but still not the same error. Is there somewhere else required for EBF in or is there a problem with my annotations?

    Hi André,.
    Can you try again after you have moved the composite directory to $AIA_HOME/glitches /?
    Also, please check if the composite project directory name is: CeaseIRStudentLoadCustomerPartyEnrolmentEBF?
    Thank you

  • Replace values web.xml with a deployment plan.  Does not not on WL 10.3.2

    Hi All-

    I am trying to replace a value of web.xml to one on a weblogic deployment plan. I deployed the application on WL 10.3.2 and used the deployment below plan. No matter what I do it does not seem to appreciate in value.


    <? XML version = "1.0" encoding = "windows-1252"? >
    <! DOCTYPE web - app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3 / / IN" "" >
    <>web - app
    < context-param >
    TokenGroup < param-name > < / param-name >
    OldValue < param-value > < / param-value >
    < / context-param >
    < / web - app >

    Deployment plan:

    <? XML version = "1.0" encoding = "UTF - 8"? >
    <-plan of deployment xmlns = ""
    xmlns: xsi = "".
    xsi: schemaLocation = "".
    global variables = "false" >

    APPName < application name > - < / application_name >

    > definition of variable <
    < variable >
    < name > TokenGroup < / name >
    < value > Key123456 < / value >
    < / variable >

    < / variable-definition >

    < module-override >
    < module name > APPName.war < / module-name >
    war of < module-type > < / module-type >
    < descriptor-external module = "false" >
    Web - app of the < root > < / root >
    < uri > WEB-INF/web.xml < / uri >

    > assignment of variable <
    < name > TokenGroup < / name >
    < xpath > / web-app/context-param / [param-name = "TokenGroup"] / param-value < / xpath >
    Replace < operation > < / operation >
    < / variable assignment >

    < / module-descriptor >
    < / module-override >
    < / deployment plan >

    I also tried other formats for the xpath expression such as:

    / Web-App/Context-param / {param-name = "TokenGroup"} / param-value
    / Web-App/Context-param [param-name = "TokenGroup"] / param-value

    Any ideas why it does not work?

    Thank you





    / ParameterServlet


    import javax.servlet.ServletConfig;
    to import javax.servlet.ServletContext;
    to import javax.servlet.ServletException;
    Import javax.servlet.ServletOutputStream;
    Import javax.servlet.http.HttpServlet;
    to import javax.servlet.http.HttpServletRequest;
    to import javax.servlet.http.HttpServletResponse;

    SerializableAttribute public class ParameterServlet extends HttpServlet {}
    private String dbName = "";

    private String dbPassword = "";

    Public Sub init (ServletConfig config) throws ServletException {}
    Super.init (config);
    ServletContext context = getServletContext();
    dbName = context.getInitParameter ("name");
    dbPassword = context.getInitParameter ("password");


    ' Public Sub doGet (HttpServletRequest req, HttpServletResponse res)
    throws IOException {}
    ServletOutputStream out = res.getOutputStream ();
    out.println(")Basic servlet");
    out.println(")Database user name is "+ dbName);

    Database password is "+ dbPassword +"");

    'Plan '.





    Web - app
              / Web-App/Context-param / [param-name = 'name'] / param-value

              / Web-App/Context-param / [param-name = "password"] / param-value


    It works for me... I think that your file "web.xml" is the origin of the problem.

    Try to replace


    I hope this helps.


  • With the help of deployment plan to change the virtual directory mapping

    Hi all
    Have anyone tried this before?
    I have a deployment plan to add the virtual directory to my descriptors of weblogic as follows:

    Inside tag <>variable-definitions:
    Then, to add the virtual directory to weblogic.xml in:
    <module-descriptor external="false">
    But I have this error:
    C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\planplan.xml:0 error VALIDATION PROBLEMS FOUND: problem: cvc-complex - type. 2.4 c: expected element" url-pattern @' before the end of the virtual-directory-mapping element content @< C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\planplan.xml >
    I also tried to use the XPath for model url as follows:
    /WebLogic-Web-app/virtual-directory-mapping/[local-path="C:/"]/URL-pattern < xpath > < / xpath >

    But I have the same error. The <>url-patter item is not added correctly to the virtual directory mapping tag.

    It is supposed to work. Someone has done this before? or is this a bug of the deployment plan.

    Thank you very much.




    It seems that in the new WLS10.3.2 weblogic.xml XSD order of * "url-pattern" * and * 'local-path' * is changed then the secuence of Xpath is changed... This means that now you must try with following... What has worked for me in WLS10.3.2:



    / Temp / *.








  • With the deployment plan to expand the security roles

    We have an existing application that has a defined set of security roles. This application was deployed to Weblogic.
    We want to provide additional security roles through this application. Currently, we do this by editing the web.xml file and files weblogic.xml manually redeploy the application. Is there a a way to do this using the deployment plan function? If so, how can we do it?


    You can use the following deployment Plan xml file:






    Web - app


    META-INF/weblogic - diagnostics.xml



    Thank you

  • deployment planning

    What is the difference when I plan the deployment of epma, it's

    (1) not verified full deployment only verified and other similar (contour/security etc.)

    Full deployment 2) verified and others like contour/security etc also verified.

    The full deployment not verified 3) and others like contour/security etc are checked

    When to use what?


    These things are explained in detail here:

    Deployment of Planning Applications

    Come back if you have specific questions.

    See you soon... !!

    Rahul S.

  • VCOPS deployment plan

    Hello world

    I'm looking for the vCOPS development plan of technical environment vSphere 5.5 deployment. Please suggest how to deploy? Any help will be much appreciated.

    Thank you


    You can end up taking too much time 3rd-party solutions... in my past most piecemeal you have, the harder that is managing the integration experience. You end up having 3 or 4 different vendors with different media, different ways of access to... the upgrade of questions etc. Keep it in the family

Maybe you are looking for

  • Count specific cells that contain '1' or 'G '.

    Hello world I have a sheet of numbers with the data presented as '0', ' / ', '1' or 'G '. I would like a formula that counts the combined total of '1' and 'G' entires in each column, but I'm having some trouble. I used the COUNTIF function with a ran

  • 6320 slow ADC read

    Hello I use a PCIe-6320, I'm voting of the ADC, in a very simple while loop.  The time per iteration of the while loop is about 9 milliseconds. While the time interation of the while loop without reading the DAC is 10 microseconds. That's the differe

  • Pavilion a705w RAM upgrade, OS XP pack3

    Comuter worked well with 2, 512 MB of RAM cards. I replaced the 2, 1 MB cards which one of the 2 was bad. When I installed the card and turned on the computer I have no display on the monitor, I then addressed the new cards and found one of the two w

  • Can I change the 0 to 1 disc and 1 road to 0?

    Windows 7 Home Premium using I drive as a data drive 0 and 1 drive contains the operating system. On a normal start, I get a flash message (top left) which indicates "Boot from CD". Also, when I Set Up the drive on the top of the list corresponds to

  • Need help with the error message to a web gallery from Lightroom download

    Halfway through the process, I get an error message that says: "an error occurred sending the file: a response had not reached in time."I checked my settings, everything is correct and nothing has changed.  What is the problem and how to fix this?