Problems running applet in web.

Im trying to publish a game made using applet. The server runs normally, and the client shall be accessed by browser. I've already signed the applet, which was being required. Im running the server under linux ( ubuntu ), and the Jar file have read permissions. BUT, trying to run the applet in a machine out of the server, it shows me the error "java.net.ConnectException: Connection refused: connect", when trying to connect to the game, even being the server running and waiting connections. The server runs below a transparent proxy which i dont have permissions to access directly. Running the applet on the AppletViewer in eclipse, the game runs normally with no problems.. Would the problem be about the proxy blocking net connections to the game? It seems to me that its some Java feature, cause the error comes from Java. Could someone help me? Its driving me nuts..
Thanks guys.

From the API:
ConnectException extends SocketException
Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port).

Similar Messages

  • Problem Running Reports on Web layout

    Hi Gurus,
    I am using Oracle Developer Suite 10g Release1 and I am using OS Windows XP.
    I created a Barcode Report and I am trying to run it via web and it is hanging.
    Can you please let me know y this is happening. I am using Oracle 10g DB.
    Thanks and Regards,

    Also I tested with the sample Report Test.rdf (Comes along with installation).
    Even that runs well in Paper Layout and report hangs when run in Web Lay out.
    Please help me with your valuable inputs on this regard.
    Thanks and Regards,

  • ClassNotFound error while running applet from Web application

    hi everyone,
    I have a web application deployed in Tomcat web server. I have HTML file at the level of WEB-INF. And all class files under WEB-INF/classes. But while ruuning the application it giving following error.
    load: class com.app.AppletTest not found.
    java.lang.ClassNotFoundException: com.app.AppletTest
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Here the HTML file applettest.html
    <html>
         <head>
              <title>Multiple Image Upload</title>
         </head>
         <body>
              <applet code="com.app.AppletTest" width="300" height="300">
              </applet>
         </body>
    </html>
    And Java applet file is
    package com.app;
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Graphics;
    public class AppletTest extends Applet
         public void init()
              System.out.println("Init called");
              this.setBackground(new Color(180,200,250));
         public void start()
              System.out.println("Start called");
         public void paint(Graphics g)
              g.drawString("welcome Hello World",50,50);
              System.out.println("Paint called");
         public void stop()
              System.out.println("Stop called");
         public void destroy()
              System.out.println("Destroy called");
    Thanks.

    Hi,
    if u put ur com.app.AppletTest file @ WEB-INF Directry, then this problem will solve easily.
    you have to put applet package(com.app.AppletTest) @ WEB-INF Directry. Since
    Applet is using by html, u have to keep applet with html file.
    if applet class have interaction with other classes, u have to seperate all related class to applet to seperate package and put them @ WEB-INF folder.

  • Problems running Application with Web Service Client

    Im having some problems maybe related to some classpath details?
    I am running a Web Service another computer which works fine. I have also made an application using Sun ONE Studio 1 consisting of a Web Service Client etc. and GUI which uses the Client to get data from the Web Service. This works fine as long as I use Sun ONE Studio to execute the application, but now I have packaged the application to a .jar file and have encountered problems:
    When running the application from the .jar file I get the exception:
    java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/BasicService
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at util.servicelocator.ServiceLocator.getServant(ServiceLocator.java:68)
    at lagerApp.eHandelLager.jRegisterBrukerListeActionPerformed(eHandelLager.java:784)
    at lagerApp.eHandelLager.access$400(eHandelLager.java:20)
    at lagerApp.eHandelLager$5.actionPerformed(eHandelLager.java:277)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    I have searched the forum and found simular topics which are resolved by adding some lines to the classpath.
    How do I set the classpath? Do i have to use the classpath parameter from command window? How can I know which classpaths to include (libraries)..
    Any help would be nice.. : )

    Thank you for the reply..
    But im still geting the same error. I have tried to include all the libraries in JWSDP pack but still.. I have managed to narrow down the place where the error occures.. It actually happens when I try to get the WebService Client Servant which is located in the package LSC:
    ---> LSC.LWServiceGenClient.LWS_Impl service = new LSC.LWServiceGenClient.LWS_Impl();
    LSC.LWServiceGenClient.LWSServantInterface lagerServiceServant = LSC.LWServiceGenClient.LWSServantInterface_Stub)service.getLWSServantInterfacePort();
    return lagerServiceServant;
    Could something be wrong with the way I package the Jar? I'm using Sun One Studio and have tried including the 5 packages the application consists of; I have tried including just the files; moving the main class to <root>.. Still same problem..
    Or could there be some different fundemental thingy I have forgotten ??
    thanks
    Aqoi

  • Problem running report in web layout

    Hi
    I have a problem of running my report in web layout.
    If i run the report in web layout it does not show the changes that i made to it , the colors and text sizes and styles, if I used no templates and changed the report manually it will just show the report as before it was modified.
    But when I run it in paper layout every works fine.
    Any ideas about what I'm doing wrong?
    Thanks

    Also I tested with the sample Report Test.rdf (Comes along with installation).
    Even that runs well in Paper Layout and report hangs when run in Web Lay out.
    Please help me with your valuable inputs on this regard.
    Thanks and Regards,

  • Problem running applet with JRE 1.3.X

    Hi,
    I've developed an applet that works fine with MS JVM and JRE 1.4, but fails under JRE 1.3.x.
    Anyone knows what i've todo to my applet to get compability with JRE 1.3x too.
    Thanks,
    rjc

    Are you compiling under 1.3x and then trying to run in MS and 1.4? If so please tell the errors you are getting when you compile or what you're having problems in.
    You're question is like me saying I have a feild full of volvo's from various years and I have a box of replacement parts from vaious years--but not nessisarally the same years as I have cars, which ones do I need to fix them? (impossible to say isn't it without more info)
    or as I usually say: "My crystal ball is in the shop, please supply specific information for what you want answered."

  • Configuration problem with Applet Hyperion Web Analysis

    We have installed Hyperion Web Analysis 9.3 on IBM Websphere 6.1 however we have some problems when we try to enter Web Analysis URL (http://localhost:9085/WebAnalysis/WebAnalysis.jsp) due to Applet Web Analysis Client do not initiate. We had checked Web Analysis logs and we found the next error:
    [10/9/07 19:35:09:814 CDT] 0000002a SystemOut O [ERROR] WebContainer : 0 com.hyperion.atf.internal.services.containers.UserSessionContainer - org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: com.hyperion.atf.services.ControllerLock not found in OJB Repository
    Any ideas about why we are getting this error and how to fix it?

    Hi,
    I guess you might have better luck if you post on the Hyperion forum: Essbase
    B.

  • Problem running servletsin java web server

    After i compile my servlets and copy the class file in the servlets folder of the web server, i run the server by the
    URL http://localhost:8080.
    The server page of congratulations message is displayed.after that i give the URL
    http://localhost/servlets/servletname
    the following error is displayed.
    not found error(404)
    The file that you requested could not be found on this server.If you provided the URL,please notify the administrator of that server of this error.

    You forgot to put the port number in your URL. Try http://localhost:8080/servlets/servletname.

  • Problem running app via web start shortcut icon

    Hi,
    I need to install my application using java web start. I have created the jnlp file and when I run the jnlp file by double clicking on it, my app is starting well. Shortcut and desktop icons are being created. But when I double click on the desktop icon, then app does not run at all. In the log file , I notice that it is referring to some other location rather than the cache location and says "File not found".
    Same way, when I use an html file to run the app, then my app does not run at all. That is, the html file displays a link, such that when I click on the link, the jnlp file is run. But app does not start. Log says it is referring to still another location and says "File not found". Can anyone help me out...
    Thanks in advance.

    Yes, this is with IE as the default browser. But, the FileNotFound Exception is not raised for the jnlp file. Instead FileNotFound Exception is raised for other files/folders used in my Application.
    JNLP file is present in the web start cache. Sorry for not telling this clearly in my first post....
    Actually what I need to do is to deploy Jetty server through web start. Jetty's "start.jar" has the main class and this class refers to the xml files and keystores in "etc" folder in the jetty home directory. As I need to transfer them through web start, I pack the "etc" folder into "etc.jar" and transfer it. When I run the JNLP file directly, jetty server is started. But, running the web start icon does not start the server.
    I get the following exception in the console...
    "java.io.FileNotFoundException:C:\Documents and Settings\..\Desktop\etc\jetty.xml(The system cannot find the path specified)
    Is there a way to embed Jetty server in web start....?

  • Having problem running an application

    I have recently installed jdk 1.2.2 and i have no problem running applet but when i try to run an application i get the message 1 error can't find<filename> . java.
    The path in autoexec.bat is fine. JRE File is include in my file jdk1.2.2.
    I have installed and deinstalled it a couple of time and can't make it work.
    Could someone help me please!!
    Thanking you in advance!

    doesn't sound like a path problem at all. you say when you try to RUN the app you get a message can't find filename.java. When you're running the app you run the binary class file i.e. java MainClass.class. If you're compiling the app you would do javac MainClass.java. Clarify your situation further if this does not help you out.

  • PROBLEMS IN RUNNING FORM ON WEB

    HELLO ALL
    I AM DEPLOYING FORMS ON WEB. I AM USING FORM 5. I HAVE MANAGED
    TO DEPLOY AND RUN FORM ON WEB, BUT I AM HAVING COUPLE OF
    PROBLEMS AND QUESTIONS.
    1. MY FORMS ARE RUNNING AS AN APPLET. HOW CAN I RUN IT WITHIN
    BROWSER?
    2. IF MY CANVAS IS BIGGER THEN BROWSER WINDOWS SIZE WILL SCROLL
    BAR WORK?
    3. WILL I BE ABLE TO USE CUSTOM MENU AND CALL OTHER FORMS?
    4. HOW CAN I USE FORMS STANDARD FUNCTION KEYS (F7, F8 ETC.)?
    THANKS

    1. In your HTML startup file add <PARAM NAME="separateFrame"
    VALUE="false">
    4. Create a keyboard mapping (.res) file with function keys and
    modify your startup HTML file, e.g.:
    <PARAM NAME="serverArgs" VALUE="module=logon.fmx
    term=c:\forms\mykeys.res>

  • Problem running XSQLSERVLET on JAVA WEB SERVER

    THE BELOW LISTED SIMPLE XSQL QUERY WHEN RUN ON JAVA WEB SERVER 2 (WITH CLASSPATH/MAPPING SETTING AS IN INSTALLATION MANUAL) GIVES FOLLOWING ERROR:
    1. XML document must have a top level element.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo">
    SELECT 'Hello World' AS "GREETING" FROM DUAL
    </xsql:query>
    2. WHILE RUNNING INDEX.HTML FILE FROM JAVA WEB SERVER 2 IT GIVES FOLLOWING ERROR
    Oracle XSQL Servlet Page Processor 1.0.4.3 (Production)
    XSQL-017: Unexpected Error Occurred
    java.lang.IllegalArgumentException: sun.io.ByteToCharUTF-8
    at sun.io.ByteToCharConverter.getConverterClass(ByteToCharConverter.java:79)
    at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:109)
    at java.lang.String.(String.java:294)
    at java.lang.String.(String.java:313)
    at oracle.xml.xsql.XSQLUtil.XL(XSQLUtil.java:207)
    at oracle.xml.xsql.XSQLServletPageRequest.getParameter(XSQLServletPageRequest.java:139)
    at oracle.xml.xsql.XSQLActionHandlerImpl.variableValue(Compiled Code)
    at oracle.xml.xsql.XSQLActionHandlerImpl.getAttributeAllowingParam(Compiled Code)
    at oracle.xml.xsql.actions.XSQLIncludeXSQLHandler.init(XSQLIncludeXSQLHandler.java:46)
    at oracle.xml.xsql.XSQLDocHandler.handlerForAction(XSQLDocHandler.java:283)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(Compiled Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at com.sun.server.ServletState.callService(Compiled Code)
    at com.sun.server.ServletManager.callServletService(Compiled Code)
    at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
    at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
    at com.sun.server.http.stages.Runner.process(Runner.java:79)
    at com.sun.server.ProcessingSupport.process(Compiled Code)
    at com.sun.server.Service.process(Service.java:204)
    at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
    at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
    at com.sun.server.HandlerThread.run(Compiled Code)
    null

    What jdk are you using ?
    I had this problem with 1.1.7

  • Problems on  running forms in web mode

    Hi guys,
    I have a problem seeing icons when I launch an application in web mode. when it runs in client -server mode it works .. (I see icons).
    Can you help me?
    thak's a lot!
    looking forward your reply.
    Marco

    When running on the web Forms no longer uses an environment variable to pick up icon location. This information is now set in the registry.dat file (located Ohome\forms60\java\oracle\forms\registry\). All icons must be converted to GIF or JPG format.
    The registry.dat file has 2 lines for
    1) default.icons.iconpath=
    2) default.icons.iconextension=
    Hope this helps,
    Candace Stover
    Forms Product Management

  • Problem running WebLogic as plugin for SunOne web server on Solaris

    I tried to set up WebLogic (8.1) as plugin for SunONE (iPlanet) web server. I followed instraction from http://e-docs.bea.com/wls/docs81/plugins/nsapi.html#110496. SunONE server start up successfully. But I have problem to connect my web application, and SunONE web server returns following error:
    "for host 172.23.54.5 trying to GET /arsys/home, wl-proxy reports: Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters"
    I tried both SunOne (6.1 sp3) and iPlanet (6.0), I saw same problem.
    Can anyone help me on this?
    Thanks
    Charlie

    To configure sunone to work with WLS, you need to make entires in the magnus.conf and the obj.conf.From the error, it seems as if u missed the entries in the obj.conf.

  • Problem downloading applet in W2K with SP4.

    Hi,
    We are using a Security Applet in our web application for validation purposes. We were using W2K Professional / W2K Server with SP3 and Sun JRE 1.3.x. The application was working as expected.
    We are now testing with W2K Server with SP4 (to upgrade to SP4). The current testing environment is W2K Server with SP4 and Sun JRE1.3.x. Now with the setup, we are facing a problem in downloading the applet (Security Applet). The downloading applet fails and the subsequent loading as well.
    Please advice. Does it requires any particular settings to be done at Client?
    The specs are
    Windows 2000 Server, SP4
    IE 6 SP1
    Sun Jre 1.3.x
    Problem:Downloading applet fails.
    PS: When we test with SP3, we can see the applet downloaded (CAB File), with SP4 it was not found.
    Thanks in Advance,
    Prakash

    Does the w2k sp4 server host your pages and applet?
    If yes then why install the SUN JRE 1.3 on the server, doesn't the client need this?
    Is the cab format supported by SUN jre or is it meant for msjvm and if so why is the client trying to open
    the cab with sun jre?
    http://java.sun.com/j2se/1.4.2/docs/guide/deployment/deployment-guide/upgrade-guide/article-02.html
    What's on the server doesn't have anything to do with the applet. The server is
    just serving it. Forcing the client/consumer of the html page with the applet is trying to open an applet
    with sun jre while the applet is ment for msjvm causes the error.
    The client can fix this by opening IE and check under tools -> internet options -> advanced -> UNCHECK
    the use sun jre ... for <applet tag. For the XP machine you might have a problem. Some of the don't have
    the msjvm at all so there is nothing to run the <applet, I tried to download it at microsoft but was unable
    to find it.

Maybe you are looking for

  • How can I have multiple instances of a column that itself holds a foreign key reference?

    I am new to Visual Studio so to start learning it I first of all downloaded a sample available at https://code.msdn.microsoft.com/ADPNET-Entity-Framework-2d1160cb and started working around it. Since I have fairly good knowledge of VB6 and SQL it did

  • How do I remove Leopard so I can go back to Tiger

    A friend talked me into the Leopard upgrade. After 2 days of multiple problems and having work to get done NOW!. I don't have time to waste playing. I want to delete Leopard and reinstall my Tiger software. How do I do this? I have had no problems in

  • Sending to multiple addresses and using BCC

    I'm using Mail and Address book to send a basic email (no images or anything like that) to my mailing list. I beleive my server (Sympatico) has a restriction on the number of recipients - 99. But I'm sending to less than that. When I put the addresse

  • HT1665 Is their an adapter to connect a i phone 3 to a lightning connector

    we have recently purchased a Sony radio/alarm with docking station. The docking station is for the i phone 4/5 series . Is there an adapter to connect from this to my i phone 3 ?

  • Recording from Record Player to Air

    I would like to record my records(vinyl) to my Macbook Air - iTunes. The record player is not a USB type device that they have these days.  The record player does have a built in pre-amp.  How do I do this through the MacBook Air? Thanks for your hel