Access denied when jsp writes to a`network  file system

Hi
Can anyone help. Im having big problems with my web application which was working fine when it was hosted on a tomcat windows NT machine. The application was recently upgraded to a Windows 2000 machine. My jsp page which has to write to a network drive can no longer do so. I keep getting ACCESS DENIED.
My jsp page is as follows:
<html>
<head><title>test</title></head>
<body>This is a test page
<jsp:useBean
id="sendSMS"
scope="page"
class="podsystembeans.phonetrackbeans.FileWrite"
/>
<%
String sms = sendSMS.testIO();
out.println(sms);
%>
</body></html>My javabean is as follows:
package podsystembeans.phonetrackbeans;
import java.io.*;
public class FileWrite
     public String testIO(){
          try{
                   // Create file
              FileWriter fstream = new FileWriter("R:/outt.txt");
             BufferedWriter out = new BufferedWriter(fstream);
              out.write("Hello Java");
              //Close the output stream
              out.close();
          }catch (Exception e){//Catch exception if any
            System.out.println("Error testing : " + e.getMessage());
     return "success";
}OBSERVATION
If i try and write the file to the local machine for example C and D drives then it works. If i try and write the file to R drive which is another windows 2000 machine then i get access denied. Also if i try and write to a L drive which is a windows NT machine then i get the same message too.
If i run the above bean as a stand alone application with
public static void main
and I run it then it will work and write to any drive on the network.
Everytime my application fails to write to the network drive my windows machine shows the mapped drives with a red cross on it. I have applied the latest service packs and i have followed microsofts suggestions editing the registry autodisconnect keys. But i am still having problems and it is my java app which is causing it.
SETTINGS
Windows 2000 service pack 4
Tomcat 5 installed on d drive
java 5 installed on c drive
mapped network drives to other machines , the network is a 192.168.1.x network
regards
antek

Hi
Thanks for the pointer, I am trying to follow the suggestion and I want to know is the server.policy same as catalina.policy in tomcat under the conf folder. Also in this policy do i write the ip addresses of the machines i want to access?
Thanks
Antek

Similar Messages

  • Want to access network file system using JFileChooser

    Hi all,
    I want to access and display the drives of a network file system in the JFileChooser dialog. For example by specifying a machine name, I want to access the drives(C, E, F....) of that machine. Can anyone please guide me on how to go forward with this.
    Thanks in advance

    Any links or guidance provided would bhi helpful

  • Access Denied when trying to open a file that is encrypted on network share with EFS

    I just recently enabled EFS on the default domain policy and created a new network share, encrypted a file and added myself to that file and tried to open the file from my workstation.  I then receive an error "Access denied", I also tried
    to create a file and encrypt it on that same share and get an error "The requested operation cannot be completed.  The computer must be trusted for delegation and the current user account must be configured to allow delegation."  
    My steps.
    1. Enable group policy for EFS, removed the expired certificate that was already there and Created a new Data recovery agent.
    2. Created a network share, created a test file, enabled encryption on the file 
    3. certmgr.msc, personal and requested a new certificate, Basic EFS
    4. On the network share and properties of file, advanced, details and added the user
    5. from the workstation tried to access the file, Access Denied.  I can create any file I won't just can't add attributes to encrypt the file or open an encrypted file
    Now if I go to the server where the CA is located which is also the AD server and create share and run the same process it works as expected.  I'm guessing I have to export the cert from the CA server as a pfx and import that to both the server that
    has the network share and the workstation but that still doesn't seem to work.  Maybe I don't understand how EFS works and this is not possible?  Any suggestions would be appreciated.

    You are correct in not understanding how EFS works.
    When you connect to an encrypted file via a network share, the encryption/decryption takes place *on* the server. To enable over the network access, the server's computer account must be trusted for delegation.
    The server actually impersonates the user and creates a user profile on the server (containing the defined EFS certificate and private key). The important thing to remember is that the files is transmitted in clear text from the server to the client.
    See http://blogs.technet.com/b/instan/archive/2010/08/11/remote-efs-decryption-and-trusted-for-delegation-requirements.aspx
    Brian

  • Photoshop cs4 access denied when trying to install from disc in Windows 7 64bit.

    Photoshop cs4 access denied when trying to install from disc in Windows 7 64bit. I tried it in
    safe mode and it starts to install but get an error there as well.
    What do I do?

    So when you put the disk in it won't run correctly? When the disk is inserted you should have a window pop up with 2 options. 1 to install and the other to see what is on the disk. Choose to explore or open the disk. Go to the CS4 folder where the photoshop .exe file is (that will run the setup), right click on the .exe file and choose run as Admin and it should start. See if it will install. If not then read below.
    I am not sure how far you got in the install before so chances are you will have to run the CS4 cleanup utility. 2 levels to run at but don't use 1 or 2 just type in the number 3.
    http://www.adobe.com/support/contact/cs4clean.html
    You may need to run the windows installer cleanup utility too
    http://support.microsoft.com/kb/290301
    Before you try to reinstall the software ensure that adobe reader is not installed. If it is remove it. It has caused issues in the past with vista and CS4 installs.
    Also turn off windows Defender and any anti-virus software. You can keep UAC on in Windows 7.
    During the CS4 install at 90 percent it will almost stop and may take 5 to 10 mins to finish. This is normal. What a pain huh......
    After install is finished, reboot
    After reboot, go to the CS4 64 bit or 32 bit icon (depends on 32 or 64 bit Windows 7) in start area, right click on CS4 64 bit (if you have windows 7 64 bit) and choose properties, compatibility tab and then check run as Admin at the bottom area. Hit apply, ok to close out.
    Now start CS4 and run the updater.

  • Get "Access Denied" when click open a PDF file

    Hi Friends,
    Get "Access Denied" when click open a PDF file linked from SharePoint 2013 page.
    What are the route causes any one is remove the permissions are stopped the inheritance permissions of the library.
    Can anyone face the same issue please help me.
    Thanks,
    Tiru
    tirupal

    Hi,
    If you are able to open the same document earlier,then  anonymous access enabled on your doc library then.
    If you are facing this problem in first time,then you do not have required permission (may be custom permission level has been set ) on it.
    Murugesa Pandian.,MCTS|App.Development|Configure

  • Access Denied when Student Uploads Course in Drop Box

    All of a sudden we are getting access denied when a student tries to upload a course. We have not changed anything on our end. The tabs on the course page are set to drop box for student. The credentials sent over are:
    StudentBody@urn:mace:itunesu.com:sites:school.edu;Student@urn:mace:itunesu.com:s ites:school.edu:SPC16001002134
    The SPC16001002134 is the course identifier.
    Access to the course for student is set to download:
    Access Level: Download
    Credential Definition: Student@urn:mace:itunesu.com:sites:school.edu:${IDENTIFIER}
    Group Access Label: Student

    Hi,
    I need a bit more information. Can you please post your site's domain so that I can inspect it? It appears you have replaced this with school.edu.
    Thanks.

  • ORA-31050: Access denied when try to register XMLSchema

    Dear All
    I got ORA-31050: Access denied
    when tried to run to load XML schema with DBMS_XMLSCHEMA.registerSchema
    Can you advise me what privilege should I grant to the user?
    I tried grant XDBADMIN role but it does nto help
    Thank you in advance
    Artem Rodin

    Dear Mark!
    I realy need you help!
    I can successfully register schema which has complexType declaration as root element, like
    <schema targetNamespace="http://www.oracle.com/PO.xsd"
         xmlns:po="http://www.oracle.com/PO.xsd"
         xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="PurchaseOrderType">
         <sequence>
              <element name="PONum" type="decimal"/>
              <element name="Company">
                   <simpleType>
                        <restriction base="string">
                             <maxLength value="100"/>
                        </restriction>
                   </simpleType>
              </element>
              <element name="Item" maxOccurs="1000">
                   <complexType>
                        <sequence>
                             <element name="Part">
                                  <simpleType>
                                       <restriction base="string">
                                            <maxLength value="1000"/>
                                       </restriction>
                                  </simpleType>
                             </element>
                             <element name="Price" type="float"/>
                        </sequence>
                   </complexType>
              </element>
         </sequence>
    </complexType>
    <!--element name="PurchaseOrder" type="po:PurchaseOrderType"/-->
    </schema>
    But I failed if in the root there is element like
    <schema targetNamespace="http://www.oracle.com/PO.xsd"
         xmlns:po="http://www.oracle.com/PO.xsd"
         xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="PurchaseOrderType">
         <sequence>
              <element name="PONum" type="decimal"/>
              <element name="Company">
                   <simpleType>
                        <restriction base="string">
                             <maxLength value="100"/>
                        </restriction>
                   </simpleType>
              </element>
              <element name="Item" maxOccurs="1000">
                   <complexType>
                        <sequence>
                             <element name="Part">
                                  <simpleType>
                                       <restriction base="string">
                                            <maxLength value="1000"/>
                                       </restriction>
                                  </simpleType>
                             </element>
                             <element name="Price" type="float"/>
                        </sequence>
                   </complexType>
              </element>
         </sequence>
    </complexType>
    <element name="PurchaseOrder" type="po:PurchaseOrderType"/>
    </schema>
    I got the following error stack
    ORA-01031: insufficient privileges
    ORA-06512: at “XDB.DBMS_XDBZ0”, line 218
    ORA-06512: at “XDB.DBMS_XDBZ”, line 6
    ORA-06512: at line 1
    ORA-06512: at “XDB.DBMS_XMLSCHEMA_INT”, line 0
    ORA-06512: at “XDB.DBMS_XMLSCHEMA”, line 26
    ORA-06512: at “XDB.DBMS_XMLSCHEMA”, line 131
    ORA-06512: at “DVLP.PRIME_BRIDGE”, line 73
    ORA-06512: at line 7
    I guess you can reproduce this in-house,
    It's not my schema it is taken from
    XML Database Developer’s Guide - Oracle XML DB
    Structured Mapping of XMLType 5-3
    Example 5–1 XML Schema Definition, po.xsd
    As far as I understand in the second case Oracle tries to create a table to store XML content and fails to do it.
    User that I used has DBA role. What other privileges should I grant to the user? And/or I should grant some additional privileges to "XDB" user?
    This issue has become critical for me, so I am highly appreciate any assistance
    Many thanks in advance
    Best regards
    Artem Rodin

  • I receive "Database access denied" when trying to add component 4543BD

    I receive "Database access denied" when trying to add component 4543BD to my schematic. This component was added from a previous version. I'm using Multisim version 12.0.0  Student edition.
    Solved!
    Go to Solution.

    Hi Diarra,
    I checked my database and  the  4543 is not in the Student Edition. If you opened a schematic that was created in a higher version such as the Educaiton Edition and copied the part to your database, when you place this part you will get the access denied message. 
    Attached is a schematic with the part, you can open it and build you circuit around it.
    Tien P.
    National Instruments
    Attachments:
    4543.ms12 ‏62 KB

  • I get access denied when I try to search on your site.

    Please help me. I get access denied when I try to search on your site. I have emptied cache. I tried Safe Mode the way you suggested. Still access denied (though my printer then would not respond to me and I spent $85 to have my It consultant fix that problem.

    Hi,
    You've opened 3 different threads for the same issue. Please only open '''ONE''' thread per support request.
    Continue here [https://support.mozilla.org/en-US/questions/995124?esab=a&s=&r=3&as=s /questions/995124]
    Closing thread

  • I get access denied when I add a page to a workset in EP 7

    I get access denied when I add a page to a workset in EP 7.
    Please advice.

    Hello,
    This seems to be a permission issue. Assign the user id proper permission, say system_admin_role and then try.
    Regards
    Deb

  • "Access denied" when opening report on RAS Server

    I'm sure I'm doing something wrong, but I've only been able to open a report using the rassdk protocol from the server where my java code is running.    This is fine, but I was hoping for efficiency sake that I could have reports reside on the RAS server itself.
    My ras server definitely has a Crystal report called EBTest.rpt in the c:\temp directory.  I run this code...
    ReportClientDocument rcd = new ReportClientDocument();
    rcd.setReportAppServer(ReportConstants.RAS_HOST);
    rcd.open("c:\\temp\\EBTest.rpt", OpenReportOptions._openAsReadOnly);
    rcd.close();
    According to the JavaDoc, this should work, but I get this error ...
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Access denied. Please check directory setting for files you can access.---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
    Am I missing something trivial?  
    Thanks,
    Eric

    Now that I've got it working, I expected that the RAS-local approach would be much faster than the RAS-remote, but I didn't find that to be the case in a quick test that I did.  Is this what you'd expect?  Or is there a different part of the ReportClientDocument interaction that would be more efficient. 
    From what I've seen, the ReportClientDocument construct and open() are one of the expensive aspects of the report rendering.
    Enclosed are the results from a test I did:
    --PERF--20 iteration test for 'Test local report initialization'
    --PERF--WARMED UP in 3359 ms
    --PERF--,Iterations          ,Total Time (mS)     ,Avg(ms)/Iteration   ,Transactions/sec   
    --PERF--,20                  ,35515               ,1775.75             ,0.5631423          
    --PERF--20 iteration test for 'Test remote report initialization'
    --PERF--WARMED UP in 1828 ms
    --PERF--,Iterations          ,Total Time (mS)     ,Avg(ms)/Iteration   ,Transactions/sec   
    --PERF--,20                  ,37109               ,1855.45             ,0.5389528          
    And here's the bulk of the code that generated those results...
    int numIterations = 20;
    PerformanceUtils.runPerformanceTest("Test local report initialization", numIterations, new Command(){
         public void execute() {
              try{
                   ReportClientDocument rcd = new ReportClientDocument();
                   rcd.setReportAppServer(ReportConstants.RAS_HOST);
                   rcd.open("D:\\Program Files\\Business Objects\\BusinessObjects Enterprise 12.0\\Samples\\EN\\Reports\\triCalendarPeriod___-___Find___-___Months.rpt", OpenReportOptions._openAsReadOnly);
                   rcd.close();
              }catch(Exception e){
                   throw new RuntimeException(e);
    PerformanceUtils.runPerformanceTest("Test remote report initialization", numIterations, new Command(){
         public void execute() {
              try{
                   ReportClientDocument rcd = new ReportClientDocument();
                   rcd.setReportAppServer(ReportConstants.RAS_HOST);
                   rcd.open("rassdk://./test/data/crystal/triCalendarPeriod___-___Find___-___Months.rpt", OpenReportOptions._openAsReadOnly);
                   rcd.close();
              }catch(Exception e){
                   throw new RuntimeException(e);

  • When compacting, I get an alert that asks me to verify that I enough disc space and that I have write privalages to the file system. How do I do this?

    Mozilla asks me if I want to compact, I click 'yes' and after a while I get this:
    Alert
    The folder 'inbox' could not be compacted because writing to folder failed.Verify that you have enough disc space, and that you have write privileges to the file system, then try again.
    I have no idea what to do know. Please can someone help me?

    Try restarting your computer in windows safe mode. Links to Instructions here http://thunderbirdtweaks.blogspot.com.au/2014/02/basic-troubleshooting-for-thunderbird.html
    See if compacting will work them

  • EMac won't start up, only gets to "Starting Network File System"

    Would appreciate any help. I'm a novice. Have a 4-year-old eMac that offered updates for Quicktime and iTunes. I let it go ahead. Got to a point where it said to close iTunes before continuing update. I did close iTunes and OK'd to continue update. Right away the monitor became shaded it and said to restart. Now when I turn it off and try to restart, it makes the start-up sound and the circle clicks around and then suddenly stops. Then the blue line fills in until it gets to "Starting Network File System" and then becomes shaded again saying to restart. I did some research and tried holding down the option key while powering on. Now I have a Macintosh HD icon with a blue X, as well as a 3/4 circle w/arrow and a straight line arrow. Any help would be very, very much appreciated. Thank you. kcorbett

    bjadk,
    Welcome to the Apple Discussions!
    If Apple Hardware test is reporting RAM memory errors, no amount of reinstalling, or Disk Warrior, or anything else, will help. The install and repair attempts, sabotaged by bad RAM, would actually corrupt the hard drive worse on each attempt.
    Do you recall how much RAM was in the eMac? Did you get RAM size reports from AHT? Check the RAM slots on the eMac by opening the access door on the bottom (see eMac - Do-It-Yourself). If there are two DIMMS, pull the one in DIMM slot 1 (that'll be the one on the top if I recall correctly). Removing the bad RAM may leave you with too little RAM to actually run the eMac; you can check your eMac model and use that info to order good RAM from Crucial.
    Yet another potential problem comes to mind. If the Mac is three years old and hasn't been used much, has it been largely turned off and either unplugged, or plugged into a surge protector that was itself turned off? It the Mac hasn't been able to draw a trickle current while nominally turned off, the PRAM battery could be drained, which can also interfere with starting up and using the computer. You can use a voltmeter to check the battery while in the battery holder and replace it if it's more than 0.1v below the nominal 3.6v value.
    When AHT gives the RAM a clean bill, use your OS X Install disc to boot the computer and again try Repair Disk and/or use single-use rmode to run fsck (per Using Disk Utility and fsck). IF Repair Disk/fsck report making repairs, repeat that step until it either reports no problems found or unable to repair, since one directory error can mask other errors. As already mentioned, DiskWarrior has an excellent track record of making repairs where Disk Utility could not.
    If Disk Utility or Disk Warrior repair the disk, you can proceed to an Archive and Install (you'll need 5 GB or so free space on the hard drive to do an A&I; if space is tight, use the Installer options to select language support for only the language(s) you actually use).
    If no utility can repair the disk, an Erase & Install with the one-pass write zeros option selected could recover use of the drive, by forcing the drive to update it's record of bad disk sectors to avoid. This would lose any data and programs for which you don't have a backup or install discs, through.

  • Service for network file system fails to install

    Installation of the File Service and Service for NFS in Windows 2008 R2 server fails. Following are the steps used to perform the install.
    Open Server Manager from Start> All Programs> Administrative Tools> Server Manager.
    Click on the Roles node in the left pane, and then click the
    Add Roles link.
    On the Add Roles Wizard welcome page, click Next to continue.
    From the list of roles to install, select File Services, and click
    Next to continue.
    On the Introduction to File Services page, click Next to continue.
    On the Select Role Services page, keep the File Server box checked and select
    Services for Network File System. Click Next to continue.
    On the Confirmation page, review the settings and click the Install button.
    Click Close when the wizard completes.
    ServerManager Log:
    From the ServerManager.log file under C:/Windows/Logs I can see the below.
    2272: 2013-02-12 16:13:51.479 [CBS]                       IsCacheStillGood: True.
    2272: 2013-02-12 16:14:05.534 [Provider]                  System changed since last refresh: False
    2272: 2013-02-12 16:15:45.816 [InstallationProgressPage]  Loading progress page...
    2272: 2013-02-12 16:15:45.831 [InstallationProgressPage]  Begining Sync operation...
    2272: 2013-02-12 16:15:45.842 [Sync]                     
    Sync Graph of changed nodes
    ==========
    name     : File Services
    state    : Changed
    rank     : 1
    sync tech: CBS
    guest[1] : File Server
    guest[2] : Distributed File System
    guest[3] : File Server Resource Manager
    guest[4] : Services for Network File System
    guest[5] : Single Instance Storage
    guest[6] : Windows Search Service
    guest[7] : Windows Server 2003 File Services
    guest[8] : BranchCache for network files
    provider : FileServerRoleProvider
    name     : Services for Network File System
    state    : Changed
    rank     : 2
    sync tech: CBS
    provider : FileServerRoleProvider
    name     : File Server
    state    : Changed
    rank     : 2
    sync tech: CBS
    provider : FileServerRoleProvider
    2272: 2013-02-12 16:15:45.842 [Sync]                      Calling sync provider of Services for Network File System ...
    2272: 2013-02-12 16:15:45.843 [FileServer]                Sync:: guest: 'Services for Network File System', guest deleted?: False
    2272: 2013-02-12 16:15:45.843 [FileServer]                Begin installation of 'Services for Network File System'...
    2272: 2013-02-12 16:15:45.843 [FileServer]                Install: Guest: 'Services for Network File System', updateElement: 'ServicesForNFS-ServerAndClient;ClientForNFS-Infrastructure;NFS-Administration;ServerForNFS-Infrastructure'
    2272: 2013-02-12 16:15:45.843 [FileServer]                Installation queued for 'Services for Network File System'.
    2272: 2013-02-12 16:15:45.843 [Sync]                      Calling sync provider of File Server ...
    2272: 2013-02-12 16:15:45.843 [FileServer]                Sync:: guest: 'File Server', guest deleted?: False
    2272: 2013-02-12 16:15:45.843 [FileServer]                Begin installation of 'File Server'...
    2272: 2013-02-12 16:15:45.843 [FileServer]                Install: Guest: 'File Server', updateElement: 'CoreFileServer'
    2272: 2013-02-12 16:15:45.843 [FileServer]                Installation queued for 'File Server'.
    2272: 2013-02-12 16:15:45.844 [CBS]                       installing 'ServicesForNFS-ServerAndClient ClientForNFS-Infrastructure
    NFS-Administration ServerForNFS-Infrastructure CoreFileServer ' ...
    2272: 2013-02-12 16:15:46.315 [CBS]                       ...parents that will be auto-installed: '<none>'
    2272: 2013-02-12 16:15:46.316 [CBS]                       ...default children to turn-off: '<none>'
    2272: 2013-02-12 16:15:46.325 [CBS]                       ...current state of 'ServicesForNFS-ServerAndClient': p:
    Staged, a: Staged, s: UninstallRequested
    2272: 2013-02-12 16:15:46.325 [CBS]                       ...setting state of 'ServicesForNFS-ServerAndClient' to
    'InstallRequested'
    2272: 2013-02-12 16:15:46.335 [CBS]                       ...current state of 'ClientForNFS-Infrastructure': p: Staged,
    a: Staged, s: UninstallRequested
    2272: 2013-02-12 16:15:46.336 [CBS]                       ...setting state of 'ClientForNFS-Infrastructure' to 'InstallRequested'
    2272: 2013-02-12 16:15:46.345 [CBS]                       ...current state of 'NFS-Administration': p: Staged, a:
    Staged, s: UninstallRequested
    2272: 2013-02-12 16:15:46.345 [CBS]                       ...setting state of 'NFS-Administration' to 'InstallRequested'
    2272: 2013-02-12 16:15:46.354 [CBS]                       ...current state of 'ServerForNFS-Infrastructure': p: Staged,
    a: Staged, s: UninstallRequested
    2272: 2013-02-12 16:15:46.354 [CBS]                       ...setting state of 'ServerForNFS-Infrastructure' to 'InstallRequested'
    2272: 2013-02-12 16:15:46.363 [CBS]                       ...current state of 'CoreFileServer': p: Staged, a: Staged,
    s: UninstallRequested
    2272: 2013-02-12 16:15:46.363 [CBS]                       ...setting state of 'CoreFileServer' to 'InstallRequested'
    2272: 2013-02-12 16:15:46.373 [CBS]                       ...'ServicesForNFS-ServerAndClient' : applicability: Applicable
    2272: 2013-02-12 16:15:46.390 [CBS]                       ...'ClientForNFS-Infrastructure' : applicability: Applicable
    2272: 2013-02-12 16:15:46.408 [CBS]                       ...'NFS-Administration' : applicability: Applicable
    2272: 2013-02-12 16:15:46.426 [CBS]                       ...'ServerForNFS-Infrastructure' : applicability: Applicable
    2272: 2013-02-12 16:15:46.435 [CBS]                       ...'CoreFileServer' : applicability: Applicable
    2272: 2013-02-12 16:15:46.493 [CbsUIHandler]              Initiate:
    2272: 2013-02-12 16:15:46.494 [InstallationProgressPage]  Installing...
    2272: 2013-02-12 16:15:51.958 [CbsUIHandler]              Error: -2147021879 :
    2272: 2013-02-12 16:15:51.958 [CbsUIHandler]              Terminate:
    2272: 2013-02-12 16:15:52.035 [InstallationProgressPage]  Verifying installation...
    2272: 2013-02-12 16:15:52.049 [CBS]                       ...done installing 'ServicesForNFS-ServerAndClient
    ClientForNFS-Infrastructure NFS-Administration ServerForNFS-Infrastructure CoreFileServer '.
    Status: -2147021879 (80070bc9)
    2272: 2013-02-12 16:15:52.052 [FileServer]                Skipped configuration of 'Services for Network File System' because install operation failed.
    2272: 2013-02-12 16:15:52.053 [FileServer]                Skipped configuration of 'File Server' because install operation failed.
    2272: 2013-02-12 16:15:52.053 [Provider]                 
    [STAT] ---- CBS Session Consolidation -----
    [STAT] For
              'Services for Network File System',
              'File Server'[STAT] installation(s) took '6.2058637' second(s) total.
    [STAT] Configuration(s) took '0.0002143' second(s) total.
    [STAT] Total time: '6.206078' second(s).
    2272: 2013-02-12 16:15:52.053 [Provider] Error (Id=0) Sync Result - Success: False, RebootRequired: True, Id: 105
    2272: 2013-02-12 16:15:52.053 [Provider] Error (Id=0) Sync Message - OperationKind: Install, MessageType: Error, MessageCode: -2147021879, Message: <null>, AdditionalMessage: The requested operation failed. A system reboot
    is required to roll back changes made
    2272: 2013-02-12 16:15:52.053 [Provider] Error (Id=0) Sync Result - Success: False, RebootRequired: True, Id: 255
    2272: 2013-02-12 16:15:52.053 [Provider] Error (Id=0) Sync Message - OperationKind: Install, MessageType: Error, MessageCode: -2147021879, Message: <null>, AdditionalMessage: The requested operation failed. A system reboot
    is required to roll back changes made
    2272: 2013-02-12 16:15:52.054 [InstallationProgressPage]  Sync operation completed
    2272: 2013-02-12 16:15:52.054 [InstallationProgressPage]  Performing post install/uninstall discovery...
    2272: 2013-02-12 16:15:52.056 [Provider]                  C:\Windows\system32\ServerManager\Cache\CbsUpdateState.bin does not exist.
    2272: 2013-02-12 16:15:52.056 [CBS]                       IsCacheStillGood: False.
    2272: 2013-02-12 16:15:52.526 [CBS]                       >>>GetUpdateInfo--------------------------------------------------
    2272: 2013-02-12 16:15:59.342 [CBS] Error (Id=0) Function: 'ReadUpdateInfo()->Update_GetInstallState' failed:
    80070bc9 (-2147021879)
    2272: 2013-02-12 16:15:59.342 [CBS]                       <<<GetUpdateInfo--------------------------------------------------
    2272: 2013-02-12 16:15:59.380 [DISCOVERY]                 hr: -2147021879 -> reboot required.
    2272: 2013-02-12 16:15:59.390 [InstallationProgressPage]  About to load finish page...
    2272: 2013-02-12 16:15:59.390 [InstallationFinishPage]    Loading finish page
    2272: 2013-02-12 16:15:59.401 [InstallationFinishPage]    Finish page loaded
    In Windows Event long I can see the following events logged:
    Event 3002, Port Map:
      Windows(R) failed a request to register RPC Port Mapper on TCP port 111.  RPC Port Mapper cannot start.
      Network File System (NFS) clients use RPC Port Mapper (also known as Portmap and Rpcbind) to discover NFS protocols on remote servers.  Without RPC Port Mapper, Server for NFS
    cannot start and NFS clients cannot access files on this server.
      Verify that no other software is registered on TCP port 111, then start Server for NFS manually (which will also start RPC Port Mapper).
    Event 7000, Service Control Manager:
    The Server for NFS Open RPC (ONCRPC) Portmapper service failed to start due to the following error:
    A device attached to the system is not functioning.
    Event 7001, Service Control Manager:
    The Server for NFS Driver service depends on the Server for NFS Open RPC (ONCRPC) Portmapper service which failed to start because of the following error:
    A device attached to the system is not functioning.
    Event 7001, Service Control Manager:
    The Server for NFS service depends on the Server for NFS Driver service which failed to start because of the following error:
    The dependency service or group failed to start.
    Based on a technet forum I have already checked and made sure there is no other service running on port 111 (command used is netstat -a -b -o).
    Dependent Service Status:
    During the installation process “Client for NFS” seems to have gone well and the service started successfully. But the “Server for NFS” failed, when checked for the status of the dependent process “portmap” service failed to start with the WIN32_EXIT_CODE
    “31 (0x1f)”. Please find below the query result.
    C:\Users\CMMAdmin>sc query rpcxdr
    SERVICE_NAME: rpcxdr
            TYPE               : 1  KERNEL_DRIVER
            STATE              : 4  RUNNING
                                    (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\Users\CMMAdmin>sc query msnfsflt
    SERVICE_NAME: msnfsflt
            TYPE               : 2  FILE_SYSTEM_DRIVER
            STATE              : 4  RUNNING
                                    (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\Users\CMMAdmin>sc query portmap
    SERVICE_NAME: portmap
            TYPE               : 1  KERNEL_DRIVER
            STATE              : 1  STOPPED
            WIN32_EXIT_CODE    : 31  (0x1f)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    C:\Users\CMMAdmin>
    As the EXIT CODE is 31 ( A device attached to the system is not functioning), I have checked device manager and made sure there is no yellow warning shown against any hardware device. Further I am not sure how to proceed and debug this issue.
    Please let me know if you have any suggestion on how debug this issue further.
    Thanks
    -Poopesh

    Hey,
    I had this same problem running MS Server 2008 R2 and server log is as follow:
    name     : Services for Network File System
    state    : Changed
    rank     : 2
    sync tech: CBS
    ant.     : empty
    pred.    : File Services
    provider : FileServerRoleProvider
    5676: 2014-01-14 14:08:57.474 [Sync]                      Calling sync provider of Services for Network File System ...
    5676: 2014-01-14 14:08:57.521 [FileServer]                Sync:: guest: 'Services for Network File System', guest deleted?: False
    5676: 2014-01-14 14:08:57.536 [FileServer]                Begin installation of 'Services for Network File System'...
    5676: 2014-01-14 14:08:57.536 [FileServer]                Install: Guest: 'Services for Network File System', updateElement: 'ServicesForNFS-ServerAndClient;ClientForNFS-Infrastructure;NFS-Administration;ServerForNFS-Infrastructure'
    5676: 2014-01-14 14:08:57.536 [FileServer]                Installation queued for 'Services for Network File System'.
    5676: 2014-01-14 14:08:57.536 [CBS]                       installing 'ServicesForNFS-ServerAndClient ClientForNFS-Infrastructure NFS-Administration
    ServerForNFS-Infrastructure ' ...
    5676: 2014-01-14 14:09:00.173 [CBS]                       ...parents that will be auto-installed: '<none>'
    5676: 2014-01-14 14:09:00.173 [CBS]                       ...default children to turn-off: '<none>'
    5676: 2014-01-14 14:09:00.204 [CBS]                       ...current state of 'ServicesForNFS-ServerAndClient': p: Staged, a: Staged, s: UninstallRequested
    5676: 2014-01-14 14:09:00.204 [CBS]                       ...setting state of 'ServicesForNFS-ServerAndClient' to 'InstallRequested'
    5676: 2014-01-14 14:09:00.235 [CBS]                       ...current state of 'ClientForNFS-Infrastructure': p: Staged, a: Staged, s: UninstallRequested
    5676: 2014-01-14 14:09:00.235 [CBS]                       ...setting state of 'ClientForNFS-Infrastructure' to 'InstallRequested'
    5676: 2014-01-14 14:09:00.266 [CBS]                       ...current state of 'NFS-Administration': p: Staged, a: Staged, s: UninstallRequested
    5676: 2014-01-14 14:09:00.266 [CBS]                       ...setting state of 'NFS-Administration' to 'InstallRequested'
    5676: 2014-01-14 14:09:00.282 [CBS]                       ...current state of 'ServerForNFS-Infrastructure': p: Staged, a: Staged, s: UninstallRequested
    5676: 2014-01-14 14:09:00.282 [CBS]                       ...setting state of 'ServerForNFS-Infrastructure' to 'InstallRequested'
    5676: 2014-01-14 14:09:00.313 [CBS]                       ...'ServicesForNFS-ServerAndClient' : applicability: Applicable
    5676: 2014-01-14 14:09:00.360 [CBS]                       ...'ClientForNFS-Infrastructure' : applicability: Applicable
    5676: 2014-01-14 14:09:00.422 [CBS]                       ...'NFS-Administration' : applicability: Applicable
    5676: 2014-01-14 14:09:00.469 [CBS]                       ...'ServerForNFS-Infrastructure' : applicability: Applicable
    5676: 2014-01-14 14:09:01.624 [CbsUIHandler]              Initiate:
    5676: 2014-01-14 14:09:01.624 [InstallationProgressPage]  Installing...
    5676: 2014-01-14 14:09:35.117 [CbsUIHandler]              Error: -2147021879 :
    5676: 2014-01-14 14:09:35.117 [CbsUIHandler]              Terminate:
    5676: 2014-01-14 14:09:41.170 [InstallationProgressPage]  Verifying installation...
    5676: 2014-01-14 14:09:41.264 [CBS]                       ...done installing 'ServicesForNFS-ServerAndClient ClientForNFS-Infrastructure NFS-Administration
    ServerForNFS-Infrastructure '. Status: -2147021879 (80070bc9)
    5676: 2014-01-14 14:09:41.279 [FileServer]                Skipped configuration of 'Services for Network File System' because install operation failed.
    5676: 2014-01-14 14:09:41.279 [Provider]                 
    [STAT] ---- CBS Session Consolidation -----
    [STAT] For
              'Services for Network File System'[STAT] installation(s) took '43.7368586' second(s) total.
    [STAT] Configuration(s) took '0.0062843' second(s) total.
    [STAT] Total time: '43.7431429' second(s).
    5676: 2014-01-14 14:09:41.279 [Provider] Error (Id=0) Sync Result - Success: False, RebootRequired: True, Id: 105
    5676: 2014-01-14 14:09:41.279 [Provider] Error (Id=0) Sync Message - OperationKind: Install, MessageType: Error, MessageCode: -2147021879, Message: <null>, AdditionalMessage: The requested operation failed. A system reboot is required to roll back changes
    made
    5676: 2014-01-14 14:09:41.279 [InstallationProgressPage]  Sync operation completed
    5676: 2014-01-14 14:09:41.279 [InstallationProgressPage]  Performing post install/uninstall discovery...
    5676: 2014-01-14 14:09:41.295 [Provider]                  C:\windows\system32\ServerManager\Cache\CbsUpdateState.bin does not exist.
    5676: 2014-01-14 14:09:41.295 [CBS]                       IsCacheStillGood: False.
    5676: 2014-01-14 14:09:43.900 [CBS]                       >>>GetUpdateInfo--------------------------------------------------
    5676: 2014-01-14 14:09:57.394 [CBS] Error (Id=0) Function: 'ReadUpdateInfo()->Update_GetInstallState' failed: 80070bc9 (-2147021879)
    5676: 2014-01-14 14:09:57.410 [CBS]                       <<<GetUpdateInfo--------------------------------------------------
    5676: 2014-01-14 14:09:57.488 [DISCOVERY]                 hr: -2147021879 -> reboot required.
    5676: 2014-01-14 14:09:57.613 [InstallationProgressPage]  About to load finish page...
    5676: 2014-01-14 14:09:57.628 [InstallationFinishPage]    Loading finish page
    5676: 2014-01-14 14:09:57.644 [InstallationFinishPage]    Finish page loaded
    My solution was to run netstat -ano to identify what process was running on port TCP/UDP :111, then with the command tasklist I got PID matching with the task name. Once identified I stopped the process, rebooted and installed
    the NFS service. On top of that, before installing NFS services I disabled firewall and antivirus. It worked fine for me. I hope this will be usefull for you. By the way, don't forget to enable all process back!
    Have a good one!

  • Client for NFS fails to restart - Event ID: 16387 - Windows(R) failed a request to initialize the Network File System (NFS) redirector

    I have seen this issue out there in a few threads but a definitive solution has not been posted by Microsoft that I can find. So here is the simple answer. The long answer why this doesn't work on a default install of MSNFS is going to have to come from
    Microsoft and should be in the form of a hotfix.
    Problem Description
    On boot, Client for NFS starts and remains running. If an attempt is made to restart the service from the MMC or nfsadmin, an error occurs and nfsclnt fails to start.
    Event log error:
    ==================================================================
    Log Name:      Application
    Source:        NfsClnt
    Date:          7/7/2011 2:39:51 PM
    Event ID:      16387
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      myserver
    Description:
      Windows(R) failed a request to initialize the Network File System (NFS) redirector
    <[d:\w7rtm\base\fs\remotefs\nfs\client\nfsclient\service.c:199] : 0: The operation completed successfully.
    >.
      Client for NFS cannot start.
      Windows may be low on system resources.  Try increasing available system resources by closing programs, then start Client for NFS manually.
    ==================================================================
    PROBLEM CAUSED BY: When shutting down Client for NFS using the Services GUI, Client for NFS Redirector is not shut down
    SOLUTION: Stop NFS Redirector - 'sc stop NfsRdr' - Then start NFS client service - 'nfsadmin start client'
    Use 'nfsadmin client stop' to correctly shut down both the Client for NFS service and the Client for NFS Redirector.
    'Network File System (NFS) redirector' is actually "Client for NFS Redirector" and not listed as a service even though "Client for NFS" requires it.  
    Using 'sc', details on the hidden NfsRdr system component can be queried and then used to stop the redirector so that nfsclnt.exe can reload it on start up using the Services GUI.
    C:\Windows\System32>sc GetDisplayName NfsRdr
    [SC] GetServiceDisplayName SUCCESS
    Name = Client for NFS Redirector
    C:\Windows\System32>sc qdescription NfsRdr
    [SC] QueryServiceConfig2 SUCCESS
    SERVICE_NAME: NfsRdr
    DESCRIPTION:  Kernel-side part of Client for NFS. Enables a Windows based computer to access NFS server shares
    Hope this thread is helpful !!

    Thank you for your sharing and this will certainly help others have similar issues in future.TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

Maybe you are looking for

  • HP Color LaserJet 2605dn Network Printing

    Here we go again. I just upgraded the Windows 7 and I am still having the same network printing issues I encountered in Vista. 1. It doesn't appear that there is a Windows 7 32-bit driver for this printer, am I wrong? I found the drivers page for thi

  • File Uploads using stored procedures

    Hello, I'm quite new here, but I have a question that I've been butting my head against for the past day. Here goes. We need to upload a file using a stored procedure (PL/SQL procedure.) The two things I have found that work are 1) Having oracle do t

  • Youtube videos doesn't play

    I can't get videos on youtube to play. I have firefox version 31, flash version 14.0.0.179. Safe version still doesn't work, but i can still play flash videos on other websites like dailymotion with no problem. I tried clearing cookies, updating flas

  • Portal Certificate Expired with NO VA running!!!

    Hi All, I got one issue about Portal certificate expiration, for which SSO is not working b/w Portal and R3. As working on Solaris, required to re-generate the Keystore Certificate via Visual Admin, but WHAT!!! I am not able to run it, it says that J

  • MDM 7.1 Server installation Problem

    Hi, When I am trying to run "Sapinstgui" I am getting the following error. Java.io.FileNotFoundException: C:\abc(Access is denied]) The System cannot find the path specified C:\abc does not contain the needed(local_policy.jar,US_export_policy.jar) po