wellingtonsr
(usa Slackware)
Enviado em 17/06/2012 - 20:09h
Olá amigos do VOL.
Tenho uma
aplicação java que roda tranquilo no eclipse, mas quando exporto no formato .jar e executo,java -jar contas.jar, pelo terminal dá uma excessão:
Se alguém puder ajudar, desde já agradeço.
wellington@wellington-pc:~/Área de trabalho$ java -jar contas.jar
0 [AWT-EventQueue-0] INFO org.hibernate.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {4.0.0.CR2}
21 [AWT-EventQueue-0] INFO org.hibernate.Version - HHH000412: Hibernate Core {4.0.0.CR4}
29 [AWT-EventQueue-0] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
33 [AWT-EventQueue-0] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: Unable to configure EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:382)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:55)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
at org.wellington.contaspagar.conexao.ConexaoDB.<init>(ConexaoDB.java:12)
at org.wellington.contaspagar.repositorio.ContasPagarRepositorio.<init>(ContasPagarRepositorio.java:23)
at org.wellington.contaspagar.controller.ContasPagarControle.<init>(ContasPagarControle.java:16)
at org.wellington.contaspagar.gui.ContasPagarUI.<init>(ContasPagarUI.java:47)
at org.wellington.contaspagar.gui.ContasPagarUI$10.run(ContasPagarUI.java:351)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1958)
at org.hibernate.ejb.packaging.JarVisitorFactory.getJarURLFromURLEntry(JarVisitorFactory.java:57)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:348)
... 22 more