Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

JNLP Launch File Error

Thread view: 
blue - 08 Nov 2005 19:27 GMT
I am having trouble launching an app from Java Web Start. Has anyone any
ideas why it's not working?
Details of JNLP file below.

An error occurred while launching/running the application.

Category: Launch File Error

No application resources are specified for this platform. Please, contact
the vendor of the application to make sure that this is a supported
platform.

<jnlp spec="1.0+" codebase="http://www.cjswebdesign.co.uk/hex"
href="launch.php" >
     <application-desc main-class="uk.co.cjswebdesign.color.HEXColorPicker"

     </application-desc>
     <information>
         <title>Hex Color Picker</title>
         <vendor>cjswebdesign.co.uk</vendor>
         <homepage href="http://www.cjswebdesign.co.uk/hex"/>
         <description>Hex Color Picker</description>
         <description kind="short">Hex Color Picker</description>
         <icon href="http://www.cjswebdesign.co.uk/hex/smfeed.gif"/>
         <offline-allowed/>
     </information>
     <security>
         <all-permissions>
     </security>
     <resources>
     <j2se version="1.5+" initial-heap-size="64m" max-heap-size="512m"/>

   <j2se version="1.4+" initial-heap-size="64m" max-heap-size="512m"/>
   <j2se version="1.3+" initial-heap-size="64m" max-heap-size="512m"/>
     <jar href="hchoose.jar" main="true" download="eager"/>
      </resources>
     </jnlp>

JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="http://www.cjswebdesign.co.uk/hex/"
href="http://www.cjswebdesign.co.uk/hex/launch.php">
 <information>
   <title>Hex Color Picker</title>
   <vendor>cjswebdesign.co.uk</vendor>
   <homepage href="http://www.cjswebdesign.co.uk/hex"/>
   <description>Hex Color Picker</description>
   <description kind="short">Hex Color Picker</description>
   <icon href="http://www.cjswebdesign.co.uk/hex/smfeed.gif"
kind="default"/>
   <offline-allowed/>
 </information>
 <security>
   <all-permissions/>
 </security>
 <application-desc main-class="uk.co.cjswebdesign.color.HEXColorPicker"/>
</jnlp> ]
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Andrew Thompson - 09 Nov 2005 02:43 GMT
> <jnlp spec="1.0+" codebase="http://www.cjswebdesign.co.uk/hex"
> href="launch.php" >

When I make a direct call for the file..
<http://www.cjswebdesign.co.uk/hex/launch.php>
..I end up *getting* 'launch.php.jnlp'.

I am not surprised that confuses JWS, it expect to know where
the original file is.

Try it with a hard coded JNLP file (I take it you are
generating the other one, with PHP?).
blue - 10 Nov 2005 18:57 GMT
Thanks for the tips and help.

Tried with hard coded JNLP file. No luck there. I Was trying to get round
that the server is not set up for MIME type application/x-java-jnlp-file and
got a tip about doing the header MIME  type with PHP.

Having no luck, seems easier to ask support to add mime type to server.

Thanks

>> <jnlp spec="1.0+" codebase="http://www.cjswebdesign.co.uk/hex"
>> href="launch.php" >
[quoted text clipped - 8 lines]
> Try it with a hard coded JNLP file (I take it you are
> generating the other one, with PHP?).
Andrew Thompson - 10 Nov 2005 22:17 GMT
..
> ...seems easier to ask support to add mime type to server.

That would be the way I'd approach it.  Unless suppport
have offered you a 'control panel' (type thingy) to allow
you to set up mime-type associations yourself.
blue - 11 Nov 2005 18:41 GMT
Tried support, no luck as yet getting MIME type added.
No options to add my own MIME types. Will leave Web Start on the back burner
for now, untill I change to a Tomcat hosting pakage.

thanks

> ..
>> ...seems easier to ask support to add mime type to server.
>
> That would be the way I'd approach it.  Unless suppport
> have offered you a 'control panel' (type thingy) to allow
> you to set up mime-type associations yourself.
Roedy Green - 12 Nov 2005 04:19 GMT
>Tried support, no luck as yet getting MIME type added.
>No options to add my own MIME types. Will leave Web Start on the back burner
>for now, untill I change to a Tomcat hosting pakage.

If you have access to even a tiny corner of some other website where
jnlp is served with the proper mime type, you can host the jnlp file
there.

You are almost there:
According to http://mindprod.com/applets/mimecheck.html
you are serving application/x-java-jnlp-file
instead of application/x-httpd-php
for http://www.cjswebdesign.co.uk/hex/launch.php
if you could just get that to read launch.jnlp you would have it.

Perhaps something with a redirect.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Andrew Thompson - 12 Nov 2005 04:40 GMT
...
> You are almost there:
> According to http://mindprod.com/applets/mimecheck.html
> you are serving application/x-java-jnlp-file
> instead of application/x-httpd-php
> for http://www.cjswebdesign.co.uk/hex/launch.php
> if you could just get that to read launch.jnlp you would have it.

It does seem as if the '.php' extension is the entire source
of the problem.  If that is the case, the current options seem..
- fix it on the current site and it will work.
- move it to another site as-is, and face exactly the same problem.
Roedy Green - 09 Nov 2005 02:55 GMT
>href="launch.php"

It probably wants that to be launch.jnlp

According to http://mindprod.com/applets/mimecheck.html
you are serving application/x-java-jnlp-file
instead of application/x-httpd-php
for http://www.cjswebdesign.co.uk/hex/launch.php

and
text/html; charset=iso-8859-1
instead of application/x-java-jnlp-file for
http://www.cjswebdesign.co.uk/hex/launch.jnlp

see http://mindprod.com/jgloss/mime.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.