You can deploy 4.x servlets and JSPs outside of web applications, but only in the default virtual server. For information, see the Sun Java System Web Server 6.1 SP9 Programmer’s Guide to Web Applications.