The system cannot locate the resource specified. Error processing resource

A

avishosh

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 ?
 
R

Richard Tobin

avishosh said:
<!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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top