Results 1 to 2 of 2

Thread: is not assignable to WebApplicationInitializer

  1. #1
    Join Date
    Mar 2009
    Posts
    18

    Default is not assignable to WebApplicationInitializer

    Hi,

    we updated our WebApp from Spring 3.1 M1 to M2:
    - Java 1.6
    - Spring
    - Hibernate 3.6.4
    - JSF 2.0.6
    - IceFaces 2.0.2
    - Tomcat 7.0.16

    With M2 the webApp is not starting:

    INFO: Starting Servlet Engine: Apache Tomcat/7.0.16
    java.lang.IllegalArgumentException: class com.sun.faces.renderkit.html_basic.MenuRenderer is not assignable to interface org.springframework.web.WebApplicationInitializer
    at org.springframework.util.Assert.isAssignable(Asser t.java:368)
    at org.springframework.util.Assert.isAssignable(Asser t.java:351)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:128)
    at org.springframework.web.SpringServletContainerInit ializer.onStartup(SpringServletContainerInitialize r.java:145)

    The class, that is not assignable differs.

    We have a web.xml in WEB-INF (servlet 3.0). If we declare servlet 2.5, the applicationis is starting up...

    Any idea, what we do wrong? Any config-files needed?

    Tjanks in advance!
    martin
    Last edited by langmar; Jul 15th, 2011 at 07:10 AM.

  2. #2

    Default

    I just starting hitting this issue as well.

    The WebApplicationInitializer interface appears to be a marker interface so that a servlet 3.0 compliant library can have various servlet initialization processes run in code. It uses SpringServletContainerInitializer to gather all the WebApplicationInitializer objects to run as part of servlet 3.0 startup. SpringServlet* runs because it defines a service that servlet 3.0 looks for.

    I have the same issue in that it loops through a bunch of objects from my jsf implementation (richfaces in my case), one exception message for each object, and gives the same error as listed above. Its not clear that these parts of the jsf system should be interacting at all.

    During the exception error printing looping, my jvm runs out of PermGen space and aborts.

    Here's an example of the error I get as well. The actual class is not important.
    Code:
    java.lang.IllegalArgumentException: class javax.faces.component.UISelectBoolean is not assignable to interface org.springframework.web.WebApplicationInitializer
    I opened a bug: SPR-8557 https://jira.springsource.org/browse/SPR-8557
    Last edited by aappddeevv; Jul 23rd, 2011 at 01:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •