-
1. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
jaikiran Aug 3, 2011 2:24 AM (in response to lil_z420)Please post the relevant bean code and the log that you see on the console. If there are any exception stacktraces, please post them too.
-
2. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
jaikiran Aug 3, 2011 2:25 AM (in response to jaikiran)Also, when was this 6.1.0 SNAPSHOT built?
-
3. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
lil_z420 Aug 3, 2011 6:12 PM (in response to jaikiran)Thank you for your quick response and sorry for the delay in my response. It took a bit for me to figure out what exactly was causing this error. I have tracked it down to being related to a Bean with a dependency on a Singleton that has a dependency on a Service (it may not have anything to do with a Singleton or Service being involved but this is how I reproduced it). There is no issue with a Bean injecting a Singleton that has no dependencies. Once I added a dependency to the Singleton, the error appeared.
I am testing the 6.1 snapshot build #85 from August 2nd. I have attached the corresponding jar and source code that reproduces this error.
I have also verified that this jar deploys correctly on 6.0.0.Final.
-
server.log.zip 1.2 KB
-
src.zip 3.1 KB
-
singletonTest.jar 3.7 KB
-
-
4. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
lil_z420 Aug 7, 2011 8:25 PM (in response to lil_z420)Let me know if you need anymore information on this or if you need me to take anyother action regarding this (create issue, etc)
Thanks
-
5. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
lil_z420 Aug 17, 2011 10:23 AM (in response to lil_z420)Tested this against the 6.1 Final build and it still fails to deploy. Also tested it against 7.0.Final and it seems to deploy fine there so I guess I'll skip the 6.1 upgrade and go straight to 7.
-
6. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
javapenguin Aug 25, 2011 5:20 AM (in response to lil_z420)I am having the same problem, do you know if there is a fix for it yet.
My sigletons are not loading. It worked fine on As 6.0, but does not work on AS 6.1. I needed to upgrade to 6.1 to solve a Oracle database issue, but now my Singletons are not working.
-
7. Re: @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT
lil_z420 Aug 27, 2011 1:02 PM (in response to javapenguin)I'm not aware of any fix for this in AS6.1