Menu

ClassNotFoundException: JsfBeanConfigurerAsp

Users
2007-01-28
2013-04-08
  • marco mistroni

    marco mistroni - 2007-01-28

    hi all,
    i am using jsf-spring for my jsf/spring/hibernate application...
    i am deploying it on jboss-4.0.3SP1..
    i was using it successfully with jsf-spring version 3.0.0M2,but now i have updated to latest jars and while
    deploying i am receiving this exception from jboss

    2007-01-28 11:45:59,093 ERROR [de.mindmatters.faces.spring.context.ContextLoader] Context initialization failed
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.mindmatters.faces.spring.factory.aspectj.JsfBeanConfigurerAspect] for bean with name 'de.mindmatters.faces.spring.factory.aspectj.JsfBeanConfigurerAspect' defined in URL [jar:file:/C:/Sw/jboss-4.0.3SP1/server/default/tmp/deploy/tmp61302TestJSF-exp.war/WEB-INF/lib/jsf-spring-aspects-4.0RC1.jar!/META-INF/faces-spring-context.xml]; nested exception is java.lang.ClassNotFoundException: de.mindmatters.faces.spring.factory.aspectj.JsfBeanConfigurerAspect
    Caused by:
    java.lang.ClassNotFoundException: de.mindmatters.faces.spring.factory.aspectj.JsfBeanConfigurerAspect
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:183)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:317)
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1044)
        at org.springframework.beans.factory.support.AbstractBeanFactory.isBeanClassMatch(AbstractBeanFactory.java:1072)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
        at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:691)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:395)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:328)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at de.mindmatters.faces.spring.context.support.DefaultFacesWebApplicationContext.refresh(DefaultFacesWebApplicationContext.java:289)
        at de.mindmatters.faces.spring.context.ContextLoader.createWebApplicationContext(ContextLoader.java:307)
        at de.mindmatters.faces.spring.context.ContextLoader.initWebApplicationContext(ContextLoader.java:161)
        at de.mindmatters.faces.spring.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:61)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    i have downloaded recently jsf-spring 4.0.0RC1 and i have included in my war following jars from jsf-spring
    - jsf-spring-4.0RC1.jar
    - jsf-spring-mock-4.0RC1.jar
    - jsf-spring-aspects-4.0RC1.jar

    having a look at content of jsf-spring-aspect, there's no JsfBeanConfigurerAspect.class, but there's a JsfBeanConfigurerAspect.aj

    can anyone help me out?

    thanks in advance and regards
    Marco

     
    • Thomas Bednarz

      Thomas Bednarz - 2007-01-30

      I do have EXACTLY the same error message. Maybe this is a bug?

      Thomas

       
    • Thomas Bednarz

      Thomas Bednarz - 2007-01-30

      Just as addon information:

      I use also jsf-spring-4.0RC1.jar
      I use Tomcat 5.5.20 as container
      I use Eclipse IDE 3.2 with WTP.

      Thomas

       
    • Thomas Bednarz

      Thomas Bednarz - 2007-01-30

      Solved that one!

      You need the cglib-nodep-2.1_3.jar from the lib folder. This is a code generation library and I guess the .aj file contains code, that is generated at runtime using cglib.

      The Exception disappears if you add cglib-nodep-2.1._3.jar in your WEB-INF/lib folder. See also the Quickstart documentation.

      Thomas

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.