This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes The requested operation cannot be performed on a file with a user-mapped section open Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "The requested operation cannot be performed on a file with a user-mapped section open" Watch "The requested operation cannot be performed on a file with a user-mapped section open" New topic
Author

The requested operation cannot be performed on a file with a user-mapped section open

K.Suresh Kumar
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
Hi Friends,
I am using sun web server7.0. When i am trying to update the struts-config.xml file through my application. I got the following error message.

The Struts-ConfigXML couldn't be Modified Reason: C:\Program Files\SunWebServer7\https-java1.touchpoint.com\web-app\java1.touchpoint.com\gctnew1.0\WEB-INF\struts-config.xml (The requested operation cannot be performed on a file with a user-mapped section open)java.io.FileNotFoundException: C:\Program Files\SunWebServer7\https-java1.touchpoint.com\web-app\java1.touchpoint.com\gctnew1.0\WEB-INF\struts-config.xml (The requested operation cannot be performed on a file with a user-mapped section open)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at java.io.FileWriter.<init>(FileWriter.java:46)
at com.tps.datareader.SaveStrutsConfigXML.executeSaveStrutsConfigXML(Unknown Source)
at org.apache.jsp.admin.saveStruts_jsp._jspService(saveStruts_jsp.java:157)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:345)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:311)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:391)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:272)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:232)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:160)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at com.sun.webserver.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:149)
at com.sun.webserver.connector.nsapi.NSAPIConnector.service(NSAPIConnector.java:995)

Note : I am reading the file while i trying to update the file..

Please help me to solve this issue....

Thanks & Regards,
Suresh Kumar.K
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The requested operation cannot be performed on a file with a user-mapped section open
 
Similar Threads
Struts in Sun Java System Web Server ??????
Move Struts application to sun web server 7 from tomcat
I can not write in file
Unable to compile jsp in tomcat
checking that an excel file is already opened by another application