aspose file tools*
The moose likes Applets and the fly likes JApplet in Browser : Connection Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "JApplet in Browser : Connection Problem" Watch "JApplet in Browser : Connection Problem" New topic
Author

JApplet in Browser : Connection Problem

Erick Maxwell
Greenhorn

Joined: Feb 09, 2011
Posts: 4
Hi,

I have a JApplet connecting to mySql database directly without any Servlets. The JApplet runs perfectly in the AppletViewer, but when I run it in the browser, it doesnot get connected to the database.
Is it a problem with the placement of mysql-connector. Please advice as soon as possible.


Regina Thomas
Greenhorn

Joined: May 12, 2006
Posts: 16
Is the applet and MySQL database located on the same server-- under the same domain?

Q...


WiredPages | Remix
Erick Maxwell
Greenhorn

Joined: Feb 09, 2011
Posts: 4
Yes, The applet and the mySql database on the same server.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Are you getting any exceptions?

Please check your private messages .


SCJP, SCWCD.
|Asking Good Questions|
Javad Rashidi
Ranch Hand

Joined: Feb 13, 2011
Posts: 34

turn off your firewall maybe fix your problem if wouldn't, sign your applet.


http://www.myviwo.com
Erick Maxwell
Greenhorn

Joined: Feb 09, 2011
Posts: 4
There are no exceptions, no firewalls, signed the applet as well.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18672
    
    8

No exceptions? I doubt that, probably you just haven't looked in the Java Console. But if there really aren't any exceptions, then you're going to have to do some debugging to find out what's happening in your code.
Javad Rashidi
Ranch Hand

Joined: Feb 13, 2011
Posts: 34

Could you post your code.
Erick Maxwell
Greenhorn

Joined: Feb 09, 2011
Posts: 4
Sorry for the late reply

There is an Exception

Unable to load Driverjava.lang.ClassNotFoundException com.mysql.jdbc.Driver
Regina Thomas
Greenhorn

Joined: May 12, 2006
Posts: 16
Did you get you need to add the library with the MySQL drivers to the path?

Q...
 
 
subject: JApplet in Browser : Connection Problem