EclipseLink project works in one Eclipse Workspace but not in another [message #385175] |
Fri, 09 January 2009 19:03  |
Eclipse User |
|
|
|
Hi,
I have a very small EclipseLink example which runs perfectly in a
workspace.
I imported this example in another workspace (same Eclipse installation
therefore same version, available plug-ins, etc.) and it did not work.
The following message was issued:
Exception in thread "main" javax.persistence.PersistenceException: No
Persistence provider for EntityManager named people
at
javax.persistence.Persistence.createEntityManagerFactory(Per sistence.java:89)
at
javax.persistence.Persistence.createEntityManagerFactory(Per sistence.java:60)
at de.vogella.jpa.eclipselink.main.Main.main(Main.java:18)
After lots of checking the only difference I could find is that the
second workspace is in a deep folder structure, something like:
C:\Documents and
Settings\vogella\Desktop\Documents\08_MyDocuments\20_Documen tation\JPAPersistenceExamples\de.vogella.jpa.eclipselink2\sr c\META-INF
I imported the project into a thrid workspace with a shorter path (again
same Eclipse installation) and it did work.
Are there any restrictions in relation to the path name or are there any
other reasons why the project does not run in the second workspace?
Best regards, Lars
--
Lars Vogel
http://www.vogella.de/eclipse.html - Tutorials about Eclipse
http://www.vogella.de/articles/RichClientPlatform/article.ht ml - Eclipse
RCP Tutorial
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08618 seconds