Applet not functioning properly on remote machine.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Applet not functioning properly on remote machine.

  1. #1
    Join Date
    Feb 2006
    Posts
    5

    Applet not functioning properly on remote machine.

    Right now, I have a Windows 2K Adv. Server box running Tomcat. I can load up the web page I've made using the server (i.e. localhost), but when I try to access the webpage from another computer (on my network), I get a SQL error that reads as follows:

    Code:
    Caught SQLException: Communications link failure due to underlying exception: 
    
    ** BEGIN NESTED EXCEPTION ** 
    
    java.net.SocketException
    MESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
    
    STACKTRACE:
    
    java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
    	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
    	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
    	at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
    	at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
    	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    	at java.sql.DriverManager.getConnection(Unknown Source)
    	at java.sql.DriverManager.getConnection(Unknown Source)
    	at Operator.init(Operator.java:74)
    	at sun.applet.AppletPanel.run(Unknown Source)	
    at java.lang.Thread.run(Unknown Source)
    
    ** END NESTED EXCEPTION **
    I was wondering what this meant, and how I would work around this and fix it.

  2. #2
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    62
    I dont have much exposure to tomcat, but it is possible that your mysql database is set to take connections from localhost only.

    Kind regards,
    Noel
    Efficiency is intelligent laziness

Similar Threads

  1. Access remote machine in the network
    By Newbie in forum .NET
    Replies: 3
    Last Post: 06-03-2003, 08:33 AM
  2. Java applet freezes machine
    By Scott in forum Java
    Replies: 1
    Last Post: 04-22-2002, 02:28 PM
  3. displaying System out in an applet
    By Tom in forum Java
    Replies: 2
    Last Post: 04-12-2002, 04:14 AM
  4. Long, basic Java Question.
    By Tom in forum Java
    Replies: 0
    Last Post: 03-18-2002, 10:25 AM
  5. Replies: 3
    Last Post: 08-23-2001, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center