Comments on: Create, Deploy and Consume an ADF Task Flow with ADF Business Components inside Friends of Oracle and Java Fri, 27 Feb 2015 08:30:27 +0000 hourly 1 By: HB Wed, 01 Feb 2012 13:16:21 +0000 This post does not mention anything about the deployment view. I do not think it is a very useful post. This is a very simple reuse scenario avilable almost in all ADF examples. How do multiple projects refer to the same common ADF task flow when deployed on Weblogic server?

By: Business Plans Thu, 08 Sep 2011 04:40:28 +0000 Great post. This blog contain lot of great information. In this article a simple example of using the Task Flow mechanism for the creation of a reusable service – text translation – that is developed as a bounded task flow that is deployed in an ADF Library to be reused in potentially many applications and pages. Deploy the View Controller project according to this deployment descriptor.

By: Rama Krishna Thu, 22 Oct 2009 18:36:18 +0000 Hi Lucas,

I found that when I export the ADF library into my consuming application, everything is working fine.

When I deployed the ADF library to Weblogic server and trying to consume the ADF library taskflow, it is throwing OracleJSP error.

java.lang.NoClassDefFoundError: org/apache/myfaces/trinidad/event/ReturnEvent

Am I missing something while deploying the ADF library to weblogic server and/or while using library-ref in my weblogic-application.xml file?

Thanks in advance.

Thanks & Regards,
Rama Krishna. P

By: Rama Krishna Tue, 20 Oct 2009 21:20:44 +0000 Hi,

I tried to follow this example. I have made a login module as re-usable ADF library which has bounded login taskflow.

When I tried to consume it in another application which needs login authentication, I am getting the following error.

javax.servlet.ServletException: OracleJSP error:
java.lang.NoClassDefFoundError: org/apache/myfaces/trinidad/event/ReturnEvent
at oracle.jsp.runtimev2.JspReportUtil.reportException(
at oracle.jsp.runtimev2.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
Truncated. see log file for complete stacktrace

Any help would be greatly appreciated.

Thanks & Regards,
Rama Krishna. P

By: Prashanth Tue, 21 Jul 2009 08:30:21 +0000 I have created a ADF library jar out of taskflow and a file connection with name test1

Entry in default-catalog.xml

I get the following warning and the taskflow is not shown in resource catalog

WARNING: cannot find resource using repository [application.classpath] and repository path [adflibTaskApplication.jar/ADF_TaskFlow/WEB-INF+Task1.xml#Task1]. The repository may not be accessible or the resource may have been deleted or renamed
Jul 21, 2009 12:40:12 AM oracle.adfinternal.rc.jndi.FolderContext processInvalidElement()
WARNING: Element [Test1] of resource catalog [catalogDefinition] has been excluded from the catalog due to error [cannot resolve reference to resource using repository [application.classpath], repository path [adflibTaskApplication.jar/ADF_TaskFlow/WEB-INF+Task1.xml#Task1] at element [Test1] in catalog [catalogDefinition]].

By: Lucas Jellema Wed, 08 Jul 2009 08:47:57 +0000 Hi Edwin,

Thanks for the suggestion. I did try it, but it does not solve the issues. My conclusions at this point are:

I have probably (again I fear) misinterpreted or overestimated what ViewCriteria can do. I had assumed that when the VO Usage in the Application Module’s data model is one with a ViewCriteria active, that I would get a View (the VC) on top of the base VO and I could treat that like a base VO that consists of the fusion of the two. Clearly, that is not (exactly) how it works. Initially it seems to work that way, but at some point the VC part gets lost. ViewCriteria seem (at this point in time) to me meant for QueryForm and List of Values. Not as an additional (even dynamic through bind parameters) on top of a VO.

when I have a bounded task flow with a view/page (fragment) based on a specific ViewCriteria ‘collection’ that depends on a bind parameter, there is a problem:
– the initial selection of data (when the page first shows up) is fine, even with the value of the bind parameter derived from an input parameter to the task flow that is mapped to an EL expression in the Region Binding
– with the Region set to Refresh ifNeeded, changes in the value passed in to the input parameter are not handled very well: at that point the task flow does not seem to know the ViewCriteria anymore. If the ViewObject query itself does not contain the bind parameter, it throws the exception that I am trying to set the value of a bind parameter that does not appear in the query. When I add the bind parameter in some meaningless way to the VO’s main query, I can set the value of the bind parameter, but it has no effect whatsoever.

For now this means for me that I will stay away from using ViewCriteria in bounded task flows that I want to reuse from ADF Libraries (apart from using them for LOVs and Query Search Forms). But I will keep working on this. I still may be doing something very or at least somewhat wrong. Or the functionality of ViewCriteria needs to be extended just a little bit.


By: Edwin Biemond Mon, 06 Jul 2009 21:16:46 +0000 Hi Lucas, I don’t know if this works but

Can you set value of the bind variable on the viewobject in an application module method. and drag the method on the task flow and makes this the default activity. and pass the task flow input parameter to this method.

thanks edwin