applet not found in web app
I created a java application that i integrated with a java web application that has a jsp file. The jsp file is supposed to call the launch.jnlp, but everytime i launch jsp file i get the following error. Please help.
Error message.
exception: JNLP file error: launch.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct..
java.io.FileNotFoundException: JNLP file error: launch.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unkno wn Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.io.FileNotFoundException: JNLP file error: launch.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
Code that is causing error message.
The jsp file.
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WEB-BOOK</title>
</head>
<body>
<div align="center">
<h1>WEB-BOOK</h1>
<table align="center" bgcolor="blue" border="1px">
<tr>
<th colspan="2" valign="middle">
<h2>MyWebBook</h2>
</th>
</tr>
<tr>
<td>
<applet width="500" height="400">
<param name="jnlp_href" value="launch.jnlp"/>
</applet>
</td>
</tr>
</table>
</div>
</body>
</html>
Launch.jnlp
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Documents%20and%20Settings/sila%20kiunga/My%20Documents/NetBeansProjects/NWPHONE/dist/" href="launch.jnlp" spec="1.0+">
<information>
<title>NWPHONE</title>
<vendor>sila kiunga</vendor>
<homepage href=""/>
<description>NWPHONE</description>
<description kind="short">NWPHONE</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.5+"/>
<jar eager="true" href="NWPHONE.jar" main="true"/>
</resources>
<applet-desc height="400" main-class="newpackage.TestJapplet" name="NWPHONE" width="500">
</applet-desc>
</jnlp>