I have downloaded example session bean servlet from here http://www.roseindia.net/jboss/sessionbeanservlet.shtml , download is under “Download the code of this lesson.” label. Files are compiled using ant and just after downloading it works. I compile ant script and build is successfull but when I delete one letter from one of the files with .java code and write it back and save it I receive few errors.
Output:
http://pastebin.com/H0JYUckX
Any ideas?
//I took src files and I’ve made netbeans project and it works. So I don’t more have to worry about this issue. Greets.
I went back to this issue and solution is adding servlet-api.jar and jboss-j2ee.jar to ant/lib folder. In console I could see information that build is successful, but really this files weren’t compiled. It just assumed that .class files are in package so it doesn’t need to compile it again. Message was “BUILD SUCCESSFUL” but it hasn’t been compiled at all. So when I deleted them real compilation started and I needed to provide this .jar files.
Greets.