Results 1 to 9 of 9

Thread: Cannot activate ELAttributeEvaluator

  1. #1

    Question Cannot activate ELAttributeEvaluator

    Hi,

    I am using Spring Tiles to create a page with the collection of jsps. After writing the code and running the server, i am getting the following exception.

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/tiles-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot activate ELAttributeEvaluator
    Caused by: java.lang.NoSuchMethodException: org.apache.tiles.impl.BasicTilesContainer.setAttri buteEvaluatorFactory(org.apache.tiles.evaluator.At tributeEvaluatorFactory)

    I am using the following jars.
    tiles-api-3.0.0.jar
    tiles-core-3.0.0.jar
    tiles-jsp-3.0.0.jar
    tiles-servlet-3.0.0.jar
    tiles-template-3.0.0.jar
    org.springframework.web.servlet-3.0.5.RELEASE.jar

    Please help me how to get resolve this issue.

    Thanks,
    Srinivas

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Please use [ code][/code ] tags when posting xml/stacktraces/code...

    Spring has no support for Tiles 3 (yet?) and hasn't been tested with it, Tiles 2.2.x is supported.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Sep 2012
    Location
    Hyderabad
    Posts
    3

    Default

    Hi,

    got the same error.
    I am using the below version of Spring and tiles:
    spring-aop-3.0.4.RELEASE.jar
    spring-asm-3.0.4.RELEASE.jar
    spring-beans-3.0.4.RELEASE.jar
    spring-context-3.0.4.RELEASE.jar
    spring-context-support-3.0.4.RELEASE.jar
    spring-core-3.0.4.RELEASE.jar
    spring-expression-3.0.4.RELEASE.jar
    spring-struts-3.0.6.RELEASE.jar
    spring-web-3.0.4.RELEASE.jar
    spring-webmvc-3.0.4.RELEASE.jar

    tiles-api-2.2.0.jar
    tiles-compat-2.2.0.jar
    tiles-core-2.2.0.jar
    tiles-extras-2.2.0.jar
    tiles-jsp-2.2.0.jar
    tiles-servlet-2.2.0.jar
    tiles-template-2.2.0-2.2.0.jar

    Stack Trace:
    Code:
    DispatcherSer E org.springframework.web.servlet.FrameworkServlet initServletBean Context initialization failed
                                     org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot activate ELAttributeEvaluator
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
    	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
    	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
    	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
    	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
    	at javax.servlet.GenericServlet.init(GenericServlet.java:161)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:336)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.load(ServletWrapper.java:1360)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:982)
    	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3704)
    	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
    	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
    	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
    	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
    	at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)
    	at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)
    	at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
    	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
    Caused by: java.lang.IllegalStateException: Cannot activate ELAttributeEvaluator
    	at org.springframework.web.servlet.view.tiles2.TilesConfigurer$TilesElActivator.registerEvaluator(TilesConfigurer.java:550)
    	at org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterPropertiesSet(TilesConfigurer.java:362)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
    Last edited by yats; Sep 13th, 2012 at 07:54 AM.

  4. #4
    Join Date
    Feb 2013
    Posts
    4

    Default Any solution for this?

    I am getting this error. Is there any solution for this?

    Stack Trace:
    Code:
    DispatcherSer E org.springframework.web.servlet.FrameworkServlet initServletBean Context initialization failed
                                     org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot activate ELAttributeEvaluator
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
    	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
    	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
    	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
    	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
    	at javax.servlet.GenericServlet.init(GenericServlet.java:161)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:336)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.load(ServletWrapper.java:1360)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:982)
    	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3704)
    	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
    	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
    	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
    	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
    	at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)
    	at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)
    	at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
    	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
    Caused by: java.lang.IllegalStateException: Cannot activate ELAttributeEvaluator
    	at org.springframework.web.servlet.view.tiles2.TilesConfigurer$TilesElActivator.registerEvaluator(TilesConfigurer.java:550)
    	at org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterPropertiesSet(TilesConfigurer.java:362)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
    [/QUOTE]

  5. #5
    Join Date
    Sep 2012
    Location
    Hyderabad
    Posts
    3

    Default

    this problem is coming because of mismatch in tiles and spring jars.. can you tell us the name of the jars you are using for Spring and tiles?

  6. #6
    Join Date
    Feb 2013
    Posts
    4

    Default

    Quote Originally Posted by yats View Post
    this problem is coming because of mismatch in tiles and spring jars.. can you tell us the name of the jars you are using for Spring and tiles?
    Hi,

    I have used the following jars
    tiles-api-2.2.2.jar
    tiles-core-2.2.2.jar
    tiles-jsp-2.2.2.jar
    tiles-servlet-2.2.2.jar
    tiles-template-2.2.2.jar
    tiles-el-2.2.2.jar

    spring-webmvc-3.1.4.RELEASE.jar.

    I am using Spring 3.1 jar. regarding Tiles, i tried using all version from 2.0, 2.1, 3.0 and 3.1.

    Everything gives the same error.

    Thanks.

  7. #7
    Join Date
    Sep 2012
    Location
    Hyderabad
    Posts
    3

    Default

    use Spring 3.0.4.RELEASE with tiles 2.2.2, it solved my problem.
    If you are using maven build use the below dependency

    <!-- Spring dependent Jar files-->
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>3.0.4.RELEASE</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>3.0.4.RELEASE</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-struts</artifactId>
    <version>3.0.6.RELEASE</version>
    </dependency>
    <!-- Tiles Dependencey -->
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-servlet</artifactId>
    <version>2.2.2</version>
    </dependency>
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-jsp</artifactId>
    <version>2.2.2</version>
    </dependency>
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-extras</artifactId>
    <version>2.2.2</version>
    <exclusions>
    <exclusion>
    <groupId>org.slf4j</groupId>
    <artifactId>jcl-over-slf4j</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-core</artifactId>
    <version>2.2.2</version>
    <exclusions>
    <exclusion>
    <groupId>org.slf4j</groupId>
    <artifactId>jcl-over-slf4j</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-api</artifactId>
    <version>2.2.2</version>
    </dependency>
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-compat</artifactId>
    <version>2.2.2</version>
    </dependency>
    <dependency>
    <groupId>org.apache.tiles</groupId>
    <artifactId>tiles-template</artifactId>
    <version>2.2.2</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-jdk14</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-nop</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-jcl</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>commons-digester</groupId>
    <artifactId>commons-digester</artifactId>
    <version>1.8</version>
    </dependency>
    <!-- Tiles dependecy closed here -->

  8. #8
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Please use [ code][/code ] tags when posting code that way it remains readable...

    NEVER mix different spring versions you are now mixing 3.0.4 and 3.06... If you want problems that is the way to go.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  9. #9
    Join Date
    Feb 2013
    Posts
    4

    Default

    Quote Originally Posted by Marten Deinum View Post
    Please use [ code][/code ] tags when posting code that way it remains readable...

    NEVER mix different spring versions you are now mixing 3.0.4 and 3.06... If you want problems that is the way to go.
    Hi Marten,

    Thanks. I have one more doubt.
    I am using 6 different jars such as
    Tiles-api
    Tiles-core
    Tiles-jsp
    Tiles-servlet
    Tiles-template
    Tiles-el

    In the above case, should i use all these tiles of same version or can i use Tiles-jsp 2.14 , Tiles-api 2.2.0 etc...

    Please let me know since am getting error if i use 2.2.0 for all different Tiles jars.

    As far as Spring JARs are concerned, am using the 3.1.1.RELEASE jars. Please let me know if thats fine.

    Thanks,
    Arun
    Last edited by Arun08; Feb 27th, 2013 at 01:25 AM.

Posting Permissions

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