I've tried various formats for this exercise, based on examples given in the forum, Jira, and the MC getting started guide.
My latest attempt is the following: <?xml version="1.0" encoding="UTF-8"?> | | <!-- Deployment holds beans --> | <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_2_0.xsd" | xmlns="urn:jboss:bean-deployer:2.0"> | | <!-- The default system administrator account --> | <bean name="SystemAdministratorDefaultAccount" class="com.fluke.metbase.interfaceobjects.User"> | <property name="username">sysadmin</property> | <property name="active">true</property> | <property name="passPhrase">metbase</property> | </bean> | | | <!-- Create a collection of default accounts --> | <bean name="DefaultUserAccounts" class="com.fluke.metbase.bootstrap.DefaultUsers"> | <property name="defUsers"> | <list> | <inject bean="SystemAdministratorDefaultAccount"/> | </list> | </property> | | </bean> | | | </deployment> | "User" is the following: public class User { | | /** The object identifier */ | private String userGUID; | | /** The username of this user */ | private String username; | | /** The surname, or "last" name of the user */ | private String surname; | | /** The given name, or "first" name of the user */ | private String givenname; | | /** The middle name(s) of the user */ | private String middlename; | | /** The active status of the user */ | private boolean isActive; | | /** The passphrase of the user, in plaintext (not set when getting an existing user */ | private String passPhrase; | | /** An array of role GUIDs granted to the user DIRECTLY. This list | * does not include inherited roles. */ | private String[] roles; | | /** An array of parameters associated with the user */ | private Parameter[] parameters; | | | (getters/setters follow) | "DefaultUsers" is the following: import java.util.List; | | | | public class DefaultUsers { | | // the collection of default user accounts | private static List defUsers; | | /** | * @return Returns the defaultUsers. | */ | public static List getDefUsers() { | return defUsers; | } | | /** | * @param defaultUsers The defaultUsers to set. | */ | public static void setDefUsers(List defUsers) { | DefaultUsers.defUsers = defUsers; | } | | } | The error is the following: 11:04:18,917 ERROR [AbstractKernelController] Error installing to Configured: name=DefaultUserAccounts state=Instantiated mode=Manual requiredState=Create | org.jboss.joinpoint.spi.JoinpointException: Property defUsers not found for [EMAIL PROTECTED] classInfo= properties=[class] methods=[hashCode, finalize, getClass, toString, clone, notifyAll, equals, wait, wait, wait, getDefUsers, setDefUsers, registerNatives, notify] constructors=[] events=} | at org.jboss.kernel.plugins.config.Configurator.resolveProperty(Configurator.java:668) | at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:442) | at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:407) | at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:120) | at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$ConfigureAction.installAction(KernelControllerContextActions.java:443) | at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:175) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:263) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:164) | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.changeBean(AbstractKernelDeployer.java:327) | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.changeBeans(AbstractKernelDeployer.java:311) | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.change(AbstractKernelDeployer.java:139) | at org.jboss.kernel.deployment.jboss.JBossBeanDeployment.startService(JBossBeanDeployment.java:81) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy16.start(Unknown Source) | at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345) | at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | 11:04:18,917 WARN [ServiceController] Problem starting service jboss.beans:service=JBossBeanDeployment,name='metbase.bootstrap.beans' | org.jboss.deployment.DeploymentException: Cannot start [EMAIL PROTECTED]:/D:/Development/apps/JBoss/jboss-5.0.0.Alpha/server/metbase/deploy/metbase.bootstrap.beans/META-INF/jboss-beans.xml installed=true [EMAIL PROTECTED] bean=com.fluke.metbase.interfaceobjects.User properties=[active, passPhrase, username] constructor=null}, [EMAIL PROTECTED] bean=com.fluke.metbase.bootstrap.DefaultUsers properties=[defUsers] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: Name -> Error | DefaultUserAccounts -> org.jboss.joinpoint.spi.JoinpointException: Property defUsers not found for [EMAIL PROTECTED] classInfo= properties=[class] methods=[hashCode, finalize, getClass, toString, clone, notifyAll, equals, wait, wait, wait, getDefUsers, setDefUsers, registerNatives, notify] constructors=[] events=} | ) | at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) | at org.jboss.kernel.deployment.jboss.JBossBeanDeployment.startService(JBossBeanDeployment.java:86) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy16.start(Unknown Source) | at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345) | at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | Caused by: java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: Name -> Error | DefaultUserAccounts -> org.jboss.joinpoint.spi.JoinpointException: Property defUsers not found for [EMAIL PROTECTED] classInfo= properties=[class] methods=[hashCode, finalize, getClass, toString, clone, notifyAll, equals, wait, wait, wait, getDefUsers, setDefUsers, registerNatives, notify] constructors=[] events=} | | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241) | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:173) | at org.jboss.kernel.deployment.jboss.JBossBeanDeployment.startService(JBossBeanDeployment.java:82) | ... 47 more | 11:04:18,947 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: jboss.beans:service=JBossBeanDeployment,name='metbase.bootstrap.beans' | State: FAILED | Reason: org.jboss.deployment.DeploymentException: Cannot start [EMAIL PROTECTED]:/D:/Development/apps/JBoss/jboss-5.0.0.Alpha/server/metbase/deploy/metbase.bootstrap.beans/META-INF/jboss-beans.xml installed=true [EMAIL PROTECTED] bean=com.fluke.metbase.interfaceobjects.User properties=[active, passPhrase, username] constructor=null}, [EMAIL PROTECTED] bean=com.fluke.metbase.bootstrap.DefaultUsers properties=[defUsers] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: Name -> Error | DefaultUserAccounts -> org.jboss.joinpoint.spi.JoinpointException: Property defUsers not found for [EMAIL PROTECTED] classInfo= properties=[class] methods=[hashCode, finalize, getClass, toString, clone, notifyAll, equals, wait, wait, wait, getDefUsers, setDefUsers, registerNatives, notify] constructors=[] events=} | ) | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.beans:service=JBossBeanDeployment,name='metbase.bootstrap.beans' | State: FAILED | Reason: org.jboss.deployment.DeploymentException: Cannot start [EMAIL PROTECTED]:/D:/Development/apps/JBoss/jboss-5.0.0.Alpha/server/metbase/deploy/metbase.bootstrap.beans/META-INF/jboss-beans.xml installed=true [EMAIL PROTECTED] bean=com.fluke.metbase.interfaceobjects.User properties=[active, passPhrase, username] constructor=null}, [EMAIL PROTECTED] bean=com.fluke.metbase.bootstrap.DefaultUsers properties=[defUsers] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: Name -> Error | DefaultUserAccounts -> org.jboss.joinpoint.spi.JoinpointException: Property defUsers not found for [EMAIL PROTECTED] classInfo= properties=[class] methods=[hashCode, finalize, getClass, toString, clone, notifyAll, equals, wait, wait, wait, getDefUsers, setDefUsers, registerNatives, notify] constructors=[] events=} | ) | Any ideas why "defUsers" isn't found? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950162#3950162 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950162 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user