aspose file tools
The moose likes Applets and the fly likes Access denied Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Access denied " Watch "Access denied " New topic
Author

Access denied

denay
Greenhorn

Joined: Jul 31, 2001
Posts: 3
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

Joined: Jun 25, 2001
Posts: 14456
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: jrebel
 
subject: Access denied
 
Similar Threads
Application System Error at Tomcat startup. Please Help
Can't access J2EE web app
500 internal server error
HTTP Status 408 Error when i login
problem with accesing html within jsp structure