title: Error executing CICS request while deploying app into IBM liberty Profile
body: <p>I´ve got an app that works perfectly if I deploy it (in my local) into WAS. However, I´m getting the following exception connecting to CICS services if if deploy it into Liberty Profile (WebSphere Application Server 8.5.5.8/wlp-1.0.11.cl50820151201-1942) in IBM J9 VM, version pwa6470_27sr2fp10-20141218_02 (SR2 FP10)
  : </p>
  
  <pre><code>com.ibm.connector2.cics.CICSUserInputException@a71e6144
  [invalidProperties=&lt;null&gt;,errorCode=&lt;null&gt;,linkedException=&lt;null&gt;,
  detailMessage=CTG9628E  InteractionSpec passed to execute() not of type ECIInteractionSpec,
  cause=com.ibm.connector2.cics.CICSUserInputException@a71e6144,stackTrace=&lt;null&gt;,
  suppressedExceptions=[]]
  </code></pre>
  
  <p>However the IteractionSpec IS an instance of ECIInteractionSpec:
  <a href="https://i.stack.imgur.com/vt7uQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vt7uQ.png" alt="exception debug"></a>
  This is my server.xml, for what is worth:</p>
  
  <pre class="lang-xml prettyprint-override"><code>        &lt;server description="new server"&gt;
          &lt;featureManager&gt;
              &lt;feature&gt;jsp-2.2&lt;/feature&gt;
              &lt;feature&gt;jpa-2.0&lt;/feature&gt;
              &lt;feature&gt;jaxrs-1.1&lt;/feature&gt;
              &lt;feature&gt;cdi-1.0&lt;/feature&gt;
              &lt;feature&gt;beanValidation-1.0&lt;/feature&gt;
              &lt;feature&gt;ejbLite-3.1&lt;/feature&gt;
              &lt;feature&gt;json-1.0&lt;/feature&gt;
              &lt;feature&gt;apiDiscovery-1.0&lt;/feature&gt;
              &lt;feature&gt;managedBeans-1.0&lt;/feature&gt;
              &lt;feature&gt;jca-1.6&lt;/feature&gt;
              &lt;feature&gt;jndi-1.0&lt;/feature&gt;
              &lt;feature&gt;javaMail-1.5&lt;/feature&gt;
              &lt;feature&gt;jaxws-2.2&lt;/feature&gt;
              &lt;feature&gt;localConnector-1.0&lt;/feature&gt;
              &lt;feature&gt;jms-1.1&lt;/feature&gt;
              &lt;feature&gt;servlet-3.1&lt;/feature&gt;
          &lt;/featureManager&gt;
  
          &lt;variable name="SHARED_LIB_ROOT" value="C:\IBM\\IBM\liberty_jars"/&gt;
          &lt;variable name="SHARED_LIB_CONFLU" value="C:\IBM\SHARED_LIB"/&gt;
  
           &lt;resourceAdapter autoStart="true" id="eciResourceAdapter" location="${SHARED_LIB_CONFLU}/cicseci-9.1.rar"&gt;
            &lt;classloader apiTypeVisibility="spec, ibm-api, third-party"/&gt;
         &lt;/resourceAdapter&gt;
  
         &lt;library apiTypeVisibility="spec, ibm-api, third-party" id="gneislibrary"&gt;
            &lt;folder dir="${SHARED_LIB_CONFLU}"/&gt;
         &lt;/library&gt;
          &lt;!-- drivers lib --&gt;
          &lt;!-- ORACLE --&gt;
          &lt;library id="oracle-lib"&gt;
              &lt;fileset dir="${SHARED_LIB_ROOT}\drivers\oracle" includes="oracle-ojdbc6-11.2.0.3.0.jar"/&gt;
          &lt;/library&gt;
          &lt;!-- DB2 --&gt;
          &lt;library id="db2-lib"&gt;
              &lt;fileset dir="${SHARED_LIB_ROOT}\drivers\db2" includes="db2jcc.jar db2jcc_license_cisuz.jar"/&gt;
          &lt;/library&gt;
  
          &lt;!-- To access this server from a remote client add a host attribute to 
              the following element, e.g. host="*" --&gt;
          &lt;httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/&gt;
  
          &lt;!-- Automatically expand WAR files and EAR files --&gt;
          &lt;applicationManager autoExpand="true"/&gt;
  
          &lt;applicationMonitor updateTrigger="mbean"/&gt;
  
         &lt;connectionFactory id="eciTest" jndiName="eis/CICSPWAS"&gt;
            &lt;properties.eciResourceAdapter TPNName="SCTG" connectionUrl="my_hostname" portNumber="my_port_number" tracelevel="3" userName="my_user_name"/&gt;
         &lt;/connectionFactory&gt;
  
          &lt;!-- external libs --&gt;
          &lt;library id="external-lib"&gt;
              &lt;fileset dir="${SHARED_LIB_ROOT}\external-lib" includes="*"/&gt;
              &lt;folder dir="${SHARED_LIB_ROOT}\external-lib"/&gt;
          &lt;/library&gt;
              &lt;quickStartSecurity userName="wasadmin" userPassword="123456"/&gt; 
  
  
  
  
          &lt;webApplication contextRoot="/myapp" id="oauth" location="myapp.war" name="myapp"&gt;
                &lt;classloader apiTypeVisibility="spec, ibm-api, third-party" classProviderRef="eciResourceAdapter" commonLibraryRef="gneislibrary" delegation="parentFirst"/&gt;
         &lt;/webApplication&gt;
          &lt;keyStore location="${server.output.dir}/resources/security/key.jks"&gt;&lt;/keyStore&gt;
      &lt;/server&gt;
  </code></pre>