caelum/vraptor — pull request #421 by aldrinleal (2011-12-14 10:17:06+00:00)
Title: FileNotFound Exception when Running Under Webby

Webby (https://github.com/sonatype/m2eclipse-webby) is an M2Eclipse Plugin which lets you run (via Cargo) an Embedded Container from Maven War Projects. This way, it lets you do class reloading on the fly, as well as with excellent integration between Maven and Eclipse.

However, Webby simply does not create a WEB-INF/classes directory. Thus, when running vraptor applications, one must be extremely careful. In particular, it throws up a FileNotFoundException.

Actually, the WEB-INF/classes dir seems not to be obligatory per se. Thus, I added a small workaround to simply return an Empty Collection when it fails.

vRaptor Users are advised to make it explicitly which classes it should scan, via ```br.com.caelum.vraptor.packages``` ```context-param``` on ```web.xml``` file. Example:

```

br.com.caelum.vraptor.packages
com.ingenieux.bpnc.web

```