Mehdi,

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.

https://github.com/arquillian/arquillian-showcase

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 cdi/src/test/resources/arquillian.xml
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:

http://community.jboss.org/en/arquillian

Good luck!

-Dan

On Sat, May 19, 2012 at 6:05 AM, Mehdi Heidarzadeh <heidarzadeh2@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@Named @RequestScoped class com.x.y.web.monitoring.MonitoringController

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.
http://www.TheBigJavaBlog.com


_______________________________________________
cdi-dev mailing list
cdi-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev




--
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction