Monday, October 29, 2007

Using Dependency Injection from Web Container in OC4J 10.1.3.x

OC4J and later supports dependency injection from web container. I've seen this question from many customers via email or in OTN forum that using dependency injection from web container generates NPE. If you are running into such problems, make sure that you have specified version as "2.5" in your deployment descriptor (web.xml) as follows:

<?xml version = '1.0'?>?
<?web-app version="2.5" xmlns=""

1 comment:

iSilver Labs said...

We just developed a open source Light Weight Ioc / Dependency Injection framework.