4 Replies Latest reply on Mar 2, 2006 10:44 PM by struts-hibernate-engineer

    XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Please,

    struts-hibernate-engineer

      Hi,

      I am getting

      NotCompliantMBeanException: Cannot instanciate MBean: services.jmx.MemoryMonitorService)


      Can anyone look at this simple xmbean and tell me why it is not compliant?

      It is the same kind as the one from the memorymonitor from xdoclet in action.

      Thanks for any tips. Code follows exception see below to bottom...

      Buildfile: C:\Prototype\Company\Product\tapestry-proto-1.0\build.xml
      jboss.start:
      [echo] jdk: C:\DEVTOOLS\Sun\jdk1.5.0_04
      [echo] server: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0
      [echo] jboss.home: C:\jboss-4.0.4RC1
      [java] Listening for transport dt_socket at address: 8000
      [java] 15:13:26,234 INFO [Server] Starting JBoss (MX MicroKernel)...
      [java] 15:13:26,234 INFO [Server] Release ID: JBoss [Zion] 4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519)
      [java] 15:13:26,254 INFO [Server] Home Dir: C:\jboss-4.0.4RC1
      [java] 15:13:26,254 INFO [Server] Home URL: file:/C:/jboss-4.0.4RC1/
      [java] 15:13:26,264 INFO [Server] Patch URL: null
      [java] 15:13:26,264 INFO [Server] Server Name: tapestry-proto-1.0
      [java] 15:13:26,264 INFO [Server] Server Home Dir: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0
      [java] 15:13:26,264 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/
      [java] 15:13:26,264 INFO [Server] Server Temp Dir: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\tmp
      [java] 15:13:26,264 INFO [Server] Root Deployment Filename: jboss-service.xml
      [java] 15:13:27,286 INFO [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
      [java] 15:13:27,286 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc.
      [java] 15:13:27,286 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      [java] 15:13:28,327 INFO [Server] Core system initialized
      [java] 15:13:30,420 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      [java] log4j:ERROR Parsing error on line 314 and column 23
      [java] log4j:ERROR The content of element type "log4j:configuration" must match "(renderer*,appender*,(category|logger)*,root?,categoryFactory?)".
      [java] 15:13:35,327 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.0.2:3873/]
      [java] 15:13:36,839 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/ejb3-interceptors-aop.xml
      [java] 15:13:43,539 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/memorymonitor-service.sar
      [java] org.jboss.deployment.DeploymentException: Cannot instanciate MBean: services.jmx.MemoryMonitorService; - nested throwable: (javax.management.NotCompliantMBeanException: Cannot instanciate MBean: services.jmx.MemoryMonitorService)
      [java] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      [java] at org.jboss.system.ServiceController.install(ServiceController.java:226)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      [java] at $Proxy4.install(Unknown Source)
      [java] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
      [java] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
      [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
      [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      [java] at $Proxy6.deploy(Unknown Source)
      [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
      [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
      [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
      [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
      [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
      [java] at $Proxy0.start(Unknown Source)
      [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      [java] at $Proxy4.start(Unknown Source)
      [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      [java] at $Proxy5.deploy(Unknown Source)
      [java] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
      [java] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
      [java] at org.jboss.Main.boot(Main.java:200)
      [java] at org.jboss.Main$1.run(Main.java:464)
      [java] at java.lang.Thread.run(Unknown Source)
      [java] Caused by: javax.management.NotCompliantMBeanException: Cannot instanciate MBean: services.jmx.MemoryMonitorService
      [java] at org.jboss.mx.server.MBeanServerImpl.handleExceptionOnCreate(MBeanServerImpl.java:361)
      [java] at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:349)
      [java] at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
      [java] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
      [java] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      [java] ... 83 more
      [java] 15:13:45,902 INFO [WebService] Using RMI server codebase: http://NETSRV:8083/
      [java] 15:13:46,353 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound
      [java] 15:13:47,254 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45551;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
      [java] 15:13:47,345 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
      [java] 15:13:47,405 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      [java] 15:13:47,535 INFO [TreeCache] interceptor chain is:
      [java] class org.jboss.cache.interceptors.CallInterceptor
      [java] class org.jboss.cache.interceptors.LockInterceptor
      [java] class org.jboss.cache.interceptors.CacheLoaderInterceptor
      [java] class org.jboss.cache.interceptors.UnlockInterceptor
      [java] class org.jboss.cache.interceptors.ReplicationInterceptor
      [java] class org.jboss.cache.interceptors.CacheStoreInterceptor
      [java] 15:13:47,645 INFO [TreeCache] cache mode is REPL_SYNC
      [java] 15:13:50,519 INFO [TreeCache] state could not be retrieved (must be first member in group)
      [java] 15:13:50,519 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.ejb3.cache.tree.StatefulEvictionPolicy
      [java] 15:13:50,519 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 1
      [java] 15:13:50,549 INFO [TreeCache] new cache is null (maybe first member in cluster)
      [java] 15:13:50,549 INFO [TreeCache] viewAccepted(): new members: [NETSRV:2193]
      [java] 15:13:50,820 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=2;loopback=false;mcast_addr=228.1.2.3;mcast_port=43333;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
      [java] 15:13:50,860 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
      [java] 15:13:58,190 INFO [MailService] Mail Service bound to java:/Mail
      [java] 15:13:59,953 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      [java] 15:14:00,033 INFO [DefaultPartition] Initializing
      [java] 15:14:02,226 INFO [DefaultPartition] Number of cluster members: 1
      [java] 15:14:02,226 INFO [DefaultPartition] Other members: 0
      [java] 15:14:02,226 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
      [java] 15:14:02,226 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [192.168.0.2:1099]
      [java] 15:14:02,256 INFO [DefaultPartition] I am (192.168.0.2:1099) received membershipChanged event:
      [java] 15:14:02,256 INFO [DefaultPartition] Dead members: 0 ([])
      [java] 15:14:02,256 INFO [DefaultPartition] New Members : 0 ([])
      [java] 15:14:02,256 INFO [DefaultPartition] All Members : 1 ([192.168.0.2:1099])
      [java] 15:14:02,446 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
      [java] 15:14:02,466 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.0.2:1100
      [java] 15:14:02,877 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=true, hibernate.cglib.use_reflection_optimizer=false, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.connection.release_mode=after_statement}
      [java] 15:14:03,097 INFO [TreeCache] interceptor chain is:
      [java] class org.jboss.cache.interceptors.CallInterceptor
      [java] class org.jboss.cache.interceptors.LockInterceptor
      [java] class org.jboss.cache.interceptors.UnlockInterceptor
      [java] class org.jboss.cache.interceptors.ReplicationInterceptor
      [java] 15:14:03,097 INFO [TreeCache] cache mode is REPL_SYNC
      [java] 15:14:05,170 INFO [TreeCache] state could not be retrieved (must be first member in group)
      [java] 15:14:05,170 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.cache.eviction.LRUPolicy
      [java] 15:14:05,170 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 5
      [java] 15:14:05,180 INFO [TreeCache] viewAccepted(): new members: [NETSRV:2199]
      [java] 15:14:05,180 INFO [TreeCache] new cache is null (maybe first member in cluster)
      [java] 15:14:07,944 INFO [Embedded] Catalina naming disabled
      [java] 15:14:09,737 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      [java] 15:14:09,737 INFO [Catalina] Initialization processed in 1502 ms
      [java] 15:14:09,737 INFO [StandardService] Starting service jboss.web
      [java] 15:14:09,777 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.12
      [java] 15:14:09,977 INFO [StandardHost] XML validation disabled
      [java] 15:14:10,057 INFO [Catalina] Server startup in 320 ms
      [java] 15:14:10,538 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      [java] 15:14:12,090 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      [java] 15:14:14,764 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp60873jboss-ws4ee-exp.war/
      [java] 15:14:15,555 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      [java] 15:14:16,306 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      [java] 15:14:17,057 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      [java] 15:14:19,791 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=8;loopback=false;mcast_addr=230.1.2.7;mcast_port=45577;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
      [java] 15:14:19,851 INFO [TreeCache] interceptor chain is:
      [java] class org.jboss.cache.interceptors.CallInterceptor
      [java] class org.jboss.cache.interceptors.LockInterceptor
      [java] class org.jboss.cache.interceptors.UnlockInterceptor
      [java] class org.jboss.cache.interceptors.ReplicationInterceptor
      [java] 15:14:19,851 INFO [TreeCache] cache mode is REPL_ASYNC
      [java] 15:14:22,014 INFO [TreeCache] state could not be retrieved (must be first member in group)
      [java] 15:14:22,014 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      [java] 15:14:22,014 INFO [TreeCache] interceptor chain is:
      [java] class org.jboss.cache.interceptors.CallInterceptor
      [java] class org.jboss.cache.interceptors.LockInterceptor
      [java] class org.jboss.cache.interceptors.UnlockInterceptor
      [java] 15:14:22,014 INFO [TreeCache] cache mode is local, will not create the channel
      [java] 15:14:22,024 INFO [TreeCache] new cache is null (maybe first member in cluster)
      [java] 15:14:22,034 INFO [TreeCache] viewAccepted(): new members: [NETSRV:2203]
      [java] 15:14:22,886 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      [java] 15:14:23,166 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      [java] 15:14:23,396 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      [java] 15:14:23,667 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      [java] 15:14:24,067 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      [java] 15:14:24,358 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      [java] 15:14:27,172 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      [java] 15:14:28,854 INFO [A] Bound to JNDI name: queue/A
      [java] 15:14:28,864 INFO [B] Bound to JNDI name: queue/B
      [java] 15:14:28,874 INFO [C] Bound to JNDI name: queue/C
      [java] 15:14:28,874 INFO [D] Bound to JNDI name: queue/D
      [java] 15:14:28,884 INFO [ex] Bound to JNDI name: queue/ex
      [java] 15:14:28,964 INFO [testTopic] Bound to JNDI name: topic/testTopic
      [java] 15:14:28,974 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      [java] 15:14:28,984 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      [java] 15:14:28,984 INFO [testQueue] Bound to JNDI name: queue/testQueue
      [java] 15:14:29,285 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      [java] 15:14:29,505 INFO [DLQ] Bound to JNDI name: queue/DLQ
      [java] 15:14:30,226 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      [java] 15:14:30,607 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySQLDataSource' to JNDI name 'java:MySQLDataSource'
      [java] 15:14:30,907 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDataSource' to JNDI name 'java:OracleDataSource'
      [java] 15:14:31,047 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      [java] 15:14:31,819 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      [java] --- Incompletely deployed packages ---
      [java] org.jboss.deployment.DeploymentInfo@9549906e { url=file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/memorymonitor-service.sar }
      [java] deployer: org.jboss.deployment.SARDeployer@1a2f02e
      [java] status: Deployment FAILED reason: Cannot instanciate MBean: services.jmx.MemoryMonitorService; - nested throwable: (javax.management.NotCompliantMBeanException: Cannot instanciate MBean: services.jmx.MemoryMonitorService)
      [java] state: FAILED
      [java] watch: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/memorymonitor-service.sar
      [java] altDD: null
      [java] lastDeployed: 1141330423499
      [java] lastModified: 1141330423479
      [java] mbeans:
      [java] 15:14:32,239 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      [java] 15:14:32,980 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      [java] 15:14:33,120 INFO [JkMain] Jk running ID=0 time=0/380 config=null
      [java] 15:14:33,200 INFO [Server] JBoss (MX MicroKernel) [4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519)] Started in 1m:6s:916ms

      =========== CODE FOLLOWS ============

      package services.jmx;

      import java.io.*;
      import java.lang.*;
      import org.jboss.system.*;

      import org.apache.commons.logging.Log;
      import org.apache.commons.logging.LogFactory;

      /**
      * JBoss Service XMBean
      *
      * @jmx.mbean name=":service=MemoryMonitorService,type=Service"
      * description="A JBoss Service for MemoryMonitor Metrics"
      * extends="org.jboss.system.ServiceMBean"
      * persistPolicy="OnTimer"
      * persistPeriod="10"
      * currencyTimeLimit="10"
      * state-action-on-update="keep-running"
      *
      * @jboss.service
      * servicefile="memorymonitor"
      * @jboss.depends
      * name="Naming"
      * @jboss.destination-jndi-name
      * name="jmx/MemoryMonitorService"
      * @jmx.mbean
      * persistpolicy="OnTimer"
      */
      public abstract class MemoryMonitorService extends org.jboss.system.ServiceMBeanSupport
      implements MemoryMonitorServiceMBean
      {
      /**
      * Default constructor
      * @jmx.managed-constructor description="Default constructor"
      */
      public MemoryMonitorService () {
      }

      /**
      * @jmx.managed-attribute
      * access="read-write"
      * currencyTimeLimit="30"
      * description="long attribute"
      * persistPeriod="30"
      * persistPolicy="OnTimer"
      * value="0"
      */
      public long getAvailableMemory () {
      return Runtime.getRuntime().freeMemory();
      }

      /**
      * @jmx.managed-attribute
      * access="read-write"
      * currencyTimeLimit="30"
      * description="long attribute"
      * persistPeriod="30"
      * persistPolicy="OnTimer"
      * value="0"
      */
      public void setAvailableMemory (long value) {
      }

      /**
      * @jmx.managed-attribute
      * access="read-write"
      * currencyTimeLimit="30"
      * description="long attribute"
      * persistPeriod="30"
      * persistPolicy="OnTimer"
      * value="0"
      */
      public long getTotalMemory () {
      return Runtime.getRuntime().totalMemory();
      }

      /**
      * @jmx.managed-attribute
      * access="read-write"
      * currencyTimeLimit="30"
      * description="long attribute"
      * persistPeriod="30"
      * persistPolicy="OnTimer"
      * value="0"
      */
      public void setTotalMemory (long value) {
      }

      /**
      * @jmx.managed-attribute
      * access="read-write"
      * currencyTimeLimit="30"
      * description="long attribute"
      * persistPeriod="30"
      * persistPolicy="OnTimer"
      * value="0"
      */
      public long getMaxMemory () {
      return Runtime.getRuntime().maxMemory();
      }

      /**
      * @jmx.managed-attribute
      * access="read-write"
      * currencyTimeLimit="30"
      * description="long attribute"
      * persistPeriod="30"
      * persistPolicy="OnTimer"
      * value="0"
      */
      public void setMaxMemory (long value) {
      }

      /**
      * @see ServiceMBeanSupport#createService()
      */
      protected void createService() throws Exception
      {
      super.createService();
      //jmsServer = new JMSDestinationManager();
      // Create the JSR-77 management representation
      }

      /**
      * @see ServiceMBeanSupport#startService()
      */
      protected void startService() throws Exception
      {
      super.startService();
      }

      /**
      * @see ServiceMBeanSupport#stopService()
      */
      protected void stopService() throws Exception
      {
      super.stopService();
      }

      /**
      * @see ServiceMBeanSupport#destroyService()
      */
      protected void destroyService() throws Exception
      {
      super.destroyService();
      }
      }

      =======================================

      /*
      * Generated file - Do not edit!
      */
      package services.jmx;

      /**
      * MBean interface.
      * @xdoclet-generated at ${TODAY}
      * @copyright
      * @author
      * @version ${version}
      */
      public interface MemoryMonitorServiceMBean extends org.jboss.system.ServiceMBean {

      long getAvailableMemory() ;

      void setAvailableMemory(long value) ;

      long getTotalMemory() ;

      void setTotalMemory(long value) ;

      long getMaxMemory() ;

      void setMaxMemory(long value) ;

      }

      ================================

      <?xml version="1.0" encoding="UTF-8"?>




      <!--A JBoss Service for MemoryMonitor Metrics-->
      <!--Attribute AvailableMemory, type long, long attribute-->
      0
      <!--Attribute TotalMemory, type long, long attribute-->
      0
      <!--Attribute MaxMemory, type long, long attribute-->
      0
      jboss:service=Naming


      <!--
      To use non XDoclet mbeans, create a jboss-service.ent file that
      contains the additional mbeans and place it in your
      project's merge dir.
      -->



      ====================

      memorymonitor-service.sar

      /META-INF/jboss-service.xml
      /META-INF/Manifest.mf
      /services/jmx/MemoryMonitorService.xml
      /services/jmx/MemoryMonitorService.class
      /services/jmx/MemoryMonitorServiceMBean.class

      =======================

      The SAR file is deployed to a dedicated replicated copy of the default server under C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\deploy



        • 1. Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
          struts-hibernate-engineer

          my jboss-service.xml got chomped during the post process.

          Here is another shot at it...

          
          package services.jmx;
          
          import java.io.*;
          import java.lang.*;
          import org.jboss.system.*;
          
          import org.apache.commons.logging.Log;
          import org.apache.commons.logging.LogFactory;
          
          /**
           * JBoss Service XMBean
           *
           * @jmx.mbean name=":service=MemoryMonitorService,type=Service"
           * description="A JBoss Service for MemoryMonitor Metrics"
           * extends="org.jboss.system.ServiceMBean"
           * persistPolicy="OnTimer"
           * persistPeriod="10"
           * currencyTimeLimit="10"
           * state-action-on-update="keep-running"
           *
           * @jboss.service
           * servicefile="memorymonitor"
           * @jboss.depends
           * name="Naming"
           * @jboss.destination-jndi-name
           * name="jmx/MemoryMonitorService"
           * @jmx.mbean
           * persistpolicy="OnTimer"
           */
          public abstract class MemoryMonitorService extends org.jboss.system.ServiceMBeanSupport
           implements MemoryMonitorServiceMBean
          {
           /**
           * Default constructor
           * @jmx.managed-constructor description="Default constructor"
           */
           public MemoryMonitorService () {
           }
          
           /**
           * @jmx.managed-attribute
           * access="read-write"
           * currencyTimeLimit="30"
           * description="long attribute"
           * persistPeriod="30"
           * persistPolicy="OnTimer"
           * value="0"
           */
           public long getAvailableMemory () {
           return Runtime.getRuntime().freeMemory();
           }
          
           /**
           * @jmx.managed-attribute
           * access="read-write"
           * currencyTimeLimit="30"
           * description="long attribute"
           * persistPeriod="30"
           * persistPolicy="OnTimer"
           * value="0"
           */
           public void setAvailableMemory (long value) {
           }
          
           /**
           * @jmx.managed-attribute
           * access="read-write"
           * currencyTimeLimit="30"
           * description="long attribute"
           * persistPeriod="30"
           * persistPolicy="OnTimer"
           * value="0"
           */
           public long getTotalMemory () {
           return Runtime.getRuntime().totalMemory();
           }
          
           /**
           * @jmx.managed-attribute
           * access="read-write"
           * currencyTimeLimit="30"
           * description="long attribute"
           * persistPeriod="30"
           * persistPolicy="OnTimer"
           * value="0"
           */
           public void setTotalMemory (long value) {
           }
          
           /**
           * @jmx.managed-attribute
           * access="read-write"
           * currencyTimeLimit="30"
           * description="long attribute"
           * persistPeriod="30"
           * persistPolicy="OnTimer"
           * value="0"
           */
           public long getMaxMemory () {
           return Runtime.getRuntime().maxMemory();
           }
          
           /**
           * @jmx.managed-attribute
           * access="read-write"
           * currencyTimeLimit="30"
           * description="long attribute"
           * persistPeriod="30"
           * persistPolicy="OnTimer"
           * value="0"
           */
           public void setMaxMemory (long value) {
           }
          
           /**
           * @see ServiceMBeanSupport#createService()
           */
           protected void createService() throws Exception
           {
           super.createService();
           //jmsServer = new JMSDestinationManager();
           // Create the JSR-77 management representation
           }
          
           /**
           * @see ServiceMBeanSupport#startService()
           */
           protected void startService() throws Exception
           {
           super.startService();
           }
          
           /**
           * @see ServiceMBeanSupport#stopService()
           */
           protected void stopService() throws Exception
           {
           super.stopService();
           }
          
           /**
           * @see ServiceMBeanSupport#destroyService()
           */
           protected void destroyService() throws Exception
           {
           super.destroyService();
           }
          }
          
          
          /*
           * Generated file - Do not edit!
           */
          package services.jmx;
          
          /**
           * MBean interface.
           * @xdoclet-generated at ${TODAY}
           * @copyright
           * @author
           * @version ${version}
           */
          public interface MemoryMonitorServiceMBean extends org.jboss.system.ServiceMBean {
          
           long getAvailableMemory() ;
          
           void setAvailableMemory(long value) ;
          
           long getTotalMemory() ;
          
           void setTotalMemory(long value) ;
          
           long getMaxMemory() ;
          
           void setMaxMemory(long value) ;
          
          }
          
          <?xml version="1.0" encoding="UTF-8"?>
          
          <server>
          
           <mbean code="services.jmx.MemoryMonitorService"
           name=":service=MemoryMonitorService,type=Service"
           >
           <!--A JBoss Service for MemoryMonitor Metrics-->
           <!--Attribute AvailableMemory, type long, long attribute-->
           <attribute name="AvailableMemory">0</attribute>
           <!--Attribute TotalMemory, type long, long attribute-->
           <attribute name="TotalMemory">0</attribute>
           <!--Attribute MaxMemory, type long, long attribute-->
           <attribute name="MaxMemory">0</attribute>
           <depends>jboss:service=Naming</depends>
           </mbean>
          
           <!--
           To use non XDoclet mbeans, create a jboss-service.ent file that
           contains the additional mbeans and place it in your
           project's merge dir.
           -->
          
          </server>
          
          


          • 2. Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
            dimitris

            For one thing, class MemoryMonitorService shouldn't be abstract

            • 3. Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
              struts-hibernate-engineer

              Cute, can't believe I missed that.

              Anyway after building and deploying I got the following:

              [java] 22:06:36,135 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/ejb3-interceptors-aop.xml
              [java] 22:06:41,793 INFO [ServiceConfigurator] Problem configuring service jboss:service=MemoryMonitorService,type=Service
              [java] org.jboss.deployment.DeploymentException: No ObjectName supplied for depends in jboss:service=MemoryMonitorService,type=Service


              Any clues for naming conventions?

              Thanks

              • 4. Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
                struts-hibernate-engineer

                Ok, I think this is resovled. XDoclet does nto output depends fragments.

                Anyway how can this xmbean run every 30secs?

                Seems it is registerd but not triggered every 30 secs.

                Thanks