[appengine-java] Re: Spring 3.0 + Tiles 2.1.4 + GAE
Hi, I was experiencing the same trouble and your advice solved it. Thank you for that. But it's not the last problem integrating Spring + Tiles on GAE. My stacktrace now shows : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/DispatcherServlet-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/ apache/el/ExpressionFactoryImpl at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java: 1401) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java: 512) ... All my googling revealed that this class is heavily related to Apache Tomcat but GAE is running on Jetty if I'm not mistaken. Is there any workaround? Thanks. -- David, new to GAE & Spring On 10 fév, 02:00, vladjan wrote: > Hi, > try usingtiles-2.1.2 > > Best regards, > Vladislav > > On Feb 8, 12:52 pm, Arun Shanker Prasad > wrote: > > > > > Hi All, > > > Any suggestions/thoughts/ideas? Stuck at this now.. > > > Thanks, > > Arun Shanker Prasad. > > > On Feb 4, 4:23 pm, Arun Shanker Prasad > > wrote: > > > > Hi All, > > > > I was trying to create a samplespringapplication withSpring3.0 > > > (RELEASE) &Tiles2.1.4, but I am getting the following error when I > > > start up the dev server. Has anyone else come across this? Any work > > > around? > > > > I had read in the forum about modifying some classes got get the > > >Springform tag to work, but that was for 2.5, anyone else tried > > >Spring3.0? What more problems can I get? I am at the initial phase of > > > planning for my project and just thought to giveSpring3.0 a try > > > since I don't want to learn 2.5 if 3.0 is already there ;) > > > > WARNING: Nested in > > > org.springframework.beans.factory.BeanCreationException: Error > > > creating bean with name 'tilesConfigurer' defined in ServletContext > > > resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method > > > failed; nested exception is java.lang.AbstractMethodError: > > > javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ > > > ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;: > > > java.lang.AbstractMethodError: > > > javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ > > > ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; > > > at > > > org.apache.tiles.jsp.evaluator.el.JspExpressionFactoryFactory.getExpression > > > Factory(JspExpressionFactoryFactory.java: > > > 62) > > > at > > > org.apache.tiles.evaluator.el.ELAttributeEvaluator.init(ELAttributeEvaluato > > > r.java: > > > 111) > > > at > > > org.apache.tiles.factory.TilesContainerFactory.storeContainerDependencies(T > > > ilesContainerFactory.java: > > > 447) > > > at > > > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesCon > > > tainerFactory.java: > > > 368) > > > at > > > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesCo > > > ntainerFactory.java: > > > 287) > > > at > > > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContain > > > erFactory.java: > > > 231) > > > at > > > org.apache.tiles.startup.BasicTilesInitializer.createContainer(BasicTilesIn > > > itializer.java: > > > 117) > > > at > > > org.apache.tiles.startup.BasicTilesInitializer.initialize(BasicTilesInitial > > > izer.java: > > > 53) > > > at > > > org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterProperties > > > Set(TilesConfigurer.java: > > > 203) > > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > > > y > > > $5.run(AbstractAutowireCapableBeanFactory.java:1451) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > > > y.invokeInitMethods(AbstractAutowireCapableBeanFactory.java: > > > 1449) > > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > > > y.initializeBean(AbstractAutowireCapableBeanFactory.java: > > > 1398) > > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > > > y.doCreateBean(AbstractAutowireCapableBeanFactory.java: > > > 512) > > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > > > y.createBean(AbstractAutowireCapableBeanFactory.java: > > > 450) > > > at org.springframework.beans.factory.support.AbstractBeanFactory > > > $1.getObject(AbstractBeanFactory.java:290) > > > at > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS > > > ingleton(DefaultSingletonBeanRegistry.java: > > > 222)
[appengine-java] Re: Spring 3.0 + Tiles 2.1.4 + GAE
I've found the solution : http://tiles.apache.org/2.1/framework/tutorial/advanced/el-support.html Just get the jasper-el library from Tomcat, add it to your classpath and it works. Usually running on Tomcat, I never encountered this error with Tiles. Now I'm on GAE with Jetty, it popped-up. Have fun! -- David, new to GAE & Spring On 10 fév, 18:29, "David F." wrote: > Hi, > > I was experiencing the same trouble and your advice solved it. Thank > you for that. > But it's not the last problem integrating Spring + Tiles on GAE. > > My stacktrace now shows : > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'tilesConfigurer' defined in ServletContext > resource [/WEB-INF/DispatcherServlet-servlet.xml]: Invocation of init > method failed; nested exception is java.lang.NoClassDefFoundError: org/ > apache/el/ExpressionFactoryImpl > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > y.initializeBean(AbstractAutowireCapableBeanFactory.java: > 1401) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > y.doCreateBean(AbstractAutowireCapableBeanFactory.java: > 512) > ... > > All my googling revealed that this class is heavily related to Apache > Tomcat but GAE is running on Jetty if I'm not mistaken. Is there any > workaround? > > Thanks. > -- > David, new to GAE & Spring > > On 10 fév, 02:00, vladjan wrote: > > > > > Hi, > > try usingtiles-2.1.2 > > > Best regards, > > Vladislav > > > On Feb 8, 12:52 pm, Arun Shanker Prasad > > wrote: > > > > Hi All, > > > > Any suggestions/thoughts/ideas? Stuck at this now.. > > > > Thanks, > > > Arun Shanker Prasad. > > > > On Feb 4, 4:23 pm, Arun Shanker Prasad > > > wrote: > > > > > Hi All, > > > > > I was trying to create a samplespringapplication withSpring3.0 > > > > (RELEASE) &Tiles2.1.4, but I am getting the following error when I > > > > start up the dev server. Has anyone else come across this? Any work > > > > around? > > > > > I had read in the forum about modifying some classes got get the > > > >Springform tag to work, but that was for 2.5, anyone else tried > > > >Spring3.0? What more problems can I get? I am at the initial phase of > > > > planning for my project and just thought to giveSpring3.0 a try > > > > since I don't want to learn 2.5 if 3.0 is already there ;) > > > > > WARNING: Nested in > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > creating bean with name 'tilesConfigurer' defined in ServletContext > > > > resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method > > > > failed; nested exception is java.lang.AbstractMethodError: > > > > javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ > > > > ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;: > > > > java.lang.AbstractMethodError: > > > > javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ > > > > ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; > > > > at > > > > org.apache.tiles.jsp.evaluator.el.JspExpressionFactoryFactory.getExpression > > > > Factory(JspExpressionFactoryFactory.java: > > > > 62) > > > > at > > > > org.apache.tiles.evaluator.el.ELAttributeEvaluator.init(ELAttributeEvaluato > > > > r.java: > > > > 111) > > > > at > > > > org.apache.tiles.factory.TilesContainerFactory.storeContainerDependencies(T > > > > ilesContainerFactory.java: > > > > 447) > > > > at > > > > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesCon > > > > tainerFactory.java: > > > > 368) > > > > at > > > > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesCo > > > > ntainerFactory.java: > > > > 287) > > > > at > > > > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContain > > > > erFactory.java: > > > > 231) > > > > at > > > > org.apache.tiles.startup.BasicTilesInitializer.createContainer(BasicTilesIn > > > > itializer.java: > > > > 117) > > > > at > > > > org.apache.t