You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2003/12/09 01:32:23 UTC

[J2] pam.deploy

The Portlet Application Manager Deploy is suddenly failing on me.
I don't remember changing anything from last week.
Looking into the error message, it says it can't find the DTD.
I tried changing the DTD to another known DTD, but thats not found 
either (although it is on the web)
For now I am removing the Doctype declaration in the demo app until I 
can figure out why the PAM is failing to parse the DTD

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646
+01 707 529 9194
+44 (0)79 8538 6471


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] pam.deploy

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Wednesday, December 10, 2003, at 10:03  PM, Roger Ruttimann wrote:

> On Monday 08 December 2003 16:32, David Sean Taylor wrote:
>> The Portlet Application Manager Deploy is suddenly failing on me.
>> I don't remember changing anything from last week.
>> Looking into the error message, it says it can't find the DTD.
>> I tried changing the DTD to another known DTD, but thats not found
>> either (although it is on the web)
>> For now I am removing the Doctype declaration in the demo app until I
>> can figure out why the PAM is failing to parse the DTD
>
> The web.xml includes the doc type:
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web 
> Application
> 2.2//EN"   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
> When the demo app gets deployed the web.xml is loaded into a DOM in 
> order to
> add missing entries. Because of the doc type definition the XML DOM 
> attempts
> to load the dtd. If the Sun server is down or the computer is offline 
> the
> deployment will fail with the dtd error.
>
> A solution would be to store the dtd on the local file system and use 
> the
> EntityResolver class for loading the local file.
>
> Once we have decided where the dtd should be stored
> (webapps/jetspeed/WEB_INF?) I could send a patch to fix the problem in 
> PAM.
>
Or someplace in the classpath will do

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office CA] +01 707 773-4646
[mobile]    +44 (0)79 8538 6471



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [J2] pam.deploy

Posted by Roger Ruttimann <ro...@earthlink.net>.
On Monday 08 December 2003 16:32, David Sean Taylor wrote:
> The Portlet Application Manager Deploy is suddenly failing on me.
> I don't remember changing anything from last week.
> Looking into the error message, it says it can't find the DTD.
> I tried changing the DTD to another known DTD, but thats not found
> either (although it is on the web)
> For now I am removing the Doctype declaration in the demo app until I
> can figure out why the PAM is failing to parse the DTD

The web.xml includes the doc type:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.2//EN"   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

When the demo app gets deployed the web.xml is loaded into a DOM in order to 
add missing entries. Because of the doc type definition the XML DOM attempts 
to load the dtd. If the Sun server is down or the computer is offline the 
deployment will fail with the dtd error.

A solution would be to store the dtd on the local file system and use the 
EntityResolver class for loading the local file.

Once we have decided where the dtd should be stored 
(webapps/jetspeed/WEB_INF?) I could send a patch to fix the problem in PAM.

Roger




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


[J2] Patch for PAM

Posted by Roger Ruttimann <ro...@earthlink.net>.
Deploying the demo app using PAM requires that you are connected to the 
internet because the DOCTYPE in web.xml points to sun's website.

The attached zip file includes a copy of web-app_2_3.dtd that needs to be 
added to jetspeed/portal and a patch for PAM to use the local file instead of
the URL.

Roger



On Monday 08 December 2003 16:32, David Sean Taylor wrote:
> The Portlet Application Manager Deploy is suddenly failing on me.
> I don't remember changing anything from last week.
> Looking into the error message, it says it can't find the DTD.
> I tried changing the DTD to another known DTD, but thats not found
> either (although it is on the web)
> For now I am removing the Doctype declaration in the demo app until I
> can figure out why the PAM is failing to parse the DTD