-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Access denied -- configure
PostPosted: Tue Dec 06, 2005 3:21 pm 
Beginner
Beginner

Joined: Sun Dec 04, 2005 4:28 pm
Posts: 24
INFO: configuring from resource: /hibernate.cfg.xml
Dec 6, 2005 11:20:54 AM org.hibernate.cfg.Configuration getConfigurationInputSt
eam
INFO: Configuration resource: /hibernate.cfg.xml
Dec 6, 2005 11:20:54 AM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: FileToSave.hbm.xml
Dec 6, 2005 11:20:55 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassComm
nValues
INFO: Mapping class: FileToSave -> filetosave
Dec 6, 2005 11:20:55 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
.................
.................
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Access denied for user ''@'localhost' (using
assword: NO)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2926)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3647)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.jav


----------------
What's wrong with this ? java.sql.SQLException: Access denied for user ...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 4:09 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Grant permission to open socket for your code (see java.policy file)
http://java.sun.com/j2se/1.3/docs/guide ... Files.html


Top
 Profile  
 
 Post subject: Re: Access denied -- configure -- look at hibernate.cfg.xml
PostPosted: Tue Dec 06, 2005 6:52 pm 
Beginner
Beginner

Joined: Sun Dec 04, 2005 4:28 pm
Posts: 24
tnthe wrote:
INFO: configuring from resource: /hibernate.cfg.xml
Dec 6, 2005 11:20:54 AM org.hibernate.cfg.Configuration getConfigurationInputSt
eam
INFO: Configuration resource: /hibernate.cfg.xml
Dec 6, 2005 11:20:54 AM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: FileToSave.hbm.xml
Dec 6, 2005 11:20:55 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassComm
nValues
INFO: Mapping class: FileToSave -> filetosave
Dec 6, 2005 11:20:55 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
.................
.................
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Access denied for user ''@'localhost' (using
assword: NO)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2926)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3647)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.jav


----------------
What's wrong with this ? java.sql.SQLException: Access denied for user ...


-------------
Problem solved: check hibernate.cfg.xml makes sure to have right connection.url, and etc... as the same as in: create database YourDatabase


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.