I am using jboss-4.0.0DR4. When I deploy my MBean I get the following error:

anonymous wrote : 
  | 12:54:17,479 INFO  [ServiceConfigurator] Problem configuring service HelloWorld:
  | name=helloWorld1
  | org.jboss.deployment.DeploymentException: No Attribute found with name: greeting
  | 

My HelloWorldMBean.java is as follows:

  | package com.areva.jmx.test;
  | 
  | public interface HelloWorldMBean {
  | 
  |     public  void setGreeting(String greeting);
  |     public String getGreeting();
  |     public void printGreeting();
  | }
  | 

My HelloWorld.java is as follows:

  | package com.areva.jmx.test;
  | 
  | public class HelloWorld implements HelloWorldMBean {
  | 
  |     private String greeting = null;
  | 
  |     public HelloWorld() {
  |         this.greeting = "Hello World! I am a Standard MBean";
  |     }
  | 
  |     public void HellowWorld(String greeting) {
  |         this.greeting = greeting;
  |     }
  | 
  |     public void setGreeting(String greeting) {
  |         this.greeting = greeting;
  |     }
  | 
  |     public String getGreeting() {
  |         return greeting;
  |     }
  | 
  |     public void printGreeting() {
  |         System.out.println(greeting);
  |     }
  | }
  | 

My jboss-service.xml is as follows:

  | <server>
  |    <mbean code="com.areva.jmx.test.HelloWorld" name="HelloWorld:name=helloWorld1
  | ">
  |      <attribute name="greeting">Hello World! I am a Standard MBean</attribute>
  |    </mbean>
  | </server>
  | 

I have deployed my MBean in the testJMX.sar directory under server/default/deploy. My 
testJMX.sar directory has the following files:
testJMX.jar (which has HelloWorld.class and HelloWorldMBean.class)
META-INF/jboss-service.xml

Any help will be much appreciated.

Thank you,
Jugma

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840517


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to