Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF 12c web application navigating to wrong context root - 404 error

Vinay Srivastav KasarlaAug 20 2016 — edited Aug 29 2016

Hello Experts,

We are migrating ADF web application which was in 11.1.6 to 12.1.3. We could able to migrate the whole application successfully, and launch page -  but facing a weird issue with context root.

Problem:

Landing page once application runs

https://demo.xyz.com/DashboardWeb/faces/regions/sample.jspx

This landing page has Menu items and when I click on Admin menu item (All menu items has same issue ) - Ideally it should navigate to,

https://demo.xyz.com/AdminWeb/faces/regions/menu.jspx     -   Which ideally works fine in 11.1.6,

but in 12.1.3 after migration it navigates to below URL which indeed shows 404 error.

https://demo.xyz.com/DashboardWeb/AdminWeb/faces/regions/menu.jspx 

( AdminWeb gets appends to DashboardWeb)

When I remove DashboardWeb from URL, it works fine.

Question is- Why is the last context root stays and new one appends to it in first place? Do I need to set anything specific in 12c?

My weblogic-application.xml looks like below

<?xml version = '1.0' encoding = 'windows-1252'?>

<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                      xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd"

                      xmlns="http://www.bea.com/ns/weblogic/weblogic-application">

  <listener>

    <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>

  </listener>

  <listener>

    <listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>

  </listener>

  <library-ref>

    <library-name>adf.oracle.domain</library-name>

  </library-ref>

</weblogic-application>

Any help on this would be greatly appreciated.

Thanks,

Vinay

This post has been answered by Vinay Srivastav Kasarla on Aug 29 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 26 2016
Added on Aug 20 2016
5 comments
479 views