My Site Now Powered by Java 8, Tomcat 7 and Wufoo Forms
Join the DZone community and get the full member experience.Join For Free
i recently upgraded my site to use the latest version of apache roller . it was a minor release (5.0.3), but i figured i'd document the steps in case "early onset" comes soon. first of all, to download raibledesigns.com and get it running locally, i perform the following steps:
- backup everything using ~/bin/backup.sh on raibledesigns.com
- scp backup file to local hard drive and expand
- copy root, skins and repository directories to local webapps
- make sure activation, mail, mysql and jta jars are in $catalina_home/lib
- copy roller-custom.properties from raibledesigns.com's $catalina_home/lib
- copy context files from hosted $catalina_home/conf/catalina to local directory
- import database and change roller-custom.properties to match local credentials
next, to upgrade to the latest roller release, i do the following:
- download latest roller release and expand
- copy jars (from web-inf/lib) to existing install (to upgrade dependencies)
- delete any lower-versioned jars from web-inf/lib directory
- copy jsps (from web-inf/jsps) to existing install
- run database migration scripts from web-inf/classes/dbscripts
- use a diff tool (like smartsynchronize) to compare new vs. existing
- test and troubleshoot (if there's startup errors)
this process has worked well for the last 10 years, and it's been in my head the whole time. it's bound to escape someday.
contact form enhancements
in addition to upgrading roller, i also upgraded tomcat 6 to tomcat 7.0.52. in doing so, i found jakarta's mailer taglib doesn't work with tomcat 7 . as you can tell from the aforementioned thread, i've known this for several years. that's the only thing that's stopped me from upgrading tomcat the past couple years.
if i'd found it sooner, i likely would've used brace forms for my contact form.
ever since i switched to a new look and feel , there's been improvements i wanted to make.
the stylesheet switching doesn't happen as fast as i'd hoped (there's a flash even if using cookies), so i'll likely be converting some theme-setting logic to the server-side. the html5 version of the facebook like button requires you to specify the "data-colorscheme" in markup so this further supports moving to the server.
powered by java 8
to make this site run on java 8, i had to move to a new server. keith did a bunch of work on my old server to get java 8 working, but found linux jdk 7 code has dependancies on the 2.6 kernel. if you're reading this post, the dns changes have propagated. this means i have my first java 8 app in production!
secured by ssl
the last change i made was to start using my ssl certificate on this site. you can read about the challenges i encountered on the roller mailing list . the final solution involved changing my absolute url to use https and then changing my theme to use the following for its base.
<base href="$absbaseurl.replace('https:', '')" />
i also had to change a number of iframes to use src="//..." instead of src="//...". to force https for the admin pages, keith configured apache to do the redirect. using roller to redirect resulted in infinite loop errors.
this means you can now access this site using https://raibledesigns.com or http://raibledesigns.com , whichever you prefer. speaking of ssl, you might wonder if this new server is affected by the heartbleed bug . according to keith, it is not.
this server is still running openssl 1.0.0 which was shipped with centos 6.1, and the heartbleed vulnerability appeared in openssl 1.0.1 which shipped centos 6.5.
this site has undergone quite a few updates this month: roller 5.0.3, tomcat 7.0.52, a wufoo contact form (+ recent tweets on the same page) , java 8 and optional ssl. if you see any issues, please let me know.
may 8, 2014 update : i decided to revert to "http" for the absolute url instead of "https". however, i've updated all "src" attributes on <iframe> and <img> tags to use schema-less urls (// instead of http://). this means that both secure and non-secure urls should work.
Published at DZone with permission of Matt Raible, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.