Access local disk via Java Web Start??

HI all ,
I had saw the JWS document.
It indicate we can't access local disk via JWS in that Security.
If I need to access local disk by command, does anyone have better suggestion.
And can I run *.bat via Java Web Start?
Thanks very much for your help.
Morris

I do the both thing but still don't access to Local disk.
I just write a simple test class within extend another that create a file (and of course sign it)but still can't create a file Local disk. this MAKE ME MAD and LOOSE MY JOB .
here is my JNLP file:
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Pensionsrechner -->
<jnlp
spec="1.0+"
codebase="file:///d:/"
href="test.jnlp">
<information>
<title>Me</title>
<vendor>myself</vendor>
<homepage href="http://www.me.com"/>
<description> test test test</description>
<description kind="short">Test creatin of log file on client </description>
</information>
<offline-allowed/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4"/>
<jar href="test2.jar"/>
</resources>
<application-desc main-class="secMan.Test"/>
</jnlp>

Similar Messages

  • Can't run via Java Web Start

    Hello Everyone,
    I'm new to Java Web Start. I've been trying to get the BuddySpace Jabber client to launch via JWS. I have to use the trusted mode since I need local filesystem and network access. So, I've signed the three jar files and finally gotten the application to launch but I'm getting an exception that I don't get when running it without JWS (i.e. just using a batch file to launch from my local machine). Here is the error that I get:
    java.lang.NullPointerException
         at javax.swing.ImageIcon.<init>(Unknown Source)
         at edu.ou.kmi.buddyspace.gui.BSSplashScreenDlg.initComponents(BSSplashScreenDlg.java:49)
         at edu.ou.kmi.buddyspace.gui.BSSplashScreenDlg.<init>(BSSplashScreenDlg.java:39)
         at edu.ou.kmi.buddyspace.gui.BSMainFrame.<init>(BSMainFrame.java:310)
         at edu.ou.kmi.buddyspace.gui.BSMainFrame.main(BSMainFrame.java:423)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(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)
    Any help on how to resolve this would be greatly appreciated.
    Thanks,
    Al

    Looks like your app can't find the image file for the icon. Make sure you've got your images in your jar file.
    Also have a look on the forums for info about ClassLoader's...there's a bug with ClassLoader.getResource() which you may be using.
    Simon

  • "access denied" error from Java Web Start

    I can successfully download the jar file, but always have error message "access denied" when the java application tries to open a local file in C:\temp\poc1.xml.
    I can successfully execute the java application from DOS,but failed when using Java Web Start. The error message is as follows:
    Java Web Start Console, started Wed Nov 28 16:30:31 PST 2001Java 2 Runtime Environment: Version
    1.3.1 by Sun Microsystems Inc.java.security.AccessControlException: access denied
    (java.io.FilePermission C:\temp\poc1.xml read)     at
    org.apache.xerces.framework.XMLParser.parse(Unknown Source)     at
    org.apache.xerces.framework.XMLParser.parse(Unknown Source)     at
    com.hotlocker.client.HLSessionParser.parse(Unknown Source)     at
    com.hotlocker.client.UploadDownloadClient.uploadFiles(Unknown Source)     at
    com.hotlocker.client.UploadDownload.main(Unknown Source)     at
    java.lang.reflect.Method.invoke(Native Method)     at
    com.sun.javaws.Launcher.executeApplication(Unknown Source)     at
    com.sun.javaws.Launcher.executeMainClass(Unknown Source)     at
    com.sun.javaws.Launcher.continueLaunch(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)

    Hi,
    you can't get a file like in a "normal" app
    because a JWS-app runs in the restricted
    sandbox environment by default.
    So you either sign your app with a digital certificate
    or you use a special FileOpenService (JNLP-API).
    You could also put the file into the app-jar and
    load it by a classloader.
    Regards,
    Mathias

  • Problem while distribute software via Java Web Start

    Hi,
    I use JWS to distribute my software to the clients. I use apache 2.2 as webserver.
    My Problem:
    When i put a update a jar on the webserver, the clients have to start JWS twice to get the new file.
    First i thought it is a problem with the webserver. So i have restarted the apache after i�ve put the new jar. ... without success.
    Are there any settings in JWS which take affect?
    Any ideas?
    Tom

    The default behavior is to timeout if checking for an update takes too much time.
    You can add the jnlp element:
    <update check="always"/>
    and updates will always happen on the forst launch (when client is using Java Web Start 1.6.0 or later, update element will be ignored by earlier versions)
    see: http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html#security
    /Andy

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Missing class ServerNamingNode_WLStub using Java Web Start

    Hi!
    We're developing J2EE application with Swing clients. Our Swing
    applications work perfectly standalone but fail when distributed via
    Java Web Start. The log says that ServerNamingNode_WLStub cannot be
    found. I've looked through all the WL installation directory and
    couldn't find it too.
    Maybe somebody knows where can I find this class? Or maybe why JWS
    doesn't work properly?
    Please, help. We do need to use Web Start to distribute application
    automatically.
    Thank you in advance.
    Below you can see a stacktrace.
    P.S. Standalone client works perfectly using only weblogic.jar archive.
    Java Web Start 1.2 Console, started Tue Sep 24 15:22:08 EEST 2002
    Java 2 Runtime Environment: Version 1.4.1 by Sun Microsystems Inc.
    Logging to file: C:\Documents and Settings\pawlom\My Documents\webstart.log
    http://localhost:7001/ws/
    java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub
    at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:479)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at net.xtrim.crm.ui.delegates.util.Util.getContext(Util.java:64)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.<init>(UserSessionDelegate.java:84)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.login(UserSessionDelegate.java:62)
    at
    net.xtrim.crm.ui.adminconsole.AdminConsole$ConsoleAuthenticator.authenticate(Unknown
    Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.login(Unknown Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.access$000(Unknown Source)
    at
    net.xtrim.crm.ui.adminconsole.auth.DialogLogin$LoginThread.run(Unknown
    Source)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with
    nested exception:
    [java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub]
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:483)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at net.xtrim.crm.ui.delegates.util.Util.getContext(Util.java:64)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.<init>(UserSessionDelegate.java:84)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.login(UserSessionDelegate.java:62)
    at
    net.xtrim.crm.ui.adminconsole.AdminConsole$ConsoleAuthenticator.authenticate(Unknown
    Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.login(Unknown Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.access$000(Unknown Source)
    at
    net.xtrim.crm.ui.adminconsole.auth.DialogLogin$LoginThread.run(Unknown
    Source)
    java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub
    at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:479)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at net.xtrim.crm.ui.delegates.util.Util.getContext(Util.java:64)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.<init>(UserSessionDelegate.java:84)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.login(UserSessionDelegate.java:62)
    at
    net.xtrim.crm.ui.adminconsole.AdminConsole$ConsoleAuthenticator.authenticate(Unknown
    Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.login(Unknown Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.access$000(Unknown Source)
    at
    net.xtrim.crm.ui.adminconsole.auth.DialogLogin$LoginThread.run(Unknown
    Source)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with
    nested exception:
    [java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub]
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:483)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.

    Maybe this link can get your started:
    http://www.esus.com/javaindex/j2se/javawebstart/plugingetstarted.html
    Cheers,
    Joris

  • What is Java Web Start?

    Hi
    After installing Java 2 Platform Standard Edition v 1.4.2, Java Web Start link on the
    Windows 98 desktop.
    What do I use Java Web Start for?
    Please reply soon.
    Thanks,
    Sincerely,
    Egan

    Java Web Start software provides a flexible and robust deployment solution for Java technology-based applications based on the Java Community Process program (JCP). The technology is being developed through the JCP program as JSR-56: The Java Network Launching Protocol & API (JNLP), which provides a browser-independent architecture for deploying Java 2 technology-based applications to the client desktop.
    Java Web Start technology works with any browser and any Web server. Each application developed for use with the Java Web Start software specifies which version of the Java 2 platform it requires, e.g., version 1.2 or 1.3, and each application runs on a dedicated Java Virtual Machine (JVM).
    A main feature of the Java Network Launching Protocol and API technology is the ability to automatically download and install Java Runtime Environments onto the users machine.
    For example, an application might depend APIs in Sun's Java Runtime Environment 1.3.0 (or later). When a user first accesses this application, the Java Web Start software will download all the needed files for the application, as well as download the Java Runtime Environment (JRE) if the requested version is not available locally. The ability to automatically download a JRE is one of the key features to ensure robust deployments. It ensures that the JRE that your application is tested on will be available on the user's machine, as well as make it possible to seamlessly upgrade to improved versions of the Java 2 platform over time.
    The java.sun.com auto-download feature simplifies Java Web Start deployments because it makes commonly used software readily available for use with Java Web Start. Typically, only an extra line has to be added to a JNLP file to take advantage of this feature. In contrast, without the auto-download feature, developers would be forced to repackage and host the software themselves - adding a significant overhead to the deployment burden. As an added benefit to both developers and end-users, this minimizes the download time for an application since each JRE will be shared between multiple applications.

  • Java Web Start running JasperReports

    The following is the exception that is thrown when trying to compile an .xml report template to a JasperReport object, from an app that has been deployed via the Java Web Start:
    dori.jasper.engine.JRException: Errors were encountered when compiling report expressions class file:
    C:\Program Files\mozilla.org\Mozilla\DailyReport.java:4: package dori.jasper.engine does not exist
    import dori.jasper.engine.*;
    * I have deployed the application properly via Java Web Start; however, when running the application it is not able to compile the xml file to a JasperReport object.
    * The .java file is created properly; but the app does not seem to be able to find the dori.jasper.engine.*; library.
    * I have signed and included the jasperreports-0.5.0.jar (and it's dependencies) with the app, and have put the path to all of it in the Class-Path of the manifest file.
    * NOTE: Just FYI, I am able to run this without any problems under netbeans.

    Dear Patrick,
    Recently I have used iReports for generating report through java & deploy it through java web start.
    I had taken all the measures you had mentioned in your previous replies. But I am not able to view the report. ( might be it is not compiliing)
    I am using new version of jasperreports-0.5.3.jar
    also through console it is running well.
    Also it is not giving any errors. can u have any idea about this.
    Might be it is silly mistake I have done.
    My code for report generation is :
    public class SReportA
         public SReportA()
         try
         JasperDesign jasperDesign = JasperManager.loadXmlDesign("/home/ora/iReport/RSENIORITYLIST-A.xml");
         dori.jasper.engine.design.JRBshCompiler theCompiler = new dori.jasper.engine.design.JRBshCompiler();
         JasperReport jasperReport = theCompiler.compileReport(jasperDesign);     
         Map parameters = new HashMap();
         parameters.put("uname","admin");               
         Connection con=null;
         try
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con=DriverManager.getConnection("jdbc:oracle:thin:@158.144.71.219:1521:dbadp","acom","admin123");
         catch(Exception e)
              System.out.println("Exception in test.jsp "+ e);
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,con);
         JasperManager.printReportToPdfFile(jasperPrint,"ReportA.pdf");
         JasperViewer.viewReport(jasperPrint,false);
         catch(Exception e){ System.out.println("There is exception here"+ e); }

  • Java Web Start Error in Tiger

    I just received a new MacBookPro and when I attempt to download/run a Java application I get the following error (worked with my older system):
    An error occurred while launching/running the application.
    Title: Extensity 6
    Vendor: Geac Computer Corporation Limited
    Category: System Configuration
    The application has requested a version of the JRE (version 1.3.1* 1.3.1_02 1.3.1_01 1.3.1 1.3.0* 1.4.1* 1.4.2_08 1.4.2_10) that currently is not locally installed. Java Web Start is unable to automatically download and install the requested version. This JRE must be installed manually.

    Have you tried using Rosetta?

  • Refresh an open web page on closing an applet launch from Java Web Start

    Hi
    I launch an aplication via Java Web Start from a link in a web page. I am looking to a solution to refresh my web page when I close my applet.
    Thanks in advance to give me the solution or only to let me know if it's possible or not.

    everything's possible. but this is not trivial. there is no direct connection between the html page that launched the app and the app. You can create an indirect connection by having the app notify a server process when it closes and having the page periodically polling the server for the app's status.

  • Java Web Start and C++ executable

    Can anyone please help me to deploy an application including three C++ executables using Java Web Start?
    I packaged each .exe file into .jar and created a java program called "ExecTest" that attempt to launch the .exe by calling Runtime.exec (someapp.exe).
    My JNLP file looks like:
    <resources>
    <jar href="app/someapp.jar"/>
    <jar href="ExecTest.jar" />
    </resources>
    <application-desc main-class="ExecTest">
    The problem I am having is that Runtime.exec wants the full absolute pathname for the executables. But the cached jar files all have some arbitrary letters prefixed, so I cannot specify them beforehand.
    Any ideas?
    Thanks in advance.
    Suh from Toronto. (Go! Leafs Go!)

    I've deployed serialio.com's replacement for javax.comm via Java Web Start, and I managed to package the .dll in a .jar without any difficulties.
    Perhaps the System.loadLibrary() function knows about the renaming that Java Web Start does...
    If so, then the following might do the trick:
    - Use System.loadLibrary() to load your .exe file. Windows uses the same fileformat for DLLs and EXE files, and hence System.loadLibrary() should be a safe no-op. Presumably you are
    - Use System.mapLibraryName() to find the full path to your .exe.
    �yvind

  • Java Web Start and JAAS

    Has anybody tried to use JAAS in an application launched via Java Web Start?
    I'm experiencing problems with it. (The application works fine when being launched directly on the client.)
    If somebody already successfully tried, please let me know.
    Do I need to modify tags in the JNLP file? Do I need to re-configure my webserver or servlet engine?

    OK I got a response from the Java Web Start engineering folks. It sounds like using JAAS directly, to login to an ejb app server or whatever, is out of the question with Java Web Start on JDK1.3:
    << begin Sun's email >>
    The problem you got is due to JAAS 1.0 (jaas.jar) uses systemClassLoader to load
    classes that are defined in the JNLP application jar files, which should be
    loaded by the contextClassLoader instead. For more information on classLoading
    with JWS, look at:
    http://java.sun.com/products/javawebstart/faq.html#54
    http://java.sun.com/products/javawebstart/docs/developersguide.html#dev
    The new JAAS that comes with JDK 1.4 fixed this problem, which uses
    contextClassLoader in their class.
    Thanks for your interest in Java Web Start.
    << end of Sun's email >>
    FYI our workaround: We use a SOAP servlet as a proxy for the app server and we've defined a SOAP xmlrpc api between our client and the application server. This has the advantage of being able to get thru firewalls, as our variant of SOAP is transported on HTTP. Java Web Start installs and starts the SOAP client.
    I would hope the JWS folks would search the Sun provided services and see which ones ignore the current thread's class loader and fix them.
    David Harvey
    Siemens Energy and Automation, Inc.
    Gardner Systems Business Unit

  • Looking up EJB from Java Web start

    I have a java client application that looks-up an EJB deployed in WebLogic Server 10.3 on windows xp. the application works fine when invoked from command line. But when I try to run the same application via Java Web Start, I get following error while doing EJB lookup:
    java.lang.AssertionError: java.lang.ClassNotFoundException: com.pks.dummy.SL1
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:57)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at com.pks.dummy.client.TestClientDummy.doTest(Unknown Source)
    at com.pks.dummy.client.TestClientDummy.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.pks.dummy.SL1
    at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.getClassBytes(RemoteBizIntfClassLoader.java:151)
    at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(RemoteBizIntfClassLoader.java:96)
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:54)
    ... 36 more
    #### Java Web Start Error:
    #### null
    com.pks.dummy.SL1 is Remote interface for the Session Bean. and is packaged in same jar with client jar. Also, I am able to instantiate the com.pks.dummy.SL1 using class.forName in main() method of client code in both command line as well as Web start environment.
    Any help is appreciated. Thanks.
    Edited by: javaDev on Dec 19, 2008 11:58 AM
    Edited by: javaDev on Dec 19, 2008 12:18 PM

    I got the solution for ClassNotFound issue. To avoid this error, one need to package EJB stubs on client side. Packaging just the EJB interfaces doesn't help.
    EJB stubs can be generated using weblogic.appc utility. For more information about this utility please refer
    WebLogic Server Command Reference : Link: [http://edocs.bea.com/wls/docs103/pdf/admin_ref.pdf]

  • Deploying Tomcat via Java Web Starr?

    Hello,
    I'm trying to figure out if it is possible to deploy a servlet container such as Tomcat to a remote computer via Java Web Start. Here is the problem. I have a need to deploy Apache Tomcat along with a web application inside it to remote computers. The users of the computers are not very tech-savvy so installing Tomcat and deploying a web application inside it is too hard for them. So I'm wondering if this is doable via Java Web Start. If you have an alternative suggestion I appreciate that too. Please advice.
    Thanks,
    Mete

    Hello Dietz,
    Those are great ideas. So basically you are saying that it is possible to jar up the whole tomcat distribution in one jar file and unzip it on the client computer? For my project, all I need to be able to do is just enabling the user to double click on the Web Start desktop link and automatically start Tomcat (I'm hoping that I could launch it as a small window that hides in the corner of the desktop rather than the ugly black DOS prompt) and bring up an Internet Explorer window with the URL pointing to http://localhost:8080. And then they would shut down Tomcat by clicking the "X" close button on the little window that comes up. We need to do this in order to enable a web-based application to be used on a client computer without having to connect to the internet. We figured that the users of this application would like to be able to use the application on their laptops where they don't have internet connection.
    I would really appreciate it if you could let me know how your efforts of getting Tomcat to run via Web Start went.
    Thanks much,
    Mete

  • Accessing libraries from java web start

    hi guys,
    I am new to forums and sorry if this question has been posed before. I am trying to access jogl.dll and jogl_cg.dll through java web start. These libraries are getting downloaded on the client machine as a jar file. I am using the following commands to access these files
    System.loadLibrary("jogl");
    System.loadLibrary("jogl_cg");
    Its giving me the follwing error
    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\java\tools\jogl_cg.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at testlib.Main.main(Main.java:35)
    Java Result: 1
    I am getting unsatisfied link error as its searching for another library which jogl_cg.dll depends upon. Can anybody suggest me what other library do i need to attach and the way i am accessing the libraries using system.loadlibrary is correct or not
    I would appreciate your help in this regard.
    Thanks in advance,
    ravi ananthuni.

    Actually you're correct. There was a resource missing.
    The error was in the way I was packaging mail.jar. This archive has resources located in the META-INF subfolder inside the jar file. I'm running on Windows 2000, and I was expanding the mail.jar file, and then recreating and signing the archive using the Netscape utility signtool with the -Z option:
    signtool -k <mycert> -d <keystore_path> -Z mail.jar <expanded JAR directory>.
    When creating the JAR file, the META-INF folder is deleted and replaced with the META-INF entries for the JAR you've just created. The other resources packaged in the META-INF are overwritten, and so the signed mail.jar did not work properly -- hence the NoSuchProvider exception.
    For reference the solution is to sign the directory without creating the jar file:
    signtool -k <mycert> -d <keystore_path> <expanded JAR directory>
    and then create the jar file from the signed directory using another archiving utility. I used the command line interface for Winzip 8.0.
    cd <expanded JAR directory>
    wzzip -rp ..\mail.jar *
    http://developer.netscape.com/docs/manuals/cms/41/adm_gide/app_sign.htm#1012833
    Thanks!
    -- Eric.
    Hi,
    you suppose that the .jar files are not signed
    correctly,
    but what should have gone wrong?
    You can check that each .jar is correctly signed with
    the jarsigner tool:
    jarsigner -verify -verbose foo.jar
    If all your jars are reported to be signed, the only
    other error I can imagine regarding signing is the
    "all .jars referenced by one .jnlp must be signed
    by the same key" rule. (Read Section 5.4 of the
    jnlp 1.0.1 spec).
    javax.mail.NoSuchProviderException: No provider for
    Address type: rfc822
    files to be listed as resources, Java Web Startfails
    to launch my application (unsigned application
    requesting unrestricted access to system).I would have expected the latter error, if you
    have a signing problem.
    That first error looks like something different,
    perhaps the app is looking for a resource that
    defines rfc822 behaviour.
    Regards,
    Marc

Maybe you are looking for