|
Re: "This mapped class is not specified in persistence unit" and related issues [message #435005 is a reply to message #435004] |
Tue, 18 November 2008 23:21 |
Neil Hauge Messages: 475 Registered: July 2009 |
Senior Member |
|
|
Steve,
It sounds like in the process of commenting the persistence.xml file,
something in our model must have gotten out of sync, and as a result this
causes the resulting errors you are seeing.
If you exit the Workbench and restart, does this resolve the problems you
are seeing? Can you post your persistence.xml (without sensitive info of
course) if this does not resolve the problem?
Also, can you post the NullPointerException you are encountering? It
seems that the persistence.xml is at the root of this issue. If only 1
persistence unit is active, then the tools should work correctly, so I
would like to see what might be different about your case.
Neil
Steve Kuo wrote:
> I'm using the Dali/JPA Eclipse plugin as included in the download
> wtp-R-3.0.3-20081113203138.zip
> I'm getting the error "This mapped class is not specified in persistence
> unit" on my @Entity annotation. I do have more than one persistent unit.
> According to this message it's a limitation on Dali.
> http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00521.html
> So I have commented out all but one persistent unit in my persistence.xml
> file. This does not work.
> Furthermore when I try editing the JPA settings (Project-Properties-JPA) I
> get the popup error dialog "The currently displayed page contains invalid
> values". Is this Dali crashing?
> Also, if I go to my persistence.xml file and select JPA Tools -
> Synchronize Classes, I get an error popup saying "'Synchronize classes
> has' encountered a problem". Clicking on Details reveals that it's a null
> pointer exception.
> I'm not sure what else to try short of getting an older version of the
> plugin.
> Thanks, Steve
|
|
|
|
|
|
|
Re: "This mapped class is not specified in persistence unit" and related issues [message #611857 is a reply to message #435004] |
Tue, 18 November 2008 23:21 |
Neil Hauge Messages: 475 Registered: July 2009 |
Senior Member |
|
|
Steve,
It sounds like in the process of commenting the persistence.xml file,
something in our model must have gotten out of sync, and as a result this
causes the resulting errors you are seeing.
If you exit the Workbench and restart, does this resolve the problems you
are seeing? Can you post your persistence.xml (without sensitive info of
course) if this does not resolve the problem?
Also, can you post the NullPointerException you are encountering? It
seems that the persistence.xml is at the root of this issue. If only 1
persistence unit is active, then the tools should work correctly, so I
would like to see what might be different about your case.
Neil
Steve Kuo wrote:
> I'm using the Dali/JPA Eclipse plugin as included in the download
> wtp-R-3.0.3-20081113203138.zip
> I'm getting the error "This mapped class is not specified in persistence
> unit" on my @Entity annotation. I do have more than one persistent unit.
> According to this message it's a limitation on Dali.
> http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00521.html
> So I have commented out all but one persistent unit in my persistence.xml
> file. This does not work.
> Furthermore when I try editing the JPA settings (Project-Properties-JPA) I
> get the popup error dialog "The currently displayed page contains invalid
> values". Is this Dali crashing?
> Also, if I go to my persistence.xml file and select JPA Tools -
> Synchronize Classes, I get an error popup saying "'Synchronize classes
> has' encountered a problem". Clicking on Details reveals that it's a null
> pointer exception.
> I'm not sure what else to try short of getting an older version of the
> plugin.
> Thanks, Steve
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05410 seconds