gerei um jar utilizando o eclipse… > exporta > Runnable JAR file > …
Ele chega a executar a tela de login normalmente… ae clico no botao
logar e qndo vai buscar no banco da erro.
nao sei pq… alguem pode me ajudar?
ja procurei mais nao conseguir.
C:\Users\Carlos\Desktop\DEOSPPPPPP>java -jar Deosp1Op23.jar
Endereþo MAC: 00-18-DE-E0-E5-8B
Endereþo IP: 192.168.1.4
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:rsrc:slf4j-jdk14-1.5.8.jar!/org/slf4j/impl/StaticLo
ggerBinder.class]
SLF4J: Found binding in [jar:rsrc:slf4j-nop-1.5.8.jar!/org/slf4j/impl/StaticLogg
erBinder.class]
SLF4J: Found binding in [jar:rsrc:slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/Static
LoggerBinder.class]
SLF4J: Found binding in [jar:rsrc:slf4j-simple-1.5.8.jar!/org/slf4j/impl/StaticL
oggerBinder.class]
SLF4J: Found binding in [jar:rsrc:slf4j-jcl-1.5.8.jar!/org/slf4j/impl/StaticLogg
erBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
30/11/2010 21:28:59 org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.4.0.GA
30/11/2010 21:28:59 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.0.SP1
30/11/2010 21:28:59 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
30/11/2010 21:28:59 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
30/11/2010 21:28:59 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
30/11/2010 21:28:59 org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.1.0.GA
30/11/2010 21:28:59 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
30/11/2010 21:28:59 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at deosp.Telas.TelaLogin.efetuaLogin(TelaLogin.java:307)
at deosp.Telas.TelaLogin$3.actionPerformed(TelaLogin.java:145)
at javax.swing.JTextField.fireActionPerformed(Unknown Source)
at javax.swing.JTextField.postActionEvent(Unknown Source)
at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown 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.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java
:170)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configura
tion.java:1439)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1461)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfigu
ration.java:1017)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfigu
ration.java:64)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1448)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfigu
ration.java:1011)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfigu
ration.java:64)
at deosp.util.HibernateUtil.<clinit>(HibernateUtil.java:16)
... 30 more
Obrigado desde já.