Re: Deploying WebPad as a webapp in tomcat
Keith Beef wrote:
..
I have a bit of a problem with something I'm trying to do with Java,
[quoted text clipped - 6 lines]
as an application, launched via web start? (where) On the
server, or on the client?
I expected to see an HTML page with a link, on clicking on the link the
jnlp should start up the WebPad application on the client machine.
OK.. this one I presume..
<http://java.sun.com/j2se/1.5.0/docs/relnotes/samples.html#webpad>
..it can be run in a sandbox..
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> publish in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2385)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2361)
... 46 more
Now I know that Tomcat is picky, and wants UNIX-style directory separators ..
No, it is actually wanting 'URL style', ..
..even though this is being deployed on a Windows OS (i.e. / and not \).
..which is, and always was, '/' in all situations, on all OS'.
I suggest you work to getting this web pad working from a
web page before worrying about figuring what is wrong with
the WAR based deployment. Do you have a publicly
accessible server? Can you put up a test web page
(pure uncompressed HTML) with a link to the JNLP?
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-setup/200705/1