You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2007/06/08 16:06:52 UTC
svn commit: r545508 -
/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/BlockPathModule.java
Author: reinhard
Date: Fri Jun 8 07:06:51 2007
New Revision: 545508
URL: http://svn.apache.org/viewvc?view=rev&rev=545508
Log:
give a hint how to solve this problem
Modified:
cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/BlockPathModule.java
Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/BlockPathModule.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/BlockPathModule.java?view=diff&rev=545508&r1=545507&r2=545508
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/BlockPathModule.java (original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/components/BlockPathModule.java Fri Jun 8 07:06:51 2007
@@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,7 +36,7 @@
* @version $Id$
*/
public class BlockPathModule implements InputModule {
-
+
private ServletContext servletContext;
public void setServletContext(ServletContext servletContext) {
@@ -61,7 +61,9 @@
URI uri = new URI(name);
absoluteURI = ((ServletServiceContext)servletContext).absolutizeURI(uri).toString();
} catch (URISyntaxException e) {
- throw new ConfigurationException("Couldn't absolutize " + name);
+ throw new ConfigurationException("Couldn't absolutize " + name +
+ ". Make sure that the configuration of your servlet-service " +
+ "contains a connection to '" + name + "'.");
}
return absoluteURI;
}