views:

395

answers:

0

We have an application that uses SiteMesh, and when WebLogic tries to parse the TLD files, it sees the DOCTYPE specification, containing the reference to the TLD DTD, at "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd".

The server can not initiate outbound connections to the Internet, and so cannot retrieve the DTD, which causes the deployment of the application to fail.

I understand that this problem can be solved by setting up an XML Registry in the WebLogic console, and specifying a local file to return when trying to resolve, for instance "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd".

Is there any other way to prevent the server from going out to the 'net to resolve the external entity reference? By packaging the DTD with the application and somehow informing the server to look for that DTD in there rather than "out there"?