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.
Created attachment 92404 [details] Project to reproduce I have attached the DynamicPartnerLink project which uses addressing.xsd file in the WSDL file. When building this project in IDE, the project builds. But when built in commandline, build fails with the following error [validate-project] [Fatal Error] :1:1: Content is not allowed in prolog. [validate-project] E:/space/jdev/sp201017/paths/jbidev/jbi/shasta/engines/bpel/nb/DPL_BpelEPRInRequestBpel/src/BpelEPRInRequest.bpel:0: 8 [validate-project] ERROR: In part "EPR", attribute element's value "wsa:EndpointReference" is not a valid xml schema element available i n this wsdl file. : Specify a valid schema element value for element attribute. Issue is found in GFESB build: 20091210-0720
Created attachment 92405 [details] Commandline Build Output
Vladimir, please take a look ASAP.
Created attachment 92406 [details] IDE Build Output
the problem is in addressing.xsd file which contains special bytes (Byte-Order Mark, BOM). Parser which is called from command line doesn't process these bytes correctly and warns about invalid content. The issue will be fixed in gfesbv23 only: more complex investigations are required. Note that there is easy workaround - delete these bytes from the schema.
Created attachment 92516 [details] Test project Steps to reproduce: Unzip and build Synchronous project from command line. Error message before fix: [Fatal Error] :1:1: Content is not allowed in prolog. ... After fix the project should be built successfully.
Investigation shows that the fix is easy and no risky, therefore fix will be in gfesbv22 too.
fixed in gfesbv23: 538b2bbd91e9 fixed in gfesbv22: 913b2c9f5de5
The project is building successfully in the commandline. [:C:/Documents and .../Desktop/Synchronous] nbant clean dist_se Buildfile: build.xml do-clean: [delete] Deleting directory C:\Documents and Settings\sp201017\Desktop\Synchronous\build do-dist: [mkdir] Created dir: C:\Documents and Settings\sp201017\Desktop\Synchronous\build [copy] Copying 4 files to C:\Documents and Settings\sp201017\Desktop\Synchronous\build [jar] Building jar: C:\Documents and Settings\sp201017\Desktop\Synchronous\build\SEDeployment.jar BUILD SUCCESSFUL Total time: 11 seconds This issue is verified to work properly in GFESB build 20091217-0720. This issue can be closed.