You are hereScala

Scala


The Scala programming language

Deploying an assembly jar file with sbt

The assembly-sbt plugin for sbt 0.7, the (not so) simple build tool for scala, creates a nifty fat jar containing everything to run an application anywhere. You may want an additional task to automatically copy it to a server. Here's how (Linux only, sorry).

Authentication using Unfiltered for Scala

Since it took me a while to figure this out (though it seems very obvious now), here's how I do HTTP authentication in Unfiltered while preserving the authenticated user for later access:

Splitting large Axis generated files into separate classes

I recently had to struggle with a SOAP webservice class generated by Apache Axis2. The class file was more than 13 MB in size, and contained more than 290.000 lines of code - much more than Eclipse, IntelliJ IDEA or NetBeans could handle. After some rather unsuccessful attempts to work around the problem, I finally decided to write a little tool to split the huge file into smaller pieces.

Creating Java Classes from WSDL file using Apache Axis 2

Since I didn't found this on the internet (but some rather outdated or complicated tutorials) here's how to create Java class as wrapper for a given SOAP webservice.

Apache Buildr and Scala 2.8

Quick hack: to use Apache Buildr with the lates Scala 2.8 release candidate (RC3 at the time of writing) open up the file /usr/lib/ruby/gems/1.8/gems/buildr-xxx/lib/buildr/scala/compiler.rb and change the DEFAULT_VERSION to DEFAULT_VERSION = '2.8.0.RC3'

This works for Ubuntu 8.04, with Buildr 1.3.5 installed. You will need root or sudo privileges, though.