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 208998

Summary: Persistence.xml error
Product: javaee Reporter: gnomao
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: error image

Description gnomao 2012-02-29 13:30:52 UTC
Created attachment 116203 [details]
error image

When classes are removed from persistence.xml by GUI wizard, appears a letter C in this xml, causing errors when executing.
Comment 1 Sergey Petrov 2012-03-20 13:10:17 UTC
Can you provide more details? the issue can't be reproduced with some simple steps like create java project, create two entities, remove one, I have no "C" and persistence.xml is correct.
Comment 2 gnomao 2012-03-20 13:25:27 UTC
(In reply to comment #1)
> Can you provide more details? the issue can't be reproduced with some simple
> steps like create java project, create two entities, remove one, I have no "C"
> and persistence.xml is correct.

I updated my IDE to version 7.1.1 and this error didn't occurr anymore. I was working on a web project. I don't know if this is important to know.
But these are the steps: 
 - Open persistence.xml by the GUI wizard (not the code). 
 - Click on the button "Add Classes" (I don't if it's written like that, because my IDE is in PT-BR ).
 - When classes are added, if was 7.1 version, a letter "C" would appear between the </properties> and </persistence-unit> like in the image that I attached.
It's only. Thanks!
Comment 3 Sergey Petrov 2012-03-20 13:38:44 UTC
ok, thanks, if you don't see it with 7.1.1 and if you have no objections I'm closing as worksforme, feel free to reopen if got something similar again.
In my opinion it's unlikely web project or j2se project matter but PT-BR may matter if it will be required to reevaluate the issue later.