You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by "CRANFORD, CHRIS" <Ch...@setech.com> on 2009/11/16 16:25:59 UTC

Tiles 2.1.4 Validation

It appears that Tiles 2.1.4 is trying to validate the tiles.xml against
the DTD when Tomcat starts.  Unfortunately our Tomcat server sits behind
a proxy server and is incapable of making request externally.  I have
tried to use local path name conventions in the DTD DOCTYPE tag to
specify a local copy of the DTD, but it appears that Tomcat always tries
to reference from the bin\ directory.

How can I get my DOCTYPE tag to reference my DTD in webapp\WEB-INF\DTD\
? 


Re: Tiles 2.1.4 Validation

Posted by Antonio Petrelli <an...@gmail.com>.
2009/11/16 CRANFORD, CHRIS <Ch...@setech.com>:
> I even verified this definition from the tiles test 2.1.4 web application which I have deployed.  Ironically enough the tiles test webapp does not throw this exception, which makes me wonder if it is a side affect of integrating struts2, tiles2, and spring in some fashion or a poor configuration on my part.

This is really strange, and I don't think that it is a poor configuration.
I think that there is a bug somewhere but I don't know where.
Can you open a JIRA issue attaching a test case, preferably in maven format?

Antonio

RE: Tiles 2.1.4 Validation

Posted by "CRANFORD, CHRIS" <Ch...@setech.com>.
Hi Antonio -

I had checked this prior, but yes they both exist in the tiles-core-2.1.4.jar file as indicated below:

15492  10-13-09  21:29   org/apache/tiles/resources/tiles-config_2_1.dtd
13610  10-13-09  21:29   org/apache/tiles/resources/tiles-config_2_0.dtd

The DOCTYPE tag I had prior was:

<!DOCTYPE tiles-definitions PUBLIC
	"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
	"http://tiles.apache.org/dtds/tiles-config_2_1.dtd">

I even verified this definition from the tiles test 2.1.4 web application which I have deployed.  Ironically enough the tiles test webapp does not throw this exception, which makes me wonder if it is a side affect of integrating struts2, tiles2, and spring in some fashion or a poor configuration on my part.  

So far the only resolution I have been able to come by is to define my DOCTYPE tag as follows:

<!DOCTYPE tiles-definitions PUBLIC
	"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
	"..\webapps\seek\WEB-INF\tiles-config_2_1.dtd" >

Naturally I'd rather not have to do this if I can afford not to do so, but if it is the only resolution, I will deal and document it.  

Any other places you suggest I check?

> -----Original Message-----
> From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com]
> Sent: Monday, November 16, 2009 9:36 AM
> To: users@tiles.apache.org
> Subject: Re: Tiles 2.1.4 Validation
> 
> 2009/11/16 CRANFORD, CHRIS <Ch...@setech.com>:
> > It appears that Tiles 2.1.4 is trying to validate the tiles.xml against
> > the DTD when Tomcat starts.  Unfortunately our Tomcat server sits behind
> > a proxy server and is incapable of making request externally.
> 
> It should not happen, because Tiles tries to load DTD internally, by
> configuring the digester.
> This DTD is in tiles-core jar. Can you try to open with a zip
> extractor to see if it is there?
> They are in:
> org/apache/tiles/resources/
> 
> Antonio



Re: Tiles 2.1.4 Validation

Posted by Antonio Petrelli <an...@gmail.com>.
2009/11/16 CRANFORD, CHRIS <Ch...@setech.com>:
> It appears that Tiles 2.1.4 is trying to validate the tiles.xml against
> the DTD when Tomcat starts.  Unfortunately our Tomcat server sits behind
> a proxy server and is incapable of making request externally.

It should not happen, because Tiles tries to load DTD internally, by
configuring the digester.
This DTD is in tiles-core jar. Can you try to open with a zip
extractor to see if it is there?
They are in:
org/apache/tiles/resources/

Antonio