[cdi-dev] Problem with CDI and weblogic
dan.j.allen at gmail.com
Mon May 21 17:08:23 EDT 2012
My guess is that the field being reported is perhaps in dependency of a
bean, rather than the bean itself. But that's just a shot in the dark.
The best way to move this forward is to duplicate your problem using an
Arquillian test case. The cdi project in the Arquillian Showcase is setup
to run tests on WebLogic 12.1.x. You can add your test case in there and
run it to investigate.
Follow the README for instructions about how to use the showcase.
To run a test on WebLogic Server 12.1, you need to:
1. Update the location of your weblogic installation in
2. uncomment the line in cdi/src/test/resources/arquillian.launch
3. start WebLogic Server
4. run this command to execute a test:
mvn test -Parq-wls-remote-12.1 -Dtest=GreeterManagedBeanTestCase
If you have trouble, please ask on the Arquillian forums:
On Sat, May 19, 2012 at 6:05 AM, Mehdi Heidarzadeh
<heidarzadeh2 at gmail.com>wrote:
> Hi @all
> I have a bean annotated with @Named and @RequestScoped.
> It is working perfectly in Glassfish 3.1.2 but when I deploy it in
> Weblogic 12.1.1 I get the following error!
> Caused By: org.jboss.weld.exceptions.DefinitionException: WELD-000075
> Normal scoped managed bean implementation class has a public field:
> public at Named @RequestScoped class
> I don't have any public field in my bean!!! all of them are private and I
> use getters and setters.
> Is this a bug in weblogic 12.1.1 ?
> How can I update weld version in weblogic?
> Thanks in advance.
> Mehdi Heidarzadeh Ardalani
> Independent JEE Consultant, Architect and Developer.
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cdi-dev