Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » [Solved!] ConfigAdmin Example error(Library(Springfield Memorial Library, 2 books) is not a known entity type.)
[Solved!] ConfigAdmin Example error [message #1066315] Tue, 02 July 2013 07:06
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i've seen another post regarding this problem, and tried to solve the problem with what was posted, but it did not resolve my problem, therefore i post it here.

as far as i can read from the log, EL finds my Classes and also resolves em.

[EL Config]: metadata: ServerSession(17737855)--The alias name for the entity class [class model.configadmin.Library] is being defaulted to: Library.


but later on the log tells me that Library is not a known entity type.
java.lang.IllegalArgumentException: Object: Library(Springfield Memorial Library, 2 books) is not a known entity type.
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4222)
	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:496)
	at client.LibraryClient.run(LibraryClient.java:25)
	at client.Activator.addingService(Activator.java:35)



1) i tried running the app with and without VM arg -DREFRESH_BUNDLES=FALSE
2) dependencies do NOT include org.eclipse.persistence.jpa.equinox.weaving (though when i click add required plugins its added automatically!?)
3) selected start levels AND Autostart:
gemini.jpa.client 4 true
gemini.jpa.gen 4 true
gemini.jpa.pu 4 true
javax.persistence 2 true
org.eclipse.equinox.cm 2 true
org.eclipse.gemini.dbaccess.derby 2 true
org.eclipse.gemini.jpa 2 true


as the log is too long to post here i have a link to pastebin where you can look the log up.

thanks in advance
ludwig

SOLUTION:
in the example MANIFEST files only model.configadmin was imported
thats what i did too, which resolved to the error described above.
i then tried to add required plug-in (.pu) and removed the imported packagege model configadmin.

and whohoo its working...

[Updated on: Wed, 03 July 2013 09:39]

Report message to a moderator

Previous Topic:[Solved]Problem with: example
Next Topic:Contribution
Goto Forum:
  


Current Time: Tue Apr 23 09:20:09 GMT 2024

Powered by FUDForum. Page generated in 0.03066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top