[jboss-user] [Management, JMX/JBoss] - Re: start not being call on 4.0.2 startup

2006-07-29 Thread pilhuhn
It looks like create() is not called either.
Try to remove the "throws Exception" from the method signature.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961672#3961672

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961672
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: start not being call on 4.0.2 startup

2006-07-28 Thread acxsjones
I need to call the method startService and not start.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961656#3961656

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961656
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: start not being call on 4.0.2 startup

2006-07-28 Thread acxsjones
I made a simple test and still can not get start to be called.  So I guess I am 
missing something.  I will post my example.

  | package com.acxiom.test;
  | 
  | import org.jboss.system.ServiceMBeanSupport;
  | 
  | public class Test extends ServiceMBeanSupport implements TestMBean {
  | 
  | private String attr1;
  | 
  | public String getAttr1() {
  | return attr1;
  | }
  | 
  | public void setAttr1(String att1) {
  | this.attr1 = att1;
  | 
  | }
  | 
  | public void start() throws Exception {
  | System.out.println("INSIDE START");
  | 
  | }
  | 
  | public void create() throws Exception {
  | System.out.println("INSIDE CREATE");
  | 
  | 
  | }
  | 
  | }

configuration

  | 
  | 
  |   
  |   
  |  Value for Attr1
  |  
  |   
  | 
  | 

I am deploying a jar file in the deploy directory and the test-service.xml in 
the deploy directory.
Below is the server.log output
2006-07-28 16:13:33,659 DEBUG [org.jboss.deployment.MainDeployer] Starting 
deployment of package: 
file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,659 DEBUG [org.jboss.deployment.MainDeployer] Starting 
deployment (init step) of package at: 
file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,659 DEBUG [org.jboss.deployment.MainDeployer] Copying 
file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml -> 
C:\jboss-4.0.2\server\default\tmp\deploy\tmp47542Test-service.xml
  | 2006-07-28 16:13:33,659 DEBUG [org.jboss.deployment.MainDeployer] using 
deployer [EMAIL PROTECTED]
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] Found 
classpath element: [classpath: null]
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] codebase 
URL is file:/C:/jboss-4.0.2/server/default/deploy/
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] listing 
codebase for archives matching test.jar
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] URLLister 
class is org.jboss.net.protocol.file.FileURLLister
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] deployed 
classes for file:/C:/jboss-4.0.2/server/default/deploy/test.jar
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] about to 
copy 0 local directories
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] looking 
for nested deployments in : 
file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.DeploymentInfo] 
createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: 
JMImplementation:name=Default,service=LoaderRepository, repositoryClassName: 
null, configParserClassName: null, repositoryConfig: null)
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New 
jmx UCL with url 
file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp47542Test-service.xml
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] 
url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp47542Test-service.xml 
,addedOrder=0}
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] 
url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp47542Test-service.xml 
,addedOrder=0}
  | 2006-07-28 16:13:33,669 DEBUG 
[org.jboss.mx.loading.UnifiedLoaderRepository3] Adding [EMAIL PROTECTED] 
url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp47542Test-service.xml 
,addedOrder=0}
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
Added url: file:/C:/jboss-4.0.2/server/default/deploy/test.jar, to ucl: [EMAIL 
PROTECTED] 
url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp47542Test-service.xml 
,addedOrder=14}
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.MainDeployer] found 0 
subpackages of file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.MainDeployer] Watching 
new file: file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.MainDeployer] create 
step for deployment file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] Deploying 
SAR, create step: url 
file:/C:/jboss-4.0.2/server/default/deploy/Test-service.xml
  | 2006-07-28 16:13:33,669 DEBUG [org.jboss.deployment.SARDeployer] 
Registering service UCL=jmx.loading:UCL=aefcbb
  | 2006-07-28 16:13:33,679 DEBUG [org.jboss.system.ServiceCreator] About to 
create bean: com.acxiom.test:service=Test with code: com.acxiom.test.Test
  | 2006-07-28 16:13:33,689 DEBUG [org.jboss.system.ServiceCreator] Created 
bean: com.acxiom.test:service=Test
  | 2006-07-28 16:13:33,689 DEBUG [org.jboss.system.ServiceC