Orbeon upgrade

Notes on upgrading from Orbeon Forms 3.8 to 3.9 Need to change theme.xsl as follows: From:<!– Copy body attributes –> <xsl:apply-templates select=”/xhtml:html/xhtml:body/@*”/> <xsl:apply-templates select=”/xhtml:html/xhtml:body/node()”/> <xsl:for-each select=”/xhtml:html/xhtml:head/xhtml:script”> <xsl:element name=”xhtml:{local-name()}” namespace=”{namespace-uri()}”> <xsl:apply-templates select=”@*|node()”/> </xsl:element> </xsl:for-each> To: <!– Body –> <xsl:apply-templates select=”/xhtml:html/xhtml:body”/> <!– Handle post-body scripts if present. They can be placed here by oxf:resources-aggregator –> <xsl:apply-templates select=”/xhtml:html/xhtml:script”/> […]

Maven settings for deployment using scp

Create a file settings.xml in ~/.m2 that’s C:Documents and Settingsiwright.m2 in my case using cygwin on XP Create a server entry with the necessary info e.g. if using ssh<servers> <server> <id>cggh</id> <username>iwright</username> <privateKey>C:Documents and Settingsiwright.sshid_rsa</privateKey> <passphrase>mypassphrase</passphrase> <directoryPermissions>775</directoryPermissions> <filePermissions>664</filePermissions> </server> </servers> Note that if you are using cygwin then you will probably need to copy your […]

Using Roo on an existing database

Creating a web application to update an existing database with Roo is extremely simple… project –topLevelPackage org.cggh.quac –projectName quac –java 6persistence setup –provider HIBERNATE –database MYSQL –databaseName drupal_users –userName drupal6 –password drupal6database introspect –schema drupal_usersdatabase reverse engineer –package ~.model –schema drupal_userscontroller all –package ~.web Some notes:Make sure that the database has foreign keys set upIf […]

Tomcat JNDI configuration for auto redeploy

With thanks to http://www.mail-archive.com/users@tomcat.apache.org/msg74521.html Although it’s deprecated putting the context in server.xml seems to work quite nicely however if you want to auto deploy e.g. on a CI server then you need to get a bit cleverer…. Don’t keep the application in the appBase – locate it outside of Tomcat’s directory structure, and use the […]