• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA old entity classes

 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a small problem with the JPA entity classes, which I had removed and never used any more. I am using Netbeans and if I simply deleted or moved the entity classes, I had to struggle with this problem. There is an exception like "NoClassDefFound" and a message like: cannot find + name the already deleted entity classes. It never mind, because the application deploys normally. But it is still every time in the log of Glass Fish (every deployment the same...). Could you tell me please how to solve this issue? Where is the place, where are the references to the (old - removed) entity classes remaining?

Thank you and sorry for my poor english )
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there references to them in your persistence.xml?

 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, they are not. I explicitly specify the list of active entity classes in the persistence.xml.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You marked this question as resolved. Did you figure it out?
 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I did it unintentionally. Do you know, how to mark it as unresolved? :-)
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I marked it as unresolved for you.

Are you deploying from and IDE? Make sure that the application is completely removed from the application server. Perhaps you have stale files or references. Can you post the exact stack trace?
 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I am a really Greenhorn :-).

I am deploying from NetBeans IDE. Ok, I will try to completely remove the application - there is an undeploy-button. Stack trace - yes, but not yet. I will be by my programming PC in the evening.
 
Petr Dusek
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you were right - it is necessary to undeploy! I have deployd my application just now and no exeption was trown. Thanks a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic