Managed bean not being created

Hi,

I have a backing bean, PersonBean, that takes a bean called ServiceLocator as a managed property:

<managed-bean>

<managed-bean-name>ServiceLocator</managed-bean-name>

<managed-bean-class>com.ge.lms.service.ServiceLocator</managed-bean-class>

<managed-bean-scope>application</managed-bean-scope>

</managed-bean>

<managed-bean>

<managed-bean-name>PersonBean</managed-bean-name>

<managed-bean-class>com.ge.lms.jsf.backing.PersonBean</managed-bean-class>

<managed-bean-scope>session</managed-bean-scope>

<managed-property>

<property-name>serviceLocator</property-name>

<property-class>com.ge.lms.service.ServiceLocator</property-class>

<value>#{ServiceLocator}</value>

</managed-property>

</managed-bean>

The PersonBean is created, but throws a NullPointerException when it tries to access its ServiceLocator that should have been set by JSF. Putting a breakpoint in the constructor of ServiceLocator shows it is not being instantiated, as it is never called. I've double-checked all the class names and property names, but JSF acts like the ServiceLocator doesn't exist. Can anyone help?

Also, is it possible to have JSF validate all the bean wiring when the application is started, instead of waiting till it blows up when the bean is actually called?

Thanks,

Andrew B

[1601 byte] By [andrewbee2a] at [2007-11-27 5:32:48]
# 1
What JSF impl and version?
rlubkea at 2007-7-12 14:59:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
JSF 1.2, java.net implementation (JBoss 4.2)
andrewbee2a at 2007-7-12 14:59:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The 1.2 nighties have the option to valiate managed beans at startup.This functionality should be working, so if you can log an issue at https://javaserverfaces.dev.java.net and attach a reproduction, we can look into it.
rlubkea at 2007-7-12 14:59:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
What is the parameter for this?
andrewbee2a at 2007-7-12 14:59:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Again, this must be with the latest 1.2 nightlies.The context init parameter is:com.sun.faces.enableLazyBeanValidationSet it to false.It's true by default so it doesn't tank the startup time within tools etc.
rlubkea at 2007-7-12 14:59:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...