![](/img/trans.png)
[英]How can I prevent Tomcat6 from pre-loading JDBC Drivers in WEB-INF/lib?
[英]when i m trying to make .war file of my WEB-INF folder to deploy in tomcat6, cmd shows error java.io.Filenotfound Exception now., what can i do
当我试图制作我的WEB-INF文件夹的.war文件以部署在tomcat6中时,
Microsoft Windows (Version 6.2.9200)'
(c) 2012 Microsoft Corporation. All rights reserved.'
C:\Program Files (x86)\Apache Software Foundation\Tomcat6.0\webapps>jar cvf mywebapp.war */ ..
java.io.FileNotFoundException: mywebapp.war (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
at sun.tools.jar.Main.run(Main.java:167)
at sun.tools.jar.Main.main(Main.java:1147)
然后cmd显示错误
“ java.io.Filenotfound异常:mywebapp.war(访问被拒绝)”我该怎么办..来制作.war文件。
尝试通过"run as administrator"
以管理员权限启动tomcat
要么
从folder_name>properties>security
将属性更改为“ Apache Software Foundation”及其子文件夹
要么
将tomcat
安装到c:\\
驱动器(操作系统安装驱动器)以外的任何其他位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.