tempted to say it is a spring question (so not the right forum)

that said spring uses by default applicationContext.xml name but you likely
configured beans.xml in web.xml or somewhere else


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-22 16:38 GMT+02:00 Aruna Kalagnanam <[email protected]>:

> After removing the WEB-INF/beans.xml, I get a
> java.io.FileNotFoundException: Could not open ServletContext resource
> [/WEB-INF/beans.xml].
> If the beans.xml isnt present, how would Spring figure out the
> configuration.
> Sorry if I'm being dumb about this, I'm missing something basic here.
>
> Thanks,
> Aruna.
>
>
> On Mon, Aug 22, 2016 at 6:27 PM, Romain Manni-Bucau <[email protected]
> >
> wrote:
>
> > 2016-08-22 14:51 GMT+02:00 Aruna Kalagnanam <[email protected]>:
> >
> > > 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 <
> > [email protected]
> > > >
> > > 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 <[email protected]>:
> > > >
> > > > > 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.
> > > > >
> > > >
> > >
> >
>

Reply via email to