JNLP installer - cached vs. non-cached resources

Hello,
I am currently trying to provide an installation procedure for some application. The application is in java and made of multiple jars and plugins. One constrain is that the application can launch java commands on the plugins (requiring access to jar files). Hence, I prepared an installer/updater to work with jnlp so as to install the application on the user computer. Each time the application is launched, we need to check for plugin updates and download the updates to the adequate directory before actually launching the application (via a ProcessBuilder), meaning the installer needs to be called each time the app is launched.
I went as far as I could but get stuck on some (possibly core) concepts: I have 2 jnlp files, one being the installer, referencing the base jar resources and a jnlp plugin resource being a component.
Through jnlp api, the installer is able to get cached resources and copy them to a given directory for the app to be launched. The main issue concerns the resources to be upgraded. Whenever new resources are present, the app do not get to see them as jnlp download them an put them in the cached resources before my installer can be launched. I thought I could use a DownloadServiceListener to get a hold on new resources, adding it as a progress-class parameter, but the service is apparently never called.
If the resources are set to lazy, they never get to be available in either cached or available resources for upgrade...
Here are reduced versions of the resources :
installer :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+" codebase="%CODEBASE%/apps/" href="">
     <information>
          <offline-allowed />
          <shortcut online="true">
               <desktop />
               <menu submenu="Company">
                    <menu submenu="App" />
               </menu>
          </shortcut>
     </information>
     <security>
          <all-permissions />
     </security>
     <update check="always" policy="always" />
     <resources>
          <j2se version="1.6+" java-vm-args="" href="http://java.sun.com/products/autodl/j2se" />
          <jar href="jnlp-installer.jar" main="true" />
          <extension name="applicationResources" href="%CODEBASE%/JNLP?jnlp=resources" download="eager"/>
     </resources>
     <application-desc main-class="com.company.JnlpInstaller" name="App name" >
     </application-desc >
</jnlp>
plugins :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+" codebase="%CODEBASE%" href="">
     <information>
          <offline-allowed />
     </information>
     <security>
          <all-permissions />
     </security>
     <update check="always" policy="always" />
     <resources>
          <j2se version="1.6+" java-vm-args="-d32" href="http://java.sun.com/products/autodl/j2se" />
          <jar href="../jnlp-installer.jar" />
          %RESOURCES%
     </resources>
     <component-desc progress-class="com.company.CustomDownloadServiceListener"/>
</jnlp>
Thanks in advance for your returns

I am having the same jnlp cache problems and would appreciate if someone can post a solution to this.
I use jsp to generate a value for a variable and I pass this variable to the application via the "property name".
tag. Problem is, JavaWebStart will always use the cached jnlp even when the variable's value changes.
Thanks for any help you can provide.
[email protected]

Similar Messages

  • Deleting "Installer Cache" Software for iTunes, Quicktime & Safari

    Can Old "Installer Cache" Software for iTunes, Quicktime & Safari be deleted?

    I know the university has updated its DNS server addresses this month, but since I am using DHCP nothing is supposed to change and a test indicated that I am connected to the new servers.
    It sounds like a DNS problem, all right. It can't hurt to put these servers at the top of your list:
    208.67.222.222
    208.67.220.220
    See it that makes a difference, it'll only take a minute.

  • Cannot update, repair, uninstall itunes in Windows7-64bit. Have itunes v10.5.0.142 installed but is missing "itunes64.msi" file .  Need copy of itunes64.msi file which is located in the file folder ProgramData\Apple Computer\Installer Cache. Thanks.

    Cannot update, repair, uninstall itunes in Windows 7-64bit.  I have itunes version 10.5.0.142 installed but is missing the "itunes64.msi" file.  Would like to obtain a copy of this file which is located in the file folder ProgramData\Apple Computer\Installer Cache.  If someone could supply a copy of this file on this site, it would really be appreciated.  Thanks in advance. 

    See Troubleshooting issues with iTunes for Windows updates for general advice.
    If you want to install an older version of iTunes see http://support.apple.com/downloads/#itunes or OldApps.com.
    tt2

  • Installer Cache error occurred.

    I want to update to the newest itunes,while i am installing , there is the message said (An error occurred while attempting to create the directory:C:\ProgramData\apple\installer cache ,and i cant do anything.

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Instller cant make "C:\ProgramData\Apple Computer\Installer Cache\Quicktime

    My girlfriends computer (Inspiron 1440; Windows 7) was running iTunes fine for awhile. the upon an update it started to get the 2330 error. a disk check worked once, but it soon reverted back to the 2330 error. so here we were unable to install or uninstall iTunes + QT. upon the advice of another post we got a 3rd party uninstaller (Revo Uninstall Pro) and successfully (it seems) uninstalled iTunes + QT. then when we tried to run the installer again we received this error: "an error occurred while attemping to create the directory: "C:\ProgramData\Apple Computer\Installer Cache\Quicktime"<version#>. I'm no noob when it comes to trouble shooting computers and using the internet and forums for problem solving (however i haven't been in the windows world since XP), but i'm finding little to no info on this issue. Some of the only things i have found suggest permission issue, but it's running under the Admin with the UAC off.
    Any help would be GREATLY appreciated on this seemingly obscure issue.
    thanks in advance

    "an error occurred while attemping to create the directory: "C:\ProgramData\Apple Computer\Installer Cache\Quicktime"<version#>.
    I'm suspecting disk/file damage again, as per the the 2330, rocklebee.
    If a disk check isn't cleaning that up, the following workaround might help.
    First we'll need to adjust some view settings. (I think ProgramData might be hidden by default on Windows 7.)
    1. From the Start menu, click Open.
    2. In the Organize menu, click Folder and Search Options.
    3. Click the View tab.
    4. In the "Advanced settings" pane under "Hidden files and folders" make sure that the "Show hidden files and folders" option is selected.
    5. Click OK.
    Now, in Computer open your C drive.
    Open the ProgramData folder.
    Open the AppleComputer folder.
    Attempt to rename the Installer cache folder *Installer CacheOLD.*
    If you can rename her, reboot the PC and try another install. Does it go through properly again?

  • Old versions in Installer Cache

    While cleaning up my Dell Laptop, I noticed in Documents and Settings/All Users/Application Data .... an Apple Computer/Installer Cache directory. It is > 500 Mb of old iTunes/QuickTime/Safari information. Can I safely clean this out? Do I need to just keep the current version of each of these programs? It's an old laptop with a small disc and I could really use space.
    Thanks.

    I've deleted them from my PC.

  • Downloading non-jar resources

    Hi,
    I would like to download a configuration file for the downloaded application. For example a config file named LookAndFeel.cfg which is not packaged into the jar file. This could enable changing the LookAndFeel of the app through changing only the configuration file on the server. But in the resources tag of the jnlp file I only can specify jar files and images. How do I specify downoading any non-jar and non-image resources before starting the app?

    Why not create 2 or 3 jar files.
    1 = all the code
    2 = various .cfg files.
    then when you want to change .cfg, just update the short jar with the .cfg files.
    Don't forget the whole advantage of web start is the automatic download of changed .jar files
    and the persistence of old files.

  • J2se 1.5 jnlp installer extension

    Has any one being successful in getting an installer extesion (using installer-desc) to run under j2se 1.5 webstart. It constantly fails with following error for me.
    JNLPException[category: Launch File Error : Exception: null : LaunchDesc:[/b]
    However this Runs well under j2se 1.4+
    I am not sure this is a java bug or I am doing something wrong.
    Any reply would be greatly appreciated.
    Vajira

    main jnlp file
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.5+" codebase="http://eslserver:9085/installer_web/launch/" href="$$name">
         <information>
         <title>FSOnline Desktop Client</title>
         <vendor>Future School</vendor>
         <homepage href="http://www.future.com.au"/>
         <description>Version 1.0</description>
         <description kind="short">FSOnline Desktop Client</description>
         <icon href="images/icon.gif"/>
                   <icon kind="splash" href="images/splash.jpg"/>
         <offline-allowed/>
         </information>
         <security>
         <all-permissions/>
         </security>
         <resources os="Windows" arch="x86">
         <j2se version="1.3+" maximum-heap-size="250m"/>     
         <jar href="resources/app/rmiserver.jar"/>
         <jar href="resources/app/common.jar"/>     
         <jar href="resources/app/bsf.jar"/>     
         <jar href="resources/app/jaxp-api.jar"/>
         <jar href="resources/app/js.jar"/>
         <extension name="FSOnline Desktop Client Installer" href="installer-ext.jnlp"/>
         </resources>
         <application-desc main-class="com.fs.learner.core.rmi.FsdsRmiImpl">
              <argument>Main.htm</argument>          
              </application-desc>
         </jnlp>
    installer extension is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.5+" codebase="http://eslserver:9085/installer_web/launch/" href="$$name">
         <information>
         <title>FSOnline Desktop Client Installer</title>
         <vendor>Future School</vendor>
    <homepage href="http://www.future.com.au"/>
         <icon href="images/icon.gif"/>
         <offline-allowed/>
         </information>
         <security>
         <all-permissions/>
         </security>
         <resources os="Windows" arch="x86">
              <j2se version="1.3+" maximum-heap-size="250m"/>
              <jar href="resources/app/installer.jar"/>          
         </resources>
         <installer-desc main-class="com.fs.launch.core.Welcome"/>          
    </jnlp>

  • How 2 avoid a Non-XA resource from listing in Global Transaction?

    <pre>
    Hey,
    I am using container managed transaction in a stateless session bean. We are using two datasources, one xa and non-xa. I am using these two datasources in a single transaction and i am getting an exception that both can't participate in the same transaction.
    Is there a way that I don't want to enlist my non-xa resource with transaction manager?
    I have come across the following approach.
    I have seen Simulate Two Phase for Non XA, but you are saying to be careful with this option as for Example, Non-XA and XA says OK during prepare phase(phase I) and then XA resources decides to roll back in phase II, Non-XA can't revert as it is already commited,
    But I have also come across LAST PARTICIPANT NON-XA along with mutliple XAs option in websphere, like this if I update my Non-XAs in the end, will WEBLOGIC takes care of all XAs and Non-XAs as single atomic operation or it does partially ???
    Appreciate your help.
    Thanks,
    Rao Kotha.
    </pre>

    You can make the non-XA driver based data-source 'not to honor the global
    transaction'. Which version of weblogic are you using?
    By default, when you create a data source, it is a TxDataSource (it honors
    global tx). In the console, there is a check box to disable the default
    behavior which will make the data source not to participate in transactions.
    --Sathish
    <Janardhana Rao Kotha> wrote in message news:[email protected]..
    <pre>
    Hey,
    I am using container managed transaction in a stateless session bean. We
    are using two datasources, one xa and non-xa. I am using these two
    datasources in a single transaction and i am getting an exception that
    both can't participate in the same transaction.
    Is there a way that I don't want to enlist my non-xa resource with
    transaction manager?
    I have come across the following approach.
    I have seen Simulate Two Phase for Non XA, but you are saying to be
    careful with this option as for Example, Non-XA and XA says OK during
    prepare phase(phase I) and then XA resources decides to roll back in phase
    II, Non-XA can't revert as it is already commited,
    But I have also come across LAST PARTICIPANT NON-XA along with mutliple
    XAs option in websphere, like this if I update my Non-XAs in the end, will
    WEBLOGIC takes care of all XAs and Non-XAs as single atomic operation or
    it does partially ???
    Appreciate your help.
    Thanks,
    Rao Kotha.
    </pre>

  • Java.lang.IllegalStateException: cannot add non-XA Resource to global JTS t

    Hi,
    I am using JCAPS 5.1.2.
    As one of my project requirement I am invoking a jcd from page flow and that jcd uses 2 oracle otd, each oracle otd corresponds to database which resides in two different machines/hosts.
    When jcd is invoked from page flow, i got following error,
    "java.lang.IllegalStateException: cannot add non-XA Resource to global
    JTS transaction."
    [#|2007-07-17T19:13:06.209+0530|SEVERE|IS5.1.2|javax.enterprise.resource.resourceadapter|_ThreadID=17; ThreadName=Worker: 3;stacktrace-id=0;|RAR5029:Unexpected exception while registering component
    java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.
         at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:171)
         at com.sun.enterprise.resource.ResourceManagerImpl.registerResource(ResourceManagerImpl.java:97)
         at com.sun.enterprise.resource.ResourceManagerImpl.enlistResource(ResourceManagerImpl.java:71)
         at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:142)
         at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:202)
         at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:148)
         at com.stc.gjc.spi.DataSource.getConnection(DataSource.java:67)
         at com.stc.connector.oracleadapter.base.SessionImpl.connect(SessionImpl.java:130)
         at com.stc.connector.oracleadapter.OracleSession.open(OracleSession.java:98)
         at com.stc.connector.oracleadapter.OracleConnector.open(OracleConnector.java:90)
         at com.stc.connector.oracleadapter.appconn.OracleApplicationConnection.<init>(OracleApplicationConnection.java:63)
         at com.stc.connector.oracleadapter.appconn.OracleApplicationConnection.<init>(OracleApplicationConnection.java:50)
         at com.stc.connector.oracleadapter.appconn.OracleApplicationConnectionFactory.getConnection(OracleApplicationConnectionFactory.java:133)
         at com.stc.oracle.runtime.ejb.OracleEWayRuntimeHandler.initializeService(OracleEWayRuntimeHandler.java:256)
    Please let me know is there any work around for above problem
    Message was edited by:
    VenkateshSampoornam

    Hi Paul,
    Thanks for your reply. I ddidn't specify XA at page
    flow level.
    But the problem is rectified for me.
    I have two jcds in which one of them connects to two different oracle databases for e.g host A and host B.
    JCD1 connects to host A and host B[ 2 oracle otds]
    JCD2 connects to host B. [single oracle otd]
    I had three external applications for each otd
    In deployment profile, i connected two external applications to single external system for HOST B.
    When i created one more new external system for host b and moved one external application to that.
    After then the problem didn't occur again.
    null

  • How to check whether NW2004s-Installation is unicode/non-unicode

    Hi,
    I have to check, whether our NW2004s-Installation (ERP 2005) is a unicode-installation or a non-unicode.
    How can I check it? - the sap-admin I can ask is on holiday.
    Thanks
    Wolfgang

    You can go to the Backend and click on System -> Status, and under SAP System Data you should be able to see Unicode System (Yes or No)...
    Hope this help!
    Regards
    Juan Reyes

  • Local transaction already has 1 non-XA Resource: cannot add more resources

    hi
    i am getting the following error :-
    java.lang.IllegalStateException: Local transaction already has 1 non-XA Resource: cannot add more resources
    java.lang.IllegalStateException: Local transaction already has 1 non-XA Resource: cannot add more resources
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:101)
    at com.sun.enterprise.resource.PoolManagerImpl.registerResource(PoolManagerImpl.java:196)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:172)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:241)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
    at ilog.rules.bres.persistence.jdbc.IlrDbDataSourceFactory.getInstance(Unknown Source)
    at ilog.rules.bres.persistence.jdbc.IlrDbDataGetter.<init>(Unknown Source)
    at ilog.rules.bres.xu.ruleset.jdbc.IlrJdbcRulesetInformationProvider.getDataProvider(Unknown Source)
    at ilog.rules.bres.xu.ruleset.IlrDefaultRulesetInformationProvider.initializeDataProvider(Unknown Source)
    at ilog.rules.bres.xu.ruleset.IlrDefaultRulesetInformationProvider.getCanonicalRulesetPath(Unknown Source)
    at ilog.rules.bres.xu.ruleset.IlrAbstractRulesetInformationProvider.getRulesetInformation(Unknown Source)
    at ilog.rules.bres.xu.spi.IlrManagedXUConnection.getRulesetInformation(Unknown Source)
    at ilog.rules.bres.xu.spi.IlrManagedXUConnection.createContextManager(Unknown Source)
    at ilog.rules.bres.xu.spi.IlrManagedXUConnection.getContextManager(Unknown Source)
    at ilog.rules.bre
    [16/Jun/2005:18:11:32] SEVERE ( 824): s.xu.spi.IlrManagedXUConnection.contextGetReflect(Unknown Source)
    at ilog.rules.bres.xu.cci.IlrXUConnection.contextGetReflect(Unknown Source)
    at ilog.rules.bres.xu.cci.IlrXUInteraction.contextGetReflect(Unknown Source)
    at ilog.rules.bres.xu.cci.IlrXUInteraction.dispatchExecution(Unknown Source)

    Any luck on this. We are also facing the same problme. When we use the typ4 driver it works fine but if we use type2 we are getting this error
    Unexpected exception while registering component
    javax.transaction.RollbackException

  • Non labor Resource - Expenditure Types

    Hi,
    when i was doing the Project Types setup > Billing Information > Non Labor Section. I don't want to track the Expenditure type - Non labor resources usage cost and so I haven't attached the Expenditure type classes of usages to the the Expenditure Types. As i don't want to track those usage expenditure type, i have not created any rate schedule for Non labor.but, It is mandatory to enter the Non labor Bill Rate Schedule in that window.
    What shall i do, i need to create a dummy rate schedule and close it or any other way for this?
    Thanks,
    Lavanya

    Hi Lavanya,
    By default, its a mandatory for the contract project types to have the labor and non-labor billing information filled in while creating the Project Types.
    But if you have not associated the usage class , then it is fine that it will not use the non-labor bill rate schedule you are attaching to the project type. But if you have the expenditure type class of 'Miscellaneous Transaction' for any expenditure type it will use that Non labor schedule information attached to the project type.
    But you can always override these values at the template level/project level.
    Thanks,
    Sathish Raju

  • Provision non root resource object

    Hi all!
    I have sucessfully made configuration with OIM and ESSO-PG with MS ADAM based repository. Now I'd like to provision some non root resource objects to my repository for user, but I wonder how to do it. I have one process - AD USER, and most of my users reside in AD. Do I need to create dummy process definition to attach Passlogic task for it? Or there is another solution to acomplish this?
    Best
    Mariusz

    I mean provision non root resource object such as new credentials set for application in esso repository (in esso repository it is vGOSecret class). For example I have root resource object for esso (one for esso repository and it is related to AD_USER process) and I can have many non root resources objects (for example DB, iPlanet and these are related to iPlanet_User, DB_User process). In my configuration I'd like to provision new non resources objects for users, but my users are in AD mainly. Thanks for Your reply!
    Best
    Mariusz

  • Can't access non-VPN resources when connected to VPN

    I need to access web based resources over a VPN for work. My admin gave me the connection parameters, and I can connect to the VPN and access what I need, no problem. But when connected to VPN, I can't access websites, Subversion repositories, Skype, etc. that are not on the VPN.
    On Windows, there's a connection property on VPN connections called "Use default gateway". With that option cleared on my Windows machine, I can access both VPN and non-VPN resources simultaneously. I can't spot anything equivalent in the VPN connection in Network Preferences.
    So I guess the question is: what network settings on Mac (Snow Leopard) will enable me to access both VPN and normal resources simultaneously?

    I have found a workaround. It isn't optimal, and it's disappointing that VPN is so poorly supported on Mac. Though the specific IPs are probably applicable only to the particular VPN I connect to, maybe the general idea can be of help to others and your network admins can supply the particular IPs you need.
    1. My Admin had me open Network Preferences, select the VPN connection, click the Tools icon at the bottom, and select Set Service Order. In that dialog, move the VPN connection to the bottom of the list (my EVDO modem that gets me my internet connection is fist in the list). Apply this change.
    2. Next, my admin asked me to run the following in Terminal, once when VPN was not connected (but internet was connected), and again with VPN connected, and send him the output:
    *netstat -nr*
    3. After looking at the terminal output, admin told me to run the following in Terminal with the VPN connected:
    *sudo route add -net 10.123 -netmask 255.255.0.0 10.123.50.1*
    After disconnecting both VPN and Internet connection and reactivating each in turn (internet, then VPN), I was able to access both VPN and non-VPN resources simultaneously.
    The bad news is that every time I need to connect I have to run route add in Terminal and enter my password. I will probably make a shell script to at least run the command so I don't have to remember it.
    Here's hoping this helps if others bump into this pernicious little problem.

Maybe you are looking for

  • Problem with Audio card in windows 7 in parallel desktop

    Hi my friends I was wondering if you help me I have a macbook pro ( mid 2010 ) MC374 I installed windows 7 with Parallels Desktop but I haven't audio in windows 7 What do I do to repair that ? thanks a lot

  • Need help on monitoring poor performance in BIWS

    Hello All,    We have a strange behavior with all our Dashboard on SAP 4.0 SP5 FP3 with BIWS connexions.  1 time on 10 (approx.) the BI Web Service connexion take so long.  I mean in normal circonstance, it take 2 seconds, then it take 30 seconds, 1

  • Secondary cost element report to show the balance of cost elemnets in OKG4

    Hi I have assinged two CE ex: 934 and 935 in OKG4 and included in Cost component structruee (is it required or not?) created Production order and did GI and GR andf WIP. WIP posted against 934 and 935 that i can see from cost analysis. when i try to

  • Please explain the error message

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.awt.windows.Win32SurfaceData.initOps(Native Method) at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:448) at sun.awt.windows.Win32S

  • 3rd Party Adapters in Soa 11g

    Hi All, Can anybody tell me from where i can download the external (third party) adapters like SAP, Siebel.... for SOA 11g? from previous posts it was said that there are no 3rd party adapters included in Soa 11g.. But if there are available for soa