You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "Patel, Sanjay" <Sa...@nemours.org> on 2013/06/26 21:48:07 UTC

WARNING: Injection: No such property

I have @Local EJB in one web application. If I inject EJB in JSF bean in same web application, it works fine.

When I try to inject it in JSF bean in another web application in same TomEE container, it fails and gives below WARNING.

WARNING: Injection: No such property 'org.xyz.SearchController/personService' in class org.xyz.SearchController

This is how I inject.

@EJB
PersonServiceLocal personService;

TomEE log

INFO: Jndi(name=PersonServiceBeanLocal) --> Ejb(deployment-id=PersonServiceBean)
Jun 26, 2013 2:15:50 PM org.apache.openejb.assembler.classic.JndiBuilder bind
INFO: Jndi(name=global/directory/PersonServiceBean!org.xyz.api.PersonServiceLocal) --> Ejb(deployment-id=PersonServiceBean)
Jun 26, 2013 2:15:50 PM org.apache.openejb.assembler.classic.JndiBuilder bind
INFO: Jndi(name=global/directory/PersonServiceBean) --> Ejb(deployment-id=PersonServiceBean)

Sanjay

Re: AW: WARNING: Injection: No such property

Posted by "Patel, Sanjay" <Sa...@nemours.org>.
Right. That worked. Thanks. 

Sent from my iPad

On Jun 27, 2013, at 3:10 AM, "Thomas Herzog" <t....@curecomp.com> wrote:

> Try to extract the common dependencies into a separate jar  and reference this jar by the both web applications.
> 
> Mit freundlichen Grüßen
> 
> Thomas Herzog
> Softwareentwicklung
> 
> curecomp Software Services GmbH
> Hafenstrasse 47-51
> 4020 Linz
> 
> web: www.curecomp.com
> e-Mail: t.herzog@curecomp.com
> tel: +43 (0)732 9015-5563
> mobile: +43 (0)664 8867 9829
> 
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
> Gesendet: Mittwoch, 26. Juni 2013 21:50
> An: users@tomee.apache.org
> Betreff: Re: WARNING: Injection: No such property
> 
> Hi,
> 
> It sounds normal since classloaders isolate both apps Le 26 juin 2013 21:48, "Patel, Sanjay" <Sa...@nemours.org> a écrit :
> 
>> I have @Local EJB in one web application. If I inject EJB in JSF bean 
>> in same web application, it works fine.
>> 
>> When I try to inject it in JSF bean in another web application in same 
>> TomEE container, it fails and gives below WARNING.
>> 
>> WARNING: Injection: No such property
>> 'org.xyz.SearchController/personService' in class 
>> org.xyz.SearchController
>> 
>> This is how I inject.
>> 
>> @EJB
>> PersonServiceLocal personService;
>> 
>> TomEE log
>> 
>> INFO: Jndi(name=PersonServiceBeanLocal) -->
>> Ejb(deployment-id=PersonServiceBean)
>> Jun 26, 2013 2:15:50 PM 
>> org.apache.openejb.assembler.classic.JndiBuilder
>> bind
>> INFO:
>> Jndi(name=global/directory/PersonServiceBean!org.xyz.api.PersonService
>> Local)
>> --> Ejb(deployment-id=PersonServiceBean)
>> Jun 26, 2013 2:15:50 PM 
>> org.apache.openejb.assembler.classic.JndiBuilder
>> bind
>> INFO: Jndi(name=global/directory/PersonServiceBean) -->
>> Ejb(deployment-id=PersonServiceBean)
>> 
>> Sanjay
>> 

Re: WARNING: Injection: No such property

Posted by Romain Manni-Bucau <rm...@gmail.com>.
yes but it is no more in your application then.

An ear is maybe the way to go.

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/27 Thomas Herzog <t....@curecomp.com>

> Try to extract the common dependencies into a separate jar  and reference
> this jar by the both web applications.
>
> Mit freundlichen Grüßen
>
> Thomas Herzog
> Softwareentwicklung
>
> curecomp Software Services GmbH
> Hafenstrasse 47-51
> 4020 Linz
>
> web: www.curecomp.com
> e-Mail: t.herzog@curecomp.com
> tel: +43 (0)732 9015-5563
> mobile: +43 (0)664 8867 9829
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> Gesendet: Mittwoch, 26. Juni 2013 21:50
> An: users@tomee.apache.org
> Betreff: Re: WARNING: Injection: No such property
>
> Hi,
>
> It sounds normal since classloaders isolate both apps Le 26 juin 2013
> 21:48, "Patel, Sanjay" <Sa...@nemours.org> a écrit :
>
> > I have @Local EJB in one web application. If I inject EJB in JSF bean
> > in same web application, it works fine.
> >
> > When I try to inject it in JSF bean in another web application in same
> > TomEE container, it fails and gives below WARNING.
> >
> > WARNING: Injection: No such property
> > 'org.xyz.SearchController/personService' in class
> > org.xyz.SearchController
> >
> > This is how I inject.
> >
> > @EJB
> > PersonServiceLocal personService;
> >
> > TomEE log
> >
> > INFO: Jndi(name=PersonServiceBeanLocal) -->
> > Ejb(deployment-id=PersonServiceBean)
> > Jun 26, 2013 2:15:50 PM
> > org.apache.openejb.assembler.classic.JndiBuilder
> > bind
> > INFO:
> > Jndi(name=global/directory/PersonServiceBean!org.xyz.api.PersonService
> > Local)
> > --> Ejb(deployment-id=PersonServiceBean)
> > Jun 26, 2013 2:15:50 PM
> > org.apache.openejb.assembler.classic.JndiBuilder
> > bind
> > INFO: Jndi(name=global/directory/PersonServiceBean) -->
> > Ejb(deployment-id=PersonServiceBean)
> >
> > Sanjay
> >
>

AW: WARNING: Injection: No such property

Posted by Thomas Herzog <t....@curecomp.com>.
Try to extract the common dependencies into a separate jar  and reference this jar by the both web applications.

Mit freundlichen Grüßen

Thomas Herzog
Softwareentwicklung

curecomp Software Services GmbH
Hafenstrasse 47-51
4020 Linz

web: www.curecomp.com
e-Mail: t.herzog@curecomp.com
tel: +43 (0)732 9015-5563
mobile: +43 (0)664 8867 9829




-----Ursprüngliche Nachricht-----
Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
Gesendet: Mittwoch, 26. Juni 2013 21:50
An: users@tomee.apache.org
Betreff: Re: WARNING: Injection: No such property

Hi,

It sounds normal since classloaders isolate both apps Le 26 juin 2013 21:48, "Patel, Sanjay" <Sa...@nemours.org> a écrit :

> I have @Local EJB in one web application. If I inject EJB in JSF bean 
> in same web application, it works fine.
>
> When I try to inject it in JSF bean in another web application in same 
> TomEE container, it fails and gives below WARNING.
>
> WARNING: Injection: No such property
> 'org.xyz.SearchController/personService' in class 
> org.xyz.SearchController
>
> This is how I inject.
>
> @EJB
> PersonServiceLocal personService;
>
> TomEE log
>
> INFO: Jndi(name=PersonServiceBeanLocal) -->
> Ejb(deployment-id=PersonServiceBean)
> Jun 26, 2013 2:15:50 PM 
> org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
> Jndi(name=global/directory/PersonServiceBean!org.xyz.api.PersonService
> Local)
> --> Ejb(deployment-id=PersonServiceBean)
> Jun 26, 2013 2:15:50 PM 
> org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/directory/PersonServiceBean) -->
> Ejb(deployment-id=PersonServiceBean)
>
> Sanjay
>

Re: WARNING: Injection: No such property

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

It sounds normal since classloaders isolate both apps
Le 26 juin 2013 21:48, "Patel, Sanjay" <Sa...@nemours.org> a écrit :

> I have @Local EJB in one web application. If I inject EJB in JSF bean in
> same web application, it works fine.
>
> When I try to inject it in JSF bean in another web application in same
> TomEE container, it fails and gives below WARNING.
>
> WARNING: Injection: No such property
> 'org.xyz.SearchController/personService' in class org.xyz.SearchController
>
> This is how I inject.
>
> @EJB
> PersonServiceLocal personService;
>
> TomEE log
>
> INFO: Jndi(name=PersonServiceBeanLocal) -->
> Ejb(deployment-id=PersonServiceBean)
> Jun 26, 2013 2:15:50 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO:
> Jndi(name=global/directory/PersonServiceBean!org.xyz.api.PersonServiceLocal)
> --> Ejb(deployment-id=PersonServiceBean)
> Jun 26, 2013 2:15:50 PM org.apache.openejb.assembler.classic.JndiBuilder
> bind
> INFO: Jndi(name=global/directory/PersonServiceBean) -->
> Ejb(deployment-id=PersonServiceBean)
>
> Sanjay
>