How to use @EJB,@Inject and @ Local in weblogic 12.1.3.0?

How to use @EJB,@Inject and @ Local in weblogic 12.1.3.0?



My EJB3 application which was built on java1.7 was deployed in weblogic 12.1.2.0 server perfectly.However, after migrating to weblogic 12.1.3.0 with java1.8 built EAR, it throws various kinds of errors such as dependency injection issues. Do I need to change annotations in the current code such as @EJB,@Inject and @Local?




2 Answers
2



I wouldn't go so far. I think a jar is truely missing on the new application server.



If you moved from 12.1.2.0 to 12.1.3.0 your application, is it possible that a lib folder of weblogic 12.1.2.0 contains commons jar (for all applications) that you did not take into the new application server ?



Don't copy the jars that already exist with a newer version, but search for something custom you once added for your applications to work.
What kind of classes are told missing ?



It can also be a trick if Weblogic can use an unified classloader (I don't know) that was set on version 12.1.2.0 and made classes being red from lib server folder and ear contents togheter, and now in 12.1.3.0 this customization is not set and classes are taken only from the ear.



Probably you have bundle jar's with implementation for those specs, such as, @EJB, @Inject (etc).



If you check differences between both versions, they are completely the same (at least) for those specs:



https://docs.oracle.com/middleware/1212/wls/NOTES/whatsnew.htm#BGGGHCJD



https://docs.oracle.com/middleware/1213/wls/NOTES/whatsnew.htm#BGGGHCJD



Maybe if you post the stacktrace, we can identify the issue



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)