Hi Experts,
I have a BPEL process, it has the following:
- 2 file adapters one for triggering the BPEL process & deletes the trigger file as soon as it reads the file and other File Adapter that writes it on to same location of the first FileAdapter polling directory, so it can be kicked off automatically.
- One Java embedding, it does all the work. The whole idea of this BPEL process is to unzip the files from few folders and move the unzipped file to few other different destinations. This is being handled by the Java Embedding in the BPEL process.
It works fine when it has been kicked off manually. However, I am getting runtime null pointer exception while deploying the project after I placed the 2 files adapters to kick off the BPEL process.
I contacted Oracle support on the runtime exception, they mentioned that File Adapter starts polling as soon as the deployment starts and the SOA application doesn't have the necessary class / jar file which is being used by the Java Embedding activity.
So, I created a jar file with the java class which are necessary for Java Embedding and added it to "Project Properties --> Libraries and ClassPath". I am still getting the same deployment error message.
Please advise.

Composite Code:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated by Oracle SOA Modeler version 11.1.1.7.0 at [10/20/14 3:51 PM]. -->
<composite name="Job2_UnZip"
revision="3.0"
label="2014-10-20\_15-51-13\_075"
mode="active"
state="on"
xmlns="[http://xmlns.oracle.com/sca/1.0](http://xmlns.oracle.com/sca/1.0)"
xmlns:xs="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)"
xmlns:wsp="[http://schemas.xmlsoap.org/ws/2004/09/policy](http://schemas.xmlsoap.org/ws/2004/09/policy)"
xmlns:orawsp="[http://schemas.oracle.com/ws/2006/01/policy](http://schemas.oracle.com/ws/2006/01/policy)"
xmlns:ui="[http://xmlns.oracle.com/soa/designer/](http://xmlns.oracle.com/soa/designer/)">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/ReadTriggerFile"
location="ReadTriggerFile.wsdl" importType="wsdl"/>
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/WriteTriggerFile"
location="WriteTriggerFile.wsdl" importType="wsdl"/>
<service name="ReadTriggerFile" ui:wsdlLocation="ReadTriggerFile.wsdl">
\<interface.wsdl interface="[http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/ReadTriggerFile#wsdl.interface(Read_ptt](http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/ReadTriggerFile#wsdl.interface(Read_ptt))"/>
\<binding.jca config="ReadTriggerFile\_file.jca"/>
</service>
<property name="productVersion" type="xs:string" many="false">11.1.1.7.0</property>
<component name="BPELProcess1" version="2.0">
\<implementation.bpel src="BPELProcess1.bpel"/>
\<property name="bpel.config.oneWayDeliveryPolicy" type="xs:string"
many="false">async.persist\</property>
</component>
<reference name="WriteTriggerFile" ui:wsdlLocation="WriteTriggerFile.wsdl">
\<interface.wsdl interface="[http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/WriteTriggerFile#wsdl.interface(Write_ptt](http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/WriteTriggerFile#wsdl.interface(Write_ptt))"/>
\<binding.jca config="WriteTriggerFile\_file.jca"/>
</reference>
<wire>
\<source.uri>ReadTriggerFile\</source.uri>
\<target.uri>BPELProcess1/ReadTriggerFile\</target.uri>
</wire>
<wire>
\<source.uri>BPELProcess1/WriteTriggerFile\</source.uri>
\<target.uri>WriteTriggerFile\</target.uri>
</wire>
</composite>
Here is the BPEL code:
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Oracle JDeveloper BPEL Designer
Created: Mon Oct 20 16:00:54 EDT 2014
Author: i4tr1hs
Type: BPEL 2.0 Process
Purpose: Empty BPEL Process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<process name="BPELProcess1"
targetNamespace="[http://xmlns.oracle.com/Job2_UnZip/Job2_UnZip/BPELProcess1](http://xmlns.oracle.com/Job2_UnZip/Job2_UnZip/BPELProcess1)"
xmlns="[http://docs.oasis-open.org/wsbpel/2.0/process/executable](http://docs.oasis-open.org/wsbpel/2.0/process/executable)"
xmlns:client="[http://xmlns.oracle.com/Job2_UnZip/Job2_UnZip/BPELProcess1](http://xmlns.oracle.com/Job2_UnZip/Job2_UnZip/BPELProcess1)"
xmlns:ora="[http://schemas.oracle.com/xpath/extension](http://schemas.oracle.com/xpath/extension)"
xmlns:bpel="[http://docs.oasis-open.org/wsbpel/2.0/process/executable](http://docs.oasis-open.org/wsbpel/2.0/process/executable)"
xmlns:ns1="[http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/ReadTriggerFile](http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/ReadTriggerFile)"
xmlns:ns2="[http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/WriteTriggerFile](http://xmlns.oracle.com/pcbpel/adapter/file/Job2_UnZip/Job2_UnZip/WriteTriggerFile)"
xmlns:bpelx="[http://schemas.oracle.com/bpel/extension](http://schemas.oracle.com/bpel/extension)"
xmlns:ns3="[http://xmlns.oracle.com/pcbpel/adapter/file/attachment/](http://xmlns.oracle.com/pcbpel/adapter/file/attachment/)">
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<partnerLinks>
\<partnerLink name="ReadTriggerFile" partnerLinkType="ns1:Read\_plt"
myRole="Read\_role"/>
\<partnerLink name="WriteTriggerFile" partnerLinkType="ns2:Write\_plt"
partnerRole="Write\_role"/>
</partnerLinks>
<variables>
\<variable name="Receive\_Read\_InputVariable" messageType="ns1:Read\_msg"/>
\<variable name="Invk\_Write\_InputVariable" messageType="ns2:Write\_msg"/>
</variables>
<sequence name="main">
\<receive name="Receive" createInstance="yes" partnerLink="ReadTriggerFile"
portType="ns1:Read\_ptt" operation="Read"
variable="Receive\_Read\_InputVariable"/>
\<assign name="Transform">
\<bpelx:annotation>
\<bpelx:pattern patternName="bpelx:transformation"/>
\</bpelx:annotation>
\<copy>
\<from>ora:doXSLTransformForDoc("xsl/Transformation.xsl", $Receive\_Read\_InputVariable.attach)\</from>
\<to variable="Invk\_Write\_InputVariable" part="body"/>
\</copy>
\</assign>
\<invoke name="Invk" bpelx:invokeAsDetail="no"
partnerLink="WriteTriggerFile" portType="ns2:Write\_ptt"
operation="Write" inputVariable="Invk\_Write\_InputVariable"/>
\<extensionActivity>
\<bpelx:exec name="Java\_Embedding1" language="java">
<!-- <bpelx:exec import="import java.io.File"/>
<bpelx:exec import="import java.io.FileOutputStream"/>
<bpelx:exec import="import java.io.IOException"/>
<bpelx:exec import="import java.io.InputStream"/>
<bpelx:exec import="import java.util.Enumeration"/>
<bpelx:exec import="import java.util.zip.ZipEntry"/>
<bpelx:exec import="import java.util.zip.ZipException"/>
<bpelx:exec import="import java.util.zip.ZipFile"/>
<bpelx:exec import="import java.util.Enumeration"/>
<bpelx:exec import="import java.util.Hashtable"/> -->
<bpelx:exec import="imaging"/>
\<!\[CDATA\[/\*Write your java code below e.g.
System.out.println("Hello, World");
*/
try {
UnZip sayIt = new UnZip();
sayIt.getAllDocTypFolderstoUnzip();
} catch (Exception e) {
System.out.println("exception "+e.getMessage());
//addAuditTrailEntry(e);
}]]>
\</bpelx:exec>
\</extensionActivity>
</sequence>
</process>
Please advise.