[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.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.sprin
[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
Hi, try using tiles-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 sample spring application with Spring 3.0 > > (RELEASE) & Tiles 2.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 > > Spring form tag to work, but that was for 2.5, anyone else tried > > Spring 3.0? What more problems can I get? I am at the initial phase of > > planning for my project and just thought to give Spring 3.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) > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs > > tractBeanFactory.java: > > 287) > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr > > actBeanFactory.java: > > 189) > > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns > > tantiateSingletons(DefaultListableBeanFactory.java: > > 557) > > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFa > > ctoryInitialization(AbstractApplicationContext.java: > > 842) > > at > > org.springframework.context.support.AbstractApplicationContext.refresh(Abst > > ractApplicationContext.java: > > 416) > > at > > org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex > > t(FrameworkServlet.java: > > 443) > > at > > org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex > > t(FrameworkServlet.java: > > 459) > > at > > org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext( > > FrameworkServlet.java: > > 340) > > at > > org.springframework.web.servlet.FrameworkServlet.initSe
[appengine-java] Re: Spring 3.0 + Tiles 2.1.4 + GAE
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 sample spring application with Spring 3.0 > (RELEASE) & Tiles 2.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 > Spring form tag to work, but that was for 2.5, anyone else tried > Spring 3.0? What more problems can I get? I am at the initial phase of > planning for my project and just thought to give Spring 3.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) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs > tractBeanFactory.java: > 287) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr > actBeanFactory.java: > 189) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns > tantiateSingletons(DefaultListableBeanFactory.java: > 557) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFa > ctoryInitialization(AbstractApplicationContext.java: > 842) > at > org.springframework.context.support.AbstractApplicationContext.refresh(Abst > ractApplicationContext.java: > 416) > at > org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex > t(FrameworkServlet.java: > 443) > at > org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex > t(FrameworkServlet.java: > 459) > at > org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext( > FrameworkServlet.java: > 340) > at > org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkS > ervlet.java: > 307) > at > org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java: > 127) > at javax.servlet.GenericServlet.init(GenericServlet.java:215) > at > org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java: > 433) > at org.mortbay.jetty.servlet.ServletHolde