Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using tiles with spring

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...

like image 333
a Learner Avatar asked Jun 03 '26 20:06

a Learner


1 Answers

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.

like image 114
Amar Avatar answered Jun 06 '26 13:06

Amar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!