This is an automated email from the ASF dual-hosted git repository. dashorst pushed a commit to branch archive/wicket-1.1.x in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 2facf1b9c932f1bdea24505f2c1e49eedfeef456 Author: Igor Vaynberg <[email protected]> AuthorDate: Mon Dec 19 20:45:07 2005 +0000 check and better exception when servlet init param is missing git-svn-id: https://svn.apache.org/repos/asf/incubator/wicket/branches/WICKET_1_1@458326 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/wicket/protocol/http/ContextParamWebApplicationFactory.java | 5 +++++ wicket/xdocs/changes.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/wicket/src/java/wicket/protocol/http/ContextParamWebApplicationFactory.java b/wicket/src/java/wicket/protocol/http/ContextParamWebApplicationFactory.java index 0a891e71ed..29244d7c27 100644 --- a/wicket/src/java/wicket/protocol/http/ContextParamWebApplicationFactory.java +++ b/wicket/src/java/wicket/protocol/http/ContextParamWebApplicationFactory.java @@ -38,6 +38,11 @@ public class ContextParamWebApplicationFactory implements IWebApplicationFactory public WebApplication createApplication(WicketServlet servlet) { final String applicationClassName = servlet.getInitParameter(APP_CLASS_PARAM); + + if (applicationClassName==null) { + throw new RuntimeException("servlet init param ["+APP_CLASS_PARAM+"] is missing. If you are trying to use your own implementation of IWebApplicationFactory and get this message then the servlet init param ["+WicketServlet.APP_FACT_PARAM+"] is missing"); + } + try { final Class applicationClass = getClass().getClassLoader().loadClass( diff --git a/wicket/xdocs/changes.xml b/wicket/xdocs/changes.xml index 88c27ac98f..a90d845ba2 100644 --- a/wicket/xdocs/changes.xml +++ b/wicket/xdocs/changes.xml @@ -11,6 +11,7 @@ <release version="1.2-alpha1" date="tbd" description="Wicket CVS HEAD development"> </release> <release version="1.1.1" date="tbd" description="Wicket 1.1.1"> + <action type="update" dev="Igor Vaynberg">Added check and better exception when servlet's init param is missing</action> <action type="update" dev="Igor Vaynberg" issue="1345198">Added label tags for generated input tags in CheckBoxMultipleChoice and RadioChoice</action> <action type="fix" dev="Juergen Donnerstag">Fixed autolink NPE problem</action> <action type="fix" dev="Igor Vaynberg" issue="1357755">Fixed bug in button that caused the value attirbute to disappear after form submit</action>
