Hey guys, I have ECLIPSE EE and Tomcat 6 integrated into one. When I create servlets, they works in most instances, but occasionally I get this error and sometimes I can't continue because this pops up. I've tried different things but the same error keeps popping up. Can anyone figure this one out. Both my TOMCAT and ECLIPSE EE are installed to a flash drive.
One possible solution: move to Linux! Windows often has files locked and thus makes it difficult to replace them. Sometime you can replace a file once but not twice. Its just a weird Windows glitch that many have learned to live with or work around.
Another possible workaround is to reboot Tomcat between deploys.
Thanks Pete for your reply. But Tomcat automatically reboots in Eclipse EE after a change has been made to a servlet. So this isn't the issue. I don't know what else to do. I'm living with it. It's not causing problems, but it's damn annoying. If you click 2-3 different servlets one after another, it tends to pop up that message. If you make a change to one servlet, then hit the run button, the message ceases to exist. Catch my drift?
My guess is that Eclipse and tomcat are getting in each other's way. Tomcat is in the middle of deploying the application, thus it needs the file, at the same time that Eclipse is building the application. I can think of two solutions: first, slow down! Second, turn of automatic builds in Eclipse (Windows | Preferences | General | Workspace). Then after you can edit the servlets and are ready to try again, right-click the project and select Build.
P.S. Turning off automatic builds is one of the first things I do when configuring a new Eclipse installation.
Joined: Dec 25, 2010
I tried turning off auto build but the issue still persists. I'm guessing your first solution was right. SLOW DOWN. lol. When I go in a slow pace, everything is fine. Anyways why would you click 2-3 servlets right after another? haha. Thanks Pete.