users@glassfish.java.net

Re: Unable to load resource: appserv-jwsacc.jar

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Oct 2007 00:10:11 PDT

Hi Tim,

here are the jnlp files get from javaws viewer and the content of the 4 tabs when the error occur (Launch file | Exception | Wrapped Exception | Console )

DEFAULT domain :

<jnlp spec="1.0+" codebase="http://localhost:8080/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/" href="http://localhost:8080/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/main.jnlp">
  <information>
    <title>EnterpriseApplicationBetsSim-app-client</title>
    <vendor>//entr/toto</vendor>
    <homepage href="http://localhost:8080/main-jnlp.html"/>
    <description kind="short">Application description</description>
    <description kind="one-line">EnterpriseApplicationBetsSim-app-client</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java version="1.5+"/>
    <jar href="http://localhost:8080/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar" download="eager" main="true"/>
    <extension href="http://localhost:8080/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/main-ext.jnlp" name="mainext"/>
    <extension href="http://localhost:8080/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/client-client.jnlp" name="appclient"/>
    <property name="javax.xml.parsers.SAXParserFactory" value="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"/>
    <property name="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
    <property name="javax.xml.transform.TransformerFactory" value="com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"/>
    <property name="org.xml.sax.parser" value="org.xml.sax.helpers.XMLReaderAdapter"/>
    <property name="org.xml.sax.driver" value="com.sun.org.apache.xerces.internal.parsers.SAXParser"/>
    <property name="java.util.logging.manager" value="com.sun.enterprise.server.logging.ACCLogManager"/>
    <property name="javax.enterprise.resource.corba.level" value="FINE"/>
    <property name="java.naming.factory.initial" value="com.sun.enterprise.naming.SerialInitContextFactory"/>
    <property name="java.naming.factory.url.pkgs" value="com.sun.enterprise.naming"/>
    <property name="java.naming.factory.state" value="com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"/>
    <property name="com.sun.aas.jws.iiop.defaultHost" value="localhost"/>
    <property name="com.sun.aas.jws.iiop.defaultPort" value="3700"/>
    <property name="com.sun.aas.jws.retainTempFiles" value="false"/>
    <property name="com.sun.aas.jws.isJWS" value="true"/>
    <property name="com.sun.aas.jws.download.host" value="localhost"/>
    <property name="com.sun.aas.user.code.signed" value="true"/>
  </resources>
  <application-desc main-class="com.sun.enterprise.appclient.jws.boot.JWSACCMain">
    <argument>-mainclass</argument>
    <argument>entr.accsoft.bets.app.betsim.app.MDIMainForm</argument>
  </application-desc>
</jnlp>

TEST 0004 Domain :

<jnlp spec="1.0+" codebase="http://localhost:8129/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/" href="http://localhost:8129/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/main.jnlp">
  <information>
    <title>EnterpriseApplicationBetsSim-app-client</title>
    <vendor>//entr/toto</vendor>
    <homepage href="http://localhost:8129/main-jnlp.html"/>
    <description kind="short">Application description</description>
    <description kind="one-line">EnterpriseApplicationBetsSim-app-client</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java version="1.5+"/>
    <jar href="http://localhost:8129/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar" download="eager" main="true"/>
    <extension href="http://localhost:8129/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/main-ext.jnlp" name="mainext"/>
    <extension href="http://localhost:8129/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/client-client.jnlp" name="appclient"/>
    <property name="javax.xml.parsers.SAXParserFactory" value="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"/>
    <property name="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
    <property name="javax.xml.transform.TransformerFactory" value="com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"/>
    <property name="org.xml.sax.parser" value="org.xml.sax.helpers.XMLReaderAdapter"/>
    <property name="org.xml.sax.driver" value="com.sun.org.apache.xerces.internal.parsers.SAXParser"/>
    <property name="java.util.logging.manager" value="com.sun.enterprise.server.logging.ACCLogManager"/>
    <property name="javax.enterprise.resource.corba.level" value="FINE"/>
    <property name="java.naming.factory.initial" value="com.sun.enterprise.naming.SerialInitContextFactory"/>
    <property name="java.naming.factory.url.pkgs" value="com.sun.enterprise.naming"/>
    <property name="java.naming.factory.state" value="com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"/>
    <property name="com.sun.aas.jws.iiop.defaultHost" value="localhost"/>
    <property name="com.sun.aas.jws.iiop.defaultPort" value="3749"/>
    <property name="com.sun.aas.jws.retainTempFiles" value="false"/>
    <property name="com.sun.aas.jws.isJWS" value="true"/>
    <property name="com.sun.aas.jws.download.host" value="localhost"/>
    <property name="com.sun.aas.user.code.signed" value="true"/>
  </resources>
  <application-desc main-class="com.sun.enterprise.appclient.jws.boot.JWSACCMain">
    <argument>-mainclass</argument>
    <argument>entr.accsoft.bets.app.betsim.app.MDIMainForm</argument>
  </application-desc>
</jnlp>

Tab launch file :
<?xml version="1.0" encoding="UTF-8"?>

<!--
 The contents of this file are subject to the terms
 of the Common Development and Distribution License
 (the "License"). You may not use this file except
 in compliance with the License.
 
 You can obtain a copy of the license at
 glassfish/bootstrap/legal/CDDLv1.0.txt or
 https://glassfish.dev.java.net/public/CDDLv1.0.html.
 See the License for the specific language governing
 permissions and limitations under the License.
 
 When distributing Covered Code, include this CDDL
 HEADER in each file and include the License file at
 glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
 add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your
 own identifying information: Portions Copyright [yyyy]
 [name of copyright owner]
-->

<jnlp
    spec="1.0+"
    codebase="http://localhost:8129/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client"
    href="http://localhost:8129/__JWSappclients/__appclient/EnterpriseApplicationBetsSim/EnterpriseApplicationBetsSim-app-client/main.jnlp">
    <information>
        <title>EnterpriseApplicationBetsSim-app-client</title>
        <vendor>//entr/toto</vendor>
        <homepage href="/main-jnlp.html"/>
        <description kind="one-line">EnterpriseApplicationBetsSim-app-client</description>
        <description kind="short">Application description</description>
        
    <offline-allowed/>
    </information>

    <security>
        <all-permissions/>
    </security>
    
    <resources>
        <j2se version="1.5+" />

                <jar href="http://localhost:8129/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar" main="true"/>


<!--
        Refer to the extension main JNLP document (which lists unsigned app server jars) and
        the app client's JNLP document (which lists the user's app client and supporting jars).
-->
        <extension name="mainext" href="main-ext.jnlp"/>
        <extension name="appclient" href="client-client.jnlp"/>

        <!--
            Properties specified on the request as query parameters (if any)
        -->
        

        <property name="javax.xml.parsers.SAXParserFactory" value="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"/>
        <property name="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
        <property name="javax.xml.transform.TransformerFactory" value="com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"/>
        <property name="org.xml.sax.parser" value="org.xml.sax.helpers.XMLReaderAdapter"/>
        <property name="org.xml.sax.driver" value="com.sun.org.apache.xerces.internal.parsers.SAXParser"/>

<!-- from the command line -->
        <property name="java.util.logging.manager" value="com.sun.enterprise.server.logging.ACCLogManager"/>
        <property name="javax.enterprise.resource.corba.level" value="FINE"/>
<!--
    The next three properties are set in the appserv-rt.jar's jndi.properties file. Set them
    here so they are detected in the Java Web Start environment.
-->

        <property name="java.naming.factory.initial" value="com.sun.enterprise.naming.SerialInitContextFactory"/>
        <property name="java.naming.factory.url.pkgs" value="com.sun.enterprise.naming"/>

<!--
# Required to add a javax.naming.spi.StateFactory for CosNaming that
# supports dynamic RMI-IIOP.
-->

        <property name="java.naming.factory.state" value="com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"/>

        <property name="com.sun.aas.jws.iiop.defaultHost" value="localhost"/>
        <property name="com.sun.aas.jws.iiop.defaultPort" value="3749"/>

        

        <property name="com.sun.aas.jws.retainTempFiles" value="false"/>

        <property name="com.sun.aas.jws.isJWS" value="true"/>

        <property name="com.sun.aas.jws.download.host" value="localhost"/>

        <property name="com.sun.aas.user.code.signed" value="true"/>

    </resources>

    <application-desc main-class="com.sun.enterprise.appclient.jws.boot.JWSACCMain">

                <argument>-mainclass</argument>
        <argument>entr.accsoft.bets.app.betsim.app.MDIMainForm</argument>

        <!--
            Further arguments may be added dynamically.
        -->
        
        
    </application-desc>

</jnlp>

Tab Exception :
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8129/__JWSappclients/__appserver/aslib/appserv-jwsacc.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.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.downloadJarFiles(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Tab Wrapped Exception :
java.io.FileNotFoundException: http://localhost:8129/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar
        at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(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.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.downloadJarFiles(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://localhost:8129/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        ... 18 more

Tab Console :
Java Web Start 1.6.0_02
Using JRE version 1.6.0_02 Java HotSpot(TM) Client VM
User home directory = \\entr.ch\dfs\Users\c\cchanava
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
#### Java Web Start Error:
#### Unable to load resource: http://localhost:8129/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar
[Message sent by forum member 'geldouches' (geldouches)]

http://forums.java.net/jive/thread.jspa?messageID=240838