The system cannot locate the resource specified. Error processing resource

Discussion in 'XML' started by avishosh, Aug 5, 2004.

  1. avishosh

    avishosh Guest

    Hi,

    I'm getting the folowing error when tring to open xml file:
    --------------------------------------------------------------------------------
    The system cannot locate the resource specified. Error processing
    resource 'file:/xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd'.
    Error processing resource
    'file:///D:/omsj/suite/bb/omspo/v46_0/omsserver/o/deploy/omsserver/getCustomerDetailsResponse.xml'.
    Line 2, Position 93

    <!DOCTYPE service SYSTEM
    "file:/xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd">
    --------------------------------------------------------------------------------
    The xml look like that:
    --------------------------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE service SYSTEM
    "file:/xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd">

    <service>
    <header>
    <session ID="13"/>
    </header>
    <body>
    <customer customerId="3002">
    <customerDetails creditClass="High" creditStatus="Good"
    marketSegment="Residential" communicationLanguage="English"
    blackListInd="False" title="Mister" firstName="Bill"
    officialLanguage="English" lastName="Clinton"/>
    <addressDetails state="IL" street="W North Ave"
    streetNumber="1000" country="USA" municipality="Chicago"
    postCode="78328"/>
    </customer>
    </body>
    </service>
    --------------------------------------------------------------------------------
    The path of the xml is:
    D:\omsj\suite\bb\omspo\v46_0\omsserver\o\deploy\omsserver
    and the path of the DTD file is:
    D:\omsj\suite\bb\omspo\v46_0\omsserver\o\deploy\omsserver\xml\amdocs\oms\opi\customer

    When I change the path of the DTD in the xml file to:
    <!DOCTYPE service SYSTEM
    "file:D:/omsj/suite/bb/omspo/v46_0/omsserver/o/deploy/omsserver/xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd">

    it's work just fine.
    Why it does not work with relative path ?
    avishosh, Aug 5, 2004
    #1
    1. Advertising

  2. In article <>,
    avishosh <> wrote:

    ><!DOCTYPE service SYSTEM
    >"file:/xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd">


    >When I change the path of the DTD in the xml file to:
    ><!DOCTYPE service SYSTEM
    >"file:D:/omsj/suite/bb/omspo/v46_0/omsserver/o/deploy/omsserver/xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd">
    >
    >it's work just fine.


    >Why it does not work with relative path ?


    Because that isn't a relative path. Relative URLs don't start with file:,
    and you don't want the first slash either.

    Try

    <!DOCTYPE service SYSTEM
    "xml/amdocs/oms/opi/customer/getCustomerDetailsResponse.dtd">

    -- Richard
    Richard Tobin, Aug 5, 2004
    #2
    1. Advertising

  3. avishosh

    avishosh Guest

    Thanks a lot. It solve my problem and now I understand.

    -Avishay
    avishosh, Aug 8, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian
    Replies:
    0
    Views:
    1,779
    Brian
    Jun 19, 2004
  2. SampathTangudu
    Replies:
    0
    Views:
    2,615
    SampathTangudu
    Jan 28, 2005
  3. =?Utf-8?B?TWljaGFlbCBAIFNHTVM=?=

    The system cannot find the file specified

    =?Utf-8?B?TWljaGFlbCBAIFNHTVM=?=, Sep 13, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    4,251
    =?Utf-8?B?TWljaGFlbCBAIFNHTVM=?=
    Sep 13, 2005
  4. =?Utf-8?B?TXVydGF6YQ==?=

    RE: Error: "The system cannot find the file specified"

    =?Utf-8?B?TXVydGF6YQ==?=, Jul 24, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    5,967
    =?Utf-8?B?TXVydGF6YQ==?=
    Jul 25, 2006
  5. Anthony
    Replies:
    0
    Views:
    131
    Anthony
    Feb 12, 2005
Loading...

Share This Page