Salve, sto sviluppando un applicazione java con RMI e JPA, il mio problema è il seguente:
L'applicazione lancia il seguente errore solo quando la avvia dal jar, mentre se l'avvio da netbeans tutto funziona normalmente.
Non riesco a capire il problema, spero possiate darmi una mano.Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: N o Persistence provider for EntityManager named RaySoftPU at javax.persistence.Persistence.createEntityManagerF actory(Unknown Sour ce) at javax.persistence.Persistence.createEntityManagerF actory(Unknown Sour ce) at server.Server.<init>(Server.java:48) at server.ServerControlPanel.jButton1ActionPerformed( ServerControlPanel. java:135) at server.ServerControlPanel.access$000(ServerControl Panel.java:21) at server.ServerControlPanel$1.actionPerformed(Server ControlPanel.java:5 0) at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source) at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Sour ce) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Sour ce) at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Sour ce) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Sour ce) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Grazie![]()