Jnlp refuse when no jar in resources ?

I have a jnlp application-desc, which call another component-desc.
I should want all the jars be in the component-desc, and only the main-class declaration in the application-desc.
When I do that, JNLP refuse and says my jar is not signed (it is).
If I declare the jar with the main class in the main jar, jnlp accepts.
Is this normal / a bug / a feature / other ??

The main jar file must be listed in the main jnlp file.
The error probably says not signed, because the main jnlp file includes <all-permissions>.
you can only include that <security> tag if all jar files are signed, and all other jar files are signed with the same certificate as the first one. Since in this case there is no first jar file, you get this error.
If you remove the <all-permissions> from the main jnlp file, you should get a differant error, saying something about not having a main jar file.
/Dietz

Similar Messages

  • ContextConfig[]: Exception processing JAR at resource path /WEB-INF/lib/..

    Hi,
    The application deployment works fine with Tomcat 4.0.6.
    Now I'm trying to upgrade to Tomcat 4.1.24 and am getting this exception...
    Using CATALINA_BASE: /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy
    Using CATALINA_HOME: /nls/apps/tomcat
    Using CATALINA_TMPDIR: /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/temp
    Using JAVA_HOME: /nls/apps/jdk
    May 16, 2003 3:26:05 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 80
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.24
    HostConfig[localhost]: Expanding web application archive ROOT.war
    StandardHost[localhost]: Installing web application at context path from URL file:/users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/webapps/ROOT
    WebappLoader[]: Deploying class repositories to work directory /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/work/Standalone/localhost/_
    WebappLoader[]: Deploy class files /WEB-INF/classes to /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/webapps/ROOT/WEB-INF/classes
    WebappLoader[]: Deploy JAR /WEB-INF/lib/jnlp-servlet.jar to /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/webapps/ROOT/WEB-INF/lib/jnlp-servlet.jar
    ContextConfig[]: Exception processing JAR at resource path /WEB-INF/lib/jnlp-servlet.jar
    javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/jnlp-servlet.jar
    javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/jnlp-servlet.jar
    at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
    at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
    at org.apache.catalina.core.StandardService.start(StandardService.java:497)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    ContextConfig[]: Marking this application unavailable due to previous error(s)
    Any ideas what I'm doing wrong?
    Thanks,
    chet

    Found the solution...
    The deploy directory needs to have a temp directory in
    it!!!!We have had this problem too when upgrading to 4.1.27 but are confused about which directory should have a temp directory under it, and what the permission should be. Could someone enlighten us ?
    Thanks
    Janet

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

  • Multiple jnlp's for signed jars

    Hi,
    I'm trying to solve the issue where you have several different certificates trying to sign the jars ... I've found out that you can just add extentions to your main jnlp and add the jars there.
    Problem: I have loads of jars, all with different certificates.
    At the moment I just generate my jnlp by usign a template, and entering $dependencies to list all jars in the file. That didn't work (JAR resources in JNLP file are not signed by same certificate), so I added my main jar in the main jnlp, and all the other jars in the extended jnlp, which is not working. Probably because (correct me if I'm wrong) I have to split every jar with another certificate into another jnlp ?
    Is there any way I can split up the signed jars without having to add them manually in the jnlp file ?
    Edited by: ReggieBE on May 16, 2008 1:17 AM

    Oh, and I'm using webstart-maven-plugin from mojo.codehouse.org ;)

  • When do jars get loaded when preload specfied on cache_archive_ex param?

    I've read the supporintg documentation for the cache_archive_ex parameter: http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/applet_caching.html#cache_archive_ex
    But it does not seem to indicate when the jar is pre-loaded. I assume when the plugin is initially launched from the first web page the user touches that requires the plugin.
    Is this true?
    Thanks,
    ForceRs

    I've made a little progress on this. I turned on full debug in the Java Plugin console (by brining it up and pressing 5 to "set trace level to").
    It seems that the jar(s) preload only as invoked.
    I wonder what the preload adds as a benefit, if any?

  • 10g on enterprise linux AS 3 - connection refused when attempting to ...

    I recently installed 10g on RedHat Linux Enterprise AS 3. The installation appeared to go seamlessly and immediately afterwards I was able to access SQL PLUs via
    http://localhost.localdomain:5560/isqlplus and login as system and perform queries. Shortly thereafter, this stopped working. When attempting to relaunch the browser and direct to this address, I receive the error: The connection was refused when attempting to contact localhost.localdomain:5560. The same error is received for other urls , e.g. ..ulrasearch, em etc.
    I checked some of the prior postings that discuss checking configuration files for Apache, etc. I don't seem to have an Apache directory created anywhere although it is referenced in some of the log files.
    Rebooting the machine makes no difference.
    I am new to 10g and running Oracle on linux so any help is appreciated.

    Alison is right,
    For the another processes you need to type :
    ULTRASEARCH
    $$ORACLE_HOME/bin/searchctl start [stop]
    ENTERPRISE MANAGER DATABSE CONTROL
    $$ORACLE_HOME/bin/emctl start dbconsole [stop]
    ORACLE MANAGEMENT AGENT
    $$ORACLE_HOME/bin/emctl start agent [stop]

  • ExceptionInInitializer when running Jar

    Hi,
    I have developed an application which uses jdk1.4,jai and 2 classes from the jai demo classes. My application does not work when I create a jar however it does otherwise. I have included the jai_codec.jar and jai_core.jar classes in my jar. When my jar is run I get the following error:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    <...>
    Caused by: java.lang.RunTimeException: Registry intialization file not found.
    at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:363)
    Any help is much appreciated!!!!

    Hi again,
    it turns out that the application outputs the above error if I run it from anywhere except EditPlus (what I use to code my applications - not an IDE), i.e. if I run the main class file from the command line, the same thing happens.
    AAAAAHHHHH!!!!!

  • My 'secure 'connection 'refused' when access iTunes after 8.0.2.20 upgrade

    My 'secure' network connection was 'refused' when access iTunes. I can view & navigate the iTunes store AND I can update my Podcasts successfully...BUT I can't sign in/download /purchase, et al.
    Triage so far...not neccessarily in this order...
    1) Not using Norton or Macafee - using Verizon Security suite
    Checked firewall - itunes is listed a 'safe'
    2) Ran ITunes Dx program - followed the suggestion to check SSL & TLS - checked correctly (log pasted below)
    3) Uninstalled iTunes and then reinstalled - no change
    4) Cleaned out IE files cookies - no change
    5) Renamed the etc/HOST file name - no change
    6) the Apple Help person said that he has no idea and have done what he would have already suggested...
    Below is pasted the results from the iTunes triage...
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    Dell Computer Corporation Dimension 4550
    iTunes 8.0.2.20
    QuickTime 7.5.5
    FairPlay 1.1.11
    CD Driver 2.0.7.5
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 2.1.2.7
    Bonjour 1.0.5.11 (118.5)
    iTunes Serial Number FA60CA709F4AAB80
    Current user is an administrator.
    The current local date and time is 2008-12-04 15:04:28.
    iTunes is not running in safe mode.
    Video Display Information
    NVIDIA GeForce4 MX 420
    ** External Plug-ins Information **
    No external plug-ins installed.
    ** Network Connectivity Tests **
    Network Adapter Information
    Adapter Name: {B8B89F3F-B5E7-4802-AEF4-CE01824912C0}
    Description: Intel(R) PRO/100 VE Network Connection - Packet Scheduler Miniport
    IP Address: 192.168.1.45
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.1
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.1
    Lease Obtained: Thu Dec 04 14:22:10 2008
    Lease Expires: Fri Dec 05 14:22:10 2008
    DNS Servers: 192.168.1.1
    192.168.1.1
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is off.
    Connection attempt to Apple web site was successful.
    Connection attempt to iTunes Store was successful.
    Secure connection attempt to iTunes Store was unsuccessful.
    The network connection was refused.
    Secure connection attempt to iPhone activation server unsuccessful.
    The network connection was refused.
    Last successful store access was 2008-12-04 14:53:22.

    Although a didn't currently have Norton and had thought I had uninstalled it (no longer in my program menu & no residual icons et al...there is the 'Semantic' TOOL that must be used to REALLY remove Norton security remnants that are buried deep in the c-drive program files. This I didn't know about...
    So I downloaded the tool from the Norton web page and ran it per their instructions. After rebooting, my 8.0.2.20 iTunes secure connect was fine.
    I spent 9+ days trying to get iTunes to work. Norton is the devil company and I will never use that security program again - especially with all the other Norton-specific issues iTunes is having release after release...

  • JWS Hanging when updated jar available

    Hi,
    When I make an updated JAR file available, it gets downloaded and verified correctly (it's signed), but then nothing. The progress dialogue simply says that scanning has reached 100%. There have been a couple of threads along these lines, but nothing that seems to jump out as a solution. Here are the details:
    I have an application that I am deploying, as described by this JNLP file:
    <?xml version="1.0" encoding="ANSI"?>
    <jnlp spec="1.0+" href="ourapp_main.jnlp" codebase="http://myMachineName/ourapp">
      <information>
        <title>Application Titlet</title>
        <vendor>Meridian Informatics</vendor>
        <homepage href="http://meridianinfo.com" />
        <description>Our app</description>
        <description kind="one-line">Our app</description>
        <description kind="tooltip">Our app</description>
        <description kind="short">Our app</description>
        <icon href="http://myMachineName/ourapp/images/icon.gif" version="" width="" height="" depth="" size="" />
        <offline-allowed />
      </information>
      <resources>
        <j2se version="1.3+" />
        <jar href="ourapp_main.jar" main="false" download="eager" />
        <nativelib href="win32printerdll.jar" download="eager" />
        <extension href="activation.jnlp" name="activation" />
        <extension href="borland.jnlp" name="borland" />
        <extension href="collections.jnlp" name="collections" />
        <extension href="design_pro.jnlp" name="design_pro" />
        <extension href="ourapp.jnlp" name="ourapp" />
        <extension href="ibmftp.jnlp" name="ibmftp" />
        <extension href="framework.jnlp" name="framework" />
        <extension href="mail.jnlp" name="mail" />
        <extension href="xreport_pro.jnlp" name="xreport_pro" />
        <extension href="xtools.jnlp" name="xtools" />
      </resources>
      <security>
        <all-permissions />
      </security>
      <application-desc main-class="com.meridianinfo.ourapp.twotier.MainApp" />
    </jnlp>And here's a JNLP file for one of the extensions (all extension JNLP files were copied from an original and the relevant names changed):
    <?xml version="1.0" encoding="ANSI"?>
    <!--  created on Tue Aug 28 13:18:27 GMT+11:00 2001  --><!--  created by fitzpatk on Windows 2000  --><!--  1.3.0  -->
    <jnlp codebase="http://myMachineName/ourapp" spec="1.0+" href="ibmftp.jnlp">
      <information>
        <title>Desktop for Ecommdirect</title>
        <vendor>Meridian Informatics</vendor>
        <homepage href="http://meridianinfo.com" />
        <offline-allowed />
        <icon kind="default" href="http://myMachineName/ourapp/images/icon.gif" />
      </information>
      <resources>
        <jar href="ibmftp.jar" main="false" download="eager" />
      </resources>
      <component-desc />
      <security>
        <all-permissions />
      </security>
    </jnlp>In versions of JWS prior to the latest, all the JNLP files would be downloaded, but then processing would stop (i.e. no jar files would be downloaded).
    When using the latest version of JWS, launching an application for the first time works fine - everything gets downloaded correctly, installed, and the application launched. As long as there are no updates, this continues to work.
    If I update one of the jar files, it is downloaded and scanned, but the application never starts. The dialogue stating that scanning has reached 100% remains on screen. There is nothing untoward in the log file or in the console. If I hit Cancel at this point, and try to launch the application again, everthing works (of course, there is nolonger an update to download at this point).
    If I update two or more jar files (but not all!), I have to repeat the previous procedure for every updated jar file, before the application will launch.
    If I update all of the jar files, it works as expected - everything is downloaded and installed and the application is started.
    BTW: I am "updating" the jar files by resigning them (using jarsigner).
    I am using Win NT and Win 2K, JRE's 1.3.1 and 1.3.0_01.
    This looks like a bug to me, but before I log it as such, I'd appreciate hearing your thoughts/comments. Maybe there is something missing from my JNLP files, or some combination of software that is likely to cause this?
    All comments appreciated.
    Kieran

    There have been a couple
    of threads along these lines, but nothing that seems
    to jump out as a solution.Yep.
    My strategy is brute force, born out of cluelessness, and is either
    1. nuke .javaws/cache and retry
    or if that doesn't help get really angry and
    2. nuke the whole Java Web Start installation directory (and please make sure that not a single .dll survived eg due to IE having some instance slurped in), reinstall Web Start and retry
    and if that does not help we go into scapegoat location mode and do
    3. It must be the bloody JRE, thus try again with 1.3.1, 1.3.1_01, 1.4 and whatever JRE you get your hands on, try also alternative vendors like IBM or Blackdown
    the adventureous now might do
    4. sign that incomprehensible license agreement, download the Web Start sources and fix the problem yourself
    but if you have not enough time or skills on your hand then finally give up and try
    5. It is a Web Start bug. Let's submit it as bug and wait for 1.1
    Not too subtle, eh? :-)
    But there are reasons for this.
    installation of new versions might end in a mess
    No. 2 is motivated by the fact that deinstallations of old Web Start versions and installations of new Web Start versions might lead to a mess.
    Ideally Web Start would work afterwards such installations without problems, and even better, the old cache would be left intact, so that not everything needs to get downloaded again.
    I had two cases (me playing with 1.01 and 1.01_01, and a colleague playing with 1.01something and trying out the 1.4 JDK beta, where Web Start is a part of the JDK) where this led to a hang of that kind what you described.
    The installation guide
    http://java.sun.com/products/javawebstart/docs/installguide.html
    hints as well that things might go wrong.
    cache corruption, insufficient change detection
    No. 1 is rooted in the observation that Web Start's update mechanism does not work as expected.
    Ideally, when we launch an app, the Web Start client should find out about the main jnlp file and the sub jnlp files and jar files that are used by it. It should detect changes in all those items and download if they changed.
    BTW: I am "updating" the jar files by resigning them
    (using jarsigner).But what changes does it detect?
    - does it just look if something with the same name is already in the cache?
    - does it look at the timestamps of the cache contents and compare that to the timestamps of the versions on the server?
    - does it compare content differences (eg by calculating hashes like md5 or SHA-1)?
    My impression that it does only the first.
    I very often have to empty the whole Web Start cache on the client, when I'm changing/updating jars and jnlps on the server.
    more fun
    No.3 is justified by experience. I had many surprises here.
    Regards,
    Marc

  • Getting JNLP error: "exception: Unable to load resource:-"

    I've posted this question in Stackoverflow... but didn't get any answer...
    Hi Guys,
    I'm brand new to JNLP.
    I've been trying to fix this for straight 2 days... I have no clue...
    I've a dynamic web project in eclipse. And I wanted to append an Applet in html. It works fine, if I append it without using jnlp. But if I use jnlp, its throws exception...
    Please help me....
    Here is my package structure:
    DaaS
    DaaS\WebContent
    \WebContent\AppletToJS.html
    \WebContent\appletToJS.jnlp
    \WebContent\FirstApplet.jar
    "FirstApplet.jar" contains the Applet class - AppletToJS.java
    Here is my `jnlp` file:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp href="appletToJS.jnlp">
    <information>
    <title>Dynamic Tree Demo</title>
    <vendor>Dynamic Team</vendor>
    </information>
    <resources>
    <!-- Application Resources -->
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
    <jar href="FirstApplet.jar" main="true" />
    </resources>
    <applet-desc
    name="Applet To JS"
    main-class="acid.AppletToJS"
    width="300"
    height="300">
    </applet-desc>
    <update check="background"/>
    </jnlp>
    Here is my `html` file:
    <html lang="en-US">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <body>
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
    var attributes = { code:"acid.AppletToJS",  width:100, height:100} ;
    var parameters = {jnlp_href: "appletToJS.jnlp"} ;
    deployJava.runApplet(attributes, parameters, "1.6");
    </script>
    <!-- <applet codebase="./jars" archive="FirstApplet.jar" Code="acid.appletToJS.class" width=200 Height=100></applet> -->
    <p id="summary"/>
    </body>
    </html>
    while I run my html page I got following error:
    <code>
    exception: Unable to load resource: http://localhost:8080/jars/FirstApplet.jar.
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8080/jars/FirstApplet.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by:
    java.io.FileNotFoundException: http://localhost:8080/jars/FirstApplet.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8080/jars/FirstApplet.jar
    </code>
    **http://localhost:8080/jars/FirstApplet.jar**
    - I really don't understand where the hell "/jars" coming from???
    - My project name is "DaaS" and my jar, html page and jnlp page are in same directory. And I'm running my html page on tomcat-7 server.
    Edited by: user1202074 on Feb 7, 2012 4:24 PM
    Edited by: user1202074 on Feb 7, 2012 4:24 PM

    It must be coming from the commented-out <applet> tag somehow.
    You aren't specifying an 'id' element. See the Deploy Java Toolkit documentation.

  • How can i access properties from APP server through JNLP with ot using JAR

    Hello
    i want to retrive a Properties file from WL-7 app installed location like :bea/home/externalized.properties
    now i want to use this properties file throgh out the application. if any property is changed in "externalized.properties" that could be reflect dynamically in my code.
    So my requirement is :
    The current implementaion is using the JNLP down load the required code which contains the properties in .jar files, i have around 500 properties which are embedded in differnet .jar files with differnt property name. So i want to make all 500 properties to get out side from the jar files. and keep that consolidated properties in a single location and access it dynamically after deployed my ear file in wl7 app server.
    my application is implemented in SWING and EJB now i want to create an ear file which can be deployed any instance or cluster of WL7 app server.
    My Q:
    1. How can i access properties file through JNLP? (not a single property, want to access all properties in externalized.properties)
    2. is thare any known issue with SUN to load properties file through JNLP?
    your help is highly appreciated.
    -Siva

    Hey Thanks for your response,
    My question is Still not answered,
    see infact i have different type of environments to launch my application.
    infact my weblogic is deployed at remote location whihch is installed in linux,
    code is exist in our local system.
    At the time of code build for my local system i'm not able to get the properties from remote WL server,
    so at the time of code compilation and making the EAR file i'm not having this externalized properties file in newly generated EAR file.
    so once i copied my EAR in to WL7 cluster and i'm running the application using startAdminserver.sh, in this script file i'm defining the
    java -DexternalizedProperty=$WL_HOME/externalizedProperty.properties so now i'm able to get this properties to 'externalizedProperty"
    But when i download my application required jars, at this time i does not having the property file in my downloaded JAR files.
    So i want to access the remote properties file in suh sistuation.
    now i'm runnig the application at my local side to launch and Server side as well.
    So i have 2 runtimes 1 is my local and another is my server. In this case using "-DexternalizedProperty" i'm able to get this in server side,
    once control is come to local system it is not able to find this "-DexternalizedProperty" [externalizedProperty].
    Hope now u get my scenario..
    Thanks,

  • SUNW.iws - "Connection refused" when probing a uri in monitor_uri_list

    Hi,
    I use Sun Cluster 3.2 and would like to set Sun Webserver 7u2 as failover resource.
    I configured Resource Group which contain Logical Hostname and Sun Webserver as data resource (using SUNW.iws). I set all nedded data and turn on the resource.
    I've got the messages:
    Feb 11 01:25:21 krasnal-A SC[SUNW.iws:5,Webserver-gr,Webserver-server,iws_svc_start]: Failed to connect to host ha-web and port 80: Connection refused.
    Feb 11 01:25:36 krasnal-A last message repeated 7 times
    Feb 11 01:25:37 krasnal-A SC[SUNW.iws:5,Webserver-gr,Webserver-server,iws_svc_start]: A resource restart attempt on resource Webserver-server in resource group Webserver-gr has been blocked because the number of restarts within the past Retry_interval (620 seconds) would exceed Retry_count (2)
    Feb 11 01:25:37 krasnal-A SC[SUNW.iws:5,Webserver-gr,Webserver-server,iws_svc_start]: Failed to start iPlanet Web Server.
    Feb 11 01:25:37 krasnal-A Cluster.RGM.rgmd: Method <iws_svc_start> failed on resource <Webserver-server> in resource group <Webserver-gr> [exit code <1>, time used: 7% of timeout <300 seconds>]
    server has been shutdown
    In this moment the second node on cluster start the resource and do the same. Monitor, failed, turn off. :-( . Resource are switched 3 times between nodes and at the end get offline status.
    The most important is that connection refused for uri in monitor_uri_list and resource in cluster isn't start or triggering restart/failover.
    It is look like the failover monitor try check resource on port 80 after service start and when notice that service (Webserver) not started - turn down the interface on this node and turn up on second node. Service (webserver) can;t start becouse the interface are down.
    I've found some similar problems which are describes on sunsolve:
    http://sunsolve.sun.com/search/document.do?assetkey=1-1-4900125-1
    and
    http://sunsolve.sun.com/search/document.do?assetkey=1-1-4967197-1
    I'm beginner in cluster problems and maybe I did some big mistake, but ...some help me
    Irek

    Solved!
    I read this post: http://forum.java.sun.com/thread.jspa?messageID=3966316
    and now get things work.
    If you installed NetBeans, you should notice that in your {tomcat_home}/conf/web.xml, NetBeans add these:
      <filter>
        <filter-name>HTTPMonitorFilter</filter-name>
        <filter-class>org.netbeans.modules.web.monitor.server.MonitorFilter</filter-class>
        <init-param>
          <param-name>netbeans.monitor.ide</param-name>
          <param-value>127.0.0.1:8082</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>HTTPMonitorFilter</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
        <dispatcher>ERROR</dispatcher>
      </filter-mapping>Now you should comment out these lines and then can get connected.

  • No update-check on JNLP-file when start from other location than codebase

    we are using JWS version 1.0 and 1.4.2.
    Our clients have a common directory on the local disc which contains all the JNLP-files used in their organization. Some menu-links and some other applications are using this JNLP-files to launch and jump into the applications.
    The JNLP-file repository is provided by an http-URL location. The JNLP-files in the local directory are directed by the codebase-attribute to this repository.
    JWS processes the launch in following way:
    1. read the codebase and href-attribute from the launched JNLP-file.
    2. get timestamp from the original in the JNLP-repository
    3. check if already cached and with latest timestamp.
    4. download JNLP-file if not cached or not latest version.
    5. check/download all other resources.
    6. start the app.
    With JWS shipped with JRE 1.5 (Beta was fine) this doesnt work in the same procedure:
    1. copy the launched JNLP-file in the empty JWS-cache.
    2. set a new timestamp on the cached JNLP-file (it does not let the old timestamp).
    3. get timestamp from the original in the JNLP-repository (given with the codebase & href attribute)
    4. check if already cached and with the latest timestamp.
    5. download JNLP-file if not cached or not latest version. (will never appear because timestamp in cached version is newer)
    6. check/download all other resources.
    7. start the app. (with probably not latest resources)
    Is this behaviour ok or is this a Bug?

    hi Andy,
    we tried with 1.5.0_04, 1.5.0_06 and 1.5.0_07 and it was always the same problem.
    With the beta 1.5.0 (jawaws.jar's build.id = b64, 15/09/2004) it worked correctly.
    Roland.

  • Using 3rd Party packages when creating jar - program doesn't run

    I am using the xerces and xom packages for xml etc in my program.
    It works fine when run from a command prompt, but as soon as I package it into a jar I get the java.lang.NoClassDefFound error for the nu.xom.Builder class (one of the 3rd party classes.)
    Reading through these forums has yielded several suggestions, none of which work.
    I am probably making some massive stupid mistake, but cannot see it...
    My manifest:
    Manifest-Version: 1.0
    Created-By: 1.6.0 (Sun Microsystems Inc.)
    Main-Class: be.bavardage.vocab.VocabGUI
    Class-Path: serializer.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xom-1.1.jar
    using the jar comand line prompt:
    jar cfm vocab.jar MANIFEST.MF be\bavardage\vocab\*.classCan anyone give me any indication as to what I am doing wrong...

    bavardage,
    I too am reading forum messages to try to do just what you originally wanted to do. I have 3rd party JARs and I have always first extracted them and then turned around and JAR'ed them up into my single Remote.jar (actually I'm so new to Java that I don't yet change things that aren't broken and this was working when I got it)
    jar  xf  jakarta-oro-2.0.5.jar
    jar  xf  jasperreports-1.2.1.jar
    jar  xf  iReport.jar
    jar cmf  mainClassSpec  Remote.jar  *.class  org/  net/  it/I am reading the forums for a way to NOT do this. My reason is because I want to make the application Java Web Start (JAWS) capable. By zipping all the JARs up into one I end up with a JAR over 6 MB! I am also adding internationalization and I really need to keep the ListResourceBundle classes in a separate JAR so I can keep adding languages and not cause the entire 6 MB file to be downloaded each time.
    Using Java Web Start is the real motivating force here. I need to keep all JARs separate so that when there are code changes or new languages only one small JAR will be downloaded again by JAWS not the huge iReport.jar file at 4,218KB nor the somewhat smaller jasperreports...jar at 1,225KB (at 64KB jakarta-oro...jar is hardly worth mentioning) .
    I will watch this thread to see if you or anyone else later comes up with the information to reference external JARs (while in a Java Web Start environment).
    So to put it in a question format, can anyone provide some information about referencing external JARs in a normal environment and will it work in a JAWS environment (I do know the technique for specifing and downloading multiple JARs in a JNLP file)?
    Hopi(ng)

  • Connection refused when connecting SMP 3 to ASE 16

    Hi all,
    We're in the process of setting up an installation of SMP 3.0 with Sybase ASE 16 for one of our clients. The final goal is to run the SAP EHS Safety Issue mobile app.
    When installing SMP 3.0 with Derby database, I'm able to start the system without any problems. However, when I try the installation configuring the Sybase ASE DB, the service gets stuck on a loop while starting up and doesn't react. I cannot stop it manually nor restart it. The only way to stop it is by restarting the system.
    On the Sybase side of things, I can install the ASE without any issues. I have also done all the preliminary steps to create the user and smp3 DB for SMP. I've connected to the DB using this user and I'm able to see that the smp3 DB is created.
    When looking at the logs, I can see an exception with the message: Connection refused. Here's an excerpt:
    2014 07 28 15:01:10#0-500#ERROR#org.jgroups.protocols.SMP_JDBC_PING##anonymous#Timer-2,SAPDSMP-5000-smp3-smpserver:com.sap.mobile.platform.server.online.admin.backendconnections.cluster.ClusterBackends,SAPDSMP-4630###Failed creating JDBC connection for SMP_JDBC_PING java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused: connect
      at com.sybase.jdbc4.jdbc.SybConnection.getAllExceptions(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybConnection.handleSQLE(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybConnection.tryLogin(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybConnection.handleHAFailover(Unknown Source)
    Any idea what may be causing this issue?
    Kind regards,
    Omar

    I tried using the go.bat to start the server and got the same error. Here's the output:
    Using SMP_BASE:    "D:\SAP\MobilePlatform3\Server"
    Using SMP_HOME:    "D:\SAP\MobilePlatform3\Server"
    Using SMP_OPTS:    " "-Dlog4j.logfiles.path=D:\SAP\MobilePlatform3\Server\log" "
    -Dwicket.configuration=development" "-Dmobiliser.home=D:\SAP\MobilePlatform3\Ser
    ver" "-DMOBILISER_PROTOCOL=http" "-DMOBILISER_HOSTNAME=localhost" "-DMOBILISER_P
    ORT=8080" "-DMOBILISER_HOST=http://localhost:8080" "-Dtracker.defaultHost=localh
    ost" "-Dtracker.defaultPort=8080" "-Dtracker.defaultServlet=/mobiliser" "-Dcom.s
    ap.mobile.platform.server.home=D:\SAP\MobilePlatform3\Server" "-DPREFS_PROTOCOL=
    prefs""
    Using JAVA_HOME:   "D:\SAP\MobilePlatform3\sapjvm_7"
    "Updating SMP3 Server P2 Repository Locations to: D:\SAP\MobilePlatform3\Server/
    p2"
            1 file(s) moved.
            1 file(s) moved.
    "Updating server log name to reflect the hostname"
            1 file(s) moved.
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 7.1.012)
    SAP Java Server VM (build 7.1.012 23.5-b11, Aug  8 2013 23:45:34 - 71_REL - optU
    - windows amd64 - 6 - bas2:201691 (mixed mode))
    D:\SAP\MobilePlatform3\Server>"D:\SAP\MobilePlatform3\sapjvm_7\bin\java.exe" -se
    rver  -XtraceFile=log/vm_@PID_trace.log   "-Dlog4j.logfiles.path=D:\SAP\MobilePl
    atform3\Server\log" "-Dwicket.configuration=development" "-Dmobiliser.home=D:\SA
    P\MobilePlatform3\Server" "-DMOBILISER_PROTOCOL=http" "-DMOBILISER_HOSTNAME=loca
    lhost" "-DMOBILISER_PORT=8080" "-DMOBILISER_HOST=http://localhost:8080" "-Dtrack
    er.defaultHost=localhost" "-Dtracker.defaultPort=8080" "-Dtracker.defaultServlet
    =/mobiliser" "-Dcom.sap.mobile.platform.server.home=D:\SAP\MobilePlatform3\Serve
    r" "-DPREFS_PROTOCOL=prefs" -XX:ErrorFile="D:\SAP\MobilePlatform3\Server\log\err
    or.log" -XX:HeapDumpPath="D:\SAP\MobilePlatform3\Server\log\heap_dump.hprof" "-X
    X:+HeapDumpOnOutOfMemoryError" "-XX:+DisableExplicitGC" "-Xms1024m" "-Xmx2048m"
    "-XX:PermSize=256M" "-XX:MaxPermSize=512M" "-Dosgi.requiredJavaVersion=1.6" "-Du
    seNaming=osgi" "-Dosgi.install.area=." "-Djava.io.tmpdir=./work/tmp" "-Djava.end
    orsed.dirs=lib/endorsed" "-Dorg.eclipse.equinox.simpleconfigurator.exclusiveInst
    allation=false" "-Dcom.sap.core.process=ljs_node" "-Declipse.ignoreApp=true" "-D
    http.proxyHost=" "-Dhttp.proxyPort=" "-Dhttps.proxyHost=" "-Dhttps.proxyPort=" "
    -Dorg.eclipse.net.core.enableProxyService=false" "-Dosgi.noShutdown=true" "-Dosg
    i.framework.activeThreadType=normal" "-Dosgi.embedded.cleanupOnSave=true" "-Dosg
    i.usesLimit=30" "-Djava.awt.headless=true" "-Dtc.active=true" "-Dmail.mime.encod
    eparameters=true" "-Dnet.sf.ehcache.skipUpdateCheck=true" "-Dorg.eclipse.gemini.
    blueprint.extender.internal.boot.ChainActivator.disableBlueprint=true" "-Dcom.sy
    base365.mobiliser.util.tools.springextender.threadpool.size=20" "-Dcom.sybase365
    .mobiliser.util.tools.springextender.shutdown.wait.time=35000" "-Dwicket.configu
    ration=deployment" "-DlicenseAccepted=true" "-Dorg.apache.tomcat.util.buf.UDecod
    er.ALLOW_ENCODED_SLASH=true" "-Dcom.sybase365.mobiliser.framework.service.config
    .MobiliserServiceBeanDefinitionParser.serviceAdviceConfig=audit,security,caller-
    audit,responseCode,traceableRequest,responseCode,filterExternal,sessionManagemen
    t,txn" "-Dcom.sybase365.mobiliser.framework.service.config.MobiliserServiceBeanD
    efinitionParser.internalServiceAdviceConfig=security,responseCode,validation,res
    ponseCode,filterInternal,sessionManagement,txn" "-Dcom.sybase365.mobiliser.frame
    work.service.config.MobiliserInternalServiceBeanDefinitionParser.responseCodeTyp
    e=responseCode" "-Dcom.sybase365.mobiliser.framework.service.config.MobiliserInt
    ernalServiceBeanDefinitionParser.auditType=audit" "-Dcom.sybase365.mobiliser.mon
    ey.persistence.hibernate.dao.transaction.AuthorisationCodeDaoHbnImpl.max=200" "-
    Dcom.sybase365.mobiliser.money.persistence.hibernate.dao.transaction.Authorisati
    onCodeDaoHbnImpl.table=SEQ_AUTH_CODES" "-Dcom.sybase365.mobiliser.money.persiste
    nce.hibernate.dao.transaction.AuthorisationCodeDaoHbnImpl.column=ID_SEQUENCE" "-
    Dcom.sybase365.mobiliser.framework.persistence.hibernate.dialect.useTableBasedSe
    quences=true" "-Dcom.sybase365.mobiliser.framework.persistence.hibernate.dialect
    .useSequenceNameForTableSequences=true" "-Dcom.sybase365.mobiliser.framework.per
    sistence.hibernate.dialect.sequenceTableName=SEQ_TABLE_HILO" "-Dcom.sybase365.mo
    biliser.framework.persistence.hibernate.dialect.sequenceTableSequenceNameColumnN
    ame=STR_SEQUENCE_NAME" "-Dcom.sybase365.mobiliser.framework.persistence.hibernat
    e.dialect.sequenceTableSequenceValueColumnName=ID_SEQUENCE_NEXT_HI_VALUE" "-Dcom
    .sybase365.mobiliser.framework.persistence.jdbc.bonecp.pool.lazy=true" "-Dcom.sa
    p.mobile.platform.server.notifications.baseurl=https://SAPDSMP.corp.local:8081/"
    "-Dcom.sap.mobile.platform.online.proxy.maxresponsesize=-1" "-Dcom.sap.mobile.p
    latform.server.connection.pool.idletimeout=600" "-Dcom.sap.mobile.platform.serve
    r.connection.timeout=60000" "-Dcom.sap.mobile.platform.server.connection.sotimeo
    ut=60000" "-Dcom.sap.mobile.platform.server.enable.statistics=true" "-Dcom.sap.m
    obile.platform.server.maximum.clientlogfiles=10" "-Dcom.sap.mobile.platform.serv
    er.maximum.connectionPoolSize=5000" "-Dcom.sap.mobile.platform.server.maximum.gz
    ipPoolSize=5000" "-Dcom.sybase.security.FactoryRetriever=com.sybase.security.int
    egration.tomcat7.TomcatFactoryRetriever" "-Dcom.sap.mobile.platform.server.gener
    al.status.SMPServerStatusLogging=false" "-DsecretKey=7hZK9zP3cH" "-DsecretKeylen
    gth=128" "-DapnsSocksProxyHost=" "-DapnsSocksProxyPort=" "-Dorg.apache.catalina.
    authenticator.Constants.SSO_SESSION_COOKIE_NAME=X-SMP-SESSIDSSO" "-Dosgi.logfile
    =./log/osgi.log" "-Djava.net.preferIPv4Stack=true" -classpath "D:\SAP\MobilePlat
    form3\Server\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;D:\SAP\
    MobilePlatform3\Server\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;D:\
    SAP\MobilePlatform3\Server\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;D:\S
    AP\MobilePlatform3\Server\plugins\org.eclipse.equinox.launcher_1.3.0.v20120308-1
    358.jar;D:\SAP\MobilePlatform3\Server\plugins\com.sap.db.jdbc_1.0.31.362930.jar;
    D:\SAP\MobilePlatform3\Server\plugins\jconnect-osgi_7.0.7.ESD5-1.jar;D:\SAP\Mobi
    lePlatform3\Server\plugins\com.sybase365.com.ibm.db2jcc4_9.7.4.jar;D:\SAP\Mobile
    Platform3\Server\plugins\oracle-jdbc-osgi_11.2.0.x_3.0.0.M1.jar;D:\SAP\MobilePla
    tform3\Server\plugins\com.springsource.org.apache.commons.codec_1.4.0.jar;D:\SAP
    \MobilePlatform3\Server\plugins\com.springsource.org.apache.commons.codec_1.6.0.
    jar;D:\SAP\MobilePlatform3\Server\plugins\com.springsource.org.apache.commons.la
    ng_2.5.0.jar" org.eclipse.equinox.launcher.Main -console localhost:2401
    Checking DB...
    Failed to connect to the database on startup:java.sql.SQLException: JZ006: Caugh
    t IOException: java.net.ConnectException: Connection refused: connect
    Checking DB...
    Failed to connect to the database on startup:java.sql.SQLException: JZ006: Caugh
    t IOException: java.net.ConnectException: Connection refused: connect

Maybe you are looking for

  • Thunderbolt dock for dual display

    Hi All, Does anyone have a recommendation for a reasonably priced (say < $100) Thunderbolt dock? I want the MagSafe 2 + Thunderbolt 2 cable simplicity... i.e. set the laptop on the desk and click the two cords into my MacBook Pro. I need to connect t

  • What is the best option for 'update.... set' in owb?

    Hello. I have been reading on a number of ways to implement following query in OWB: update TABLE A set Value F = (select Value B from table B where (nvl(trim(A.valueC),trim(A.valueD) = trim(B.ValueF) and substr(A.valueG,1,2) = trim(B.valueH)) or ( nv

  • Why is measuring a frequency so slow?

    If I don't measure a the two frequency's I can get the program to write data about 7 times a second, but with the frequnceys it is only 1 or 2 times. Take a look at the program to check this out. Also on the graph there seems to be a buffer over run,

  • Small script for PDF fillable form

    I need to create a script for a fillable form that will leave a dash after four numbers. It has to look like e.g. "1234-567. The dash needs to fill that spot without the user keying it in. Thanks!

  • Upgrade from sp3 to sp4

    Dear all, Help me please with the following trouble i found during the subj. I had a directory with the BEA Platform installed. As a first step of the 'upgrade' procedure the platform has been uninstalled, then I killed all the directories left(where