(JDeveloper 11.1.1.7, WLS 10.3.6, SOA/BPM 11.1.1.7)
In
my previous blog, I created a separate ADF project in the BPM Application for showing
the custom database related UI.
We
can imagine a scenario where I have to develop only the ADF page, and it might
take a couple of trials until I get the UI right.
So
each time I modify the ADF code, if I have to deploy the whole BPM application
to the Weblogic server and test it from the BPM workspace, it is a time
consuming process.
Instead,
I should be able to run only the ADF code (not the Task Forms created from the Human Task definitions, but the ADF pages/taskflows created based on custom DB) in the JDeveloper Integrated Weblogic
server and test it.
By
default, if we try to run the ADF pages inside the BPM application we might get
errors.
(The error is shown at the end of this blog)
Integrated
Weblogic server starts complaining about the SOA libraries coming from the
project and the page will not be runnable.
To
make the ADF code runnable in Integrated Weblogic server, we have to do a
couple of settings in JDeveloper and modify some project code as follows.
1. Use
Current Working Set
2. Uncheck BPM/SOA related projects in Manage Working Sets
3. Comment the adf-mds-config tag in the
adf-config.xml
4. Comment
the BPEL and SOA libraries in the weblogic-application.xml
5. Create
a test page in the common UI project and reuse the bounded taskflows.
6. Pass
parameters as required to the taskflows
The pages will be running in the JDeveloper Integrated
Weblogic Server.
The error we might get will be as follows.
[Running application EmplyeeBookRequests on Server Instance IntegratedWebLogicServer...]
[10:20:27 PM] ---- Deployment started. ----
[10:20:27 PM] Target platform is (Weblogic 10.3).
[10:20:31 PM] Retrieving existing application information
[10:20:31 PM] Running dependency analysis...
[10:20:31 PM] Deploying 2 profiles...
[10:20:31 PM] Wrote Web Application Module to C:\Users\Sameer\AppData\Roaming\JDeveloper\system11.1.1.7.40.64.93\o.j2ee\drs\EmplyeeBookRequests\EmployeeBookRequestCommonUIWebApp.war
[10:20:31 PM] Wrote Enterprise Application Module to C:\Users\Sameer\AppData\Roaming\JDeveloper\system11.1.1.7.40.64.93\o.j2ee\drs\EmplyeeBookRequests
[10:20:31 PM] Redeploying Application...
<Jun 1, 2013 10:20:32 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1370139631714' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.soa.workflow.wc, exact-match: false].'
weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.soa.workflow.wc, exact-match: false].
at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
Truncated. see log file for complete stacktrace
>
<Jun 1, 2013 10:20:32 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'EmplyeeBookRequests'.>
<Jun 1, 2013 10:20:32 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.soa.workflow.wc, exact-match: false].
at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
Truncated. see log file for complete stacktrace
>
[10:20:32 PM] #### Deployment incomplete. ####
[10:20:32 PM] Remote deployment failed
#### Cannot run application EmplyeeBookRequests due to error deploying to IntegratedWebLogicServer.
[Application EmplyeeBookRequests stopped and undeployed from Server Instance IntegratedWebLogicServer]
Just to be clear the default ADF Ui generated from the human task will not run on Jdeveloper , its only a ADF Ui based on Custom DB. The default ADF UI still needs the payload which depends on SOA and is not installed OOTB in IWLS.
ReplyDelete