• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Access denied

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic