Skip to Main Content

Java Development Tools

upload file using another adf application as shared library

Sanjeev-OFMSep 13 2022

Hello Friends,
I've to achieve one requirement and got stuck, please help with the information to achieve the below scenario.
using the jdeveloper version
Using Second ADF application (extension app) we need to upload a file and need to take metadata parameters to upload file we need to take value from another adf application (consuming app).
We are using extension application as a shared library, which deployed on weblogic server and attached as jar file in library of on another main application (consuming app).
In extension application if using a custom bean with some hardcoded value we are able to access in another ADF application(consuming app).
Tried to achieve the above mentioned scenario and getting the below 3 error, kindly suggest how we can achieve it.

  1. (Getting Binding value of main application binding attibute using evaluateEL method
    (evaluateEL("#{bindings.Dname.inputValue}"))) in extenstibility application which required to upload the document as metadata.
    javax.el.ELException: java.lang.NoClassDefFoundError: javax/faces/context/FacesContext

public static Object evaluateEL(String el) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
ValueExpression exp = expressionFactory.createValueExpression(elContext, el, Object.class);
return exp.getValue(elContext);

  1. if using private UploadedFile uploadedFile; in custom bean and try to refer in main application using inputfile control in ui getting below error
    javax.el.ELException: java.lang.NoClassDefFoundError: org.apache.myfaces.trinidad.model.UploadedFile
  2. trying to achieve the above scenario using the region or taskflow but after using that getting the below error
    oracle.adf.controller.ControllerException: ADFC-02001: The ADF Controller cannot find '/WEB-INF/task-flow-definition.xml'.


Post Details
Added on Sep 13 2022