Problemas com hibernate e mysql

Estou tendo problemas pra conectar no banco usando o hibernate, aparece a seguinte mensagem

13:25:55,624  INFO Environment:462 - Hibernate 2.1.3
13:25:55,644  INFO Environment:496 - loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://192.168.3.161:3306/mydb, hibernate.connection.driver_class=org.gjt.mm.mysql.Driver}
13:25:55,654  INFO Environment:519 - using CGLIB reflection optimizer
13:25:55,664  INFO Configuration:347 - Mapping resource: test/hibernate/Product.hbm.xml
13:25:56,756  INFO Binder:229 - Mapping class: test.hibernate.Product -> products
13:25:56,956  INFO Configuration:613 - processing one-to-many association mappings
13:25:56,956  INFO Configuration:622 - processing one-to-one association property references
13:25:56,956  INFO Configuration:647 - processing foreign key constraints
13:25:57,006  INFO Dialect:82 - Using dialect: net.sf.hibernate.dialect.MySQLDialect
13:25:57,016  INFO SettingsFactory:62 - Use outer join fetching: false
13:25:57,026  INFO DriverManagerConnectionProvider:42 - Using Hibernate built-in connection pool (not for production use!)
13:25:57,026  INFO DriverManagerConnectionProvider:43 - Hibernate connection pool size: 20
13:25:57,036  INFO DriverManagerConnectionProvider:77 - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://192.168.3.161:3306/mydb
13:25:57,036  INFO DriverManagerConnectionProvider:78 - connection properties: {user=root, password=}
13:25:57,046  INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
13:25:57,126  WARN SettingsFactory:95 - Could not obtain connection metadata
java.sql.SQLException: Server configuration denies access to data source
        at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:193)
        at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)
        at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)
        at org.gjt.mm.mysql.Driver.connect(Driver.java:167)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
        at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
        at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
        at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
        at test.InsertProduct.main(InsertProduct.java:25)
13:25:57,126  INFO SettingsFactory:102 - Use scrollable result sets: false
13:25:57,126  INFO SettingsFactory:105 - Use JDBC3 getGeneratedKeys(): false
13:25:57,136  INFO SettingsFactory:108 - Optimize cache for minimal puts: false
13:25:57,136  INFO SettingsFactory:117 - Query language substitutions: {}
13:25:57,136  INFO SettingsFactory:128 - cache provider: net.sf.ehcache.hibernate.Provider
13:25:57,136  INFO Configuration:1093 - instantiating and configuring caches
13:25:57,417  INFO SessionFactoryImpl:119 - building session factory
13:25:57,987  INFO SessionFactoryObjectFactory:82 - no JNDI name configured
[Product] Milk(null) price=1.99 amount=100
13:25:58,098  WARN JDBCExceptionReporter:38 - SQL Error: 0, SQLState: 08001
13:25:58,108 ERROR JDBCExceptionReporter:46 - Server configuration denies access to data source
13:25:58,108 ERROR JDBCExceptionReporter:38 - Cannot open connection
java.sql.SQLException: Server configuration denies access to data source
        at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:193)
        at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)
        at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)
        at org.gjt.mm.mysql.Driver.connect(Driver.java:167)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
        at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3297)
        at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3277)
        at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)
        at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)
        at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2220)
        at test.InsertProduct.main(InsertProduct.java:32)
net.sf.hibernate.JDBCException: Cannot open connection
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:281)
        at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3297)
        at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3277)
        at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)
        at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)
        at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2220)
        at test.InsertProduct.main(InsertProduct.java:32)
Caused by: java.sql.SQLException: Server configuration denies access to data source
        at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:193)
        at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)
        at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)
        at org.gjt.mm.mysql.Driver.connect(Driver.java:167)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
        at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
        ... 6 more
Exception in thread "main"