Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kiswar Malik   on Oct 19 In Java Category.

  
Question Answered By: Danny Perkins   on Oct 19

thanks for answering, know i get this error. how can I introduce
location of my DB in DATA folder in mysql  to hibernate?


java.lang.RuntimeException:
net.sf.hibernate.exception.SQLGrammarException: Cannot open
connection
at general.UserService.checkUsername(Userservice.java:70)
at general.UserForm.validate(USerForm.java:29)
at org.apache.struts.action.RequestProcessor.processValidate
(RequestProcessor.java:919)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:204)
...
Caused by: net.sf.hibernate.exception.SQLGrammarException: Cannot
open connection
at net.sf.hibernate.exception.SQLStateConverter.convert
(SQLStateConverter.java:58)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert
(JDBCExceptionHelper.java:29)
at net.sf.hibernate.impl.BatcherImpl.convert
(BatcherImpl.java:328)
...
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
Access denied for user ''@'%' to database 'testmysql'
at com.mysql.jdbc.SQLError.createSQLException
(SQLError.java:1027)
at com.mysql.jdbc.SQLError.createSQLException
(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
...


is J2ee(struts,...) opensource?
which j2ee framework now is used?
does tomcat4,struts,hibernate,mysql match together well?

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on connecting to DB Or get search suggestion and latest updates.


Tagged: