VRaptor 4 delivers high productivity to your Java Web applications on top of CDI. VRaptor is an opensource MVC framework with a large developers and users community. This is your first logic on FirstController.java: @Controller public class FirstController { @Inject private Result result; @Get("/home") public void home() { result.include("message", "Hello, VRaptor 4!"); } } And HTML file placed at