Refactoring
Update agent-web and create profile for the jboss 4 server.