You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Timo <ti...@telus.net> on 2006/02/03 19:34:49 UTC

Can't get definitions factory from context.

Can't get definitions factory from context.
It is strange but interesting;
I've downloaded and installed Struts Tiles as follows:
1) downloaded the latest binaries struts-1.2.8 from one of the struts mirror 
sites and extracted the files without any problems.
2) copied all the jar files in the struts/lib folder to my application WEB-
INF/lib folder.
3) edited the struts-confi.xml as instructed to include the Tiles plug-in as 
with the following parameters:
*definitions-config : points to /WEB-INF/tiles/tiles-defs.xml
                      This is where I stored my tiles-defs.xml file
*definitions-parser-validate: false
*moduleAware : true

4) I've edited my tiles-defs.xml and it has this signature:

<!DOCTYPE tiles-definitions PUBLIC
  "-//Apache Software Foundation//DTD Tiles Configurations 1.1//EN" 
  "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">

<tiles-definitions>
...etc
</tiles-definitions>

Now I tested my application and works just great; tiles are loaded and working 
perfectly....

THE PROBLEM is: when I disconnect from the internet; (This is a laptop PC) I 
got the Can't get definitions factory from context. exception!!!!!

I believe that it is looking at the validator 
http://jakarta.apach.org/struts/tiles-config_1_1.dtd as specified in step 4 
above; 
I am not sure how to solve this problem; 
I tried:
1) placing a copy of this dtd locally and use SYSTEM instead of PUBLIC to 
reference it. (did not work)

Any suggestion or idea I would appreciate it.

Thanks in advance. 
-- 
T


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org