Scalatra blocking my project files when running in Windows XP

30 views
Skip to first unread message

Karol Klonowski

unread,
May 10, 2013, 6:23:49 AM5/10/13
to scalat...@googlegroups.com
Hi
I'm struggling with development in Scalatra. Everytime I run my project, I am unable to save into any of the files used. Doesn't matter which IDE I use, the files seem to be in usage, preventing me to making any changes.

Here is a screenshot: 


I run application with sbt, files get blocked when I start with 'container:start' 

XP is the company policy, obviously...

Ideas?

Thanks
KK

Stefan Ollinger

unread,
May 10, 2013, 6:47:56 AM5/10/13
to scalat...@googlegroups.com
I guess it is Jetty which causes your file to lock.
See here: http://wiki.eclipse.org/Jetty/Howto/Deal_with_Locked_Windows_Files

Regards,
Stefan
--
You received this message because you are subscribed to the Google Groups "scalatra-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalatra-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Karol Klonowski

unread,
May 13, 2013, 4:40:45 AM5/13/13
to scalat...@googlegroups.com
Great, it worked, thanks!

For future reference of anyone struggling with the same problem, the easiest way seems to be include the following to your web.xml 
<servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> <!-- or wherever your jetty is -->
        <init-param>
            <param-name>useFileMappedBuffer</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>0</load-on-startup>
   </servlet>
Reply all
Reply to author
Forward
0 new messages