• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

WebLogic12C + Eclipse Indigo develop JSF 2.0 with CDI

 
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 171
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Space pants. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic