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?