InvocationTargetException: javax/persistence/Persistence
问题 Im trying to follow the example in chapter 2 of the book Beginning Java EE 6 Platform with GlassFish 3. I am using EclipseLink, Derby and Maven from cmd in Windows. I really can't figure this out and would be grateful for some help! This line EntityManagerFactory emf = Persistence.createEntityManagerFactory("chapter02PU"); in my Main.java class generates the following error: [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] ---------------------------------