beckveg 0 Newbie Poster

Hello everyone

I want to run a .jar file, but the only way to run in my computer is with the "java -jar file.jar ", but the problem is that the application conects to a mysqldatabase, when I want to add something in the program appear a message that say "cannot open a conection", ant I get this in the ms dos console:
I hope you can help me, the application doesnt work, and I am desesperate !!

9/05/2010 02:01:58 PM org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.3.1.GA
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.5
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
9/05/2010 02:01:58 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration getConfigurationInputStrea
m
INFO: Configuration resource: /hibernate.cfg.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Aeropuerto.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Avion.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Pasajero.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Reservacion.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Vuelo.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Pais.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Ciudad.hbm.xml
9/05/2010 02:01:59 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Fabricante.hbm.xml
9/05/2010 02:02:00 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : entidades/Modelo.hbm.xml
9/05/2010 02:02:00 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Aeropuerto -> aeropuerto
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Avion -> avion
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Pasajero -> pasajero
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Reservacion -> reservacion
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Vuelo -> vuelo
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Pais -> pais
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Ciudad -> ciudad
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Fabricante -> fabricante
9/05/2010 02:02:00 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonV
alues
INFO: Mapping class: entidades.Modelo -> modelo
9/05/2010 02:02:00 PM org.hibernate.cfg.AnnotationConfiguration secondPassCompil
e
INFO: Hibernate Validator not found: ignoring
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: Using Hibernate built-in connection pool (not for production use!)
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: Hibernate connection pool size: 20
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: autocommit mode: false
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/re
servaciones
9/05/2010 02:02:00 PM org.hibernate.connection.DriverManagerConnectionProvider c
onfigure
INFO: connection properties: {user=resuser, password=****}
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
ADVERTENCIA: Could not obtain connection metadata
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for use
r 'resuser'@'localhost' to database 'reservaciones'
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.Util.getInstance(Util.java:381)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:910)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3923)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1273)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2031)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:718)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:282)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio
n(DriverManagerConnectionProvider.java:110)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
84)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009
)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1292)
        at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotat
ionConfiguration.java:859)
        at control.HibernateUtil.<clinit>(HibernateUtil.java:24)
        at interfaces.PaisGUI.desplegarLista(PaisGUI.java:218)
        at interfaces.PaisGUI.<init>(PaisGUI.java:34)
        at interfaces.ReservacionesApp.menuItem_paisesActionPerformed(Reservacio
nesApp.java:253)
        at interfaces.ReservacionesApp.access$600(ReservacionesApp.java:21)
        at interfaces.ReservacionesApp$7.actionPerformed(ReservacionesApp.java:1
31)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown 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.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        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(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(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)
9/05/2010 02:02:00 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.MySQLDialect
9/05/2010 02:02:00 PM org.hibernate.transaction.TransactionFactoryFactory buildT
ransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
9/05/2010 02:02:00 PM org.hibernate.transaction.TransactionManagerLookupFactory
getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-wr
ite or transactional second-level cache is not recommended)
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFac
tory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
9/05/2010 02:02:00 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
9/05/2010 02:02:00 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
9/05/2010 02:02:00 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
9/05/2010 02:02:01 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance

INFO: Not binding factory to JNDI, no JNDI name configured
9/05/2010 02:02:01 PM org.hibernate.util.JDBCExceptionReporter logExceptions
ADVERTENCIA: SQL Error: 1044, SQLState: 42000
9/05/2010 02:02:01 PM org.hibernate.util.JDBCExceptionReporter logExceptions
GRAVE: Access denied for user 'resuser'@'localhost' to database 'reservaciones'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.