package com.oreilly.rdf.tenuki.jaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import com.sun.jersey.api.view.Viewable;

@Path("/")
public class UIResource {

	@GET
	public Viewable landingPage() {
		return new Viewable("/templates/test.vm");
	}
}

package com.oreilly.rdf.tenuki.jaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import org.apache.velocity.VelocityContext;
import org.apache.velocity.context.Context;

import com.sun.jersey.api.view.Viewable;

@Path("/")
public class UIResource {

	@GET
	public Viewable landingPage() {
		Context c = new VelocityContext();
		return new Viewable("/templates/test.vm", c);
	}
}

Create a context even if we aren't using it just at the moment