Forum Stats

  • 3,854,167 Users
  • 2,264,331 Discussions
  • 7,905,586 Comments

Discussions

Deployment plan fails with 12.2.1

AinoAndriessen
AinoAndriessen Member Posts: 134
edited Sep 13, 2017 2:38AM in JDeveloper and ADF

Hi,

With Jdeveloper 12.2.1 the deployment plan to update the value of a context-param in the web.xml doesn't work anymore and deployment fails with a 'null' message.

[03:04:29 PM] Deployment cancelled.

[03:04:29 PM] ----  Deployment incomplete  ----.

The same plan works with 12.1.3

Any suggestions?

regards

Aino

Tagged:

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,756 Red Diamond
    edited Aug 24, 2017 9:43AM

    Have you tried to create anew plan in 12c which results in hte same outcome?

    Timo

  • AinoAndriessen
    AinoAndriessen Member Posts: 134
    edited Aug 25, 2017 6:42AM

    Hi Timo,

    I've tried that too without success.

    Although an empty plan allows successful deployment.

    The variable definition is also allowed.

    But the deployment fails with with the module-descriptor (or variable-assigment)

    Example:

    <?xml version = '1.0' encoding = 'UTF-8'?>

    <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"

                     xmlns="http://xmlns.oracle.com/weblogic/deployment-plan">

        <application-name>DeploymentPlanTest</application-name>

        <variable-definition>

            <variable>

                <name>new.app.info</name>

                <value>HelloWorld (new value)</value>

                <description>Override app.info</description>

            </variable>

        </variable-definition>

        <module-override>

            <module-name>DeploymentPlanTest_ViewController_webapp.war</module-name>

            <module-type>war</module-type>

            <module-descriptor external="false">

                <root-element>web-app</root-element>

                <uri>WEB-INF/web.xml</uri>

                <variable-assignment>

                    <name>new.app.info</name>

                    <xpath>/web-app/context-param[param-name="app.info"]/param-value</xpath>

                    <origin>planbased</origin>

                    <operation>replace</operation>

                </variable-assignment>

            </module-descriptor>

        </module-override>

    </deployment-plan>

    regards

    Aino

  • Aino Andriessen
    Aino Andriessen Member Posts: 9
    edited Sep 5, 2017 6:38AM

    btw It seems to be the same issue as The deployment plan does not modify the web.xml

    Anybody...?

    regards.

    Aino

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,756 Red Diamond
    edited Sep 5, 2017 10:57AM

    I just checked with 12.2.1.3 and the plan.xml configuration work for me.

    I use my sample https://tompeez.wordpress.com/2015/01/13/change-application-configuration-at-run-time-through-a-properties-file-part-1/ to test this. In my web.xml I have an entry like

      <context-param>    <description>name of the file to read</description>    <param-name>de.hahn.blog.readconfigfile.FILENAME</param-name>    <param-value>/tmp/readconfigfile.properties</param-value>  </context-param>

    end the plan overwrite the file name (param-value)

    <?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>BlogReadConfigFile</application-name>    <variable-definition>        <variable>            <name>ResourceFileLocation</name>            <value>/tmp/readconfigfile_new.properties</value>        </variable>    </variable-definition>    <module-override>        <module-name>BlogReadConfigFile_BRCFViewController_webapp.war</module-name>        <module-type>war</module-type>        <module-descriptor external="false">            <root-element>web-app</root-element>            <uri>WEB-INF/web.xml</uri>            <variable-assignment>                <name>ResourceFileLocation</name>                <xpath>/web-app/context-param/[param-name="de.hahn.blog.readconfigfile.FILENAME"]/param-value</xpath>                <operation>replace</operation>            </variable-assignment>        </module-descriptor>    </module-override></deployment-plan>

    What I did was to deploy the application and then changes the web.xml with the new plan.xml. This works as expected.

    Timo

  • AinoAndriessen
    AinoAndriessen Member Posts: 134
    edited Sep 13, 2017 2:38AM

    Hi Timo,

    Thanks for the reply.

    Unfortunately, it doesn't work with 12.2.1.1.0

    I'll try later with another 12.2.1 version

    regards

This discussion has been closed.