aspose file tools*
The moose likes JNLP and Web Start and the fly likes dynamic jnlp missing application-desc tag in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "dynamic jnlp missing application-desc tag in jsp" Watch "dynamic jnlp missing application-desc tag in jsp" New topic
Author

dynamic jnlp missing application-desc tag in jsp

Tanya Sharma
Greenhorn

Joined: Oct 27, 2010
Posts: 10
I am trying to create a dynamic JNLP file through jsp.Code snippet is attached


<%response.setContentType("application/x-java-jnlp-file"); %>

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/a3" href="testTS.jsp"/>
<information>
<title>Tett</title>
<vendor>ttt</vendor>
</information>
<resources>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
<property
name="sid"
value="$\{cookie['JSESSIONID'].value\}"/>
<property
name="serviceHost"
value="http://localhost:8080/a3"/>
<property
name="repid"
value="$\{cookie['JSESSIONID'].value\}"/>
<jar href="VisualizationExampleALL.jar" main="true" />
<jar href="xercesImpl.jar" main="true" />
<jar href="xml-apis.jar" main="true" />
<jar href="xml-apis-ext.jar" main="true" />


</resources>
<security>
<all-permissions/>
</security>
<application-desc main-class="visualizationapplication.Test"/>


<update check="background"/>
</jnlp>



I get the following error although you can see that application-desc tag is there in the jsp.

MissingFieldException[ The following required field is missing from the launch file: <jnlp>(<application-desc>|<applet-desc>|<installer-desc>|<component-desc>)]
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.buildDescriptor(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)


Any help would be appreciated.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

trinkets shimmer wrote:

Please check your private messages for an important administrative matter.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Welcome to the Ranch.
Are you trying to launch an applet or an application?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic jnlp missing application-desc tag in jsp