0 Replies Latest reply on Oct 6, 2005 3:30 PM by palspace

    DeploymentException when i am trying to deploy my scedulable

    palspace

      i am getting this errororg.jboss.deployment.DeploymentException: com.vai.cms.ejb.message.SchedulableLIBean.(); - nested throwable: (java.lang.NoSuchMethodException: com.vai.cms.
      ejb.message.SchedulableLIBean
      .())
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :143)
      at org.jboss.system.ServiceController.install(ServiceController.java:202
      )
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invokeeflectedDispatch
      er.java:141)

      this is my code in deployment descriptor


      true
      com.vai.cms.ejb.message.SchedulableLIBean
      SchedulabeTest,12345
      java.lang.String,int
      NOW
      2000
      -1
      jboss:service=Naming


      and this is my class
      public class SchedulableLIBean implements Schedulable {
      private String name;
      private long value;
      public SchedulableLIBean(String name, long value){
      this.name = name;
      this.value= value;
      }
      public void perform(Date now, long remainingRepetitions){
      System.out.println("time"+now+"remaining repetitions"+remainingRepetitions);
      //loopbackMessage();
      }}

      is there any thing that i have to add in my deployment descriptors
      or is there any thing wrong in
      thank you