Finally, is there any answer to this issue? I have exactly the same problem
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939211#3939211
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939211
Sorry, it works now
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939213#3939213
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939213
---
Using Tomcat but need to do
HI
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938095#3938095
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938095
---
This SF.Net email is sponsored by xPML, a
You have to check package in META-INF\jboss-service.xml !!!
Maybe there write
Hello World
but When you compile yourself class HelloWorldService your package was
likely my.com.HelloWorldService
View the original post :
I mean
+-- META-INF
| +--- jboss.service.xml (similar to the one you provided)
| +--- MANIFEST.MF
+-- test
| +-- MyTestMbean.class
| +-- MyTest.class
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3933035#3933035
Reply to the post :
I'm so fed up with this thread that I just extended the example with a
hellombean2.zip that contains a standard mbean with no JBoss class/interface
dependencies.
http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService
View the original post :
Thanks for your answer, but I do confirm that the file name is well
jboss-service.xml and that classes are in the test directory.
I tried to deploy it in several servers but the problem persists.
I put my SAR in this address in order to allow you to test it:
Thank you, Dimitris,
I found the problem in my SAR. It was my fault. I wrote Mytest as class name
instead MyTest like a newbee. I read the jboss-service.xml file a hundred times
and I never realized my big mistake.
Thanks for your patience to all you.
View the original post :
The jboss testsuite if full of standard mbean examples not extending jboss
classes.
And it's a piece of cake to make the
http://wiki.jboss.org/wiki/Wiki.jsp?page=ExampleHelloWorldService example, not
using jboss classes, i.e.:
a) HelloWorldServiceMBean should not extend ServiceMBean
b)
My Interface:
package test;
|
| public interface MyTestMBean {
| public void start() throws Exception;
| public void stop() throws Exception;
| public String getMessage();
| public void setMessage(String message);
| }
Its implementation:
package test;
|
|
asoleto wrote : I tried:
| - to put classes tree directly inside the SAR file root dir
|
| +-- META-INF
| | +--- jboss.service.xml (similar to the one you provided)
| | +--- MANIFEST.MF
| +-- test
| +-- MyTestMbean.class
| +-- MyTest.class
|
| - to put classes
Thanks for your answer.
The example in the Wiki uses JBoss specific API.
Every time I try to deploy a simple Standard MBean, I get the same error:
org.jboss.deployment.DeploymentException: create operation failed for package
file:/D:/apps/appserver/jboss-3.2.5/server/default/deploy/MyTest.sar;
It is more than evident in the error message the you are looking for class
test.MyTest, but you have packaged Mytest.class
Also where is your MyTestMBean class???
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3932258#3932258
Reply to the post :
Do you have any example ?
I mean,
- I know how to deploy a simple Standard MBean by using xmbeans
(jboss-service.xml file with tag xmbeans-dd pointing to my xmbean file
describing my MBean interface) from a SAR.
- I know how to write specific code to deploy a Standard MBean by using JSR-3
asoleto wrote : Do you have any example?
|
| ...snip...
|
| BUT I don't know if there is a magic tag in the jboss-service.xml file
that allows me to deploy a custom Standard MBean without using the xmbean-dd
tag. By reading your answer, it seems that it is possible.
|
| My concern
I'm not sure your example answers my question. It shous non standard JMX
MBeans.
I'm trying to deploy a simple Standard MBean on my JBoss by using a SAR file.
It's a simple custom class implementing a simple custom interface. There is no
org.jboss... heritage or implementation. No MBeanSupport
asoleto wrote : As long as I now, only Model MBean, and more precisely
XMBean, can be deployed by using a *-service.xml file into a SAR. My MBean
implementation has to extend ServiceMBeanSupport and my MBean interface has to
extend MBeanService.
|
| Can I deploy a simple Standard MBean
A precision:
My question is
Can I use a SAR for deploying a Standard MBean that uses only standard JMX
classes ?.
I want to use a *-service.xml file to declare my Standard MBean.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928153#3928153
Reply to
The example I posted should be sufficient...
http://www.jboss.com/index.html?module=bbop=viewtopict=78485
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928191#3928191
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928191
19 matches
Mail list logo