|
Problem |
If a deployed ear file contains both an xml
file and a dtd file, and the xml file contains a reference to the dtd
file, you can encounter this error.
For example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-archi SYSTEM 'web-archi.dtd'>
<web-archi>
The web-archi.dtd file is deployed as part of the ear file and is found
in the application directory; however, an error message "file:
///SYSTEM/tmp/web-archi.dtd" not found. is seen when the application
runs, indicating that the file was searched for in the working temp
directory, but not in the application directory. |
|
|
|
Solution |
Specify the systemid (the path to the
location of the file) on the InputSource. |
|
|
|
|
|
|
|