Intellij idea 将静态文件重新部署到jetty时发生intellij11错误

Intellij idea 将静态文件重新部署到jetty时发生intellij11错误,intellij-idea,web-deployment,jetty-8,Intellij Idea,Web Deployment,Jetty 8,全部 我得到了和这一模一样的场景- 唯一的区别是,我尝试将我的应用程序部署到windows 7上intellij11内部的本地jetty8 错误是 Error copying 'myproj\src\main\webapp\less\defaults.less' to 'myproj\target\myproj.war \less\defaults.less'.: myproj\target\myproj.war\less\defaults.less (The requested operat

全部

我得到了和这一模一样的场景-

唯一的区别是,我尝试将我的应用程序部署到windows 7上intellij11内部的本地jetty8

错误是

Error copying 'myproj\src\main\webapp\less\defaults.less' to 'myproj\target\myproj.war
\less\defaults.less'.: myproj\target\myproj.war\less\defaults.less 
(The requested operation cannot be performed on a file with a user-mapped section open)
我更新了webdefault.xml并将useFileMappedBuffer设置为false,后来又在web.xml中添加了过滤器配置,该配置也应该覆盖默认设置,但没有任何帮助

我使用默认的etc/jetty-jmx.xml启动jetty


我遗漏了什么?

最后我设法解决了这个问题

在这个页面之后,不幸的是,这个页面已经过时了,唯一能让资源解锁的方法是

<servlet>
 <servlet-name>default</servlet-name>
 <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
 <init-param>
   <param-name>useFileMappedBuffer</param-name>
   <param-value>false</param-value>
 </init-param>
 <load-on-startup>0</load-on-startup>
</servlet>

违约
org.eclipse.jetty.servlet.DefaultServlet
useFileMappedBuffer
错误的
0
请注意,从第7版开始,包已更改为org.eclipse.jetty。其他的解决方案似乎被打破了,因为jetty不识别上下文引用或抛出其他异常


希望这会对某人有所帮助。

我终于设法解决了这个问题

在这个页面之后,不幸的是,这个页面已经过时了,唯一能让资源解锁的方法是

<servlet>
 <servlet-name>default</servlet-name>
 <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
 <init-param>
   <param-name>useFileMappedBuffer</param-name>
   <param-value>false</param-value>
 </init-param>
 <load-on-startup>0</load-on-startup>
</servlet>

违约
org.eclipse.jetty.servlet.DefaultServlet
useFileMappedBuffer
错误的
0
请注意,从第7版开始,包已更改为org.eclipse.jetty。其他的解决方案似乎被打破了,因为jetty不识别上下文引用或抛出其他异常


希望这会对其他人有所帮助。

为我工作,但我不喜欢为web.xml中的特定容器指定servlet…为我工作,但我不喜欢为web.xml中的特定容器指定servlet。。。