You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by "amol.p.dongare" <ad...@3ds.com> on 2015/01/13 23:19:43 UTC

@EJB injection is not working in TomEE 1.7.2

I have migrated my application from TomEE 1.6 to TomEE 1.7.2, after
successful migration I am facing java.lang.NullPointerException while
injecting @EJB resource.

Any change required in resource injection?





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Putting it in lib as well should be enough

You can also add to conf/system.properties:

xbean.finder.use.get-resources=true
Could you please let me know how to list jar files? This could probably
solves my issue...

Thanks



--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673423.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by "amol.p.dongare" <ad...@3ds.com>.
Could you please let me know how to list jar files? This could probably
solves my issue...

Thanks 



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673423.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Think we ignore manifest by default can you try listing your jar?
Le 16 janv. 2015 19:43, "amol.p.dongare" <ad...@3ds.com> a écrit :

> Yes my ear\META-INF\application.xml file specifies ejb module and
> MANIFEST.MF
> specifies dependent jar name.
>
> I am able to inject my EJB resource using @Inject annotation(and copying
> beans.xml in META-INF folder) but not able to do it using @EJB.
>
>
> Please help me to solve this mystery.
>
> Thanks.
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673421.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Re: @EJB injection is not working in TomEE 1.7.2

Posted by "amol.p.dongare" <ad...@3ds.com>.
Yes my ear\META-INF\application.xml file specifies ejb module and MANIFEST.MF
specifies dependent jar name.

I am able to inject my EJB resource using @Inject annotation(and copying
beans.xml in META-INF folder) but not able to do it using @EJB.


Please help me to solve this mystery.

Thanks.




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673421.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by Romain Manni-Bucau <rm...@gmail.com>.
did you check your ear structure?

<ear>/lib/*.jar vs <ear>/*jar

is application.xml matching it?


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-16 17:34 GMT+01:00 amol.p.dongare <ad...@3ds.com>:
> Any Idea?
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673417.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by "amol.p.dongare" <ad...@3ds.com>.
Any Idea?



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673417.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by "amol.p.dongare" <ad...@3ds.com>.
I am not able to inject bean resource here are my application detail - 
TomEEApp.ear
       lib\HelloBean.jar(Which contain IHelloBean.java and HelloBean.java)
       META-INF
       startup.jar


             
HelloBean.jar
1. IHelloBean.java
public interface IHelloBean {
	public void hello();
}
2. HelloBean.java
@Stateless
public class HelloBean implements IHelloBean{

	
	@Override
	public void hello() {
		// TODO Auto-generated method stub
		System.out.println("Hello TomEE");
	}
}

 startup.jar

@Startup
@Singleton
public class StartupBean {
	@EJB IHelloBean bean;
	
	@PostConstruct 
	public void test(){
		bean.hello();
	}
}

When I deploy above application TomEEApp.ear in TomEE\app it throws
following exception


SEVERE: EjbTransactionUtil.handleSystemException: null
java.lang.NullPointerException
        at StartupBean.test(StartupBean.java:14)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:223)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
        at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
        at
org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
        at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
        at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1590)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:179)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.access$100(SingletonInstanceManager.java:69)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:120)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:118)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.getInstance(SingletonInstanceManager.java:129)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:93)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.start(SingletonInstanceManager.java:84)
        at
org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:125)
        at
org.apache.openejb.assembler.classic.Assembler.startEjbs(Assembler.java:1168)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:807)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:623)
        at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:514)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
        at
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
        at
org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
        at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

Jan 14, 2015 2:52:54 PM
org.apache.openejb.core.singleton.SingletonInstanceManager createInstance
SEVERE: The bean instance StartupBean threw a system
exception:org.apache.openejb.InvalidateReferenceException:
java.rmi.RemoteException: The bean encounter
        java.lang.NullPointerException: The bean encountered a
non-application exception; nested exception is:
        java.lang.NullPointerException
org.apache.openejb.InvalidateReferenceException: java.rmi.RemoteException:
The bean encountered a non-application exception; nested exception is:
        java.lang.NullPointerException: The bean encountered a
non-application exception; nested exception is:
        java.lang.NullPointerException
        at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:156)
        at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1593)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:179)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.access$100(SingletonInstanceManager.java:69)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:120)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:118)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.getInstance(SingletonInstanceManager.java:129)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:93)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.start(SingletonInstanceManager.java:84)
        at
org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:125)
        at
org.apache.openejb.assembler.classic.Assembler.startEjbs(Assembler.java:1168)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:807)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:623)
        at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:514)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
        at
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
        at
org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
        at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: java.rmi.RemoteException: The bean encountered a non-application
exception; nested exception is:
        java.lang.NullPointerException
        at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:155)
        ... 32 more
Caused by: java.lang.NullPointerException
        at StartupBean.test(StartupBean.java:14)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:223)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
        at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
        at
org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
        at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
        at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1590)
        ... 31 more

Jan 14, 2015 2:52:54 PM org.apache.openejb.assembler.classic.Assembler
destroyApplication
INFO: Undeploying app: D:\wdir\tomcat\next\Apps\TomEEApp
Jan 14, 2015 2:52:54 PM org.apache.openejb.assembler.classic.Assembler
buildContainerSystem
SEVERE: Application could not be deployed:  D:\wdir\tomcat\next\Apps\WEAR
org.apache.openejb.OpenEJBException: Creating application failed:
D:\wdir\tomcat\next\Apps\WEAR: Error starting 'StartupBean'.  Exception:
class org.apache.
an: javax.ejb.NoSuchEJBException: Singleton failed to initialize: Singleton
failed to initialize
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:896)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:623)
        at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:514)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
        at
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
        at
org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
        at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: org.apache.openejb.OpenEJBException: Error starting
'StartupBean'.  Exception: class org.apache.openejb.OpenEJBException:
Singleton startup faile
d to initialize: Singleton failed to initialize
        at
org.apache.openejb.assembler.classic.Assembler.startEjbs(Assembler.java:1174)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:807)
        ... 20 more
Caused by: org.apache.openejb.OpenEJBException: Singleton startup failed:
StartupBean: javax.ejb.NoSuchEJBException: Singleton failed to initialize:
Singlet
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:98)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.start(SingletonInstanceManager.java:84)
        at
org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:125)
        at
org.apache.openejb.assembler.classic.Assembler.startEjbs(Assembler.java:1168)
        ... 21 more
Caused by: org.apache.openejb.ApplicationException:
javax.ejb.NoSuchEJBException: Singleton failed to initialize: Singleton
failed to initialize
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:210)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.access$100(SingletonInstanceManager.java:69)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:120)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:118)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.getInstance(SingletonInstanceManager.java:129)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:93)
        ... 24 more
Caused by: javax.ejb.NoSuchEJBException: Singleton failed to initialize
        ... 31 more
Caused by: org.apache.openejb.InvalidateReferenceException:
java.rmi.RemoteException: The bean encountered a non-application exception;
nested exception is:
        java.lang.NullPointerException: The bean encountered a
non-application exception; nested exception is:
        java.lang.NullPointerException
        at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:156)
        at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1593)
        at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:179)
        ... 30 more
Caused by: java.rmi.RemoteException: The bean encountered a non-application
exception; nested exception is:
        java.lang.NullPointerException
        at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:155)
        ... 32 more
Caused by: java.lang.NullPointerException
        at StartupBean.test(StartupBean.java:14)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:223)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
        at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
        at
org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
        at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
        at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1590)
        ... 31 more


I am using TomEE 1.7 and Java 1.8. This application works perfectly in TomEE
1.6 and Java 1.7.

Any idea whats going wrong



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673371.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Configure exclusions.list I guess. What is the jar name containing the ejb?
Le 14 janv. 2015 00:06, "amol.p.dongare" <ad...@3ds.com> a écrit :

> Same code was working in  TomEE 1.6 and not working in TomEE 1.7.2. What
> are
> the changes required for its working?
>
>
> Thanks,
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673361.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Re: @EJB injection is not working in TomEE 1.7.2

Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi

Can you give us a bit more information about your application? In
particular it would be useful to know how your war/jar is structured, where
your EJB is in that structure and what you're injecting that EJB into. If
you're able to share a code snippet that would be really useful, and if you
can share your logs that would be a big help as well. How old is your
1.7.2. snapshot?

Thanks

Jon

On Tue, Jan 13, 2015 at 10:49 PM, amol.p.dongare <ad...@3ds.com> wrote:

> Same code was working in  TomEE 1.6 and not working in TomEE 1.7.2. What
> are
> the changes required for its working?
>
>
> Thanks,
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673361.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Re: @EJB injection is not working in TomEE 1.7.2

Posted by "amol.p.dongare" <ad...@3ds.com>.
Same code was working in  TomEE 1.6 and not working in TomEE 1.7.2. What are
the changes required for its working?


Thanks,



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359p4673361.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: @EJB injection is not working in TomEE 1.7.2

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

Not voluntary, maybe your jar is no more scanned, IIRC we changed a
bit our exclusions


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-13 23:19 GMT+01:00 amol.p.dongare <ad...@3ds.com>:
> I have migrated my application from TomEE 1.6 to TomEE 1.7.2, after
> successful migration I am facing java.lang.NullPointerException while
> injecting @EJB resource.
>
> Any change required in resource injection?
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/EJB-injection-is-not-working-in-TomEE-1-7-2-tp4673359.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.