Hello.
I downloaded JDK 6 Update 3, then NetBeans 6 Beta 2, and I tried to reproduce step by
step the "Building a Java Desktop Database Application" tutorial.
However, when I try to Run the Project, the following messages appears.
Finally, a body of netbeans forum support, told me that the problem is a Toplink issue, caused by the 'é' char in the path.
I wanted to leave the issue for solving the important bug that apparently Toplink is having respect special characters in the path.
Thanks,
Andrés.
> > init:
> > deps-jar:
> > Created dir: C:\Documents and Settings\Andrés Gallo\My
> > Documents\NetBeansProjects\CarsApp\build\classes
> > Compiling 4 source files to C:\Documents and Settings\Andrés Gallo\My
> > Documents\NetBeansProjects\CarsApp\build\classes
> > Note: C:\Documents and Settings\Andrés Gallo\My
> > Documents\NetBeansProjects\CarsApp\src\carsapp\CarsView.java uses unchecked or unsafe
> > operations.
> > Note: Recompile with -Xlint:unchecked for details.
> > Copying 23 files to C:\Documents and Settings\Andrés Gallo\My
> > Documents\NetBeansProjects\CarsApp\build\classes
> > compile:
> > run:
> > 02/11/2007 15:03:29 org.jdesktop.application.Application$1 run
> > GRAVE: Application class carsapp.CarsApp failed to launch
> > javax.persistence.PersistenceException: No Persistence provider for EntityManager
> named
> > car_databasePU: The following providers:
> > oracle.toplink.essentials.PersistenceProvider
> > oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
> > Returned null to createEntityManagerFactory.
> >
> > at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
> > at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
> > at carsapp.CarsView.initComponents(CarsView.java:270)
> > at carsapp.CarsView.<init>(CarsView.java:34)
> > at carsapp.CarsApp.startup(CarsApp.java:19)
> > at org.jdesktop.application.Application$1.run(Application.java:174)
> > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
> > at
> > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
> > at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
> > at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
> > Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class
> carsapp.CarsApp
> > failed to launch
> > at org.jdesktop.application.Application$1.run(Application.java:180)
> > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
> > at
> > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
> > at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
> > at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
> > Caused by: javax.persistence.PersistenceException: No Persistence provider for
> > EntityManager named car_databasePU: The following providers:
> > oracle.toplink.essentials.PersistenceProvider
> > oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
> > Returned null to createEntityManagerFactory.
> >
> > at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
> > at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
> > at carsapp.CarsView.initComponents(CarsView.java:270)
> > at carsapp.CarsView.<init>(CarsView.java:34)
> > at carsapp.CarsApp.startup(CarsApp.java:19)
> > at org.jdesktop.application.Application$1.run(Application.java:174)
> > ... 8 more
> > BUILD SUCCESSFUL (total time: 5 seconds)
[Message sent by forum member 'andresdamian' (andresdamian)]
http://forums.java.net/jive/thread.jspa?messageID=243618