You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by cd...@apache.org on 2005/09/11 13:56:41 UTC
svn commit: r280110 -
/portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java
Author: cdoremus
Date: Sun Sep 11 04:56:39 2005
New Revision: 280110
URL: http://svn.apache.org/viewcvs?rev=280110&view=rev
Log:
Modified loadApplicationDefinition() to include path in Exception message when te strean is null.
Modified:
portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java
Modified: portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java?rev=280110&r1=280109&r2=280110&view=diff
==============================================================================
--- portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java (original)
+++ portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java Sun Sep 11 04:56:39 2005
@@ -146,7 +146,8 @@
// load its portlet.xml
InputStream stream = appContext.getResourceAsStream("/WEB-INF/portlet.xml");
if (stream == null) {
- throw new UnavailableException("No portlet.xml found in context " + appContext.getServletContextName());
+ String contextName = appContext.getServletContextName();
+ throw new UnavailableException("The portlet.xml could not be found in context " + contextName + " (" + path + ")");
}
InputSource source = new InputSource(stream);
Unmarshaller unmarshaller;