Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: mvn tomcat:deploy "Cannot invoke Tomcat manager"

  1. #11

    Default

    Hi,

    Once you cleaned it up, can you try

    1) run tomcat:deploy for the first deployment.
    2) run tomcat:redeploy for the following deployments.

    Do you still get same issue?

    Yong

  2. #12
    Join Date
    Dec 2009
    Posts
    10

    Default

    Quote Originally Posted by yqu View Post
    Hi,

    Once you cleaned it up, can you try

    1) run tomcat:deploy for the first deployment.
    2) run tomcat:redeploy for the following deployments.

    Do you still get same issue?

    Yong
    Yong, I am having the same issues. What appears to be happening is tomcat is locking on all the libraries in the community folder. If you attempt to undeploy the app, it removes everything except the lib folder due to file locks. stopping the webapp does not remove these file locks. The only way around this that I have figured is to re-start tomcat, undeploy community and redeploy.

    I do not know if this is a OS depenedent issue as I am running on Windows 7 and don't have the time currently to investigate other operating systems.

    I am also running as Tomcat 6 (latest) as a windows service on windows 7

    edit....
    Additionally, because of these file locks, after the first deploy, redeploy and undeploy do not work correctly.
    Last edited by gbags; Jan 11th, 2010 at 07:59 AM.

  3. #13

    Default

    Hi,

    I am using Windows XP and Tomcat 6.0.20. The redeploy works fine.

    Yong

  4. #14
    Join Date
    Mar 2007
    Location
    Massachusetts, USA
    Posts
    5

    Default Load-time weaving is the cause

    I have the exact same issue on XP with tomcat 6.0.20. This only happens when I use spring-tomcat-weaver.jar to do the load-time-weaving of Aspectj aspects. gbags is probably weaving and yqu is probably not.

    That weaver was the only one that I could get working reliably. It could be that the others (using a -javaagent) work the first time but not after a redeploy. If anyone knows how to get redeploy working again, please comment.

  5. #15
    Join Date
    Dec 2010
    Posts
    1

    Default Same problem

    Hi,
    I have the same problem. I have LDAP security in the realm of the server.xml.
    When trying to build with the maven, it is looking for the default user authentication (admin/"") for the manager application and fails.
    Any help?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •