2016-08-22 14:51 GMT+02:00 Aruna Kalagnanam <kaar...@gmail.com>: > Hi Romain > > If I understood properly, you are saying that an empty beans.xml should be > present.
Think I said the opposite: don't create a spring beans.xml in WEB-INF. I know it is a common practise but this file is a CDI file with a standard namespace which of course - wouldn't be fun otherwise ;) - doesn't match spring one. > Do I need to include any other configuration ? Will openejb-core > take care of integration between EE and Spring. > > The opposite: spring is the one taking care of the EE integration and not EE taking care of spring integration. > Thanks, > Aruna. > > On Thu, Aug 11, 2016 at 7:37 PM, Romain Manni-Bucau <rmannibu...@gmail.com > > > wrote: > > > Hi, > > > > If i get it right you want to use spring in tomee? if so you need to NOT > > use WEB-INF/beans.xml cause it is a EE descriptor which needs to respect > EE > > namespace (obviously not the case of spring application contexts ;)). > > > > > > Romain Manni-Bucau > > @rmannibucau <https://twitter.com/rmannibucau> | Blog > > <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog > > <http://rmannibucau.wordpress.com> | Github <https://github.com/ > > rmannibucau> | > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > > <http://www.tomitribe.com> | JavaEE Factory > > <https://javaeefactory-rmannibucau.rhcloud.com> > > > > 2016-08-11 16:01 GMT+02:00 Aruna Kalagnanam <kaar...@gmail.com>: > > > > > Hi All, > > > > > > I'm trying to migrate a Spring bean web application to run on TomEE+. I > > > want to continue to use Spring beans, without introducing JavaEE beans. > > > > > > I tried the following steps : > > > > > > 1) Copied the war as-is into the webapps folder of TomEE+. Startup > error > > > due to "javax.xml.bind.UnmarshalException: unexpected element (uri:" > > > http://java.sun.com/xml/ns/javaee", local:"import")." > > > > > > 2) Copied openejb-core.jar into WEB-INF/lib; same startup error. > > > > > > 3) Modified beans.xml to include javaee namespace; same startup error. > > > > > > Can you point me to documentation references that cover porting a > spring > > > bean application to TomEE+ or help me with some pointers. > > > > > > Thanks, > > > Aruna. > > > > > >