wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat 6 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat 6 problem" Watch "Tomcat 6 problem" New topic
Author

Tomcat 6 problem

Greg Bag
Ranch Hand

Joined: Dec 25, 2010
Posts: 52
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.





Here are the server's settings.



THANK YOU IN ADVANCE.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

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.


JBoss In Action
Greg Bag
Ranch Hand

Joined: Dec 25, 2010
Posts: 52
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?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

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.
Greg Bag
Ranch Hand

Joined: Dec 25, 2010
Posts: 52
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 6 problem