I have copied the sample.war file in webapps directory of tomcat.

我已将sample.war文件复制到tomcat的webapps目录中。

I can acess localhost:8080.

我可以访问localhost:8080。

deploying of wars is automatic by default -i have checked my webapps folder for an extracted folder "sample"

默认情况下,部署战争是自动的-i已经检查了我的webapps文件夹中的解压缩文件夹“sample”

but it is not extracted.why the war file is doesn't extracted.please give me solution for this.

但它没有被提取。为什么war文件没有被提取。请给我解决方案。

2 个解决方案

#1


21

Delete that war file from webapps/ directory. Then open link http://localhost:8080/ in your web browser. Click Tomcat Manager then enter user name and password. In next page you can see one option called "WAR file to deploy". Select your war file from there and click "deploy" button.

从webapps /目录中删除该war文件。然后在Web浏览器中打开链接http:// localhost:8080 /。单击Tomcat Manager,然后输入用户名和密码。在下一页中,您可以看到一个名为“要部署的WAR文件”的选项。从那里选择您的war文件,然后单击“部署”按钮。

If you want auto deployment when you copy files to webapp/ directory. Then make sure that you server.xml file contains the following values:

如果要在将文件复制到webapp /目录时进行自动部署。然后确保server.xml文件包含以下值:

autoDeploy="true"
unpackWARs="true"

Just search these values in your server.xml file and edit values as shown above

只需在server.xml文件中搜索这些值并编辑值,如上所示

For more info see Deploy A New Application from a Local Path.

有关详细信息,请参阅从本地路径部署新应用程序。

更多相关文章

  1. Java,Socket&TCP编程 实现多线程端对端通信与文件传输
  2. Java读取Unicode文件(UTF-8等)时碰到的BOM首字符问题,及处理方法
  3. 包含带标记的值的XML属性文件
  4. 使用Maven时,不要将JAR添加到Google Cloud上的暂存文件夹中
  5. Java jasypt对.properties配置文件密码加密
  6. Java调用gc机制强制删除文件
  7. 将日期保存到序列化文件
  8. javascript(六)js事件绑定浏览器兼容解决方案 attachEvent addEve
  9. 新手求教RandomAccessFile读写文件到底写入的是什么?

随机推荐

  1. Android之普通对话框
  2. Android : Resource is not a Drawable (
  3. android获取sd卡路径方法:
  4. Android Dex文件结构
  5. android文档笔记(1)
  6. Android新设备“购买力”排行榜:东北、西
  7. Android SDK Tools r24.2
  8. Android 动态获取文本宽度
  9. 【移动安全实战篇】————5、Android屏
  10. Android webview should overrideUrlLoad