portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdore...@apache.org
Subject svn commit: r280110 - /portals/pluto/trunk/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceContextImpl.java
Date Sun, 11 Sep 2005 11:56:41 GMT
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;



Mime
View raw message