This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If you do a build on any of the BPEL blueprints, you will see this warning. "Warning: C:\Documents and Settings\soa\BluePrint3\BluePrint3\retrieved not found." I have found cause of this problem: It seems the Blueprints were packaged at a different phase than other samples. The key point is that the Blueprint samples are missing conditional logic to check for existance of "retrieved" directory. Instead it is looking for retrieved directory and warning that it does not exist. Other build_impl.xml have this test: <target name="PackageRetrievedFiles" if="retrieved.exists"> <copy todir="${build.dir}/META-INF" preservelastmodified="true" failonerror="false"> <fileset dir="${src.dir}/../retrieved"/> </copy> </target> Here is diff b/t build_impl.xml in SynchrousSample vs Blueprint1. The syncsample is 7 lines longer because of additional conditional logic. *** build-impl.xml --- build-impl.xml *************** *** 46,51 **** --- 46,52 ---- <condition property="no.javadoc.preview"> <isfalse value="${javadoc.preview}"/> </condition> + <available file="${src.dir}/../retrieved" property="retrieved.exists"/> </target> <target name="post-init"> <!-- Empty placeholder for easier customization. --> *************** *** 72,77 **** --- 73,79 ---- <pathelement location="${netbeans.home}/../xmltools1/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> <pathelement location="${netbeans.home}/../ide7/modules/org-apache-xml-resolver.jar"/> <pathelement location="${netbeans.home}/../ide7/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${netbeans.home}/../ide7/modules/ext/resolver-1_1_nb.jar"/> </path> <path id="ant.task.classpath.validation"> <pathelement location="${netbeans.home}/../soa1/modules/org-netbeans-modules-bpel-core.jar"/> *************** *** 88,93 **** --- 90,96 ---- <pathelement location="${netbeans.home}/../xmltools1/modules/ext/jxpath/jxpath1.1.jar"/> <pathelement location="${netbeans.home}/../ide7/modules/org-apache-xml-resolver.jar"/> <pathelement location="${netbeans.home}/../ide7/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${netbeans.home}/../ide7/modules/ext/resolver-1_1_nb.jar"/> </path> <taskdef name="generate-jbi-descriptors" classname="org.netbeans.modules.bpel.project.anttasks.GenerateJBIDescriptorTask"> <classpath refid="ant.task.classpath.models"/> *************** *** 149,171 **** <!-- You can override this target in the ../build.xml file. --> <mkdir dir="${build.dir}"/> <!-- run the validation task here. --> ! <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath.validation" runValidation="${validation.flag}"/> <!-- copy all files from project source directory to build directory. --> <copy todir="${build.dir}" preservelastmodified="true"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd" dir="${src.dir}"/> </copy> ! <copy todir="${build.dir}/META-INF" preservelastmodified="true" failonerror="false"> ! <fileset dir="${src.dir}/../retrieved"/> ! </copy> <!-- generate portmap.xml in build directory. --> <generate-jbi-descriptors buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath.models"/> <!-- extract wsdl/xsd files from dependent projects and copy to build/dependentProjectFiles. --> <delete dir="${build.dir}/dependentProjectFiles"/> <mkdir dir="${build.dir}/dependentProjectFiles"/> </target> <target name="dist_se" depends="init,pre-dist"> <jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar"> --- 152,174 ---- <!-- You can override this target in the ../build.xml file. --> <mkdir dir="${build.dir}"/> <!-- run the validation task here. --> ! <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath.validation" allowBuildWithError="${allow.build.with.error}"/> <!-- copy all files from project source directory to build directory. --> <copy todir="${build.dir}" preservelastmodified="true"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd" dir="${src.dir}"/> </copy> ! <antcall target="PackageRetrievedFiles" inheritAll="true"/> <!-- generate portmap.xml in build directory. --> <generate-jbi-descriptors buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath.models"/> <!-- extract wsdl/xsd files from dependent projects and copy to build/dependentProjectFiles. --> <delete dir="${build.dir}/dependentProjectFiles"/> <mkdir dir="${build.dir}/dependentProjectFiles"/> </target> + <target name="PackageRetrievedFiles" if="retrieved.exists"> + <copy todir="${build.dir}/META-INF" preservelastmodified="true" failonerror="false"> + <fileset dir="${src.dir}/../retrieved"/> + </copy> + </target> <target name="dist_se" depends="init,pre-dist"> <jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd" dir="${basedir}/${build.dir}"/>
This applies to Blueprints 1-5. It seems fix should be to simply make the build_impl.xml identical to that used for Sync, Async, and TRS samples.
closing this as duplicate of 85451. Only difference b/t that bug and this was that on some environments the old build_impl.xml caused warning (as reported here) and on other env it caused error as reported in 85451. In both cases, the fix for 85451 should take care of both warning or error. *** This issue has been marked as a duplicate of 85451 ***
verified