How to reload the context of a servlet without restarting tomcat for bundled embedded tomcat server. Just a little hint to as I spent a good hour looking to do this to no avail: Basically, tomcat running under netbeans is configured differently.
Using Netbeans 5.5.1, bundled Tomcat 5.5.17 – if you click on tomcat in netbeans and have a look at the properties, look at the “Catalina Base” directory.
for me, its:
C:\Documents and Settings\tim\.netbeans\5.5.1\apache-tomcat-5.5.17_base
and then look in \conf\Catalina\localhost\ this where your web application configuration files are actually held. You need to edit the appropriate xml file. (my_super_application.xml) and here, within the context node, add in the
<Context docBase= “C:\mypath\build\web” path=”/my_super_applicationServlet” reloadable=”true” />
Then restart tomcat, and change some code, then compile the servlet, or build the application, and after a second it will reload that context.
NOTE: these didn’t work, editing context.xml in web application directory, context.xml and server.xml in
C:\Program Files\netbeans-5.5.1\ enterprise3\apache-tomcat-5.5.17\conf directory (catalina home)
Attended Hackday London at Alexandra palace last weekend. Interesting panels and presentations, flickr machine tags by Dan Catt was hilarious, and Yahoo’s FireEagle was interesting too. Perhaps the name, “Fire Eagle” was too similar to other flying types of fire, as the venue was struck by lightning. This caused the building to think it was being attacked by fire and open up its windows, letting in the rain, thus soaking us and the electrical equipment. So the last presentation was cancelled.
Then the wifi (for me) was utterly non-functional, with a few computers having the same SSID for their ad hoc networks (BT Openzone). Fun Fun Fun!
My contributions were pretty minuscule compared with the end result, of our team (Frozen Indigo Angels) http://Boxr.org – a locative / location based game. Capture the flag but with static pay phones. Teams run to the payphones, ring up a skype bot, which records the number, which team is ringing and records the score… twitter feed for scores and yahoo map for live updates. Very neat! and probably the only Hackday hack that can still work after the weekend!
Back in the UK now. Attended and wherefaired Geocodr.net and went to wherecamp too. Some highlights and notes:
- Microsoft jaw dropping lovely (in browser) 3D rendering
- Googles “hmm, what can we do with that” nothing-new StreetView
- Poly9’s FreeEarth flash globe.
- Experiencing Flickr going offline just when it was really needed! Realising how much a mashup can be dependant on a single link in a long chain.
- Meeting new folk, hanging out with some of the nicest people in the geo.
- Hearing openstreetmap mentioned loads of times, and Mikel begging for people not to mention GeoRSS any more!
- Getting perspectives on data availability in the Middle East and comparing it to the USA and UK.
- Rich Gibson’s “Story” – using technology to aggregate, filter and report back to hold a mirror to oneself “You seem to be playing too much WOW, why dont you pop round your neighbours”
- Where mobile app development -on my list.
- Maplets – on my list
- Yahoo’s FireEagle – on my list
- Playing WhereWolf at wherecamp and being lynched for no good reason, and waking up to the sound of the yahoo display case crashing mysteriously.
- Amateur forensics later that morning…
- Delving into ideas about how to grab softer information about neighbourhoods, gist of a place
- Good session about locative arts.
- At wherefaire, the sonar-coat, a coat with proximity sensors sewn in, and heart rate monitor.
- Doubling the amount of t-shirts I own through schwag.