13 Replies Latest reply on Sep 1, 2010 7:22 PM by dan jones

    Unable to use seam remoting after upgrading to 2.1.0.ga

    Thomas Fossman Newbie

      The InterfaceGenerator class cannot find the webremote annotations on methods in my local slsb interfaces or directly on pojos.

      This is the interface:

      @Local
      public interface UserServiceRemote {

           @WebRemote
           String logout();

      }


      The output of:

      c=UserServiceRemote.class
      Method[] methods = c.getDeclaredMethods();
      for (Method method : methods) {
         Annotation[] methodannotations = method.getAnnotations();
         System.out.println("name: " + method.getName());
         System.out.println("length: " + methodannotations.length);
         for (Annotation annotation : methodannotations) {
          System.out.println("annotation: " + annotation.getClass().toString());
         }
      }

      is:

      19:17:14,184 INFO  [STDOUT] name: logout
      19:17:14,184 INFO  [STDOUT] length: 0


      Does anyone have any idea why this is happening?

      I saw that the annotations were proxies, i tried using both the seam 2.1-bundeled version of javassist and the previous one.. (not sure if this really is related, i took a chance)


      I'm using jboss 4.2.2 and jdk 1.6.0u7/10.