Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNLP deployment error

843802Jan 10 2010 — edited Jan 14 2010
I am trying to run a JOGL applet on my website using jnlp. I made a jnlp file, uploaded my jar and my referenced jars, and I'm getting the following error:
Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = D:\Student Data

----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

MissingFieldException[ The following required field is missing from the launch file: <jnlp><information><vendor>]
	at com.sun.javaws.jnl.XMLFormat.buildInformationDesc(Unknown Source)
	at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptorFromCache(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptorFromCache(Unknown Source)
	at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
	at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
	at sun.plugin2.main.client.PluginMain.access$300(Unknown Source)
	at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Error while initializing manager: MissingFieldException[ The following required field is missing from the launch file: <jnlp><information><vendor>], bail out
Here's my jnlp file:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" href="MazeGame.jnlp">
    <information>
        <title>Jogl Maze Game</title>
	<vendor>Michael Rooney</vendor>
        <homepage href="http://www.micsworld.com/portfolio"/>
    </information>
    <resources>
        <j2se   version="1.6+" />
	<jar href="SSG_Tools.jar" />
        <jar href="MazeGame.jar" main="true" />
	<extension name = "jogl" href = "http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
        <property name="sun.java2d.noddraw" value="true" />             
    </resources>
    <applet-desc 
            name       = "JOGL Maze Game"
            main-class = "GameRunner.Main"
            width      = "500"
            height     = "500" >
    </applet-desc>
</jnlp>
and here's my embed code:
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher" width="500" height="500" codebase="." archive="
 http://download.java.net/media/applet-launcher/applet-launcher.jar,
 http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
 http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
http://www.micsworld.com/sites/default/files/MazeGame_0.jar,
http://www.micsworld.com/sites/default/files/SSG_Tools.jar">
<param name="codebase_lookup" value="false">
 <param name="noddraw.check" value="false">
 <param name="progressbar" value="true">
 <param name="jnlpNumExtensions" value="1">
<param name="jnlpExtension1" value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
 <param name="noddraw.check" value="true">
 <param name="noddraw.check.silent" value="true">
 <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
 
 <param name="subapplet.classname" value="GameRunner">
 <!-- edit: the title of your game -->
 <param name="subapplet.displayname" value="MY GAME">
 <!-- edit: the name of your jnlp file -->
 <param name="jnlp_href" value="http://www.micsworld.com/sites/default/files/MazeGame.jnlp">
</applet>
any help at all would be great. It looks like it thinks the vendor tag is missing, but it's there. I have no idea what it thinks is going on.

I've used Janela, and here's the report from that:
JaNeLA Report - version 09.04.04


Report for file:/D:/Student%20Data/Desktop/My%20Games/MazeGame.jnlp

Content type application/xml does not equal expected type of application/x-java-jnlp-file
XML encoding not known, but declared as utf-8
Codebase not specified.  Defaulting to file:/D:/Student%20Data/Desktop/My%20Games/
Optimize this application for off-line use by adding the <offline-allowed /> flag.
Downloads can be optimized by specifying a resource size for 'SSG_Tools.jar'.
The resource download at SSG_Tools.jar can be optimized by removing the (default) value of download='eager'.
The resource download at SSG_Tools.jar can be optimized by removing the (default) value of main='false'.
It might be possible to optimize the start-up of the app. by  specifying download='lazy' for the SSG_Tools.jar resource.
Lazy downloads might not work as expected for SSG_Tools.jar unless the download 'part' is specified. 
Downloads can be optimized by specifying a resource size for 'MazeGame.jar'.
The resource download at MazeGame.jar can be optimized by removing the (default) value of download='eager'.
It might be possible to optimize the start-up of the app. by  specifying download='lazy' for the MazeGame.jar resource.
Lazy downloads might not work as expected for MazeGame.jar unless the download 'part' is specified. 
Resource type com/portfolio of resource http://www.micsworld.com/portfolio is not one of the allowable types of jar.
Report for http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2010
Added on Jan 10 2010
35 comments
3,122 views