Javafx application integration in a web page

Hello, I did javafx application with a database, and now I want to publish on the net.
I have uploaded the files:
- project.html
- project.jar
- project. jnlp
- project.jar.pack.gz
- index.html:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>>TravelsGo</title>
</head>
<body>
<h1>TravelsGo</h1>
<script src="http://dl.javafx.com/1.3/dtfx.js"></script>
<script>
    javafx(
              archive: "project.jar",
              draggable: true,
              width: 640,
              height: 480,
              code: "project.Main",
              name: "project"
</script>
</body>
</html>I did not understand what do I do with the database, it works locally, but trying to view the application on a web page gives me error
you can watch here: http://travelsgo.altervista.org/
I hope someone can help me.
Thank you.

Hi,
Thanks for answering. I must tell us that I'm so newbie in these themes and I have a little knowlegde of this.
I've browsing through the JNLPAppletLauncher option, but I have more questions about that.
First of all, I'll expose the application I'm working. The application is a SIP-client, specifically SIP-Communicator (http://sip-communicator.org/), and I want to embeebed in a web browser. I've been trying to make an applet from the application with helping by a tutorial, but it's impossible because I have other version than version which was used to build the applet. So that option, we could say that is closed.
The another option is to use Java Web Start, there is another tutorial for that and I can say that It should work more or less.
Thus, I need to give the java web start application an appearance of applet (but it can't be an applet), i. e., the java web start application has to run in the web browser.
As I far I know if I use JNLPAppletLauncher I have to build an applet that would be launched through a jnlp archive. havent't I?
What do you think about that, Do you see that java web start application integration in the web browser is possible?
Thanks a lot and best regards
Pedro

Similar Messages

  • Application Server Redirect one Application to a static web page

    We have an OAS installation that contains two applications. One contains both Portal and Oracle Forms components whilst the second is purely Oracle Forms. We want to redirect users to a static web page if an application is down for maintainance.
    It has been easy to modify httpd.conf to add lines to redirect the elements of the application that uses portal. The elements that use Oracle forms seem to use MOD_OC4J and I cannot redirect calls to these forms.
    I have tried a redirect based on /forms/frmservlet?config=app1 but this did not work as /form/servlet requests are handled by redirecting to MOD_OC4J.
    Looking in Forms.Conf I found some lines where the frmservlet is mapped:
    AliasMatch ^/forms/frmservlet(.*) "/servlet.frm"
    Would it be possible to create regular expressions to either allow all /forms/frmservlet?config=XXXX through except for app1 as an example? The plan would be to comment these lines out until required and then activate them by removing the comment # and bouncing the Forms element of OAS.
    If this idea is not reasonable could anyone suggest a better way that does not require connection to the database nor the need to start up the forms runtime within the client browser?

    <cflocation> will always give you that result, as it
    has no concept of the browser window(s) or frame(s).
    i don't know if the <meta> has a concept of frames or
    not.
    you could always use a JavaScript solution, which would be:
    new window:
    <script type="text/javascript">
    <cfoutput>window.open("#newURL#");</cfoutput>
    </script>
    same window, breaking frameset:
    <script type="text/javascript">
    <cfoutput>top.location.href="#newURL#";</cfoutput>
    </script>
    i think that'll do it. been a while :)

  • ADF application integrating with Oracle Web Cache

    Hello,
    I am trying to integrated my ADF 11g application with Oracle Web Cache. I used this link http://andrejusb.blogspot.com/2010/06/oracle-webtier-11g-configuration-for.html for it.
    I am able to access my ADF application using webcache port 7785.
    I created few caching rules in the Oracle Web Cache. And in the popular request section of the Oracle Web cache i see jpg,png and other image files cached.
    But the issue is when the application access images like /testapp/test/images/abc.jpg?_adf.ctrl-state=5b0s7lzfo_29 . I created a caching rule with regular expression ^/testapp/test/images/[A-Za-z0-9_]*\.(gif|jpeg|png|jpg)\?_adf\.ctrl-state=[A-Za-z0-9_]*$.
    But when i access the popular request in em i don't see the URL given above as cached. The caching reason it specifies as URL contains query string.
    I am not sure if i need to do anything additional to cache these URL's as well.
    Thanks!
    Ram

    Yes that works. But my question is how to cache the urls which has querystring. I was trying to give a regular expression to match the url so that the url which contains parameters like _afrLoop which changes with each HTTP request can also be cached.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Getting application to work on web page

    I am sure this is going to seem like a dumb questions, but I
    am having a heck of a time getting a flex applicaiton (.swf) file
    to work on a web site. It works just fine when I run it (the
    newsreader app from the documentation), but when I upload it to my
    web site, I keep getting all kinds of errors saying all kinds of
    files are needed, that as far as I know have nothing to do with the
    app I wrote.
    I followed the insturctions in the doc, and uploaded the
    .html and .swf file what am I doing wrong?
    thanks
    John

    1) Applets that run in web browsers used to be "hip" in at one point in the dark 1990's. That time is forever gone and good riddance. Today big enterprise applications and sophisticated special purpose desktop applications are the Right Way&trade; to go with Java.
    If you want action in your browser, look into Macromedia's Flash technology.
    If you want to deploy your application easily in an applet-like fashion (one click from a browser), look into Java Webstart.
    Demos: http://java.sun.com/products/javawebstart/demos.html
    Documentation: http://java.sun.com/products/javawebstart/developers.html
    2) It's a trivial task to write a launcher applet for any given application so that the applet starts the application in a new window. The security restrictions imposed on applets ("sandbox") might make it impossible to use the application; for instance you cannot write or read files on the local hard drive or make network connections to other servers than where the applet was loaded from. You cannot call System.exit to quit the virtual machine.
    At its simplest the lancher applet code would look ilke:public class Launcher extends java.applet.Applet {
        public void start() {
            YourApplicatioMainClass.main(null);
    }and in the html you would write:<applet code="Launcher" height="1" width="1">
    </applet>See the "Writing applets" tutorial for further information http://java.sun.com/docs/books/tutorial/applet/index.html

  • Loading Authoring Applications like MS OFfice and CorelDraw in Web Pages in

    Hi Everyone,
    I am trying to load any authoring application like MS office, Open Office, Photoshop Accounting Application etc in a web page am designing and I don't know how to go about this. In VB this can be done using Object Linking and Embedding (OLE) but I don't know how to do this with Java Server Faces (JSF). But meanwhile am thinking of using OpenDoc and I don't have enogh facts on it. Please if anyone can help me please I'll appreciate it. You can get me through my email [email protected] or simply paste it here in the forum. It is urgent Thanks

    Go with Libre Office! It's better than Open Office, and it's very similar to MS Office. It's just as easy to use and very similar. Here's a screenshot I took so you can get an idea of just how similar it is.

  • Caching the web pages using an application server...Please help

    Hi all.
    I have an application developed using Struts 1.1 which uses JBoss 4.0.2 as an application server.
    In this application user is required to enter a valid url and my application fetches the web page pointed by this url
    and render the same after doing some pre-processing.
    I want to implement caching of pages on server so that if a different user requests with the same url that was earlier issued, that time my application should render the web page that was cached earlier. (so that i can avoid connecting to that url, fetching the page and further pre-processing).
    One of the way i know is to use "application" object, which can be shared among multiple users.
    Are there any other efficient ways ? What about the performance if i use application object ?
    Please help as i am stuck with this.
    Thank you all..
    Prasad

    Using the application scope is one way to do it.
    I would recommend writing a CacheControl bean to handle this for you (or re-using an existing cache object)
    You can put that bean into the application scope. Just to keep things neat and tidy.
    How that bean then caches web pages is up to you
    - Store them in memory (I would recommend a LinkedHashMap in LRU mode)
    - Store them to disk - less memory intensive, a bit slower but can store more
    How are you going to determine if a page is "the same"?
    I think you should also consider the "no-cache" tags that a page may send with itself.
    Caching can drive web application drivers nuts, as the page actually DOES change on every request.
    Cheers,
    evnafets

  • Launching Java applications from web pages

    Hi there,
    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    Berk Can Celebisoy

    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    you can setoff a java servlet from a webpage.Is that what you are talking about ??? activeateing a server side app ????

  • Help with inserting a list element in a Web page

    Hello,
    I�m a newbie. I want to introduce an element list in a web page. I have source that creates a List as a standalone application (with a main procedure..) , through the JList class, but I want this list to appear integrated in the web page. How could I do it? Could anyone give me any idea, URL, etc...??
    Thanks,

    as writte above: if it as simple as you wrote use something like this:
    * (c) Copyright 2002 B. Braun Melsungen AG
    * All Rights Reserved.
    package domainrequest;
    import java.io.*;
    import java.util.*;
    * implements the <select> form html element providing easy methods to fill the list of options and print the html source code
    * @version      1.0
    * @author          Erik Itter
    public class HtmlListBox {
         ArrayList options = new ArrayList();//HashMap does not guarantee an order
         String name;
         public HtmlListBox(String Name){
              name=Name;
         public ArrayList getOptions(){
              return options;
         public String getOtptionName(String Value){
              for(int i=0;i<options.size();i++){
                   if((((ListBoxOption)(options.get(i))) ).getValue()==Value){
                        return ((ListBoxOption)(options.get(i))).getName();
              return null;
         public int addOption(String Value,String Name){
              options.add(new ListBoxOption(Value,Name));
              return options.size();
         public void print(PrintWriter out){
              out.println("<select name=\""+name+"\">");
              for(int i=0;i<options.size();i++){
                   out.println("<option value=\""+( (ListBoxOption)options.get(i) ).getValue()+"\">"+( (ListBoxOption)options.get(i) ).getName()+"</option>");
              out.println("</select>");
    using
    * (c) Copyright 2002 B. Braun Melsungen AG
    * All Rights Reserved.
    package domainrequest;
    * This class' only reason for existence is to be abused
    * (look at that code and you will understand...) by HtmlListBox
    * implementing a single option's data fields.
    * This is similar to the points and complex numbers they have in
    * all those tutorials...
    * @version      1.0
    * @author          Erik Itter
    public class ListBoxOption{
         String value;
         String name;
         * Constructs an option allowing to differ between the elements value and
         * the displayed representation
         public ListBoxOption(String Value,String Name){
              value=Value;
              name=Name;
         * Constructs an option taking the displayed name as value, too. Actually
         * this is the most common use but less helpfull for complex applications.
         public ListBoxOption(String Name){
              value=name=Name;
         * returns the option's value (could you imagine that...?)
         public String getValue(){
              return value;
         * returns the option's name. (...oh so predictable!)
         public String getName(){
              return name;
    it is sufficient for the three tier intranet application i am developing for our company, since the code is trivial feel free to use it if you like

  • Interacting with Web pages

    We have developed a J2EE application (jsp, struts, ejbs, etc.) and now have a requirement to interact with hardware at the client's site. The application needs to interact with printers, check readers and DL readers. Can a JWS application interact with the web pages?
    For example, when a check is scanned, can the information be displayed on the web page? Additionally, we need to be able to print on both sides of the check. If I tell the application to print, can it respond back to the web application when it is done so the check can be flipped over and printed on the other side?

    Java WebStart is "just" a deployment mechanism. An application deployed through JWS can do anything a regular Java application can do (provided it has the appriopriate permissions). This includes talking to whatever kind of server you can think of.
    If staying within the sandbox is an issue for your app, you should take a look at the JNLP API, which allows you to do some "safe" things (like printing) on the user's system through interaction with the user. The advantage of staying within the sandbox is not having to sign your app and not having to ask the user for elevated permissions.

  • Displaying javascript enabled web page into JEditorPane

    Hi,
    I want to display a javascript enabled web page into JEditorPane but it is giving me the error the please enable javascript.
    Any suggestions?

    JEditorPane is the only component in the base JDK used to display web pages, but it only supports HTML 3.2 (?). No java script and stuff like that.
    I would only use it to display "Help" files you have created for your application, not for downloading web pages from the internet.
    I'm sure if you search in Google you will find a 3rd party package.

  • SSO to Web App using Application Integrator - not working (SP15)

    Hi,
    I have created a web app system and generic app integrator iview for my web application (and set up user mapping etc.), following the Application Integrator how-to guide but it does not log me into my web application. I have got the Yahoo example working, and if I use a HTTP System & URL iview for my web application, that also works. Can anyone tell me what the problem could be, or where I should start looking?
    If I use a http sniffer, I can see the correct URL and parameters in the following:
    function requestTargetURL() {
          var theURL = "<b>HTTPS://(myserver)/log-in.htm?op=(####)&pwd=(####)</b>";
          var dsmObj;
          if (hasNestedFrameStructure()) {
            location.replace(theURL);
            dsmObj = parent.EPCM.DSM;
          } else {
            document.body.scroll = "no"; // for IE only
            var theIframe = document.getElementById("iframe_GETRedirect_592312569");
            theIframe.style.visibility = "visible";
            theIframe.src = theURL;
            dsmObj = EPCM.DSM;
            document.title = 'JDS';
        function onloadhandler(){
          setTimeout("requestTargetURL()",1);
    but something else must be happening for it not to work. Can anyone give me any pointers?
    Many thanks
    Jane

    Bit of a weird one: I've found a way to make it work but I'm not sure exactly how... the problem was that the portal was opening my web app URL in an iFrame (which can be seen from the code above). I tested this by just creating a html page with the URL + parameters in an iframe, and it wouldn't log me in (and took over the whole browser). So I guess the problem is with my web app rather than the portal.
    However... I then discovered that if I add my web app address to the Local Intranet security zone in my browser (IE6) settings (before it was in the Trusted Sites zone), it no longer minded being in an iFrame, my test html page worked and so does the portal iview. I cannot find which security setting is causing this - I've tried changing the Trusted Sites to match the Intranet zone settings exactly, but it still doesn't work if my web app address is Trusted opposed to Intranet.
    If anyone has any idea what is causing this behaviour, I'd be very grateful - obviously it isn't a portal issue but I'd still like to find out the cause in case it comes up again in the future.
    Many thanks,
    Jane

  • How to display the javafx application to a web application

    I've got a javaFX application .(My IDE is NetBeans 6.8)I choose the main.fx in the opened project,then run>>project configure >> web browser and Shift+F6.It runs as expected.
    and the path is "+http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/E%3A/Source+Codes/NTBS/MyProject/dist//MyPage.html+"
    However,I tried to access that page again when I closed the NetBeans.It failed.
    so I attempt to change the default html code.
    default code
    <script src="http://dl.javafx.com/1.2/dtfx.js"></script>
    <script>
        javafx(
                  archive: "MyJar.jar",
              draggable: true,
                  width: 300,
                  height: 300,
                  code: "MyPackage.Main",
                  name:
    "MyProject"
    </script>the changed code
    <script src="http://dl.javafx.com/1.2/dtfx.js"></script>
    <script>
        javafx(
            archive: "MyJar.jnlp",//or the like this   archive: "MyJar_browser.jnlp",
              draggable: true,
                  width: 300,
                  height: 300,
                  code: "MyPackage.Main",
                  name:
    "MyProject"
    </script>but it is futile.
    Considering maybe it needs server, I put the jar file and html file into tomcat ,it is nouse either.

    Thank you!
    yes I do.but I tried many many times.Finally,I got a phenomenon .Under Apache Tomcat container ,we can not access them by jnlp files,while the javafx's jar files set into the WEB-INF folder.
    Surely.we must put new another foler on the root to place javafx.
    Actually,we habitually put jar files into the lib folder which just under WEB-INF foler,and the JSP&servlet's specification.
    Is there a new way?

  • Issue in running JavaFX application in web browser

    Our team currently was developing a desktop application which now needs to be run in a web browser. Deployment is successful, but while running it in IE 8, the background color of the IE outside the stage (from the desktop application) is coming in grey color. Our applucation's background color is white, hence, this makes it look odd. The more peculiar thing is when we run the url in IE8, the first page (login page) comes without the grey part, ie the whole window is white colored. But after logout, (the login page should be made visible) only the stage size comes in white and the rest of the window comes in grey background color. Please help in fixing this.

    to answer your questions:
    how to set the browser size according to stage sizeTo resize area reserved for application in a web page you can access web page from inside of your app and use javascript to get a handle of application in the web page DOM and then set size on it as you need.
    See
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIAGHE
    and
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIBFGD
    How to get the handle for browser size here?For embedded application you will get initial Stage in the start() sized to browser allocated area.
    And you can you tip i referenced before to resize app if browser will change allocated area (due to user requests).
    However, i think your real question is different:
    that in the login page the stage size is smaller than the browser size we set while packagingDoes it mean your app pops create login stage first and then populate main stage?
    Then good app behavior is like:
    if (runningEmbedded) { //see tip 2.3.1 in the same guide
    //fill given stage with something - e.g. same background as web page or some image
    popLoginPage();
    //once user logged populate main stage
    populateMainStage();
    And create all assets for all stages in the init(). So in start you will only adding panels to the stages and creating new stages.
    You may need to erase "dummy" content from the main stage before you populate it.
    Hope this helps. If not, please explain what you app is doing in more details. What do you do with stage provided in start, how you create login and other stages.
    What you size your application to and what are stage dimensions.

  • Problem in executing javaFX application in web browser.

    Hi,
      When i execute javafx application in web browser the outcome will not fit to the screen.
       so what modifications i have to make so that it fits to the screen.

    Hi,
    you embed a javafx app like this in your html-file:
    <script>
        function javafxEmbed() {
            dtjava.embed(
                    url : 'ASimpleApp.jnlp',
                    placeholder : 'javafx-app-placeholder',
                    width : 1024,
                    height : 768,
                    jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iUGVyc293YXJlLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPlBlcnNvd2FyZTwvdGl0bGU+DQogICAgPHZlbmRvcj5QTUEgU29sdXRpb25zIEdtYkg8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+U2FtcGxlIEphdmFGWCAyLjAgYXBwbGljYXRpb24uPC9kZXNjcmlwdGlvbj4NCiAgICA8aWNvbiBocmVmPSJmaWxlOnNyYy9kYXRhL2ljb25zL2ljb24uaWNvIiAvPg0KICA8L2luZm9ybWF0aW9uPg0KICA8cmVzb3VyY2VzPg0KICAgIDxqZng6amF2YWZ4LXJ1bnRpbWUgdmVyc2lvbj0iMi4yKyIgaHJlZj0iaHR0cDovL2phdmFkbC5zdW4uY29tL3dlYmFwcHMvZG93bmxvYWQvR2V0RmlsZS9qYXZhZngtbGF0ZXN0L3dpbmRvd3MtaTU4Ni9qYXZhZngyLmpubHAiLz4NCiAgPC9yZXNvdXJjZXM+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iUGVyc293YXJlLmphciIgc2l6ZT0iNTIxODkyNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL0N1c3RvbUNvbnRyb2xzRlguamFyIiBzaXplPSI4NjQ4NyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL2pkb20tMi4wLjUuamFyIiBzaXplPSIzMjE0OTIiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9qZnh0cmFzLWxhYnMtMi4yLXI2LmphciIgc2l6ZT0iMTcwNzM4MyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL2p0ZHMtMS4zLjAuamFyIiBzaXplPSIzMjY4NTQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9wZGZib3gtYXBwLTEuOC4xLmphciIgc2l6ZT0iMTA4MTQyMDQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9zcWxqZGJjNC5qYXIiIHNpemU9IjU4NzIyNyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL3N1cGVyLWNzdi0yLjEuMC5qYXIiIHNpemU9IjEwMjEzNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCjxzZWN1cml0eT4NCiAgPGFsbC1wZXJtaXNzaW9ucy8+DQo8L3NlY3VyaXR5Pg0KICA8YXBwbGV0LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSIyLjIrIi8+DQogIDwvYXBwbGV0LWRlc2M+DQogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0icGVyc293YXJlLk1haW4iICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8Zng6cGFyYW0gbmFtZT0iTmFtZU9mQ29tcGFueSIgdmFsdWU9IlRlc3RDb21wYW55Ii8+DQogIDwvamZ4OmphdmFmeC1kZXNjPg0KICA8dXBkYXRlIGNoZWNrPSJiYWNrZ3JvdW5kIi8+DQo8L2pubHA+DQo='
                    javafx : '2.2+'
        <!-- Embed FX application into web page once page is loaded -->
        dtjava.addOnloadCallback(javafxEmbed);
    </script>
    if you change the values of width and height to '100%', your app will use the hole place of your html site.

  • Problem running JavaFX application as web applet / web start

    Hi All,
    I need to run a JavaFX application as applet in a web page. To do that I use the html page
    generated by javafxpackager and all works fine if I launch the html page locally from my
    pc but when I load the html page from web server the application runs slow till freezing the browser.
    All jars are signed with a self-signed certificate, I've tried with Firefox, Chrome, IE and different servers.
    Same problem with web start (jnlp), locally works fine, launched from web it freezes.
    Enabling Java Console I've noticed a lot of log like:
    basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
    network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
    network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
    basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
    network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
    network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
    What am I doing wrong?
    This is my jnlp (MyApp.jnlp)
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec = "1.0" xmlns:jfx = "http://javafx.com" codebase = "http://www.mysite.com/applet/" href = "MyApp.jnlp">
    <information>
    <title>MyApp</title>
    <vendor>MyApp</vendor>
    <description>Sample JavaFX 2.0 application.</description>
    <homepage href = "http://www.mysite.com/applet/"/>
    <offline-allowed/>
    </information>
    <resources>
    <jfx:javafx-runtime version = "2.2+" href = "http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
    </resources>
    <resources>
    <j2se version = "1.6+" href = "http://java.sun.com/products/autodl/j2se"/>
    <jar href = "MyApp.jar" size = "2836601" download = "eager"/>
    <jar href = "libs/gson-2.2.2.jar" size = "189285" download = "eager"/>
    <jar href = "libs/sun.jar" size = "83743" download = "eager"/>
    </resources>
    <applet-desc width = "1280" height = "1024" main-class = "com.javafx.main.NoJavaFXFallback" name = "MyApp">
    <param name = "requiredFXVersion" value = "2.2+"/>
    </applet-desc>
    <jfx:javafx-desc width = "1280" height = "1024" main-class = "test.App" name = "MyApp"/>
    <update check = "background"/>
    </jnlp>
    and this my html page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>My App</title>
    <script src="http://java.com/js/dtjava.js"></script>
    <script>
    function launchApplication(jnlpfile) {
    dtjava.launch( {
    url : 'MyApp.jnlp'
    javafx : '2.2+'
    return false;
    </script>
    <script>
    function javafxEmbed_fxApplication() {
    dtjava.embed(
    id : 'fxApplication',
    url : 'MyApp.jnlp',
    placeholder : 'MyAppId',
    width : 1280,
    height : 1024
    javafx : '2.2+'
    <!-- Embed FX application into web page once page is loaded -->
    dtjava.addOnloadCallback(javafxEmbed_fxApplication);
    </script>
    </head>
    <body>
              <div id="MyAppId"></div>
    </body>
    </html>
    Thank you

    Some more info,
    I watched the web server logs and I found many repeated log entries like
    "GET /applet/myapplet.html/META-INF/services/javax.xml.stream.XMLInputFactory HTTP/1.1" 404 19023 "-" "Mozilla/4.0 (Windows 7 6.1) Java/1.7.0_09"
    Googling this I've found many posts regarding similar problems:
    http://stackoverflow.com/questions/7997566/web-service-client-applet-keeps-asking-for-meta-inf-services-javax-xml-ws-sp
    http://stackoverflow.com/questions/2340969/applet-served-by-java-web-start-resources-requested-to-web-server-before-look-i
    It seems to be a strange Behaviour of the JNLPClassLoader that tries to load classes from server instead from jar or local class path.
    Somebody suggests to remove all logging entries from code or to add "codebase_lookup = false" to applet parameters but this does not solve the problem.
    I use FXML to define my UI and I think that every time an fxml is loaded JNLPClassLoader tries to load the xml parser (javax.xml.stream.XMLInputFactory)
    from server.
    Somebody have any idea?
    Thank you.

Maybe you are looking for