Windows 7 蚂蚁罐头';不能写入目录
由于以下错误,我似乎无法在tomcat 7上安装spring mvc应用程序: BUILD FAILED C:\Users\xxxx\Work\My side projects\FreedomSpring\build.xml:106: java.io.FileNotFoundException: C:\spring (Access is denied) 我注意到,每次我进行构建、deply、deploywar和安装时,c:/spring文件夹总是被设置为只读?我试图手动更改该文件夹的权限,只是尝试从我的构建中运行install ant目标,但没有成功。build.xml成功地创建了WAR文件和文件夹,其中包含c:/spring中的二进制类文件,但它无法将其保存在tomcat7上 有什么建议吗 顺便说一下,我使用的是64位windows 7 我遵循这个指南 下面是m web.xml(如果有帮助):Windows 7 蚂蚁罐头';不能写入目录,windows-7,ant,Windows 7,Ant,由于以下错误,我似乎无法在tomcat 7上安装spring mvc应用程序: BUILD FAILED C:\Users\xxxx\Work\My side projects\FreedomSpring\build.xml:106: java.io.FileNotFoundException: C:\spring (Access is denied) 我注意到,每次我进行构建、deply、deploywar和安装时,c:/spring文件夹总是被设置为只读?我试图手动更改该文件夹的权限,只是尝
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>FreedomSpring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FreedomSpring</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
</web-app>
自由泉
org.springframework.web.servlet.DispatcherServlet
1.
自由泉
*.htm
index.jsp
log4jConfigLocation
/WEB-INF/log4j.xml
org.springframework.web.util.Log4jConfigListener
这是我的servlett.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<!-- the application context definition for the springapp DispatcherServlet -->
<bean name="/hello.htm" class="springapp.web.HelloController"/>
</beans>
那么ant如何获得写入路径的权限呢?有人吗?正如我所说,我已经编辑了c:/spring的权限,甚至关闭了UAC,但它仍然不工作?
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>FreedomSpring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FreedomSpring</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
</web-app>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<!-- the application context definition for the springapp DispatcherServlet -->
<bean name="/hello.htm" class="springapp.web.HelloController"/>
</beans>