JAVA WEB START AND JSP / CLASS FILES

hi
We have 3 different servers at client located on the word wide web in
differne t locations .,
In case of updation of new jsp / class / .... files can java web start help
me in such a senirio to sucessfully dwnload the new set of files from
the main server in our office on to respective web containers servers on
weekly
with regards
karthik
the servers

hi
We have 3 different servers at client located on the word wide web in
differne t locations .,
In case of updation of new jsp / class / .... files can java web start help
me in such a senirio to sucessfully dwnload the new set of files from
the main server in our office on to respective web containers servers on
weekly
with regards
karthik
the servers

Similar Messages

  • 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]

  • 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

  • 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 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 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.

  • 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 MySQL driver

    I am trying to do a simple query on a MySQL database using the JDBC driver from http://www.mysql.com/downloads/api-jdbc-stable.html When I run my app, it works exactly as it should (connects to db, queries, displays in text boxes). When I package it and run it with Java Web Start, it gives the output below on the console. I have set security to all permissions in the jnlp file.
    Thanks,
    Andy
    Java Web Start Console, started Tue Sep 03 14:10:00 CDT 2002
    Java 2 Runtime Environment: Version 1.4.0_01 by Sun Microsystems Inc.
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         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:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:130)
         at SQL.<init>(SQL.java:102)
         at SQL.main(SQL.java:139)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         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(Thread.java:536)

    Answered my own question....
    Before: Class.forName("com.mysql.jdbc.Driver").newInstance();
    After: this.getClass().forName("com.mysql.jdbc.Driver").newInstance();
    Strange the first worked fine but not for JAWS...

  • 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 JasperReports

    Hi all,
    I am trying to get jasper reports (search www.sourceforge.net for jasperreports) to work with Java web Start. I have a problem in that jasper reports cannot find the SAX2 parser in the jar file even though its there.
    Jasper requires one to set the system property for the SAX.Parser for it to work. This is usually Xerces which I include in the jar. This will just not work in java web start!
    Anyone manage to get this combination to work?

    Hi mxc4,
    you need two important techniques:
    - you need tools.jar in your app... sigh. That's a real bummer (4.5m!)
    - insert a .root file into the root of all your jars. Then, in the startup of your app just call Class.getResources(".root"), remove the leading jar: and the trailing !/.root, canonify it and construct an artificial classpath. Set the property java.class.path to the result by concatenating the pieces together with some path.separator-property glue.
    That's it. Reads simple, works for me. :-)
    Patric

  • Java Web start and CR

    <p>Has anyone been able to use CR with Java Web Start? If so, please share your experiences. I have not been able to find any info on this. I guess the most fundemental question is if CR supports the web start model.</p><p> Thanks,</p><p> FR <br /></p>

    <p>CR doesn&#39;t officially support Java Web Start.</p><p>I&#39;ve heard of a few people doing it in the past.  I haven&#39;t actually done it myself yet.</p><p>From the feed back I have recieved the trickiest thing is making sure that the supporting properties and XML files get placed in the proper class path.</p><p>CRConfig.xml needs to be in the root of the classpath.</p><p>If you can get that working I believe everything else is fairly easy.</p><p>If you have trouble with that.  You might try putting it in a JAR file and including it with the other libraries. <br /></p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • 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

  • About java web start and *.jnlp

    very strange. I can start it if I replace http://127.0.0.1/ with
    file:///d:/ I copy the same .jar, .html, .jnlp to the www root, then my
    browser can't start it, just display it as a text file. like the
    following. Who knows what's happening here. Thanks!
    <?xml version="1.0" encoding="UTF-8" ?>
    - <jnlp spec="1.0+" codebase="http://127.0.0.1/test"
    href="Geostatistics.jnlp">
    - <information>
    <title>Geostatistics Demo App</title>
    <vendor>NCGIA UCSB</vendor>
    <homepage href="http://127.0.0.1/test/Geostatistics.html" />
    <description>This is an active learning demo for
    geostatistics</description>
    <icon href="../image/duke.jpg" />
    <offline-allowed />
    </information>
    - <security>
    <all-permissions />
    </security>
    - <resources>
    <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se" />
    <jar href="classes.jar" />
    </resources>
    <application-desc main-class="sampling.SampleApp" />
    </jnlp>

    Hi,
    -To make IE associate with .jnlp is the same way you set in the explorer.
    -but i'm using Netscape which is my prefer.. I just set it in....
    EDIT -> Preferences -> Navigator -> Helper Application -> [New Types]
    then Set MIME : "application/x-java-jnlp-file" and Application to Use : javaws.exe (Java Web Start)...
    ummm this should make Netscape See JNLP file and launch it with JWS...
    PS. Ummm... I have to say that i'm newbie.. sometime i know how to make it works but i don't know how to make it work properly. So if somethings wrong, DON'T hesitate to give an advice. I really want to know how to make those work properly.
    Hope it works.
    Jeng

Maybe you are looking for

  • Is it possible to customize the halftone screen/angle used by the HP Laserjet 5000/5100

    Hi When sending an image to print on our 5000s and 5100s I'd like for the printer to apply a halftone screen of 85 (frequency) and 45 (angle). However, the driver properties only has two settings - Standard and Enhanced. I took a look at the PPD and

  • Word 2008 - "read only" after ML install

    I installed Mountain Lion today and now when I try to creat a new folder in Word 2008 it will only allow a "read only" folder (which helps me none) and then won't even let me insert a folder name!  I searched the communities and haven't seen this iss

  • Can i create photo album directly in my ipad 2?

    As you know we have to create photo albums form computer,but is there any way to create photo albums directly in th ipad??

  • EMCA config dbconsole creates DB Console configuration using localhost.

    Configured a repository and dbcontrol using emca (emca -config dbcontrol db -repos create). However, it uses the Local hostname as localhost, instead of using the actual hostname of the server. Server box OS: Linux. Portion of /etc/hosts (topmost por

  • Attribute properties don't stick

    I have a Date column that I want a time value from, so per earlier discussions I've created a custom formatter (etcc.oracle.jbo.format.DefaultDateTimeFormatter) to handle the task. I go into the view definition, attribute StatusDate, Attribute proper