File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Problems with hibernate and mysql? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problems with hibernate and mysql? " Watch "Problems with hibernate and mysql? " New topic
Author

Problems with hibernate and mysql?

George Beck
Greenhorn

Joined: May 09, 2010
Posts: 4
Hello everyone

I want to run a .jar file, but the only way to run in my computer is with the command "java -jar file.jar ", but the problem is that the application conects to a mysql database, 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 !! what is the error?

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That will cause a problem.
George Beck
Greenhorn

Joined: May 09, 2010
Posts: 4
but how can I solve it?

http://img59.imageshack.us/i/imagen2va.jpg/


I tried this:


but nothing happen
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Correct the user name spelling in the config/property file or datasource?
George Beck
Greenhorn

Joined: May 09, 2010
Posts: 4
How can I do that?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Edit it?
George Beck
Greenhorn

Joined: May 09, 2010
Posts: 4
Thanks for your help and your time , the application works



Bye
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Glad you got it worked out :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with hibernate and mysql?
 
Similar Threads
please solve this prob
No Persistent Classes found for Query Class
problem with showing records in hibernate
Newbie got stuck in Hibernate "Hello World"
SEVERE: Duplicate entry '1' for key 'PRIMARY'