Re: [JBoss-dev] MBean Deployment Problem
Hello! > I am trying to deploy a simple MBean onto JBoss and I keep getting the > following error: > (java.lang.NoSuchMethodException: com.fts.timertasks.TsTestMBean > .())) > code="com.fts.timertasks.TsTestMBean" > name="jboss:type=Service,Name=TestMBean" > > You try to instantiate the interface "com.fts.timertasks.TsTestMBean". Obviously this cannot work. The error message is a little bit irritating. But an interface has no -method ;-). What you want to do is to instantiate an object of "com.fts.timertasks.TsTest" and register this as an MBean. So use this: CU Thomas --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] MBean Deployment Problem
It looks like the deployer is unable to find a constructor in the com.fts.timertasks.TsTestMBean class with this signature: public TsTestMBean() > -Original Message- > From: Rich Reese [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 9:10 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-dev] MBean Deployment Problem > > > I am trying to deploy a simple MBean onto JBoss and I keep > getting the following error: > > > -- > -- > 10:05:36,521 ERROR [URLDeploymentScanner] Failed to deploy: > org.jboss.deployment > [EMAIL PROTECTED] > url=file:/D:/jboss-3.2.1/ser > ver/all/deploy/mBeanTest.sar, deployedLastModified=0 } > org.jboss.deployment.DeploymentException: create operation > failed for package fi > le:/D:/jboss-3.2.1/server/all/deploy/mBeanTest.sar; - nested > throwable: (org.jbo > ss.deployment.DeploymentException: > com.fts.timertasks.TsTestMBean.(); - ne > sted throwable: (java.lang.NoSuchMethodException: > com.fts.timertasks.TsTestMBean > .())) > at > org.jboss.deployment.SARDeployer.create(SARDeployer.java:202) > at > org.jboss.deployment.MainDeployer.create(MainDeployer.java:784) > at > org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639) > at > org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) > at > sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) > > > -- > --- > > Here is what I put in my jboss-service.xml > > > > code="com.fts.timertasks.TsTestMBean" > name="jboss:type=Service,Name=TestMBean" > > > > > > Any help would be greatly appreciated. I am using JBoss 3.2.1. > > Thanks, > Rich > > > > --- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 > 1203_01/01 > ___ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] MBean Deployment Problem
I am trying to deploy a simple MBean onto JBoss and I keep getting the following error: 10:05:36,521 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment [EMAIL PROTECTED] url=file:/D:/jboss-3.2.1/ser ver/all/deploy/mBeanTest.sar, deployedLastModified=0 } org.jboss.deployment.DeploymentException: create operation failed for package fi le:/D:/jboss-3.2.1/server/all/deploy/mBeanTest.sar; - nested throwable: (org.jbo ss.deployment.DeploymentException: com.fts.timertasks.TsTestMBean.(); - ne sted throwable: (java.lang.NoSuchMethodException: com.fts.timertasks.TsTestMBean .())) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) - Here is what I put in my jboss-service.xml Any help would be greatly appreciated. I am using JBoss 3.2.1. Thanks, Rich --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development