• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic jnlp missing application-desc tag in jsp

 
Tanya Sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
trinkets shimmer wrote:

Please check your private messages for an important administrative matter.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Are you trying to launch an applet or an application?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic