Hi everyone !

I have a problem with Java Web Start (1.0.1) and Tomcat (4.0.4).

I'm trying to call my application via Web server Tomcat with 
restricting access.

My configuration is the following :

The deployment descriptor web.xml is:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>
  <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>java</extension>
    <mime-type>text/plain</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>JNLP</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
  </mime-mapping>

  <!-- Define a Security Constraint on this Application -->
  <security-constraint>
    <web-resource-collection>
        <web-resource-name>Entire Application</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <!-- NOTE:  This role is not present in the default users file -
->
        <role-name>standard</role-name>
    </auth-constraint>
  </security-constraint>

  <!-- Define the Login Configuration for this Application -->
  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>MY APPL</realm-name>
  </login-config>
</web-app>



And jnlp File is:

<jnlp 
spec="1.0+" 
codebase="http://host:8080/Official/"; 
href="Application.jnlp"> 
<information> 
<title>Application release 0.10</title> 
<vendor> XXXX </vendor> 
<homepage href="/"/> 
<description>Application</description> 
<description kind="short">My Application</description> 
<icon href="Icon.gif"/>
</information> 
<security> 
<all-permissions/> 
</security> 
<resources> 
<j2se version="1.3"/> 
<jar href="Jar1.jar"/>
<jar href="Jar2.jar"/>
<jar href="Jar3.jar"/>
<jar href="Jar4.jar"/>
<jar href="Jar5.jar"/>
<jar href="Jar6.jar"/>
<jar href="Jar7.jar"/>
<jar href="Jar8.jar"/>
<jar href="Jar9.jar"/>
<jar href="Jar10.jar"/>
<jar href="MyApplication.jar"/>
</resources> 
<application-desc main-class="com.xxxx.tool.cm.MyApplication"/> 
</jnlp> 

With the above configuration the Java Web Start not work.
I'm expecting the message box for insert username and password instead 
it returns the messagge error :
An error occurred while launching/running the application.
Vendor: XXXX
Category: Download Error
Unable to load resource: http://host:8080/Official/Application.jnlp

The Exception error is:
JNLPException[category: Download Error : Exception: 
java.lang.NullPointerException : LaunchDesc: null ]

        at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown 
Source)

        at 
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable
(Unknown Source)

        at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown 
Source)

        at com.sun.javaws.Launcher.downloadResources(Unknown Source)

        at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

        at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

        at com.sun.javaws.Launcher.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)




I have tried to remove the restrict access in the deployment descriptor 
(web.xml) and java Web Start WORKS !!!!!! 


I'll appreciate any idea or hint!
 Thanks in advance



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to