Can't load Stylesheet while runing application on Web Start

I've got an error "WARNING: com.sun.javafx.css.StyleManager$2 run Resource "null" not found" while runing application on Web Start.
It works fine while running on local execution. I've already signed jar files. So, It shoud not have any problem with java security.
I kept css in the jar fie. The code below is used for loading css file.
String stylesheetName = "/theme/default.css";
scene.getStylesheets().add(stylesheetName);There was a guy who had the same problem with me but there was still no solution for this problem yet. Applet and css
Does anyone know how to fix it?

Hello User,
Your path is wrong. It can't be good if your css file is inside your jar. (This is not a javaFx problem)
If you pacaked your application like that:
myapp.jar
-----theme
---------default.css
You should try something like this:
scene.getStylesheets().add(getClass().getClassLoader().getResource("/theme/default.css").toString());Niculaiu
Edited by: San Nicula on Jul 27, 2011 12:50 AM

Similar Messages

  • How can I fix 'Can't Load Visual Basic for Applications' in Word 2011 for Mac?

    How can I fix 'Can't Load Visual Basic for Applications' in Word 2011 for Mac? I reinstalled Office after macbook was restored and now I've tried reinstalling twice but the same error turns up. There seems to be an associated error realted to the database, which send me to Database Utility. This turns up every time I open Word, then the VBA error message turns up 4 times, or if i click on Visual Basic Editor.

    in case it's useful to some other soul who searched Google in vain and found this page, I posted a fix that worked for me under https://discussions.apple.com/message/21732017

  • Microsoft Word hangs with message "Can't load Visual Basics in Application".

    When I try to open my Word docs, only 1 document opens and this is swiftly followed by an error message saying "Can't load Visual Basics in Application". Please help as I'm desperate to write an assignment. Many thanks.

    I reinstalled Word, and now everything works. 

  • How can I get back into my application aftermath invoking Start up page of index.htm ?

    Gorgeous Hello All,
    If anyone of you can please provide me a solution for the following, will help me in plentious and galore.
    Am using Adobe RoboHelp, Version 10 and IE version being 10.
    A hurdle :-
    I have a application which has been developed in ASP .NET, Version 4.0. Help link has been created in this application wherein here the Start up page of index.htm has been linked to be read from the RoboHelp local project folder\!SSL!\Multiscreen_HTML5\desktop. All are working absolutely fine except when
    I login into the above-said application -> click on the Help page -> the index.htm opens with Contents, Index, Glossary -> Am able to successfully perform any task by respective clickings
    -> But I am not able to get back into my application when I click on the IE provided Back button (Alt+Left) -> Any amount of invoking Back button makes the system getting looped into this Start up page of index.htm only -> When I Close Tab (Ctrl + W) or Close ( X ) -> The window session gets closed and I have to repeat all by relogin once again.
    How can I get back into my application aftermath invoking Start up page of index.htm ?
    (I can always get back into the application easily by erasing those parts in the url which refers to this RoboHelp linkages – but this certainly looks non-polished work)
    Help Please
    Cheese – Vipin Nambiar, Bangalore

    Hey Jeff, I used Internet Explorer 10.0.9200 and Google Chrome 26.0.1410. Alas - it is the same behavior.
    (But Jeff : When I used Microsoft HTML Help as primary layout to generate chm file , My Help when launched from my Application opened in a new browser window and when I closed this Help browser window did not close my application. Looks like need to write few liner code to get this issue settled )
    Thanks Indeed of lots for your concerns Jeff !!!

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • Very Urgent Unable to Launch Application using Web Start using JDK 1.4.2

    Hi all
    I am very serious issue i have ejb client swing application that uses
    RMI to contact a session bean deployed in JBoss now i want the client app to be installed in the client machine using web start . Also i understand i require security permission to access network resources. so i have signed all the JAR files with same certificate created using self certificate avialiable in JDK by default also in the JNLP file in have included the following tag
    <security>
    <all-permissions/>
    </security>
    Now when I launch my application using Web start it gives an error that " Unsigned application is trying to access local resources"
    I unable to understand what could be the problem . Please help me with the steps to be followed where in client should be able to RMI call to the server
    Thanks in Advance
    Naveen

    You may have tried this already, but you might have to sign the jars via command line, outside any export process from your IDE.
    $ jarsigner {filename}.jar {key from keystore}
    I also had problems using webstart and RMI through an RCP
    Ben

  • Can't run application via Web Start 7 if there is query string in href

    Java Web Start 7 cannot run application if there is query string in href attribute in jnlp file.
    For example:
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp?query_string">
    </jnlp>
    There are no any errors. Web Start just does not run application.
    But this jnlp could be processed by Java Web Start 6 without any problems.
    Is this a bug in Java Web Start 7?
    Or using query string in href attribute is not correct by some reason?

    I use following example to test this problem - http://www.mkyong.com/java/java-web-start-jnlp-tutorial-unofficial-guide
    If you use default jnlp from this example - everything works ok.
    But if add any query string to href attribute then Web Start 7 cannot start application.
    For example:
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp?param=value">
    </jnlp>
    The problem is with Java Web Start 7 Update 7 (build 1.7.0_07-b11).
    WebStart 6 can start application using this modified jnlp without any problems.
    Edited by: vbez on Oct 11, 2012 2:57 AM
    Edited by: vbez on Oct 11, 2012 2:58 AM

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • Error while deploying application in Web center Spaces via ant script

    Hi all,
    Jdeveloper version 11.1.1.6
    I am trying to deploy application in Web center Spaces using ant script .
    I am able to deploy it if i keep these two files in local machine .
    wls.userkey=C:\\myFiles\\myuserkeyfile.secure
    wls.userconfig=C:\\myFiles\\myuserconfigfile.secure
    where as when I am trying to pick these files from remote web-logic server I am getting following error
    [exec]  Deploy started at Thu Dec 12 17:26:41 2013
    [exec]
    [exec] Please enter your username :Please enter your password :
    [exec] java.lang.NullPointerException
    [exec] This Exception occurred at Thu Dec 12 17:26:41 GMT+05:30 2013.
    [exec] at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:176)
    [exec] at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
    [exec] at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:597)
    [exec] at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    [exec] at org.python.core.PyMethod.__call__(Unknown Source)
    [exec] at org.python.core.PyObject.__call__(Unknown Source)
    [exec] at org.python.core.PyObject.invoke(Unknown Source)
    [exec] at org.python.pycode._pyx4.connect$1(<iostream>:16)
    [exec] at org.python.pycode._pyx4.call_function(<iostream>)
    [exec] at org.python.core.PyTableCode.call(Unknown Source)
    [exec] at org.python.core.PyTableCode.call(Unknown Source)
    [exec] at org.python.core.PyFunction.__call__(Unknown Source)
    [exec] at org.python.pycode._pyx72.f$0(C:\Abhishek_Mr.Price\SampleWebCenterSpacesExtensions\SampleWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\extspaces.py:14)
         [exec] at org.python.pycode._pyx72.call_function(C:\Abhishek_Mr.Price\SampleWebCenterSpacesExtensions\SampleWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\extspaces.py)
    [exec] at org.python.core.PyTableCode.call(Unknown Source)
    [exec] at org.python.core.PyCode.call(Unknown Source)
    [exec] at org.python.core.Py.runCode(Unknown Source)
    [exec] at org.python.util.PythonInterpreter.execfile(Unknown Source)
    [exec] at weblogic.management.scripting.WLST.main(WLST.java:124)
         [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:597)
    [exec] at weblogic.WLST.main(WLST.java:29)
    [exec] None
    [exec] #########################################################
    [exec] #####     Deployment Failed #########
    [exec] #####     Contact support with Exception Stack #########
    [exec] #########################################################
    [exec]
    [exec]
    Chandana

    Any Updates

  • How can I connect to a database using Java Web Start?

    When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.

    I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?

  • Deploying a Java CORBA application in Web Start

    I am a novice to Java Web Start. I have a sample Client-Server application with CORBA as a middle ware. The front end (Client) is in Java and back end (Server) is in C++. The application is run and tested with jar and batch file. Now I want to deploy that application in Java Web Start and JNLP.
    I have configured the same by creating a JNLP file and signed jars.
    Now as all knows any CORBA application needs a domain file ( .cfg ) and some org.omg classes to communicate with the server by RPC.
    I am stuck with how to specify these domain file name, path, CORBA classes etc in my JNLP. Not even that, I can't understand exactly what configuration will make the CORBA apps work properly in Java Web Start so that it can communicate with the server as well. All the Orbix jars's, IDL Stub jars are present and signed. I am giving my JNLP file as a reference. Actually I have tried adding these domain files and CORBA classes as parameters. But as usual it is not working and after running the JNLP the Java console suddenly gets disappeared.
    CORBADemo.jnlp
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://172.28.1.139:8400/Test_CORBA_App" href="CORBADemo.jnlp">
    <information>
         <title>CORBA Demo</title>
         <vendor>Ushacomm</vendor>
    </information>
    <resources>
         <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
         <jar href="lib_6.3-Signed/UI_Fall_Test63.jar" main="true" download="eager" />
         <jar href="lib_6.3-Signed/ConfigurationService.jar" download="eager" />
         <jar href="lib_6.3-Signed/IDLStub.jar" download="eager" />
         <jar href="lib_6.3-Signed/art-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/art.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_cio-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_cio.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_nio-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_nio.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_tls-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_tls.jar" download="eager" />
         <jar href="lib_6.3-Signed/codeset.jar" download="eager" />
         <jar href="lib_6.3-Signed/concurrency-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/concurrency.jar" download="eager" />
         <jar href="lib_6.3-Signed/ifc-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/ifc.jar" download="eager" />
         <jar href="lib_6.3-Signed/iiop.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_management_logging-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_mgmt_plugin-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_portable_interceptor-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/management-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/management.jar" download="eager" />
         <jar href="lib_6.3-Signed/mgmt.jar" download="eager" />
         <jar href="lib_6.3-Signed/omg-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/omg.jar" download="eager" />
         <jar href="lib_6.3-Signed/perf_logging.jar" download="eager" />
         <jar href="lib_6.3-Signed/portable_interceptor.jar" download="eager" />
         <property name="Dorg.omg.CORBA.ORBClass" value="com.iona.corba.art.artimpl.ORBImpl"/>
         <property name="Dorg.omg.CORBA.ORBSingletonClass" value="com.iona.corba.art.artimpl.ORBSingleton"/>
         <property name="ORBdomain_name" value="VOIAMODOMAINNEW"/>
    </resources>
    <application-desc name="CORBADemo Demo Application" main-class="Launch" width="300" height="300">
    </application-desc>
    <update check="background"/>
    <argument>1</argument>
    <security>
         <all-permissions/>
    </security>
    </jnlp>
    .

    *@ gimbal2 and EJP :*
    The firewall is present and allowed to access apps. When I am running the jar of my application from batch file then everything is running fine. The CORBA Server is a remote RHEL5 (Enterprise Linux 5) machine whose 'IP' and 'Hostname' is specified in *"C:\WINDOWS\system32\drivers\etc\hosts"* file. Server is running fine and after starting the Client the Server side remote method is invoked. Data fetched properly and everything is working like a charm.
    When running from batch (.bat) file using jar My applications folder hierarchy is something like this.
    Test_CORBA_App
    ------+config ( contains resources file and domain file )
    ------+lib_6.3 ( contains all Jars)
    ------+log ( will contaiin the generated log files )
    -------runCORBA_App.bat ( the batch file I am running )
    As depicted above the folder hierarchy, my domain file resides in "config" folder. The contents of the batch file are as follows :
    runCORBA_App.bat
    C:\jdk1.6.0_14\bin\java -Xms64M -Xmx512M -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton -jar lib_6.3\UI_Fall_Test63.jar -ORBdomain_name VOIAMODOMAINNEW 1
    pause
    The following things are specified in the batch file :
    1. JDK path : ( C:\jdk1.6.0_14\bin\java )
    2. Java VM arguments for max and min memory : ( -Xms64M -Xmx512M )
    3. ORB class name: ( -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl )
    4. ORB singleton class name : ( -Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton )
    5. Jar file name to run : ( -jar lib_6.3\UI_Fall_Test63.jar )
    6. Domain Name : ( -ORBdomain_name VOIAMODOMAINNEW )
    7. Main function args : ( 1 )
    I am trying to deploy this simple CORBA application in Java Web Start and JNLP. I kept this in my tomcat server web apps. The folder hierarchy is as follows :
    tomcat
    ---+ bin
    ---+ conf
    ---+ ..
    ---+ ..
    ---+ ..
    ---_ webapps
    ----------+ host-manager
    ----------+ manager
    ----------+ ..
    ----------+ ..
    ----------_ Test_CORBA_App
    -------------------+ config
    -------------------+ lib_6.3
    -------------------+ lib_6.3-Signed
    -------------------+ log
    --------------------CORBADemo.jnlp (.jnlp file)
    --------------------index.html (.html file)
    As you can see I maintained the same folder structure as it was when running from batch file. The jars I am using is signed and kept in lib_6.3-Signed folder.
    My updated "CORBADemo.jnlp" is :
    CORBADemo.jnlp
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://172.28.1.139:8400/Test_CORBA_App" href="CORBADemo.jnlp">
    <information>
         <title>CORBA Demo</title>
         <vendor>Ushacomm</vendor>
    </information>
    <resources>
         <j2se version="1.6" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Xms64M -Xmx512M 1" />
         <jar href="lib_6.3-Signed/UI_Fall_Test63.jar" main="true" download="eager" />
         <jar href="lib_6.3-Signed/ConfigurationService.jar" download="eager" />
         <jar href="lib_6.3-Signed/IDLStub.jar" download="eager" />
         <jar href="lib_6.3-Signed/art-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/art.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_cio-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_cio.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_nio-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_nio.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_tls-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_tls.jar" download="eager" />
         <jar href="lib_6.3-Signed/codeset.jar" download="eager" />
         <jar href="lib_6.3-Signed/concurrency-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/concurrency.jar" download="eager" />
         <jar href="lib_6.3-Signed/ifc-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/ifc.jar" download="eager" />
         <jar href="lib_6.3-Signed/iiop.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_management_logging-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_mgmt_plugin-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_portable_interceptor-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/management-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/management.jar" download="eager" />
         <jar href="lib_6.3-Signed/mgmt.jar" download="eager" />
         <jar href="lib_6.3-Signed/omg-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/omg.jar" download="eager" />
         <jar href="lib_6.3-Signed/perf_logging.jar" download="eager" />
         <jar href="lib_6.3-Signed/portable_interceptor.jar" download="eager" />
         <property name="Dorg.omg.CORBA.ORBClass" value="com.iona.corba.art.artimpl.ORBImpl"/>
         <property name="Dorg.omg.CORBA.ORBSingletonClass" value="com.iona.corba.art.artimpl.ORBSingleton"/>
         <property name="ORBdomain_name" value="VOIAMODOMAINNEW"/>
    </resources>
    <application-desc name="CORBADemo Demo Application" main-class="Launch" width="300" height="300">
    </application-desc>
    <update check="background"/>
    <argument>1</argument>
    <security>
         <all-permissions/>
    </security>
    </jnlp>
    N.B
    *1. I am running the Tomcat server in my own machine on port 8400 ( for sure, as I have deployed many .war files using this tomcat and all worked ). And using the URL below running the WebStart application.*
    *2. I am running the JNLP from my own machine.*
    *3. CORBA server is running on a remote RHEL 5 machine as I mentioned before also.*
    URL : http://<My Machine IP>:8400/Test_CORBA_App/
    As desired the Web Start application will make a call to the remote CORBA server on RHEL5 machine by initializing the ORB and resolving the CORBA NamingService. But exception is occurring as I posted in previous post i.e exception while resolving NamingService.
    Now my query is whether the domain file ( DOMAIN.cfg ) is reading/ accessing properly from my machine while running the JNLP or not. Because I presume in Java Web Start special attention is required to read any .cfg file. If everything is fine why the error is occurring.
    *@ EJP :* The ORB is desired to run and running on the CORBA Server remote macine i.e RHEL5 machine, because from batch file it is working fine.
    Is it so that I need to run the Tomcat Web Server and CORBA Server from the same machine.

  • Changes to be done in the code while converting appln to web start

    Hi All,
    I am developing one application using swing, Spring, Hibernate. It is working fine through eclipse. Now I want
    this project to be launched via java web start. For that I have to make changes in the code for accessing
    resources such as images, files. Also changes have to be made to access the system environment variables.
    But there will not be 2 versions. I want something like
    if applcaiton running through eclispe
         execute this code for images and files
    else if application is running though jabva web start i.e. by clciking on jsp
         execute this code for images and files
    Also spring-beans.xml has the system propery as environment.
    <property name="location" value="classpath:application-${environment}.properties" />
    but while running though eclipse i have to change it as
    <property name="location" value="classpath:application-${jnlp.environment}.properties" />
    Now can it be possible to have only one property value for location?
    Please help me. If u know any URL which addresses this issues of give some what direction on this matter,
    please provide me those also.
    Thank and Regards
    Deepali.

    I think it's much better to make a JSP, Spring Hibernate version of your swing app.
    You can even choose JSF as a view layer.

  • How to avoid multiple copies of the same application in Web Start cache?

    We have an environment where there are several HTTP servers carrying the same Web Start application.
    Is there any way to prevent Web Start from installing another copy of the same application in a client machine's cache if the user hits an HTTP server that is not the one the application was already installed from?

    There is no way WebStart can know that an application from one server is actually the same as an application from another server, so I don't think this is possible.

  • Deploying SWT application with web start

    Hi there,
    I was trying out to deploy the IBM's sample SWT application, FileViewer, with web start, but ended with the following exception which I couldn't figure out how this happened.
    EXCEPTION : -
    JNLPException[category: Download Error : Exception: java.net.ConnectException: Connection refused: connect : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WRAPPED EXCEPTION : -
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
         at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I am now using JDK5.0. Even when I was trying out the JDK's sample Webpad, I got "Servlet JnlpDownloadServlet is not available" . Can anyone advise please?

    Hi Jim,
    Try to replace,
    <jnlp spec="1.0+" codebase="http://localhost:8080/fileviewer" href="index.jnlp">
    with
    <jnlp spec="1.0+" codebase="$$codebase" href="index.jnlp">
    But i was using JNlpdownload servlet to do the task
    Regards
    Leo

  • Launching external applications from web start

    Hi!
    I am currently working on a management system and I need to launch other management systems from my Java Web Start application. The other systems are either based on web applications (URLs), telnet - needs to set up a telnet session, or running shell scripts or batch files.
    URLs are ok. I am using Desktop.browse in Java 1.6 or I can use BasicService.showDocument in javax.jnlp API.
    My application may run on both windows and linux (ie its launched from the browser). It interacts with a java app on a linux server over RMI.
    How can I lauch a telnet session from my client app?
    Do I have to include apache commons.net and create a telnet module in my app or can i lauch c:\windows\system32\telnet.exe in windows (if my app is lauched on win) and /usr/kerberos/bin/telnet (if my app is lauched in Linux)?
    How can I launch an external .exe application in window and how can I launch any shell script or program in Linux?
    (same as how do i lauch telnet)
    As long as the user is prompted I can see no risk of denying these kind of things so I hope and think that this should be possible!
    PS. I have managed to do it by using Runtime.exec() when running as a non JWS application, but I cannot do it when running as JWS:
    java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)I dont want to sign the application either. The reason for choosing webstart was to not have to renew certificates at our customers.
    Please help.
    Thanks for taking interest and reading this.. and I hope that someone has some helpful answers for me :)
    Edited by: Tomas_Andersen on Feb 5, 2008 6:34 AM

    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 ????

Maybe you are looking for