• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to launch the web start application

 
vinutha vinutha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Please can any one help me.
I have a problem in launching the web start application.
As i am the beginner i need help from you people.

I have created three class files as below.
Aeon_PManager.java
SimpleSerial.java
SimpleSerialNative.java.

We have to create a SimpleSerialNative.dll in the same folder where we are saving all the class files.

The jnlp file that i have written is as follows:

{code}

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Aeon HHBM Manager Application -->
<jnlp spec="1.0+" codebase="http://zycomm:8080" href="Aeon.jnlp">
<information>
<title>Aeon HHBM Manager</title>
<vendor>ME</vendor>
<description>Aeon HHBM Manager</description>
</information>
<offline_allowed/>
<resources>
<j2se version="1.4+"/>
<jar eager="true" href="SimpleSerialNative.jar" main="true"/>
<jar href="lib/Aeon_PManger.jar"/>
<jar href="lib/simpleSerialNative.jar"/>
<jar href="lib/simpleSerialNatived.jar"/>
<jar href="lib/simpleSerial.jar"/>
</resources>
<application-desc main-class="Aeon_PManager.Main" />
<component-desc/>

</jnlp>

I am using Tomact6.0 server.
I am saving the jnlp file and jar files in the path below
tomcat6.0/webapps/root

Is it wrong to do so. If it is then what should i do to launch the application.
Is it necessary for me to create jar files for all classes seperately.
should i create jar file for simpleSerialNative.dll also.

These are the error messages that I am getting:

In general tab:

An error occured while launching/running the application

Title:Aeon HHBM Manger
Vendor:Me
CategoryownloadError
Unable to load resource http://zycomm:8080/Aeon_PManager.jar

Exception tab:

jnlp exception[category download error: exception: java io.ioexception:http response 404 launchdesc:null]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
at com.sun.javaws.Launcher.downloadResources(Unkown Source)
at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
at com.sun.javaws.Launcher.Run(Unkown Source)
at java.lang.Thread.run(Unkown Source)


Wrapped Exception Tab
java io.IOexception:HTTP response 404
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
at com.sun.javaws.Launcher.downloadResources(Unkown Source)
at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
at com.sun.javaws.Launcher.Run(Unkown Source)
at java.lang.Thread.run(Unkown Source)

 
Paul Clapham
Sheriff
Posts: 21111
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinutha, it appears that you have not yet read and acted on the private message I sent you.
 
vinutha vinutha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Thanks for your reply. I was unable to get the private message what you sent.
 
Paul Clapham
Sheriff
Posts: 21111
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then I will post its contents here:

"vinutha", welcome to JavaRanch. We're a friendly bunch here, but we do require our ranch hands to use real screen names. You can read the policy here.

So please change your screen name to a real name. You can do that here. And be aware that not following the policy may lead to termination of your account.
 
shanavas ct
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vinutha,

If you are using third party jar files in your main jar (ie;, inside lib), you have to write a seperate jnlp file in wepapps/root. For example;

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Notepad -->

<jnlp spec="1.0+"
codebase="http://sysveda.webhop.org:8080/"
href="bisolution.jnlp">

<information>
<title>Curveline BIsolution</title>
<vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
<description>Curveline BI</description>
<description kind="short">this jnlp file reside Sysveda server</description>
<offline-allowed/>
<icon href="default"/>
<offline-allowed/>
</information>
<security>
<all-permissions />
</security>
<resources>
<property name="jnlp.publish-url" value="$$context/publish"/>
<jar href="BISolution/BISolution.jar" main="true" download="eager" size="81920"/>
<extension name="jexcel" href="jexcel.jnlp"/>
<j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>

<property name="protocol" value="http"/>
<property name="webserver" value="sysveda.webhop.org"/>
<property name="port" value="8080"/>
<property name="webapp" value="BISolution"/>
<property name="networkdrive" value="c:\jproject\NetworkDrive\"/>
<property name="TemplateFolder" value="c:\jproject\Template\"/>
</resources>
<application-desc
name="BI Solution"
main-class="com.curvature.presentation.CurveLineFrame"
width="900"
height="600">
</application-desc>
</jnlp>

The tag extension; <extension name="jexcel" href="jexcel.jnlp"/> ; is used to refer the second jnlp file and the second jnlp file like;


<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Notepad -->

<jnlp spec="1.0+"
codebase="http://sysveda.webhop.org:8080/"
href="jexcel.jnlp">

<information>
<title>Curveline BIsolution</title>
<vendor>Teamdev, Inc.</vendor>
<description>Curveline BI</description>
<offline-allowed/>
</information>
<offline-allowed/>
<security>
<all-permissions />
</security>
<resources>
<jar href= "lib/comfyj-2.5.jar" download="eager" size="81920"/>
<jar href= "lib/jexcel-1.3.jar" download="eager" size="81920"/>
<jar href= "lib/jniwrap-3.7.jar" download="eager" size="81920"/>
<jar href= "lib/winpack-3.6.jar" download="eager" size="81920"/>
</resources>
<component-desc/>
</jnlp>


Regards...
Shanavas
:thumbup:



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic