Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JNLP and Web Start
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JNLP and Web Start
Dynamic JNLP not working with JBoss?
Jingwei Yang
Greenhorn
Posts: 3
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Guys,
I have a
Jsp
page containing dynamic jnlp info like this:
<%@ page contentType="application/x-java-jnlp-file" %> <%@ page session="true" %> <% response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %> <?xml version="1.0" encoding="utf-8"?> <!-- JNLP File for My APP--> <jnlp spec="1.0+" codebase="http://<%= request.getServerName() %>:<%= request.getServerPort() %>" href="test.jnlp" > <information> <title>Test</title> <vendor>admin</vendor> <homepage href="http://<%= request.getServerName() %>:<%= request.getServerPort() %>"/> <description>Test</description> <description kind='short'>Blah blah blah</description> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.4+" href="http://java.sun.com/products/autodl/j2se" /> <jar href="test.jar"/> </resources> <application-desc main-class='com.test.MainTest'> <argument><%= request.getParameter("sessionId") %></argument> </application-desc> </jnlp>
The test.jar file is put under the root web folder. It's working with
Tomcat
(Tomcat 5.5), but not with
JBoss
(only tested with JBoss 4.0.5 and JBoss 4.2.0). The error is
java.io.FileNotFoundException:
http://localhost:8080/test.jnlp
Can anyone please enlighten what I should do?
Thanks!
Jingwei Yang
Greenhorn
Posts: 3
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
By the way, I tried the
servlet
way suggested by this post:
https://coderanch.com/t/200653/JNLP-Web-Start/java/create-Dynamic-jnlp-files
. But it has no success with JBoss either.
Jingwei Yang
Greenhorn
Posts: 3
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Problem resolved. The optional attribute "href" of the tag jnlp shouldn't be supplied.
<jnlp spec="1.0+" codebase="http://<%= request.getServerName() %>:<%= request.getServerPort() %>" >
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Download Swing application from web
ClassNotFound Exception..
How to embed JavaFX 2.0 application with jsp (to deploy it on server)
JNLP I am getting the File Not found exception
How to un jnlp app offline?
More...