Finding the Path From Servlet

Please guys I need some help on this.
I have created a context in my Tomcat/webapps called EcBugManager.
My servlets are in the webapps/EcBugManager/Web-Info folder.
I want to say in a servlet to upload files to a folder
which is in the webapps/EcBugManager/UploadFiles folder.
How should i give the relative path from the servlet.
I have tried the following but with no success.
- "..\\EcBugManager\\UploadFiles";
- "..\\UploadFiles";
This works, but i need the relative path
- "D:\\Tomcat\\webapps\\ EcBugManager\\UploadFiles";
Is the way i am trying to do is wrong. please help on this.
Rhanks in Advance
Shiran

The question doesn't clear enought.
but you may try HttpServletRequest.getPathTranslated(), which returns
the root path of your servlet.
then you may append the sub-directory you want to located.
or try servlet's creatTempfile method.

Similar Messages

  • "the system cannot find the path specified" when importing pictures from iphone

    Hi!
    I have an iPhone 5s. My computer is a Windows, with the Windows 8 OS. I have never had a problem importing pictures from my iPhone to my computer until recently. Now, whenever I try, I get this error message:
    The following error occurred while importing IMG_1022.JPG:
    The system cannot find the path specified.
    What do you want to do?
    Try again
    Skip this file
    Skip all files with errors"
    I have tried again. I have tried skipping files. Either way, the photos and video will not import from my phone. It is filled up now and I cannot download anything else, or take any more pictures, until I get these files off the phone.
    Does anyone have any ideas?
    Thanks!

    Hi JeffWilko,
    What is your current situation?
    To receive better analyzation, please provide more details?
    1. Could you explain a bit about the sentence ‘installing multiple printers from the portal’ ?
    2. Check the event viewer and share us the related error log.
    Please take the following steps for troubleshooting:
    1. Ping the printers
    2. Check if there are network firewall to block the access
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Iam getting the 'The system cannot find the path specified.' Why?

    C:\Documents and Settings\MPudur\Desktop>cd\
    C:\>cd Training\ATG\ATG10.1.1\home\bin
    C:\Training\ATG\ATG10.1.1\home\bin>startDynamoOnJBOSS.bat -c default -m Demo
    The system cannot find the path specified.
    The system cannot find the path specified.
    Assembly started.
    Target application is C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear.
    Creating exploded ear file C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear.
    Initializing...
    Updating C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear.
    Before make meta-inf file.
    Making meta-inf file C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear\META-INF
    Creating application.xml...
    Creating Ear file MANIFEST...
    Importing classes...
    Importing classes for module DafEar
    Importing classes for module DafEar.Admin
    Importing classes for module DafEar.base
    Importing classes for module Demo
    Importing classes for module DSS
    Importing classes for module DPS
    Importing classes for module DAS-UI
    Importing classes for module DAS
    Ignoring classpath entry lib/servlet.jar from module DAS
    Ignoring classpath entry lib/jsp-api.jar from module DAS
    Importing classes for module manuals
    Importing J2EE module atg-admin.war declared in DafEar.Admin
    Parsing C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear\atg_admin.war\WEB-INF\web.xml
    Importing J2EE module atg-bootstrap.war declared in DafEar.base
    Parsing C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear\atg_bootstrap.war\WEB-INF\web.xml
    Importing J2EE module atg-bootstrap-ejb.jar declared in DafEar.base
    Importing J2EE module demo-web.war declared in Demo
    Parsing C:\Training\jboss-eap-5.1\jboss-as\server\default\deploy\ATG.ear\demo-web.war\WEB-INF\web.xml
    Assembly took 0.922 seconds.
    Calling C:\Training\jboss-eap-5.1\jboss-as\bin\run.conf.bat
    ===============================================================================
    JBoss Bootstrap Environment
    JBOSS_HOME: C:\Training\jboss-eap-5.1\jboss-as
    JAVA: C:\Training\Java\jdk1.6.0_30\bin\java
    JAVA_OPTS: -Xms512m -Xmx1024m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Ds
    CLASSPATH: C:\Training\Java\jdk1.6.0_30\lib\tools.jar;C:\Training\jboss-eap-5.1\jboss-as\bin\run.jar
    ===============================================================================

    You may refer your earlier thread:
    Iam getting the path not specified error,but the jboss was running smoothly

  • How do I find the path to a TestStand sequence file using LabVIEW

    My LabVIEW application launches a bunch of teststand sequences, provided it has the complete path to each of them. I want to make it more flexible by providing it just the name of the TestStand sequence so that it will go and find the path to the sequence by searching a directory structure. TestStand has a neat FindFile() function that can do this, but I need to do this from within LabVIEW. Is there a way to do it?

    There are a few ways to do this depending on how you are getting the sequence files.  If you are calling the GetSequenceFileEx method, you can just pass the GetSeqFile_FindFile (0x20) flag in the SequenceFileFlags property.  If you are using the ApplicationMgr.OpenSequenceFile method, this is automatically done for you.
    If you want to use the FindFile function in general, you can use the Engine.FindFile method.
    Allen P.
    NI

  • I am trying to remove the older version of iTunes but an error message appears saying that it cannot find the path to 'iTunes64.msi", and I tried the search option to find it on my computer but no such luck. Please help me

    I am trying to remove the older version of iTunes but an error message appears saying that it cannot find the path to 'iTunes64.msi", and I tried the search option to find it on my computer but no such luck. Please help me

    Go to Microsoft website to fix install and Unistall problems. Click "Run now" from Fix it to remove all iTunes & related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.

  • Windows 7 Backup "The System cannot find the path specified" - Error Code 0x80070003

    I'm having severe problems backing up my own machine to a share on our
    FILE-SERVER as \\FILE-SERVER\Backup\
    I have already backed up another PC successfully using exactly the same settings I have used on my own PC. So I presume it is nothing to do with the
    FILE-SERVER or the Backup settings.  It has to be something to do with what I'm trying to backup from my machine.
    First some background.
     This exercise all began when the Windows Server 2008 r2
    O/S fell over on one of our Servers. I tried reinstalling the O/S several times, without success. In the end I grabbed another drive and re-built the O/S. I then had problems promoting it to a Domain Controller on the network.
     In the end I renamed the Server from FILESERVER
    to FILE-SERVER.
    We routinely share four folders on what is now
    FILE-SERVER:
    \\FILE-SERVER\Backup
    - a Folder where backups from all other machines are written, so that they will be backed up with the Server
    \\FILE-SERVER\Company
    - holds all our Company data
    \\FILE-SERVER\GEM
    - this is the application folder for our own database
    \\FILE-SERVER\Install
    - holds all Install files for the software we use
    These are all held on a RAID 1 Array that is separate from the System Disk that fell over.
    Prior to the Server falling over, I had Backup working fine on my machine. 
    On my Notebook PC I had made these shared folders 'Available Offline', so that I still had everything available to me when I was out of the office. They were
    of course shared as \\FILESERVER\... not \\FILE-SERVER\...
    Having got the Server up and going again, I began to get the Backups from the Windows 7 Client PC's going again.
     I started with a Desktop, which of course did not have any Offline Files.
     That proved relatively straight-forward.
    I then started with my machine. Initially I did not make the above shared folders 'Available Offline'. I set up my Backup using exactly the same settings that
    had worked OK on the desktop machine. But when I ran the backup I got:
    The System cannot find the path specified, Error Code 0x80070003
    I tried all sorts of things to get it to work:
    I restored the system to the earliest point possible,
    I ran chkdsk,
    I defragged the drive
    All to no avail, so I tried backing up:
    with and without a system image,
    reducing the backup to a single folder, 
    a single Folder with only one .txt file in it, 
    making the Folders 'Available Offline' again.
    Nothing made any difference.
     In the end I looked in the Sync Center to look at the Offline Files Folder.
     Under Mapped Network Drives I discovered I still had the Files and Folders from
    \\FILESERVER.  In their Shortcut Menu 'Always Available Offline' was greyed out. So I deleted the Offline Copies. This deleted the Files in the Folders but not the Folders.
    Since I could find no way of deleting the old Mapped Network Drives, I decided I'd painted myself into a corner by renaming the Server.
     So I bit the bullet and re-installed my Notebook too.  This did get rid of the unwanted old Mapped Network Drives - BUT NOT THE ERROR!!
    I’ve been through all the troubleshooting procedures in: 
    http://social.technet.microsoft.com/Forums/windows/en-US/629597bb-7be0-455c-b81e-a149472d3f9b/windows-7-backup-the-system-cannot-find-the-path-specified-error-0x80070003?forum=w7itprogeneral
    Method 1
    It had none of the symptoms reported in  
    http://support.microsoft.com/kb/973455 
    but I scanned for ‘reparse’ points anyway.  Found several “Junction Points” but none that were “Mounted Volumes”, just ordinary ‘File Folders’.
    Method 2
    Check a drive for errors. 
    Looked at: 
    http://windows.microsoft.com/en-us/windows7/Check-a-drive-for-errors
    Checked
    both boxes.  I closed machine down, to check for errors when it re-started. 
    It didn’t seem to find anything. 
    I say seem, because I did not actually see it finishing checking the empty space, but stages 1-4 found no problems and Windows 7 restarted normally. 
    It did detect 66 ‘Reparse’ Points, which is more than it found when I scanned for them earlier. 
    Method 3
    Yes, I am an administrator or my own machine and, as such, I have ‘Full Access’.
    I downloaded an ran the Process Monitor, filtering for Process Name “Wbengine.exe”, but did dot get a single event. 
    So I’m not sure what’s going on.
    HELP - I'm out of ideas!
    I have a WORD Document that documents all the Settings I've used on both the Server and the Clients, together with the reasoning behind those settings, but
    I cannot find a way of uploading it.

    I am having the exact same problem with Windows 7 Professional. Out of the blue, this issue just started a few months ago when running my monthly Windows Backup where I have used a USB drive for the last 3 years, and never ever had this issue before. Most
    of the solutions listed on the Microsoft websites and answers deal with
    "Restore" functions, not the
    "Backup" itself. I have 3 folders being skipped during the backup.
    So I went and changed the Backup from "let Microsoft choose files, directories, etc" to "Let me choose". I included the files and folders that were being skipped, and ran the "Backup" again, and got the same error message,
    but the files that were skipped the first time were "Backed up" finally. This issue is somehow related to my "Libraries"?
    The 3 backup problems are:
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book Recordings. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book CD Label-Cover Art. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book MP3 Tag Art. Error:(The system cannot find the path specified. (0x80070003))
    Did a "checkdisk" - no problems. Ran a program to fix registry - no problems. All updates up to date. I guess I could eliminate these folders from the Backup folders in the
    Library, and just choose them under the "Users" locations, and be done with it. But I really want to understand this, and fix it. This is within Windows 7 and may be related to Windows Media Player or
    some recent Windows update.  Thanks.

  • Finding the path with the help of TCode only

    Hi Experts,
    I have a doubt containing that with the help of Transaction code can i find the Path,
    but not the way of "SEARCH_SAP_MENU", this method i know, it applicable only for Easy access only.
    But i cannot able to find the "SPRO / IMG" path.
    Please update with solution
    Regards
    Ravli Kumar .U

    Hi Ravi,
    I am not aware of some direct solution like Search_SAP_Menu for SPRO but here are the alternatives..
    1. Cntrl F in SPRO with some key search words.
    2. Go to that T-code, press F1 and click on customizing from there.
    Regards,
    SAPFICO

  • The system cannot find the path specified - Problems

    I am having an issue that I am hoping someone can help figure out for me.
    I am currently learning Java, and am working with the Beginning Programming with Java for Dummies book second edition. I have downloaded and am running the Java 6 program and am using the JCreator 3.5Pro that was recommended to run the Practice files for the Dummies book.
    I have the practice files here:
    C/Program Files/Xinox Software/JCreatorV3/My Projects
    While trying to compile one of the practice files, I get this error message:
    --------------------Configuration: MyNewProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    javac: file not found: src_mynewproject.txt (The system cannot find the path specified)
    Process completed.
    **When I try to execute, I get this error message:**
    --------------------Configuration: MyNewProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: EchoLine
    Caused by: java.lang.ClassNotFoundException: EchoLine
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: EchoLine. Program will exit.
    Exception in thread "main"
    Process completed.
    When I set up the new file, and the new class, I confirmed the file path.
    I know most people will ask if I am absolutely certain I put in the code in properly, and yes I did. It was a matter of copying word for word, and punctuation. I did it 100% correctly. About 12 times. I have NO idea what this means, but I would REALLY REALLY appreciate any help on this.
    Please keep in mind, I am slightly clueless, and really need to have any help dumbed down a bit. Lol.
    As a side note, this isn't my first project, and I haven't had this problem before now.
    thanks in advance. =)

    So I wanted to clarify what I've done a bit more since I decided to redownload the dummies programs for the program and try again.
    I will try to list my steps in order of what I did and see if I've gone wrong somewhere along the line.
    I downloaded my project files from here: http://ca.dummies.com/store/product/Beginning-Programming-with-Java-For-Dummies-2nd-Edition.productCd-0764588745,navId-322469,descCd-DOWNLOAD.html
    I unzipped them this time here: C:\Program Files\Java\jdk1.6.0_21\MyProjects\
    I opened JCreator 3.5 and starting fresh, with all previous projects deleted and clicked on "Open Workspace". I chose "MyWorkspace.jcw". Right clicked MyWorkspace and chose "Add new Project" and then chose "Empty Project". As per the books instruction for the first project, I named it "MyFirstProject". My file path was: C:\Program Files\Java\jdk1.6.0_21\MyProjects\MyFirstProject. Which is where I upzipped the files. I added it to current workspace and clicked finish.
    I then added a new class. As per the books instructions, I right clicked "MyFirstProject" and selected Add New Class. For the name, I used MyFirstJavaClass, which is what the book told me to do. My locations are the exact same as above. and I clicked on Generate new Method, as it told me to. Which it doesn't in the next few lessons, so I know this has nothing to do with it. For that and a few other reasons. Lol.
    I clicked on Finish.
    All I had to do was replace a single line of code. Not type it all in this time.
    Here is what shows up on the screen:
    class MyFirstJavaClass {
         * Method main
         * @param args
         public static void main(String[] args) {
              // TODO: Add your code here
    I need to change the : // TODO: Add your code here
    with the line:
    System.out.println.("Chocolate, royalties, sleep");
    When I do this, and compile project, I get this:
    --------------------Configuration: MyFirstProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    javac: file not found: src_myfirstproject.txt (The system cannot find the path specified)
    Process completed.
    AGAIN! But it worked a few days ago.
    And when I execute, I get this:
    --------------------Configuration: MyFirstProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: MyFirstJavaClass
    Caused by: java.lang.ClassNotFoundException: MyFirstJavaClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: MyFirstJavaClass. Program will exit.
    Exception in thread "main"
    Process completed.
    I really hope the extra info helps someone help me!
    thank you!
    Edited by: MissPamela on Jul 19, 2010 3:23 PM

  • The user '*' preference item in the 'User - 6th Form Students Policy {E03166E7-A848-48B5-AA93-97B848AA9C13}' Group Policy object did not apply because it failed with error code '0x80070003 The system cannot find the path specified.' This error was suppres

    I am looking at an issue with users not getting specific group policies. 
    After searching a number of client computers I found that the following error
    The user '*' preference item in the 'User - 6th Form Students Policy {E03166E7-A848-48B5-AA93-97B848AA9C13}' Group Policy object did not apply because it failed with error code '0x80070003 The system cannot find the path specified.' This error was suppressed.
    I can find the folder in the Sysvol folder on all of the domain controllers. 
    The issue with end users seems to be that the proxy settings for internet explorer is not being applied. 
    Potential problems?
    one folder in sysvol entry is empty 
    \\<server>\SYSVOL\<domain.name>\Policies\{E03166E7-A848-48B5-AA93-97B848AA9C13}\User\microsoft\IEAK\LOCK
    or is this our issue
    The old method of configuring proxy settings  to Internet Explorer 9 has changed?
    https://support2.microsoft.com/kb/2530309?wa=wsignin1.0 
    http://thommck.wordpress.com/2013/11/08/the-new-way-to-configure-internet-explorer-proxy-settings-with-group-policy/

    Hi all 
    In administering this policy I am a little confused. 
    We have a policy that distributes proxy settings in the internet explorer maintenance settings section - however when opening this policy up in GPO editor the internet explorer maintenance section is not present.
    I plan to apply the settings via User/preferences/control panel settings/ internet settings (or registry settings from article) however I am unable to edit the settings for internet explorer maintenance and these will persist. Ideas????

  • The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed

    Friends,
                I'm facing below issue while accessing a crystal report. I heard it might be an access issue. But i'm able to access a report within a same folder.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException : The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    Any suggestions would be very helpful.
    Thanks in Advance,
    Bharath

    Apply trace on RAS and look for errors in the RAS logs at the same timestamp.
    These errors come for various errors and tracing RAS would give us a better idea.
    It might hapen that you observe these errors for reports which takes more than the RAS timeout to export the reports.
    Post getting the RAS logs you can try below steps if we see timeout errors in RAS logs.
    Copy clientSDKOptions.xml file from <BO install path>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib to the machine where your app is running Open clientSDKOptions.xml and change CORBARequestTimeOut from 600000 to a value large enough to allow the report to render, for instance 1200000. Default value is 600000 (10 minutes)
    Specify the location of the clientSDKOptions.xml file at run-time. In your JSP or Java files, use the Java method setProperty from the System class. Set the system property indicated by the ras.config key to the specified directory as: system.setProperty("ras.config","c:\temp"). This function call specifies that the clientSDKOptions.xml file in c:\temp is to be used for locating RAS servers.
    Thanks,
    Prithvi

  • Bulk Insert Task Cannot bulk load because the file could not be opened.operating system error error code 3(The system cannot find the path specified.)

    Following error i am getting after i chnaged the Path in Config File from
    \\vs01\d$\\Deployment\Files\temp.txt
    to
    C:\Deployment\Files\temp.txt
    [Bulk Insert Task] Error: An error occurred with the following error message: "Cannot bulk load because the file "C:\Deployment\Files\temp.txt" could not be opened. Operating system error code 3(The system cannot find the path specified.).". 

    I think i know whats going on. The Bulk Insert task runs by executing sql command (bulk insert) internally from the target sql server to load the file. This means that the SQL Server Agent of the target sql server should have permissions on the file you trying to load. This also means that you need to use UNC path instead to specify the file path (if the target server in on different machine)
    Also from BOL (see section Usage Considerations - last bullet point)
    http://msdn.microsoft.com/en-us/library/ms141239.aspx
    * Only members of the sysadmin fixed server role can run a package that contains a Bulk Insert task.
    Make sure you take care of this as well.
    HTH
    ~Mukti
    Mukti

  • Function module to find the path of application server

    Hi can any one say me what is the function module to find the path of the application server

    Hi ,
    What i understand from ur question is that u need path for application server from the presentation layer i.e user screen.
    u can achive the path this way
    parameter: file type filename-fileintern.
    when user presses F4 here, it will show the directories and path in the AL11.
    I didnt find any FM which will get the path of Al11.
    revrt back if any issues,
    Regards,
    Naveen

  • ODrive 10.2.0.0.5:  "The system cannot find the path specified"

    I am using Oracle Drive client 10.2.0.0.5. When I click "Work Online", I get the error, "There was a problem connecting to <connection name>. The system cannot find the path specified".
    The URL is entered as https://server.domain.com/content/dav. In the "Server Details"
    box, I have Server as server.domain.com, Port is 443, and Server Directory is content\dav.
    The Use Secure Connection box is checked, as well as the "Bypass Proxy" box under Advanced.
    Our server is running Content Services 10.1.2.0.0. By the way, I can get to Content Services through my browser (I.E. 7) with no problem. My workstation is running WinXP, SP2 in an Active Directory (Windows 2003 server) environment.
    Also, I tried entering the URL as http://server.domain.com:443/content/dav, and I do get prompted for my password (don't get any kind of error message, either), but when I enter my password, it just kicks me back to the password dialog box.
    Does anyone out there have any ideas for a fix for this?

    We found the solution yesterday, after thinking of all the more complex stuff (network issues, the client install, Apache, etc.). It all had to do with the user accounts. Something happened in the migration of my user account information from the old server to the new one. As soon as I changed my SSO password, I was able to get into Oracle Drive with no problem! So, for anyone else out there, make sure you look at your user provisioning/passwords first if you run into this same problem.

  • Load report Failed, COMExpection: System cannot find the path specified

    Interesting problem:
    I have an application that runs on a web server (currently running it as simple test application to make solving this easier). We use a BO XI report to load data from the DB via a stored proc, then run an ExportToStream to get CSV data to return to the caller.
    It all works well as long as I run the application under the NT Account logged into the Box (W2k3, R2). But when using a different account (it's a domain admin account), it fails with the following error:
    System.Exception: Load report Failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
    at CrystalDecisions.ReportAppServer.ClienDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
    at CyrstalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod).
    The report is located on a file drive the openMethod is OpenReportByTempCopy. The Temp directory for the user (landes) exists on the box, all things seem to be in place.
    Anybody know that path is specified and how to overcome this?
    Thanks

    Will it be possible to check this registry key: HKEY_LOCAL_MACINE\SOFTWARE\Suite 11or11.5\Report Application Server\InprocServer\LocalConnectionMgr and verify if the ConnectionDirectoryPath is set to something like C:\ ?
    If not, set to C:\ and see how it goes after running your app.
    Cheers
    Alphonse

  • Fatal Error: The system cannot find the path specified. WSUS

    Hi,
    WSUS post installation failed with the below error log. Any Suggestions pls. 
    2015-02-04 09:47:03  Postinstall started
    2015-02-04 09:47:03  Detected role services: Api, UI, WidDatabase, Services
    2015-02-04 09:47:03  Start: LoadSettingsFromParameters
    2015-02-04 09:47:03  Content local is: True
    2015-02-04 09:47:03  Content directory is: D:\WSUS
    2015-02-04 09:47:03  SQL instname is: 
    2015-02-04 09:47:03  End: LoadSettingsFromParameters
    2015-02-04 09:47:03  Start: Run
    2015-02-04 09:47:03  Fetching WsusAdministratorsSid from registry store
    2015-02-04 09:47:03  Value is S-1-5-21-738919999-2738570043-745769279-1003
    2015-02-04 09:47:03  Fetching WsusReportersSid from registry store
    2015-02-04 09:47:03  Value is S-1-5-21-738919999-2738570043-745769279-1004
    2015-02-04 09:47:04  Configuring content directory...
    2015-02-04 09:47:04  Configuring groups...
    2015-02-04 09:47:04  Starting group configuration for WSUS Administrators...
    2015-02-04 09:47:04  Found group in regsitry, attempting to use it...
    2015-02-04 09:47:20  Writing group to registry...
    2015-02-04 09:47:20  Finished group creation
    2015-02-04 09:47:20  Starting group configuration for WSUS Reporters...
    2015-02-04 09:47:20  Found group in regsitry, attempting to use it...
    2015-02-04 09:47:20  Writing group to registry...
    2015-02-04 09:47:20  Finished group creation
    2015-02-04 09:47:20  Configuring permissions...
    2015-02-04 09:47:20  Fetching content directory...
    2015-02-04 09:47:20  Fetching ContentDir from registry store
    2015-02-04 09:47:20  Value is D:\WSUS
    2015-02-04 09:47:20  Fetching group SIDs...
    2015-02-04 09:47:20  Fetching WsusAdministratorsSid from registry store
    2015-02-04 09:47:20  Value is S-1-5-21-738919999-2738570043-745769279-1003
    2015-02-04 09:47:20  Fetching WsusReportersSid from registry store
    2015-02-04 09:47:20  Value is S-1-5-21-738919999-2738570043-745769279-1004
    2015-02-04 09:47:20  Creating group principals...
    2015-02-04 09:47:20  Granting directory permissions...
    2015-02-04 09:47:20  Granting permissions on content directory...
    2015-02-04 09:47:20  Granting registry permissions...
    2015-02-04 09:47:20  Granting registry permissions...
    2015-02-04 09:47:20  Granting registry permissions...
    2015-02-04 09:47:20  Configuring shares...
    2015-02-04 09:47:20  Configuring network shares...
    2015-02-04 09:47:20  Fetching content directory...
    2015-02-04 09:47:20  Fetching ContentDir from registry store
    2015-02-04 09:47:20  Value is D:\WSUS
    2015-02-04 09:47:20  Fetching WSUS admin SID...
    2015-02-04 09:47:20  Fetching WsusAdministratorsSid from registry store
    2015-02-04 09:47:20  Value is S-1-5-21-738919999-2738570043-745769279-1003
    2015-02-04 09:47:20  Content directory is local, creating content shares...
    2015-02-04 09:47:20  Creating share "UpdateServicesPackages" with path "D:\WSUS\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications) published
    on this WSUS system."
    2015-02-04 09:47:20  Deleting existing share...
    2015-02-04 09:47:20  Creating share...
    2015-02-04 09:47:20  Share successfully created
    2015-02-04 09:47:20  Creating share "WsusContent" with path "D:\WSUS\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
    2015-02-04 09:47:20  Deleting existing share...
    2015-02-04 09:47:20  Creating share...
    2015-02-04 09:47:20  Share successfully created
    2015-02-04 09:47:20  Creating share "WSUSTemp" with path "C:\Program Files\Update Services\LogFiles\WSUSTemp" and description "A network share used by Local Publishing from a Remote WSUS Console Instance."
    2015-02-04 09:47:20  Deleting existing share...
    2015-02-04 09:47:20  Creating share...
    2015-02-04 09:47:20  Share successfully created
    2015-02-04 09:47:20  Finished creating content shares
    2015-02-04 09:47:20  Stopping service WSUSService
    2015-02-04 09:47:20  Stopping service W3SVC
    2015-02-04 09:47:21  Configuring WID database...
    2015-02-04 09:47:21  Configuring the database...
    2015-02-04 09:47:21  Establishing DB connection...
    2015-02-04 09:47:21  Checking to see if database exists...
    2015-02-04 09:47:21  Database exists
    2015-02-04 09:47:21  Switching database to single user mode...
    2015-02-04 09:47:24  Loading install type query...
    2015-02-04 09:47:24  DECLARE @currentDBVersion       int
    DECLARE @scriptMajorVersion     int = (9600)
    DECLARE @scriptMinorVersion     int = (16384)
    DECLARE @databaseMajorVersion   int 
    DECLARE @databaseMinorVersion   int 
    DECLARE @databaseBuildNumber    nvarchar(10)
    IF NOT EXISTS(SELECT * FROM sys.databases WHERE name='SUSDB')
    BEGIN
        SELECT 1
    END
    ELSE
    BEGIN
        SET @currentDBVersion = (SELECT SchemaVersion FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
        SET @databaseBuildNumber = (SELECT BuildNumber FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
        DECLARE @delimiterPosition INT = CHARINDEX('.', @databaseBuildNumber)
        IF (@delimiterPosition = 0)
        BEGIN
            RAISERROR('Invalid schema version number', 16, 1) with nowait
            return 
        END 
        SET @databaseMajorVersion = SUBSTRING(@databaseBuildNumber, 1, @delimiterPosition - 1)
        SET @databaseMinorVersion = SUBSTRING(@databaseBuildNumber, (@delimiterPosition + 1), (10 - @delimiterPosition))
        IF @currentDBVersion < 926
        BEGIN
            SELECT 3
        END
        ELSE
        BEGIN
            IF (@scriptMajorVersion > @databaseMajorVersion OR
               (@scriptMajorVersion = @databaseMajorVersion AND @scriptMinorVersion > @databaseMinorVersion))
            BEGIN
                SELECT 2
            END
            ELSE IF (@scriptMajorVersion = @databaseMajorVersion AND
                     @scriptMinorVersion = @databaseMinorVersion)
            BEGIN
                SELECT 0
            END
            ELSE
            BEGIN
                SELECT 4
            END
        END
    END
    2015-02-04 09:47:24  Install type is: Reinstall
    2015-02-04 09:47:24  Creating logins...
    2015-02-04 09:47:24  Fetching account info for S-1-5-20
    2015-02-04 09:47:24  Found principal
    2015-02-04 09:47:24  Found account
    2015-02-04 09:47:24  Got binary SID
    2015-02-04 09:47:24  Fetching WsusAdministratorsSid from registry store
    2015-02-04 09:47:24  Value is S-1-5-21-738919999-2738570043-745769279-1003
    2015-02-04 09:47:24  Fetching account info for S-1-5-21-738919999-2738570043-745769279-1003
    2015-02-04 09:47:24  Found principal
    2015-02-04 09:47:24  Found account
    2015-02-04 09:47:24  Got binary SID
    2015-02-04 09:47:24  Setting content location...
    2015-02-04 09:47:24  Fetching ContentDir from registry store
    2015-02-04 09:47:24  Value is D:\WSUS
    2015-02-04 09:47:24  Swtching DB to multi-user mode......
    2015-02-04 09:47:25  Finished setting multi-user mode
    2015-02-04 09:47:25  Writing DB settings to registry...
    2015-02-04 09:47:25  Marking PostInstall done for UpdateServices-WidDatabase in the registry...
    2015-02-04 09:47:25  Starting service W3SVC
    2015-02-04 09:47:25  Configuring IIS...
    2015-02-04 09:47:25  Start: ConfigureWebsite
    2015-02-04 09:47:25  System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified.
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.PropertyValueCollection.PopulateList()
       at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
       at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
       at Microsoft.UpdateServices.Administration.UseCustomWebSite..ctor()
       at Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
       at Microsoft.UpdateServices.Administration.PostInstall.Run()
       at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
    Syed

    Hi Syed,
    >>2015-02-04 09:47:25  Configuring IIS...
         2015-02-04 09:47:25  Start: ConfigureWebsite
         2015-02-04 09:47:25  System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified.
    According to the log, WSUS post install can not configure the website successfully.
    Have you change any default setting in IIS? If there is no other website running on the IIS, please try to reinstall the IIS role.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • Cant get full screen...

    I am running a mac mini on an LG 42" plasma TV and have tried all the various screen resolutions. My problem is that I have videos which are 624x368 (close enough to accurate 16:9 widescreen video) and these display as a full frame image (no black ba

  • Deadlock in Oracle.sql.ARRAY type

    Hi, We've come across the deadlock situation below when running multiple J2EE MDB instances that are trying to write to the DB: [deadlocked thread] [ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)': Thread '[ACTIVE] Execu

  • Move Central Instance to Another Server

    Hello expert, Now we have a distributed system: CI on server 1, DB on server 2. Now we want to move the CI to another server 3 without change the DB server. We get some information from link Move the central instance to another server in SAP We have

  • HT201302 how do i import photos from my iphone to my second Mac so that the same pictures are available on both laptops?

    i have 2 Mac laptops.. an Air and a Pro.. i usually synch my photos to my Air from my iPhone.. i'd like for the SAME photos currently on my iPhone (all photos, including all folders and libraries) to synch to my Pro as well.. so that the same photos

  • What are the OS differences between mini, mini server and XServe?

    Hi, Apart from cpu speed disk size and memory, what are the differences between the mac mini and the mini server? What, if any, are the differences in the OS, software tools etc? Also, what are the differences between the OS in the mini, mini server