Eclipse keeps running my old web application

前端 未结 4 1631
南旧
南旧 2020-12-11 08:21

OMG - what is going on with Eclipse (3.3 Europa) - has anyone come accross this problem (bearing in mind I have been messing about with uninstalling different Tomat containe

相关标签:
4条回答
  • 2020-12-11 09:02

    Probably the easiest way to get past this is to define a new server.

    Right-click in the Servers window and select New, or when you do 'Run On Server' select Manually define a new server. You can have multiple servers defined using the same Tomcat runtime (they'll all have separate configs and deployment directories defined by -Dcatalina.base=...), but don't run them at the same time unless you change the ports they're listening on.

    The new server will use a path like

    <<yourEclipseWorkspace>>\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
    

    for the Tomcat conf and webapps directory.

    Try running on this server. If it works, you can compare settings with the old one, maybe try deleting the app from it and re-deploying, and figure out what you might have done to cause the problem. Or just delete the original server config.

    As far as your second problem, I'm not sure. I'd try a new server config first, get it working, stop the server, do a 'Clean' on your project, delete anything in the tmp1\work\Catalina directory, and restart the server (you could remove and add your project to the server again too to be really clean).

    Check the console messages too to make sure there were no errors related to this.

    0 讨论(0)
  • 2020-12-11 09:10

    Have a look at:

    Windows>Preferences>Server>Launching...

    and:

    Project>Build Automatically

    maybe you accidentally disabled the auto-deploy features.

    0 讨论(0)
  • 2020-12-11 09:16

    A super-silly question: Does all your webproject and related projects compile correctly?

    Also check your output folder for classes (Project Properties -> Java Build Path -> Source Tab) then go to your filesystem and check permissions and modification dates.

    Hope this will help you.

    0 讨论(0)
  • 2020-12-11 09:19

    I had a similar problem, only without the added complexities of a web app. I'm just running a JUnit test and it's running the old code. I went into Configure Build Path, on the bottom of the Source tab, and looked at Default Output Folder, which said myproject/bin. The Package Explorer doesn't even show a bin folder, but when looking at the file system there's a bin folder there. I deleted the bin folder, refreshed the package explorer tree, and it worked. This behavior was in Helios and occurred with AND without Build Automatically selected...looks like a bug to me.

    Dave

    0 讨论(0)
提交回复
热议问题