Friday, January 7, 2011

Failed to compile bpel generated classes



Error(38,37): Failed to compile bpel generated classes.
failure to compile the generated BPEL classes for BPEL process "BPELProcess3" of composite "default/PVPreactivationPhase2!1.0"
The class path setting is incorrect.
Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.


here some other people facing a similar issue

I do this:

ant -verbose -f ant-sca-compile.xml -Dscac.input=C:/
JDeveloper/mywork/PVPreactivation/PVPreactivationPhase2/composite.xml



the classpath is a monster:


C:\JDeveloper\mywork\PVPreactivation\PVPreactivationPhase2\SCA-INF\classes
C:\Oracle1\Middleware\jdeveloper\bin
C:\Oracle1\Middleware\jdeveloper\soa\modules\fabric-url-handler_11.1.1.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.client_11.1.1\oracle.bpm.bpm-services.interface.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.client_11.1.1\oracle.bpm.web-resources.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.project_11.1.1\oracle.bpm.project.catalog.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.project_11.1.1\oracle.bpm.project.compile.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.project_11.1.1\oracle.bpm.project.io.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.project_11.1.1\oracle.bpm.project.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.project_11.1.1\oracle.bpm.project.model.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle-bpm.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.analytics.actions.ejb.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.analytics.common.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.analytics.dashboard.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.analytics.measurement.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.analytics.persistence.ejb.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.boot.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.bpm-services.implementation.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.bpm-services.internal.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.bpmobject.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.bpmobject.runtime.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.compiler.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.compiler.xpath.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.core.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.fdi.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.fusion.repository.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.fusion.sca.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.fusion.scac.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.fusion.soa.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.lib.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.metadata.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.papi.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.parser.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.pml.service.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.runtime.bpmn-engine.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.runtime.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.vfilesystem.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.bpm.runtime_11.1.1\oracle.bpm.xml.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.rules_11.1.1\rl.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.rules_11.1.1\rulesdk2.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\testfwk-xbeans.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar
C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\builtin_serialization.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\core_services_client.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\jaxm.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\jaxrpc.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\saaj.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\security-ng.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\security2-ng.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\security_providers_client.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\taxonomy_client_v3.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\uddiclient_api_v3.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\uddiclient_core.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\wasp.jar
C:\Oracle1\Middleware\jdeveloper\uddi\lib\wsdl2uddi_client_v3.jar
C:\Oracle1\Middleware\modules\com.bea.core.apache.commons.collections_3.2.0.jar
C:\Oracle1\Middleware\modules\com.bea.core.apache.commons.lang_2.1.0.jar
C:\Oracle1\Middleware\modules\com.bea.core.weblogic.workmanager_1.8.0.0.jar
C:\Oracle1\Middleware\modules\com.bea.core.xml.xmlbeans_2.2.0.0.jar
C:\Oracle1\Middleware\modules\javax.management.j2ee_1.0.jar
C:\Oracle1\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar
C:\Oracle1\Middleware\modules\javax.xml.rpc_1.2.1.jar
C:\Oracle1\Middleware\oracle_common\modules\commonj.sdo_2.1.0.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc-share.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.bali.share_11.1.1\share.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.classloader_11.1.1.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.http_client_11.1.1.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.javacache_11.1.1\cache.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.logging-utils_11.1.1.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.mds_11.1.1\oramds.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-mapping.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.ucp_11.1.0.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.webservices_11.1.1\orawsdl.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.webservices_11.1.1\wsclient.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.wsm.common_11.1.1\wsm-policy-core.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.wsm.common_11.1.1\wsm-secpol.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar
C:\Oracle1\Middleware\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar
C:\Oracle1\Middleware\oracle_common\modules\org.apache.commons.beanutils_1.6.jar
C:\Oracle1\Middleware\oracle_common\modules\org.apache.commons.digester_1.8.jar
C:\Oracle1\Middleware\oracle_common\modules\org.apache.commons.logging_1.0.4.jar
C:\Oracle1\Middleware\oracle_common\modules\org.springframework_2.0.jar
C:\Oracle1\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar
C:\Oracle1\Middleware\oracle_common\webservices\wsclient_extended.jar
C:\Oracle1\Middleware\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc5.jar
C:\Oracle1\Middleware\wlserver_10.3\server\lib\wldb2.jar
C:\Oracle1\Middleware\wlserver_10.3\server\lib\wlsqlserver.jar
C:\Program Files\Java\jdk1.6.0_21\lib\tools.jar
C:\apps\ant\lib\ant-antlr.jar
C:\apps\ant\lib\ant-apache-bcel.jar
C:\apps\ant\lib\ant-apache-bsf.jar
C:\apps\ant\lib\ant-apache-log4j.jar
C:\apps\ant\lib\ant-apache-oro.jar
C:\apps\ant\lib\ant-apache-regexp.jar
C:\apps\ant\lib\ant-apache-resolver.jar
C:\apps\ant\lib\ant-apache-xalan2.jar
C:\apps\ant\lib\ant-commons-logging.jar
C:\apps\ant\lib\ant-commons-net.jar
C:\apps\ant\lib\ant-jai.jar
C:\apps\ant\lib\ant-javamail.jar
C:\apps\ant\lib\ant-jdepend.jar
C:\apps\ant\lib\ant-jmf.jar
C:\apps\ant\lib\ant-jsch.jar
C:\apps\ant\lib\ant-junit.jar
C:\apps\ant\lib\ant-launcher.jar
C:\apps\ant\lib\ant-netrexx.jar
C:\apps\ant\lib\ant-nodeps.jar
C:\apps\ant\lib\ant-swing.jar
C:\apps\ant\lib\ant-testutil.jar
C:\apps\ant\lib\ant.jar
C:\bea11\jdk160_18\bin



the error message suggests to open C:\Users\pierre\AppData\Local\Temp\out.err

there I find only:


WARNING: CubeProcessor.compileGeneratedClasses() classpath is: C:\JDeveloper\mywork\PVPreactivation\PVPreactivationPhase2\SCA-INF\classes;C:\JDeveloper\mywork\PVPreactivation\PVPreactivationPhase2\SCA-INF\gen-classes;C:\Oracle1\Middleware\jdeveloper\..\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\Oracle1\Middleware\jdeveloper\..\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle1\Middleware\jdeveloper\..\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;C:\Oracle1\Middleware\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\classes/;C:\Oracle1\Middleware\jdeveloper\..\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar



and in the same directory, in out.xml, I find:




   
      FATAL_ERROR
      /ns:composite/ns:component[@name='PreactivateLine']
      38
      37
      
      
         
      
   





but in fact only in the stdout of the ant console you can find the actual cause of error (a missing variable in a Java scriptlet). Fix the Java Scriptlet compilation problem and the error will go away.

No comments: