• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access denied

 
denay
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hye,
I made a JApplet with Mysql connection, the serveur web : resin.
My Pb : when I run my applet in local host i have any problem, http://localhost:8080/ -> Ok no problem
But On web : http://Dubois:8080/ -> I have an error :
java.sql.SQLException: General error: Access denied for user

I don't understand Why!
"please help me" (liloo 5th elements)
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's the old sandbox again. When the applet is running on the host (localhost), it's trustworthy. When the host is a different machine, it's not.
Don't waste your time trying to fool it by using alternate host names, absolute IP addresses, etc. The sandbox is wise to those tricks. If YOU know whether the server and client are on the same machine, so does IT.
You'll either have to sign your applet or do the data access on the server and ship it to the applet. I recommend the second approach, or the next wall you hit is likely to be the firewall.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic