Passing arguments in JNLP not working

I am trying to send arguments to my web start application in the JNLP file attached below.
But my application claims that there are no arguments passed to its main program.
This is under JDK 1.4.2 and Windoze XP.
Has anyone seen this problem or seen it work? I must be doing something simple wrong, but no apparent error messages.
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for THREDDS Data Viewer -->
<jnlp spec="1.0" codebase="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/" href="Viewer.jnlp">
<information>
<title>Start THREDDS Data Viewer with selected dataset</title>
<vendor>Unidata</vendor>
<homepage href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/index.html"/>
<description>THREDDS Data Viewer</description>
<description kind="short">Prototype client for THREDDS Data servers. </description>
<icon href="Viewer.gif"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4" max-heap-size="512m"/>
<jar href="threddsViewer.jar"/>
<jar href="threddsViewerResources.jar"/>
<jar href="threddsViewerResourcesOptional.jar" download="lazy"/>
<extension name="THREDDS common" href="../common/common.jnlp"/>
<extension name="SunExtensions" href="../SunExtensions/SunExtensions.jnlp"/>
<extension name="xml" href="../xml/xml.jnlp"/>
<property name="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<property name="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
</resources>
<application-desc>
<argument>-dataset</argument>
<argument>catalog=http://localhost:8080/thredds/catalog.xml&dataset=IDVtest</argument>
</application-desc>
</jnlp>
THANKS!

I tried running this with 1.5.0-beta1
webstart reports that the signature is bad on one of the signed extensions, and will not run
(http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/Viewer.jnlp)
However the jnlp cache viewer can show the interpretation of the jnlp file. It shows:
<jnlp spec="1.0" codebase="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/" href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/Viewer.jnlp">
<information>
<title>THREDDS Data Viewer </title>
<vendor>Unidata</vendor>
<homepage href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/index.html"/>
<description>THREDDS Data Viewer</description>
<description kind="short">Prototype client for THREDDS Data servers. </description>
<icon href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/Viewer.gif" kind="default"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se max-heap-size="536870912" version="1.4"/>
<jar href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/threddsViewer.jar" download="eager" main="false"/>
<jar href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/threddsViewerResources.jar" download="eager" main="false"/>
<jar href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/threddsViewerResourcesOptional.jar" download="lazy" main="false"/>
<extension href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/common/common.jnlp" name="THREDDS common"/>
<extension href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/SunExtensions/SunExtensions.jnlp" name="SunExtensions"/>
<extension href="http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/xml/xml.jnlp" name="xml"/>
<property name="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<property name="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
</resources>
<application-desc main-class="thredds.viewer.Main"/>
</jnlp>
ie: no arguments.
looking at the file in the cache, I see the same thing.
it has no <argument>-dataset</argument> in the application-desc
/Dietz

Similar Messages

  • Can we pass arguments to JNLP?

    I am new to JNLP and want to know can we pass arguments to JNLP?
    If yes where I can find the info abt it?

    Dolda2000 wrote:
    Will that really work well, though? As far as I can tell, the JNLP client will try to refetch the JNLP file when launching the Java program (reasonable enough). If I were to include
    information from that is only available via the user's web brower's session, I would not be able to recreate that data when the JNLP client tried to refetch the JNLP file.If you're worried about that why not use a user specific cookie?
    Your CGI script can check for/generate/pass one along with the XML stub.
    As far as I know the JNLP is stateless. It loads once,
    the information is cached, your application gets run....
    I already do this with <applet> tags (not currently JNLP) to identify returning users
    and pass dynamic parameters to applets. I will be updating to JNLP after a rewrite
    of some code.
    P

  • Passing arguments from jnlp file to application

    Hi,
    I am using a jnlp file to launch an application. This is working perfectly. Now I want my application to get some custom properties for making an rmi connection . The only place where I must specify this is in the jnlp file which is dynamically generated. The dynamically generated JNLP file contains:
    <property name="abc.rmi.adapter.host" value="localhost"/>
    <property name="abc.rmi.adapter.port" value="5050"/>
    <property name="abc.rmi.adapter.servicename" value="abc/RMIClientAdapter/"/>
    This does not work.
    However, according to sun only certain types of properties are supported by jnlp for security reason. Is there any way to get over this and have my custom properties. Any help will be appreciated.
    Thanks,
    dasappan

    If you are trying to use RMI, you probably need all-permissions allready.
    for applications requesting all-permissions, all of the properties set in the jnlp file will be set as system properties before the applications "main" is called.
    If you are not using <security><all-permissions/></security>, then only specific trusted properties, plus any begining with "javaws." or "jnlp." will be allowed.
    For properties you just need to pass to yourself, just append "jnlp." to the front of them.
    /Andy

  • REPLACE command using passed variable values does not work

    Hi SDN Community
    Are you aware of the replace command not working when passing strings as opposed to a variable containing the string.
    For example:
    This works:
         replace '>JUL 2008</a>' with I_TEXT_VALUE into
                    I_TEXT_VALUE_REPLACE.
    This dosen't work:
         replace I_TEXT_VALUE_MATCH with I_TEXT_VALUE into
                     I_TEXT_VALUE_REPLACE.
    where I_TEXT_VALUE_MATCH = '>JUL 2008</a>'
    where I_TEXT_VALUE =  '>JUL 2008<BR>Actual</a>'
    Thank you.
    Simon

    Hi SDN Community,
    The following method was used to derive the same outcome required as per the REPLACE command.
          LEN_REPLACE = STRLEN( C_CELL_CONTENT ) - 12.
          I_TEXT_VALUE_REPLACE = C_CELL_CONTENT.
        replace I_TEXT_VALUE_MATCH with I_TEXT_VALUE into
                    I_TEXT_VALUE_REPLACE.
          I_TEXT_VALUE_REPLACE = I_TEXT_VALUE_REPLACE+0(LEN_REPLACE).
          CONCATENATE I_TEXT_VALUE_REPLACE I_TEXT_VALUE INTO
                        I_TEXT_VALUE_REPLACE.
          C_CELL_CONTENT = I_TEXT_VALUE_REPLACE.
    Thank you.
    Simon

  • Why my hp simple pass website login does not work with firefox latest version ?

    I have the latest version of firefox version 16.0.1 and my hp simple pass website login does not show up like it worked in IE9.

    I updated all the add ons already and I already reinstalled the HP simple pass after I installed firefox. I think that the new firefox is not yet compatible with the software (HP simple pass)

  • Keychain pass seems to randomly not work

    A week ago i could not access my MAcBook Pro (OSx 10.6.7) Went in through the admin account with the help of our IS and changed my pass and was able to get in.   renamed the old login.keychain login_old.  
    Am using 1Password to save passwords .. set not to store its master pass in the login key chain .. and Knox, an encryption package by the same company (Agile ) ...  There is a long story here related to these products .. I have been going around with their tech support ... but i think my keychain probllems are related to these products.  ... will not relate this now ..
    Now i have a login keychain with my current working pass,  and the old renamed login keychain  login_old  with the old pass that stopped working.  login_old actaully has several keychains ... including the login for encryption  program.  i cannot open this keychain, because the mast pass doesnt work ..
    When i try to access the encrypted file vault created by Knox,  i can get into vault2  but not vault1 .... the pass is the same, and the same as my old master pass.   the OS prompts me to enter the pass for Login_OLD ... which doesnt work .. when that fails, it prompts me to enter the vault pass directly ... this works for vault2 but not for vault1 ..... so i appear to be permanelty locked out of vault1.
    Yesterday, after a week of being resolved to not being able to ever recover vault1,  I tried it again,  and amazingly, the old password worked and was able to get into the vaults apparently because i logged successfully into login_old .... as soon as this happened, i moved files out of the vault ... i also looked at the passwords in the login_old .. and they were all there and exactly as i remembered them ... (Agile keeps telling me i have just forgotten the passwords).  everything seemed to be working fine .... rebooted teh machine ... and now i can no longer get into teh vaults, nor into login_old ....
    I had a similar thing happen with 1Password ... was locked out ... randomly, three times out of 50 tries, i was able to get back in ...remember, this program is not storing its password in the login keychain ... i was able to download the data during one of these episodes ..and rebuild teh 1Passowrd database ...
    So i am up and running file .... but really dont understand what is going on with these keychains ... it is like an incorrect pass is being cached somewhere, or there are two kecychains and most of the imte a PATH statment takes me to one that doesnt work but occassionaly, i get to one that works ...I want to get to the bottom of this .. as i really cant afford to have this happen again ...
    I would appreciate any help you may have .... i do have all this backed to TimeMachine ... and thought about just restoring the login keychain to prior when all the problmes stated ... but fear i could really get into trouble restoring the login keychain ....
    thanks

    A week ago i could not access my MAcBook Pro (OSx 10.6.7) Went in through the admin account with the help of our IS and changed my pass and was able to get in.   renamed the old login.keychain login_old.  
    Am using 1Password to save passwords .. set not to store its master pass in the login key chain .. and Knox, an encryption package by the same company (Agile ) ...  There is a long story here related to these products .. I have been going around with their tech support ... but i think my keychain probllems are related to these products.  ... will not relate this now ..
    Now i have a login keychain with my current working pass,  and the old renamed login keychain  login_old  with the old pass that stopped working.  login_old actaully has several keychains ... including the login for encryption  program.  i cannot open this keychain, because the mast pass doesnt work ..
    When i try to access the encrypted file vault created by Knox,  i can get into vault2  but not vault1 .... the pass is the same, and the same as my old master pass.   the OS prompts me to enter the pass for Login_OLD ... which doesnt work .. when that fails, it prompts me to enter the vault pass directly ... this works for vault2 but not for vault1 ..... so i appear to be permanelty locked out of vault1.
    Yesterday, after a week of being resolved to not being able to ever recover vault1,  I tried it again,  and amazingly, the old password worked and was able to get into the vaults apparently because i logged successfully into login_old .... as soon as this happened, i moved files out of the vault ... i also looked at the passwords in the login_old .. and they were all there and exactly as i remembered them ... (Agile keeps telling me i have just forgotten the passwords).  everything seemed to be working fine .... rebooted teh machine ... and now i can no longer get into teh vaults, nor into login_old ....
    I had a similar thing happen with 1Password ... was locked out ... randomly, three times out of 50 tries, i was able to get back in ...remember, this program is not storing its password in the login keychain ... i was able to download the data during one of these episodes ..and rebuild teh 1Passowrd database ...
    So i am up and running file .... but really dont understand what is going on with these keychains ... it is like an incorrect pass is being cached somewhere, or there are two kecychains and most of the imte a PATH statment takes me to one that doesnt work but occassionaly, i get to one that works ...I want to get to the bottom of this .. as i really cant afford to have this happen again ...
    I would appreciate any help you may have .... i do have all this backed to TimeMachine ... and thought about just restoring the login keychain to prior when all the problmes stated ... but fear i could really get into trouble restoring the login keychain ....
    thanks

  • HT5569 im trying to connect my ipad to my bt home hub put in wireless key pass code but still not working

    im trying to connect my ipad to my bt home hub put in password still not working please help

    Reboot your router by unplugging it for a couple of minutes, then try it again.

  • J2se version="1.6+" in JNLP not working on a client with Java 1.5

    Hi all,
    In my deployment scenario I have two jnlp files, one for the app and one for its installer extension. The deployment process works fine on a client with J2SE 1.6 but there are some problems when the client has an older Java installed.
    I am trying to enforce a J2SE 1.6 version for my app deployed with WebStart and I have found that
    <j2se version="1.6+" ...> has no effect.
    The solution that I have found was to change "1.6+" into "1.6.***" and thus the JWS will download and install JRE 1.6 (however I was expecting it to download the latest JRE (update 16) but it installs 1.6 update 7).
    Could anybody confirm that?
    Thank you in advance.

    Thanks for the reply. I think Sun should update the auto-downloaded jre from 6u7 to the latest one.
    But this is a minor issue. The problem from my post is that you cannot impose a j2se version number 1.6 or greater. IOW <j2se version="1.6+" ... > has no effect. I have tested this on a clean win xp machine that had installed only j2se 1.5.
    I think it is a bug in jws but I want to check this issue with others.

  • JavaFX applet JNLP not working in browser

    Hi,
    I have developed a JFX applet with multiple stages, which get visible and not visible at different times.
    I have a search bar on the main stage which shows up at the beginning. However, on searching, i am not getting any response from the widget when i search.
    I am running the jnlp in the browser.
    I am doing the right thing ? Anything more needs to be done in terms of creating the jnlp ?
    Kedar

    Perhaps you can make a simple mockup application illustrating how you do your stage management, so we can see how you do (if that's "the right thing"...).

  • Season Pass - LOST (Televison Show) - Not working

    I purchased a season pass for the 3rd season of LOST. I've downloaded all 6 episodes when they were available. iTunes would kindly send me an email... The 7th episode which aired last night (02/08/07) is available and ready to download. However my season pass is not showing up. iTunes wants me to buy the episode.
    Apple what's up with my season pass?
    Anyone else having a this issue? Suggestions?
    Thanks,
    CH

    Ditto on the unavailable download. I have the season pass as well and when I check for purchases it says I have downloaded all available purchases. Clearly I have not done so because I have not downloaded last night's episode. I had a similar problem a week or two ago with Heroes, and after three or four days I was finally able to download my pre-purchased episode.
    Seems that other users recently had the same problem with 30 Rock and Studio 60. Looks to me like the iTunes folks are not up to the task of managing the season pass option.
    What's the point of a season pass if you can buy individual episodes before season pass episodes are available?
    Shame on them.
    HP Pavilion dv1000   Windows XP  

  • RE: NRL Digital Pass Voucher Code not working

    Hi My NRL Digital Pass voucher code is not working. Can someone please help

    I see, I'd suggest to review the post here http://crowdsupport.telstra.com.au/t5/NRL-2015/Free-12-Month-NRL-Subscription/m-p/472883/highlight/true#M13148 for the Go Mobile offer 
    Let me know how you go 

  • Isqlplus with full connection description does not work in netscape/firefox

    http://machine/isqlplus?userid="user/pass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.xxx)(PORT=1521))(CONNECT_DATA=(SID=xxx)(SRVR=DEDICATED)))"
    This works in IE, but fails in netscape and firefox with: SP2-0874: URL argument is missing a keyword
    It looks like a URL encoding issue. Has anyone seen this and if so have you found a solution?

    Thanks for the try, but that didn't help. Actually, without the full connection description it works in both browsers, i.e.
    http://machine/isqlplus?userid=user/pass@servicename
    does work in both. isqlplus under firefox appears to not like the encoding as:
    http://machine/isqlplus?userid="user/pass@servicename"
    this does not work under firefox. But with a full connect string it appears I need the quotes as without nether works.

  • Passbook in iPhone 4 - not working

    I have upgraded my OS, but the Pass book app is not working. It always redirects to App stores which gives the message as Unable to connet to App Store.

    There's a fix for this -- Google for it. Has to do with changing your date & then changing it back.

  • Fingerprin​t reader not working

    My laptop froze today so I had to hardboot. After I turned it back on, my fingerprint reader stopped working. The device manager detects the Validity Sensors  (WBF) (PID=0050), but when I go to the Control Panel to fix the Biometric settings, there is absolutely no detection of the fingerprint reader whatsoever. All my BIOs are updated/reinstalled, so I don't think that's the problem.
    I also tried reinstalling HP Simple Pass, which also does not work. I can log in into the program w/ my master password, but when I try to set up the log in for the fingerprint reader and type my password in there, it says I have an invalid password.
    Not sure what other information I need, but I have this to start:
    Windows 8 Pro 64bit
    HP ENVY 15-j092nr Notebook PC 
    Serial Number:   [Personal Information Removed]
    Product Number:   C8P47AV 

    Hi,
    The following document will be very useful in troubleshooting this issue.
    Troubleshooting a Fingerprint Reader (Windows 8): http://h10025.www1.hp.com/ewfrf/wc/document?cc=uk&​lc=en&dlc=en&docname=c03718240
    Please support me by clicking on the Kudos star if you like my post and “Accept as Solution” if my advice answered or helped your situation. These are the best ways in which you can thank me.
    I am an HP Employee. 

  • Re: EJB Control not working with methods that contain arguments

    John,
    I'm not qualified to answer your EJB control question, but before you
    become too disillusioned with page flows I'd like to mention that the
    request scoped data form and and the return-to="page" issues you
    mentioned have been addressed for the next service pack. We've
    introduced the ability to specify a page flow scoped form bean which
    lives for the life of the page flow, and we've clarified the return-to
    values to include both "currentPage" and "previousPage" which should
    clarify the expected behavior.
    I hope you give it a try.
    Thomas
    John Hundley wrote:
    Oh well guess you guys gave up on this one. Thats ok, I have utilized a workaround
    that forgoes your non working controls just like I have workarounds for your dataforms
    that do not maintain their data between pages, your retrun to page that does not
    work etc.... At this rate I should have just used struts and JBoss.
    "John Hundley" <[email protected]> wrote:
    oop's attached the wrong one here is the right one.
    "John Hundley" <[email protected]> wrote:
    Ok I have attached one of my beans.
    "Anurag" <[email protected]> wrote:
    John,
    For a stateless session bean, the ejbCreate() method is called for
    every
    individual method call. This is because the bean instance is returned
    to the
    pool after every method call, it does not hold any state.
    I am still surprised about the behaviour you are seeing.
    Can you just attach your stateless session bean. You need not sendthe
    dependent files, since we only want to sniff the call made to the stateless
    EJB method, and are not concerned with the implementation.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Anurag,
    I am using the GA release. My control looks identicle toTraderEJBControl.jcx
    except of course it is extending a different home and bean interface.The
    bean
    itself does not exacly match the traderbean but it does look very
    similar
    to MusicBean.java
    in the tutorialsApp. One thing that has me a bit confused is the
    fact
    the
    create()
    method is being called every time I make a method call on the control.Shouldn't
    the bean only be created once at the first method call and persistfor the
    life
    of the session?
    John
    "Anurag" <[email protected]> wrote:
    John,
    Have you tried running the ejbControl/TraderEJBClient.jws in SamplesApp.
    It
    does involve calling methods on the stateless EJB TraderEJB through
    an
    EJB
    control, which accept parameters and run fine.
    Could you also confirm that you are using the 8.1 GA release, andnot
    the
    beta.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Raj,
    I cannot attach them here. I am not sure how you would test them
    anyway
    as I
    would have to send you my Oracle schema and you would have to
    set
    up
    a
    database
    instance. There is no way I can do that. If you could please
    send
    me an
    e-mail
    I can attach the relevant files in reply and you could take a
    look
    at them
    and
    see if you see any obvious problems.
    Thanks,
    John
    "Raj Alagumalai" <[email protected]> wrote:
    John,
    Can you attach the ejb jar, the jcx and the jws files that you
    have
    created.
    I will test and get back to you.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I have created an EJB control on a stateless session bean.
    For
    some
    reason when
    I attempt to call a method on my control that takes any number
    of
    arguments I
    get a java.lang.IllegalArgumentException yet if I call a method
    that
    takes
    no
    arguments everything works fine. I used the debugger to walk
    through
    the
    code
    and have discovered that every time I call any method on the
    control
    the
    create()
    method gets called, this is exactly where the error is occurring.It is
    almost
    like the control is trying to pass my method args to the create()
    method
    instead
    of the method I am calling. I have tested all of the methods
    in
    the
    ejb
    by manually
    coding everything (getInitialContext ejb.create etc) in a .jsp
    and
    calling
    all
    of the methods within that .jsp. There they all work fine
    so
    I
    am
    pretty
    sure
    the control is doing something funky. Any ideas as to what
    is
    going
    on
    and how
    I can fix it?
    Thanks,
    John

    Was this issue ever resolved ? We are running into the same problem.
    The last response is "I'm not qualified to answer your EJB control question."
    Can this be escalated to someone who can please ?
    Regards
    Shahriar

Maybe you are looking for

  • Lost 10 GB after iOS 8 update.

    After I updated my 16 GB ipad. I lost about 10 gb. My iPad says I only have 6 gb available. Help!

  • WIH 00013 - Session Closed after try to run a report

    Hi all My system is BOXI R2 SP3  and client W2K SP4 and IE 6 SP1. When try to lauch a report, the report never end, and after 20 minutes I cancel the report and show WIH 00013 error. I try to launch the report using another web browser and work fine

  • Database table of Match approval level data in shipment more tab

    hi friends i need to know the database database table of Match approval level data in shipment > more tab of PO. pls help. its urgent.

  • Issues while processing the BOMs using fm ''CSAP_MAT_BOM_MAINTAIN'

    Hi Group, we are facing issues while processing the BOMs using the basic type(Z-idoc type) for standard type BOMMAT04. thing is that the segment 'E1STPOM' is defined to contain 1 to 99999 records in it. when an Idoc is run(say with 150/200 segments o

  • Export Secure Zone Username Report

    Strangely enough, I just found that while I can export a report with contacts' usernames and I can export a report with contacts and their secure zones, I can't export a report with both secure zones and each contact's username. Can you help me work