Deploying the example webapp
This page explains how to get the demo webapp up and running.
There are a series of changes that must be made to the webapp before any services run. The WAR file as provided will load the XMPPServiceManagerServlet, but each demo application has been commented out and will not load.
This for several reasons.
First, a usercode and passsword must be supplied for each service to log on to an XMPP network. The below line, line 43 in web.xml, is a commented out service:
#gradient://user:password@jabber.org [tab] net.ex_337.xmpp.fwork.examples.DemoGradientService
Once you have created a new user for the jabber server on which you will be running this service, you should change the login details as highlighted above. Removing the "#" will then activate the service.
Second, the URL from which the SVG map is downloaded must be changed. This is at line 61 in web.xml:
map url [tab] http://ex-337.net/xmppservices/svg/map.svg
Although this URL currently resolves, it may not do so in future.
Thirdly, the same goes for the images referenced in map.svg itself which can be found in the "svg" directory. Two modifications should be made, the first at line 352:
<image transform="matrix(0.555102 0 0 0.555268 -5368.74 5205.7)" x="0" y="-8696" width="15792"
height="12444" xlink:href="http://ex-337.net/xmppservices/images/spainRelief.png"/></g>
And also at line 1545:
<image transform="matrix(0.930151 0 0 0.929032 86.3544 3637.68)" x="0" y="2198" width="3383"
height="1550" xlink:href="http://ex-337.net/xmppservices/images/canaryRelief.png"/>
Once that's done, you no longer depend on resources living on my server, and the webapp should work perfectly, in thoery.
© 2006. Some rights reserved. Author: Ian Sollars.