Troubleshooting
Problem
Projects in Designer 9.8 (eg. Portlet Application Project or Java Utility Project) use JSF version 2.2 in their build path.
(see <installdir>/common/runtime/bundles/mws-main/eclipse/plugins/org.glassfish.javax.faces_2.2.8.jar).
When a project is built with ABE, JSF version 1.2 is used in the classpath
(see <installdir>/common/lib/ext/jsf-api.jar).
This causes problems, for example:
When a project uses javax.faces.UIComponent#getClientId() the build with ABE fails with compile errors (as JSF 1.2 does not contain this method).
1. A modification of the order of the classpath in /AssetBuildEnvironment/MWS/build.xml is not a valid option
2. Trying the following modification:
<fileset dir="${common.lib.dir}/../runtime/bundles/mws-main/eclipse/plugins" includes="*.jar" erroronmissingdir="false"/> <--! line was moved to 1st position -->
<fileset dir="${common.lib.dir}/ext" includes="*.jar"/>
<fileset dir="${common.lib.dir}" includes="*.jar" excludes="*-components.jar" />
<fileset dir="${common.lib.dir}/glassfish" includes="*.jar"/>
<fileset dir="${common.lib.dir}/../runtime/agent/repository/plugins" includes="*.jar" erroronmissingdir="false"/>
<fileset dir="${common.lib.dir}/../runtime/bundles/wss/eclipse/plugins" includes="*.jar" erroronmissingdir="false"/>
In this case the build is successful, however when JARs are built, the type in ACDLs is set to 'cdp' instead of 'jar'.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17214199