Not the right forum to address this: http://java.sys-con.com/read/180386.htm
This is what JBoss/Spring integration is about.
Probably the rigth place would be Spring forum.
btw: is that class present in classpath?
btw2: NoClassDefException found or ClassCastException?
btw3: give more info next time
It turned out to be that I needed to put the spring.jar in my server/lib. Now I have a seperate issue that the ApplicationContextAware bean upon initization, is not getting its setApplicationContext run.
Isn't ApplicationContextAware an interface?
If your bean implements this interface and is then a part of certain ApplicationContext and not plain Bean Factory, then it should normally get his ApplicationContext owner instance injected.