facebook

Redeploy Problems with Tomcat

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #220900 Reply

    Bdoane
    Member

    Periodically I am having problems redeplying my web app to Tomcat.

    Not all the files are being copied to the webapp directory. For example none of the jsp pages are being copied.

    #220925 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    Also tell us what kind of deployment (packaged/exploded), what version of Tomcat, if the app server is running when you deploy, and if you are getting any status messages after hitting “redeploy” that suggest the deployment actually failed.

    I’m guessing this is a file lock issue off the top of my head. Doing a full redeploy to a running server on Windows will likely cause the deployment to fail because the old JARs cannot be removed until Tomcat releases the read-locks on them. If you use an exploded deployment you likely don’t need to use manual redeployment again since changes are hot-synced in realtime as they happen, then you just need to setup Tomcat to reload changes (set the context to reloadable=true using Tomcat administrator).

    #220930 Reply

    Bdoane
    Member

    Sorry,

    Running Tomcat 5.0.27
    Eclipse 3.0.1
    on WinXP Pro

    I think that I found the problem. It happens when I change to a newer version of the source code from the file system. Usually I access our svn repository from within MyEclipse but certain times I use Tortoise SVN.

    I can get the re-deploy to work when reset the project properties in the MyEclipse-Web preferences.

    #220931 Reply

    Scott Anderson
    Participant

    You should also be able to get the redeploy to pick up your changes through Tortoise by right-clicking on your project in the Package Explorer view and selecting Refresh.

    #221080 Reply

    I am having problems deploying to Tomcat 5.0 now too. My config is:

    Container: Tomcat 5.0.27
    Eclipse: 3.0.1
    MyEclipse: 3.8.3

    The symptoms is that in the .war file for all the files in the WEB-INF root (i.e. not “classes” etc), ME generates the WEB-INF directory name in lowercase. In the cases where there are subdirectories, the name is generated correctly in uppercase.

    Please explain?

    #221115 Reply

    Riyad Kalla
    Member

    Hendie,
    We’ve had this reported 2 other times and it was always a red herring. If you are unzipping the WAR file with WinZip, this is why you are seeing lowercase names, try opening the WAR with another archiver and/or just unjarring it on the command line using jar -x

    Here are the other posts:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3669-highlight-lowercase+webinf.html
    AND
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-2871-highlight-lowercase+webinf.html

    #221195 Reply

    Thanks Ryad, I guess it’s just another reason to be moving my home workstation to Linux asap! 🙄

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Redeploy Problems with Tomcat

You must be logged in to post in the forum log in