cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 web app preview locked files

Former Member
0 Kudos

Hi,

I'm working on a SAPUI5 test project and after I run the SAPUI5 application with Run as -> Web app preview the application starts in the integrated Eclipse browser. I can copy this url into Google Chrome and this works fine. But when I try to change the files I get a locking issue on save. The only solution is to close the web app preview, save the changes and restart the web app preview (and this generates a new port number).

I searched for this issue and I got several hits related to the integrated Eclipse Jetty server. I don't know if Web app preview also uses a Jetty server. I can't find a straightforward solution for this issue. I'm using Eclipse Kepler with SAPUI 1.6.3.

Thanks in advance for your help.

Regards,

Jeroen

Accepted Solutions (0)

Answers (2)

Answers (2)

UweFetzer_se38
Active Contributor
0 Kudos

Hello Jeroen,

I had the same problem with Eclipse Kepler (with Juno it worked).

Solution: don't use the build in Jetty server but a separate Tomcat.

See also

Best regards

Uwe

Former Member
0 Kudos

Hi Uwe,

Yes, with Tomcat it works fine. Another advantage is that the http port doesn't change.

Best Regards,

Jeroen

Former Member
0 Kudos

Hi Jeroen,

If you are on windows:

http://wiki.eclipse.org/Jetty/Howto/Deal_with_Locked_Windows_Files

This helped me in a non-SAPUI5 related project.

Former Member
0 Kudos

Hi Pieter-Jan,

I'm not sure if SAPUI5 web app preview uses the default jetty server. I can't find the jetty.jar. So I tried the alternate remedy. I added the following to my web.xml

<servlet>

     <servlet-name>default</servlet-name>

     <servlet-class>org.mortbay.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>

But it still doesn't work.

Regards,

Jeroen