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
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
JNLP and Web Start
Starting Suns Sample App webpad
don cline
Ranch Hand
Posts: 35
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am new to
Java
Web Start. I am trying to run Sun's Web Start example
webpad. I am using
Tomcat
4.1.31
I built the webpad war file according to instructions:
"To build .war file, run below command inside the war directory
jar -cvf ../webpad.war ."
I placed the war file in the $TOMCAT_HOME/webapps directory and restarted
Tomcat.
I went to the associated web page at:
http://localhost:8080/webpad/war/index.html
So far, so good.
I tried to launch the webpad app and got an error:
"An error occurred while launching/running the application.
Category: Launch File Error
The field <jnlp>codebase has an invalid value: $$codebase"
On the exception tab it lists:
BadFieldException[ The field <jnlp>codebase has an invalid value: $$codebase,$$codebase] at com.sun.javaws.xml.XMLUtils.getAttributeURL(Unknown Source) at com.sun.javaws.xml.XMLUtils.getAttributeURL(Unknown Source) 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.main(Unknown Source)
What did I leave out?
Don
Jared Cope
Ranch Hand
Posts: 243
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I assume that your localhost:8080/webpad/war/index.html page has a link to the .jnlp file that the user clicks on.
Can you post the contents of this file. It may be a bit more obvious what it going on then.
Cheers, Jared.
[ December 15, 2004: Message edited by: Jared Cope ]
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
don cline
Ranch Hand
Posts: 35
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The .jnlp file as provided by Sun:
<?xml version="1.0" encoding="utf-8"?> <!-- @(#)webpad.jnlp1.2 02/07/17 Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. --> <jnlp spec="1.0" codebase="http://172.27.27.140:8080/webpad"> <information> <title>WebPad 1.0</title> <vendor>Sun Microsystems, Inc.</vendor> </information> <resources> <property name="publish-url" value="$$context/publish"/> <j2se version="1.3"/> <jar href="webpad.jar" version="1.0"/> <jar href="jlfgr.jar" version="1.0"/> <extension name="Help System" href="javahelp.jnlp"> <ext-download ext-part="javahelp" download="lazy" part="help"/> </extension> <jar href="holidays.jar" version="1.0" download="lazy" part="help"/> </resources> <application-desc main-class="WebPad"/> </jnlp>
Thanks in advance
Don
don cline
Ranch Hand
Posts: 35
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
OOPS...
One of the lines in the .jnlp file is incorrect and should read:
<jnlp spec="1.0" codebase="$$codebase">
The line I showed was an attempt to fix the problem...
Don
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
sample webpad not working
Is It bug in web start?
missing from the launch file: jnlp
javax.jnlp
The field jnlp codebase has an invalid value: $$codebase
More...