• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 6 problem

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Greg Bag
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic