java.lang.IllegalArgumentException: Invalid configuration type: '${wicket.MODE}'. Must be "development" or "deployment".

Apache's JIRA Issue Tracker | Gilberto C Andrade | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    In our project(jpa-spring-wicket) we need to filter the web.xml file, changing some placeholder and putting it (the web.xml) in ${project.build.directory}/${project.build.finalName}/WEB-INF/web.xml. Using tomcat6-maven-plugin it find the correct file, but fail when parsing it: <quote> Caused by: java.lang.IllegalArgumentException: Duplicate context initialization parameter contextConfigLocation at org.apache.catalina.core.StandardContext.addParameter(StandardContext.java:2661) ... 52 more Mar 16, 2012 11:49:12 AM org.apache.catalina.startup.ContextConfig applicationWebConfig SEVERE: Parse error in application web.xml file at jndi:/localhost/a2p/WEB-INF/web.xml org.xml.sax.SAXParseException; systemId: jndi:/localhost/a2p/WEB-INF/web.xml; lineNumber: 15; columnNumber: 21; Error at (15, 21: Duplicate context initialization parameter contextConfigLocation at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806) </quote> Using tomcat7-maven-plugin it find the correct file, but ignores it so using the original file which contain the ${placeholder}. Thus not initializing the application: <quote> INFO - ContextLoader - Root WebApplicationContext: initialization completed in 7808 ms INFO - WebXmlFile - web.xml: url mapping found for filter with name A2P: [/*] Mar 16, 2012 12:08:16 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter A2P java.lang.IllegalArgumentException: Invalid configuration type: '${wicket.MODE}'. Must be "development" or "deployment". at org.apache.wicket.protocol.http.WebApplication.getConfigurationType(WebApplication.java:670) at org.apache.wicket.Application.configure(Application.java:297) at org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:613) at org.apache.wicket.Application.initApplication(Application.java:806) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:346) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:286) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258) </quote> The plugin configuration: <quote> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0-beta-1</version> <configuration> <contextPath>${project.build.finalName}</contextPath> <tomcatWebXml>${project.build.directory}/${project.build.finalName}/WEB-INF/web.xml</tomcatWebXml> </configuration> </plugin> </quote> I have the jetty plugin setup as well and working, so I would try with tomcat but without success until now. Regards

    Apache's JIRA Issue Tracker | 5 years ago | Gilberto C Andrade
    java.lang.IllegalArgumentException: Invalid configuration type: '${wicket.MODE}'. Must be "development" or "deployment".
  2. 0

    [MTOMCAT-128] The plugin ignores and/or parses web.xml incorrectally when using tomcatWebXml option - ASF JIRA

    apache.org | 1 year ago
    java.lang.IllegalArgumentException: Invalid configuration type: '$ {wicket.MODE} '. Must be "development" or "deployment".
  3. 0

    Unable to deploy wicket-portlet in liferay portal?

    Stack Overflow | 4 years ago | Ritesh Gajera
    java.lang.IllegalArgumentException: Error initializing WicketFilter - you have no &lt;filter-mapping&gt; element with a url-pattern that uses filter: HelloWorldApplication
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Specifying a servlet filter name

    Google Groups | 8 years ago | Cafesolo
    java.lang.IllegalArgumentException: Error initializing WicketFilter - you have no <filter-mapping> element with a url-pattern that uses filter: Key[type=org.apache.wicket.protocol.http.WicketFilter, annotation=[none]]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid configuration type: '${wicket.MODE}'. Must be "development" or "deployment".

      at org.apache.wicket.protocol.http.WebApplication.getConfigurationType()
    2. Wicket Core
      WicketFilter.init
      1. org.apache.wicket.protocol.http.WebApplication.getConfigurationType(WebApplication.java:667)
      2. org.apache.wicket.Application.configure(Application.java:297)
      3. org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:610)
      4. org.apache.wicket.Application.initApplication(Application.java:804)
      5. org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:346)
      6. org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:286)
      6 frames
    3. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
      2. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
      5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
      6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      7. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      8. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      8 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:722)
      5 frames