Java Web Start and JDK Logger

The JDK logger uses the logging.properties file in the JRE lib directory. However I would like to use my own logging.properties file as part of the application that uses Java Web Start. This config file will be part of the application jar file.
The usual way to specify the logging properties file is by using the -D parameter
-Djava.util.logging.config.file=logging.properties
How do I specify my own logging.properties file for Java Web Start? TIA.

I'm trying to track down a solution to that problem too. The reason is because of the strange way webstart is creating its own log. It attaches a class: com.sun.deploy.util.LoggerTraceListener which records console messages. The way it does this is by generating its own log messages at the FINE level. If you look in the javaws.log file which is inside of the webstart cache area, you can see the result of this. On a mac this is located at: ~/Libraries/Caches/java/log
So if the console handler is configured to printing out FINE level messages then an infinite recursion happens. If you change the console handler's level so it isn't printing FINE messages then it works. But I want to see my own FINE level messages, so that isn't a good solution for me.
I tried setting com.sun.deploy.level=INFO in the global logging.properties, so webstart's log messages would not show up in the console. However, it appears webstart resets this level on startup.
If you set that property using the resource loading you figured out above, it might work because that should happen after webstart does its own logging configuration.

Similar Messages

  • Mac OS 10.4.8 , Java Web Start and JRE version of 1.4.2 and 1.5.0 problem

    Hello,
    I've been searching internet and reading the problems related to Java Web Start and JNLP.
    But no solution I read can solve what I faced.
    I'm running Mac OS x 10.4.8 and Macintosh updates the Java in my machine so that it has Java version 1.4.2 and Java 1.5.0
    The application I'm running needs to be running in JRE 1.4.2.
    So I changed the Java Preferences so that the default Java setting is JRE 1.4.2. However, the JNLP application still running in Java 1.5.0
    So I changed the MIME and make sure the JNLP is opened with Java Web start instead. The Java Web start is for version 1.4.2. I also change its preference so that the console is opened.
    I tried to run the JNLP application once again. Java web start 1.4.2_09 starts and console open, but the Java Runtime is still showing Java 1.5.0
    I adjust the JNLP file so that the version is only showing 1.4.2_09 (ignoring all other variables of version 1.4.1, 1.4.2, etc found in the original JNLP file). That didn't work either.
    I search on methods on how to uninstall Java 1.5.0 in Mac - apple page told me that I can't do that unless I reinstall the whole OS.
    I am henceforth declare that I am stuck now !!!! Heellllpp....

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • Java Web Start and DeployDirector: What's the difference?

    I am the product manager for DeployDirector at Sitraka (now part of Quest Software). I'm NOT in sales; I'd simply like to provide you with some information.
    From talking with DeployDirector users and evaluators, and from my own discussions with the folks at Sun, I have discovered that there is great deal of confusion about the difference between Java Web Start and DeployDirector. I'd like to clarify this by periodically posting some information about the two.
    Though the products seem similar in concept, they are designed for different purposes. They both deploy, auto-update and manage the JRE for client-side Java applications, but beyond that, they are quite different.
    Java Web Start is ideally designed for applications deployed over the Internet, where application-provider trust is an issue. Why? The security sandbox guarantees that application can do no harm. (There's some good information about Java Web Start and sandbox apps on ScheduleWorld at http://www.scheduleworld.com/itsYourLife.html) Web Start's architecture simply consists of a client piece that interprets a JNLP file. Because of the sandbox and its simplicity, I believe JWS is best used for independent software vendors, independent developers, etc.
    Because DeployDirector is ideally designed for internal enterprise applications, it does not enforce the security sandbox. Trust is not an issue here, because internal users typically trust their internal IT group. DeployDirector's architecture consists of both a client and a server piece, which allows us to support more complex deployment and update scenarios (e.g., scheduled and optional updates) and applications management capabilities like rollback, reporting, exception monitoring, authentication/authorization out of the box. All of this is configured through the DeployDirector administration console.
    In some situations, DeployDirector may be unnecessary overhead. In other situations, Java Web Start simply does not provide enough capability and building in this into Web Start can be difficult.
    If you'd like more information, we have whitepapers and case studies (including one specifically about DeployDirector and JWS) available on our website at http://www.sitraka.com/software/deploydirector/
    If you'd like to discuss some of these differences, or if you have questions about DeployDirector, feel free to email me directly. (Or post here, of course.)
    Thanks,
    Sonal Champsee
    [email protected]

    Hi Gerald,
    Given what I know about your emnity towards DeployDirector (which is clearly illustrated in this thread: http://forum.java.sun.com/thread.jsp?thread=348061&forum=38&message=1446155 that was evidently a response to this article: http://www.javaworld.com/javaworld/jw-11-2002/jw-1122-autoupdate.html) I'm going to take a (pardon the expression) "don't feed the trolls" approach here.
    I'm simply re-iterate that JNLP, and its implementations such as Web Start and OpenJNLP, are designed for a very different set of users that DeployDirector. The differences in functionality between the two products reflect that.
    The enterprise has different requirements in a deployment mechanism for its internal, critical applications than software vendors and independant developers. DeployDirector addresses the requirements of the enterprise. Frankly, most of our recent customers only chose to buy the product after initially rejecting it and (unsucessfully) attempting to use JNLP and Web Start. Sometimes people only learn the hard way: different users have different requirements which are suited to different tools or technologies.
    Sonal

  • 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 JNLP Problem

    Hi !
    I�m a student and i need your help for a work that i have to do.
    I have an aplication that parse an XML file.
    The XML file is in ther server, and when i run the aplication with Java Web
    Start and jnlp file i want that the application parse a XML file.
    is this possible??? how can i do ???
    if you dont understand please warn me, that i try to explain better..
    thanks, in advance.
    Rui Silva , Portugal

    I'm not sure that you need webstart.
    Just an applet will allow you to read a file from the server:
    Just open a URL pointing to the .xml file.
    Read the file into a buffer and then parse it.
    Now actually getting the applet to do something with the contents of the .xml file
    is more complicated. Presumably you need to write something which understands the
    contents of the .xml and does something in response to the contents.
    A signed java program can be run from with in webstart which can spawn processes on
    the local machine. os.systemExec("command a b c"); But of course that has cross platform
    problems.
    Good luck

  • Java Web Start and Java Preferences

    I am having trouble with Java Web Start and Java Preferences. I have tried reinstalling the update with the link http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105 update6.html but to no avail. What else can be done ? Moreover the file /System/Library/Frameworks/JavaVM.framework/Versions/A/ seems to be in place, but Java Web Start wont open and Java Preferences can't access cache files. Any ideas about how to resolve this? I have been having issues with Java for a long time and have already done a clean Leopard reinstall and all the Combo updates. Java Web Start and Java Preferences worked correctly for a while after that but seem to have gone haywire again.

    bump

  • Java Web Start and pack200

    Hi!
    What do I have to do to deploy my jar-archives that are packed with pack200? Do I have to change the jnlp files? Do I have to change any server settings?
    At the moment I successfully deploy our software using Java Web Start and simple jar files. If I pack with pack200 the archives shrink to 1/4 of the original size. That is nice, but when I put the xxx.jar.pack.gz files on our web server they are ignored by Java Web Start. Explicitly use the xxx.jar.pack.gz files in the jar arguments of the jnlp file doesn't work either (because JWS expects .jar archives there it tells me that the archives are corrupted).
    I figure that I have to change either the jnlp file, the server settings or the JWS clients settings.
    In another posting I have read that JWS in its normal configuration does not support pack200 at all. Is that correct? Or is there a straight-forward documentation how to use JWS with pack200?
    Thanks in advance,
    Chris,
    Hamburg

    Either the JWS plugin should try to request the "xxx.jar.pack.gz" file when it finds a "xxx.jar" reference in the jnlp file.No. You always request jar files, but the Accepted-Ecnoding can differ. If omitted or empty the server should send back the contents of the jar, if it's "gzip" than the stuff of the jar.gz (Content-Encoding: gzip) and if it "pack200-gzip" the stuff of the jar.pack.gz (Content-Encoding: pack200-gzip).
    The diagrams shown here make it pretty obvious:
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
    So... you need some server sided logic for handling that. If you can run servlets - great... just use Sun's example. If you can't, you'll need something else like apache's mod_rewrite and a php script.
    mod_rewrite is used for redirecting requests server sided. For example:
    http://onyx.bubblegumcrises.jp/jnlp/downloads/fake.jar [no real url]
    becomes:
    http://onyx.bubblegumcrises.jp/jnlp/jarbounce.php?file=fake.jar (internally) [no real url]
    by rewriting like this(jnlp/.htaccess):
    RewriteEngine On
    RewriteBase /jnlp
    RewriteRule downloads/(.*) jarbounce.php?file=$1 [NE]
    The php file then checks the filename (for security reasons) and the accepted encoding and sends the contents of a file (picked by AE and availability) back together with the correct headers (Content-Encoding reflecting the picked encoding and Content-Type set to "application/x-java-archive").
    I've written such a script yesterday and I'm going to make it public. However, I want to do some more checks before releasing it (I ended up here by googling around... I wanted to avoid reinventing the wheel again ;)).
    I'll post it over at JGO pretty soon now... in this thread:
    http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=OnLin;action=display;num=1097590751;start=0
    [I'm also planning to write an article about that, but that will take a bit longer]

  • Error while running Java Web Start in JDK 1.5

    I have been running an application using Jboss3.2 in JDK1.4.2_09. The Java Web Start application ran perfectly then.
    Now, I am running Jboss3.2 with JDK 1.5.0_11. While some applications (HTML client and some Java Web Start applications are working correctly) are working correctly, this particular Java Web Start application fails.
    General Tab:
    An error occurred while launching/running the application.
    Title: Server_Security
    Vendor: df
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http://localhost:8080/webapp/SampDB1/Server_Security/application/javassist.jar - null
    Exception Tab:
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:617)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(DownloadProtocol.java:884)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:698)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:662)
         at com.sun.javaws.Launcher.downloadResources(Launcher.java:1032)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:375)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
         at com.sun.javaws.Launcher.run(Launcher.java:165)
         at java.lang.Thread.run(Thread.java:595)

    You appear to be using a 1.4.x program on a file belonging to 1.5. Check your path variable, it's probably the cause.

  • Java Web Start and Firefox

    Hello!
    I want to use some java web start applications, which are started directly by clicking a link. My browser (firefox) doesn't know the java web start mime type (*.jnlp). Because of that I can only download the specific JNLP-File instead of executing this file to start the java app.
    There is no jnlp mime type in the firefox section Edit-->Preferences --> Application and I can't add a new mime type because there is no funkction to did that job.
    I have installed the jre and the jdk package. In firefox Tools --> Addons there is the plugin "Java Plug-in 1.6.0_19" listed.
    Has anybody an idea, who to add the jnlp mime type in firefox?
    Thanks for help!
    Best regards,
    Flasher

    Maybe this can help you.
    And related link in Ubuntu Forum.

  • Java Web Start and SplashScreen

    Hi,
    I have a jar which when run from the command line with:
    java -jar myApp.jar
    will run and display a SplashScreen as if I had used the command line
    java -Splash:SplashImage.png myApp.
    The problem I have is when this jar is run from Java Web Start, the splash screen is not displayed. I get the following error:
    Java Web Start 1.6.0_03
    Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM
    java.lang.Exception: Splash Screen not initialised at com.nunetic.myApp.client.view.Splash.<init>(Splash.java:41)
    Splash.java is quite simple.
    public class Splash
        private final SplashScreen splash = SplashScreen.getSplashScreen();
    public Splash() throws Exception
            if (splash == null)
                throw new Exception("Splash Screen not initialised");
            init();
    }

    It would appear that there is a bug in the JDK relating to this.
    Bug ID:      6510416
    Votes      13
    Synopsis      Need a support of native SplashScreen in Java WebStart
    Category      javawebstart:general
    Reported Against      
    Release Fixed      
    State      In progress, request for enhancement
    Related Bugs      6481004
    Submit Date      06-JAN-2007
    Description      
    In JDK 6.0 AWT team introduced a new SplashScreen API (see java.awt.SplashScreen class for details). User can specify a SplashScreen image for application either as a command line option or in a manifest file inside JAR archive. However, both ways don't work if the application is launched from Java WebStart.
    If this feature is important to anyone else out there, I suggest that you vote to have it fixed.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6510416
    Regards
    Chris

  • 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

  • Java Web Start and SSL

    I have an AP designed as a Java Web Start program,
    and I want it to connect to a web service via SSL.
    I know how to do that in a normal AP. Just add a property like :
    System.setProperty("javax.net.ssl.trustStore","my.keystore");
    But since a JAWS program is downloaded from server, and don't have a my.keystore on local file system. I can't set a property that way. Is anyone know how to deal with this?
    Can a signed jar file help?
    Thanx in advance.

    We had the same problem. There's basically two ways around this. One is extremely easy and the other is a pain.
    easy: Use a CA certificate on the web server (Verisign, thawte etc.). All java applications already have a keystore (cacerts) that recognizes
    these CAs. This keystore will be used when the cert on the server is a CA. Only drawback - $250 or so for the cert.
    painful: Programmatically extract your personal certificate keystore from the deployed client jar. Also programmatically apply it to your SSL handler. Basically - you have to code what's done in a regular App simply by "javax.net.truststore=keyfile". I didn't explore this option
    too much as the easy option was viable.

  • Java Web Start and Remote Scripting Incompatibility?

    I recently installed the Java Web Start plugin to Internet Explorer, in order to run Sun's version of the Java Virtual Machine.
    After the install, I am receiving errors when trying to run a web application that uses the Remote Scripting technology for client-server communication.
    I think this might be related to the Java 2 security model, which requires all Java applets to be signed. The Remote Scripting client-side component seems to be unsigned, so that may be causing my problem.
    Does anyone have a solution for this problem?
    Any help is greatly appreciated.
    Best Regards,
    Nicole Roberts

    Hi,
    I had the same problem on a unix server!
    The new build of IE on Windows 2003 from Microsoft that excludes the JVM (Java Virtual Machine), works fine with the JVM coming from Sun, except for the following.
    We are experiencing problems, that if we are not logged in as Domain administrator, we get an Apache security prompt to log on, as soon as the RSProxy class is used. It seems that the Class is not picking up the current session, but tried to create another session, without a userid, and then prompts you for your login details.
    We still cannot figure out, why it does not do it with the Domain Administrator account.
    Can someone please have a look into this.
    I think there is a simple configuration problem somewhere, that will allow seamless integration with Sun's JVM.
    I could resolve it so far by loading the Microsoft JVM back into Win2k3 theough the Visual Studion 6 Cd's, but I don't like the idea of that!

  • Java Web Start and Policy File

    Hi,
    I've a problem for Java Web Start (JWS) in working with Policy File.
    I like to apply a policy file for a JWS application to fine tune the secuirty setting instead of granting permission in JWS.
    For an applet environment, I can apply policy file like this:
    appletviewer -J"-Djava.security.policy=all.policy" writeFile.html
    However, in JWS environment, I try to apply in JNLP file as below but fail:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://130.18.52.226:8080/testing/"
    >
    <information>
    <title>JWS JFrame App</title>
    <vendor>Java Developer Connection</vendor>
    <homepage href="http://java.sun.com/jdc" />
    <description>Demonstration of JNLP</description>
    <icon href="hsbc.gif" width="32" height="32" />
    </information>
    <resources>
    <j2se version="1.3*" />
    <property name="java.security.manager" value="x" />
    <property name="java.security.policy" value="testing.policy"/>
    <jar href="testing.jar"/>
    </resources>
    <application-desc main-class="JWSJFrameApp" />
    </jnlp>
    The error message like this:
    Java Web Start Console, started Tue Sep 03 09:59:36 CST 2002
    Java 2 Runtime Environment: Version 1.3.0 by Sun Microsystems Inc.
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.manager write)
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.policy write)
    Could anyone please help on this!
    Many thanks!
    Regards,
    Simon Ho

    There are two problems with what you are trying to do.
    First, setting a property PROP=VALUE in the jnlp file does not mean that java will be launched -DPROP=VALUE, instead, javawebstart will call System.setProperty(PROP,VALUE) before your apps main() is called. The difference is, the property will not be set at the time the VM is initialized.
    Second, the javaws security policy will not allow you to set arbitrary properties in an unsigned application. Only properties begining with "jnlp." or "javaws." (and possibly a few other specific props known to the native javaws code) can be set in an application unless <all-permissions> is specified and the app is signed.

  • Java Web Start and J2EE

    Can I use Java Web Start to launch an Application Client that interacts (through JBoss and the Enterprise Java Beans) with an Oracle database located in a remote server? Or the application must be pure J2SE, without implementing remote Enterprise Java Beans interfaces?

    No, you can do exactly what you want to do, i've done exactly the same thing with a web start client, talking to EJB's running on the Oracle 9i AS server talking to an Oracle database. It's all good fun.

Maybe you are looking for

  • Rebates Payout as Free Goods

    Hi All, I have searched for this topic in the forum but i couldn't get any concrete answers. I have a scenario where we need to payout rebates to Customers in the form of free goods. So if customer purchases qty of 100 units in multiple orders in a g

  • How do I import a large iPhoto library into an existing iPhoto library?

    I have a Pictures folder on my desktop (recovered from another machine). The total size of the iPhoto library I am trying to import is 23.7 GB. It is from a graphics environment. When I select 'Import Library', and then select the iPhoto Library fold

  • Syncing issues on Sky drive

    Hi, I cannot be able to sync documents on skydrive to the shortcut on my PC.I am currently using sharepoint 2013.When i try to sync, i get the error "We can't sync this library because it's too large. For more information, please see SkyDrive Pro hel

  • Running win7/64, FF 3.6. Browser history in FF being deleted on closure as setup. I open up IE and FF browser history is there !

    Firefox is the default browser, it and IE are both setup to delete history on closure. I have to open IE and close it to delete the history. It looks like Firefox is sharing history with IE.

  • Make firefox use Java 5

    My computer uses windows 98se and the latest version of Java that will work on this machine is 5 22. I can not update to a higher Firefox or Java or OS. How can I make my fire fox 3 6 28 work with java 5. It always says that my plug in is blocked and