-
1. Re: MBean dependency problem
mattygiedt Sep 18, 2003 2:59 PM (in response to mattygiedt)The documentation says to use the following string:
jboss.j2ee:service=EJB, jndiName=local/LoadBrokerBean
But this doesn't work either, with the server out listed below:
16:54:27,901 INFO [EJBDeployer] Deployed: file:/C:/art/jboss/server/listener/deploy/LISTENER_EJB.jar
16:54:27,901 INFO [MainDeployer] Deployed package: file:/C:/art/jboss/server/listener/deploy/LISTENER_EJB.jar
16:54:27,901 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
Incompletely deployed packages:
MBeans waiting for classes:
MBeans waiting for other MBeans:
[ObjectName: user:service=BatchService
state: CONFIGURED
I Depend On: jboss.j2ee:service=EJB,jndiName=local/LoadBrokerBean
Depends On Me: ]
16:54:28,091 INFO [URLDeploymentScanner] Started
16:54:28,091 INFO [MainDeployer] Deployed package: file:/C:/art/jboss/server/listener/conf/jboss-service.xml
16:54:28,162 INFO [Server] JBoss (MX MicroKernel) [3.2.1 (build: CVSTag=JBoss_3_2_1 date=200305041533)] Started in 11s:26ms
Could you please explain why the MBean is never being started, and what a state of CONFIGURED means?
TIA,
-Matt -
2. Re: MBean dependency problem
jonlee Sep 18, 2003 10:31 PM (in response to mattygiedt)Have a look in your jmx-console - http://localhost:8080/jmx-console. Check that the jndiName and service listed in the jmx-console match the information you have placed in your definition. You probably should not put a space in that definition which is why there is no match and start action.
Configured means that your MBean is installed but has not been started as it has not been triggered by the dependency condition. -
3. Re: MBean dependency problem
mattygiedt Sep 19, 2003 7:38 AM (in response to mattygiedt)After the server has started, the code below produces the following output:
Hashtable env = new Hashtable();
env.put( Context.PROVIDER_URL, EJBHelper.LSNR_JNDI_URL );
env.put( Context.INITIAL_CONTEXT_FACTORY, EJBHelper.JNDI_FACTORY );
env.put( Context.URL_PKG_PREFIXES, EJBHelper.JNDI_PREFIXES );
InitialContext ctx = new InitialContext( env );
//InitialContext ctx = new InitialContext( );
NamingEnumeration ne = ctx.list( ctx.getNameInNamespace() );
while( ne.hasMore() )
{
System.err.println( ne.next() );
}
------------------------------------------------------------------
09:25:00,149 ERROR [STDERR] XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
09:25:00,149 ERROR [STDERR] LoadBrokerHome: $Proxy18
09:25:00,149 ERROR [STDERR] UserTransactionSessionFactory: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl
09:25:00,149 ERROR [STDERR] UIL2ConnectionFactory: org.jboss.mq.SpyConnectionFactory
09:25:00,149 ERROR [STDERR] RMIXAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
09:25:00,149 ERROR [STDERR] UIL2XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
09:25:00,149 ERROR [STDERR] queue: org.jnp.interfaces.NamingContext
09:25:00,149 ERROR [STDERR] OIL2XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
09:25:00,149 ERROR [STDERR] UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
09:25:00,149 ERROR [STDERR] ConnectionFactory: org.jboss.mq.SpyConnectionFactory
09:25:00,149 ERROR [STDERR] RMIConnectionFactory: org.jboss.mq.SpyConnectionFactory
09:25:00,149 ERROR [STDERR] invokers: org.jnp.interfaces.NamingContext
09:25:00,209 ERROR [STDERR] OIL2ConnectionFactory: org.jboss.mq.SpyConnectionFactory
09:25:00,209 ERROR [STDERR] UILXAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
09:25:00,209 ERROR [STDERR] UILConnectionFactory: org.jboss.mq.SpyConnectionFactory
My tag in user-service.xml is now: (took the space out)
00:00
00:05
jboss.j2ee:service=EJB,jndiName=LoadBrokerBean
--------------------------------------------------
But my mbean is still not being deployed!!!!
09:35:43,584 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
Incompletely deployed packages:
MBeans waiting for classes:
MBeans waiting for other MBeans:
[ObjectName: user:service=BatchService
state: CONFIGURED
I Depend On: jboss.j2ee:service=EJB,jndiName=LoadBrokerBean
Depends On Me: ]
Any other thoughts? -
4. Re: MBean dependency problem
mattygiedt Sep 19, 2003 7:42 AM (in response to mattygiedt)I'm an idiot.
LoadBrokerBean != LoadBrokerHome
Sorry.
-Matt