aspose file tools*
The moose likes JSF and the fly likes WebLogic12C + Eclipse Indigo develop JSF 2.0 with CDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "WebLogic12C + Eclipse Indigo develop JSF 2.0 with CDI" Watch "WebLogic12C + Eclipse Indigo develop JSF 2.0 with CDI" New topic
Author

WebLogic12C + Eclipse Indigo develop JSF 2.0 with CDI

kim kao
Greenhorn

Joined: Dec 17, 2011
Posts: 7
hello, guys.
Oracle weblogic 12c has just released recently. I'm trying to develop jsf 2.0 with managed bean using injection mechanism on it.
But, only when i annotated the bean with @Managed , the backing bean did work.
If annotated the backing bean with @Named , that the backing bean didn't.
So, i supposed that is the CDI implementing jar is not correctly setup on classpath, but where is it ?
Just find out all the eclipse workspace and oracle lib folders , haven't see it.
anybody who has fallen in struggled like me ?
kim kao
Greenhorn

Joined: Dec 17, 2011
Posts: 7
kim kao wrote:hello, guys.
Oracle weblogic 12c has just released recently. I'm trying to develop jsf 2.0 with managed bean using injection mechanism on it.
But, only when i annotated the bean with @Managed , the backing bean did work.
If annotated the backing bean with @Named , that the backing bean didn't.
So, i supposed that is the CDI implementing jar is not correctly setup on classpath, but where is it ?
Just find out all the eclipse workspace and oracle lib folders , haven't see it.
anybody who has fallen in struggled like me ?


hello, guys ..
i found the tricky problem is that should put a empty but include the <beans> tag beans.xml file.
But i'm still confused with this empty file, is it play a key role with weld.jar ?
Here are my project settings.

beans.xml


web.xml


backingbean


presentation face page
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

Yes the empty beans.xml file does the key role of scanning the folder for java class files for annotation where it is placed. As you see this in weld.jar's one of the source file named as DefaultAnnotationProvider.java, the scanner does the scanning of the folders and other jar files only when it has empty beans.xml file is present. For more information kindly have a look at this DefaultAnnotationProvider file. Hope this clears your doubt.


No pain, No gain.
OCJP 1.6
 
 
subject: WebLogic12C + Eclipse Indigo develop JSF 2.0 with CDI