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.

Bug 66647 - Invalid project.xml generated for new freeform ant project
Summary: Invalid project.xml generated for new freeform ant project
Status: RESOLVED DUPLICATE of bug 66563
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 18:03 UTC by pbw
Modified: 2005-10-17 18:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log file at time of error message (12.82 KB, text/plain)
2005-10-15 19:04 UTC, pbw
Details
nbproject directory of main project (3.01 KB, application/x-compressed)
2005-10-15 19:08 UTC, pbw
Details
~/.netbeans/dev directory (2.31 MB, application/x-compressed)
2005-10-15 19:17 UTC, pbw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pbw 2005-10-12 18:03:04 UTC
After breakages while editing my project.xml file to support multiple
(compile/run/debug).single targets, I deleted my ~/.netbeans/dev directory, and
the nbproject directory in my project.  Opened daily build 200510111800. New
project-> existing sources with ant file.  Continued with setup,  In output, I
get a tab: Output- Errors in /home/pbw/netbeans/Folio/nbproject/project.xml,
with the text
cvc-complex-type.2.4.a: Invalid content was found starting with element
'general-data'. One of '{WC[##other:"http://www.netbeans.org/ns/project/1"]}' is
expected.

(This error was occurring after my earlier edits to implement the single file
targets I wanted (as per the documentation on anvanced freeform projects).  In
the end, I lost the name of the project in the projects window - just ???
appeared. That's why I scrubbed everything and started from scratch.)
Comment 1 pbw 2005-10-12 18:04:01 UTC
Changed platform and OS.
Comment 2 Jan Lahoda 2005-10-15 10:11:16 UTC
Looks like the same problem as in issue #66563. The problem is probably caused
by an incompatible version of xerces on the classpath. Could you please attach here:
1. messages.log from your userdir.
2. content of the nbproject/ directory of your project.

This should help to identify the problem.

Thanks.
Comment 3 pbw 2005-10-15 19:02:33 UTC
I had reverted to using 4.1, and rebuilt my nbproject directories.  I
uninstalled my old copy of 5.0dev (and 4.2dev), downloaded the current qbuild
(200510131600) and installed it, after making copies of the nbproject
directories in my projects.

I started 5.0dev, and imported my 4.1 settings.  The nbproject file showed no
glaring changes.  I then tried to add output directories and a javadocs
directory to my main project.  When I OK'ed the changes, the error message

cvc-complex-type.2.4.a: Invalid content was found starting with element
'java-data'. One of '{WC[##other:"http://www.netbeans.org/ns/project/1"]}' is
expected.

popped up in and output window labelled "Output - Errors in
/home/pbw/netbeans/Folio/nbproject/project.xml", as before.

Nothing obvious in messages.log, which I will attach.  I will also attach a jar
of the nbproject directory, and a jar of the ~/.netbeans/dev directory.

I intend to revert to 4.1 now.
Comment 4 pbw 2005-10-15 19:04:21 UTC
Created attachment 25991 [details]
messages.log file at time of error message
Comment 5 pbw 2005-10-15 19:08:16 UTC
Created attachment 25992 [details]
nbproject directory of main project
Comment 6 pbw 2005-10-15 19:17:59 UTC
Created attachment 25993 [details]
~/.netbeans/dev directory
Comment 7 pbw 2005-10-15 19:22:00 UTC
jre/lib/endorsed in my 1.5.0.05 installation contains xalan 2.7.0 and xerces 2.7.1.
Comment 8 Jan Lahoda 2005-10-15 20:21:34 UTC
Thanks, I will take a look on it. One more question: do you run NB4.1 on the
same JDK as NB5.0?
Comment 9 pbw 2005-10-15 20:33:32 UTC
Yes, same JDK.
Comment 10 Jan Lahoda 2005-10-17 18:26:39 UTC
Most probably duplicate of issue #66563. Thanks for the help (I am able to
reproduce the problem now).


*** This issue has been marked as a duplicate of 66563 ***