"This mapped class is not specified in persistence unit" and related issues [message #435004] |
Mon, 17 November 2008 20:06  |
Eclipse User |
|
|
|
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 #435005 is a reply to message #435004] |
Tue, 18 November 2008 18:21   |
Eclipse User |
|
|
|
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 #435010 is a reply to message #435008] |
Mon, 24 November 2008 07:07  |
Eclipse User |
|
|
|
And what about the hibernate part ?
>> When you say install the plugin what do you actually do ?
>
> I unzipped wtp-R-3.0.3-20081113203138.zip which overwrote and copied
> some files to my eclipse directory. That is, I unzipped it from the
> directory above my eclipse directory. The contents of
> wtp-R-3.0.3-20081113203138.zip is:
> eclipse
> features
> pluguns
> I also tried installing "Java Persistence API Tools" via the Software
> Update menu option, which appears to be an older version.
>
> Steve
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
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 18:21  |
Eclipse User |
|
|
|
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 #611862 is a reply to message #435006] |
Thu, 20 November 2008 07:06  |
Eclipse User |
|
|
|
> I fixed it by starting all over again. That is, start with a new
> workspace, install the Hibernate plugin, then install and associate the
> Dali JPA plugin.
> If I install and associate the Dali JPA plugin first, then install the
> Hibernate plugin, the for mentioned Dali bug behavior occurs.
That sounds very weird...shouldn't be any difference.
When you say install the plugin what do you actually do ?
/max
|
|
|
Re: "This mapped class is not specified in persistence unit" and related issues [message #611865 is a reply to message #435007] |
Fri, 21 November 2008 18:34  |
Eclipse User |
|
|
|
> When you say install the plugin what do you actually do ?
I unzipped wtp-R-3.0.3-20081113203138.zip which overwrote and copied some
files to my eclipse directory. That is, I unzipped it from the directory
above my eclipse directory. The contents of wtp-R-3.0.3-20081113203138.zip
is:
eclipse
features
pluguns
I also tried installing "Java Persistence API Tools" via the Software
Update menu option, which appears to be an older version.
Steve
|
|
|
Re: "This mapped class is not specified in persistence unit" and related issues [message #611869 is a reply to message #435008] |
Mon, 24 November 2008 07:07  |
Eclipse User |
|
|
|
And what about the hibernate part ?
>> When you say install the plugin what do you actually do ?
>
> I unzipped wtp-R-3.0.3-20081113203138.zip which overwrote and copied
> some files to my eclipse directory. That is, I unzipped it from the
> directory above my eclipse directory. The contents of
> wtp-R-3.0.3-20081113203138.zip is:
> eclipse
> features
> pluguns
> I also tried installing "Java Persistence API Tools" via the Software
> Update menu option, which appears to be an older version.
>
> Steve
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Powered by
FUDForum. Page generated in 0.05613 seconds