while using tiles along with spring i m getting following error:
java.net.UnknownHostException: tiles.apache.org
program runs fine when internet connection remains 'on' otherwise it shows above error.
can anyone provides me any hint???
Thanks...
In my case, this happens because of version mismatch of dtd. Here is the thing,
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
If we see the DOCTYPE there is a version "2.1" ("//DTD Tiles Configuration 2.1//EN") and the dtd should also be the same like "tiles-config_2_1.dtd". If the version is 3.1 ("//DTD Tiles Configuration 3.1//EN") and the dtd is "tiles-config_3_1.dtd".
I modified the version and its start working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With