Tomcat creates WEB-INF/lib but doesnt explode war files (GWT)

前端 未结 3 1770
借酒劲吻你
借酒劲吻你 2021-01-24 06:16

Has anyone seen anything like this:

I\'m using a script which basically undeploys an app using ant, puts the new war file in the deploy directory and then deploys it usi

相关标签:
3条回答
  • 2021-01-24 06:42
    1. Have you tried cleaning the tomcat work and temp directories?
    2. What does the deploy script do? Does it first remove the old war, and then copy the new war, or does it overwrite the war file?
    3. What happens, if you create your war manually (just zip the contents you need), and put it in the webapps directory?
    4. Maybe look at the auto-deploy configuration in your conf/server.xml file: <Host unpackWARs="..." autoDeploy="..."/>
    0 讨论(0)
  • 2021-01-24 06:47

    War file is nothing but a zip file and it will get deployed once you start/ stop the server. Not sure about ant "Undeploy"

    Kirubha

    0 讨论(0)
  • 2021-01-24 06:50

    FWIW, we experienced something similar on a fresh, simple* WAR deployment on Tomcat 7.

    I'm seeing compiled JSP classes appear as I visit the respective page. So the app works, it's just not exploded to the work area... not sure why.

    I'm having a hard time explaining what has happened because this was an incremental application upgrade and the initial install required an identical process**, which went very smoothly. This suggests it isn't a tomcat configuration issue.

    * We use deployment descriptor (xml) files so we can reuse the same war

    ** The process was to manually run a script that was packaged in the WEB-INF folder

    [Update] I may have just answered my own question. If I'm reusing WAR files for different deployment contexts then perhaps a common exploded WAR is being used ?!

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