so i figured that maybe i did not add the jar files to the server. i opened the server and added some jar files
(C:\Program Files\jboss-4.0.5.GA\server\default\lib) I put it there because i seen many jar files there(i think i will be scolded in this....).
i ran the application again. but this time it yielded a differend error.
The Commons FileUpload library needs the Commons IO library in order to work. Luckily, the Apache package names are pretty consistently named, so as you get more experienced you'll be able to see what's missing just by looking at the error message.