facebook

ejb newbie question:local interface must match bean?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #261032 Reply

    johnjoreilly
    Member

    OK, so I get this warning when trying to deploy in jboss:

    Warning: The methods defined in the local interface must have a matching method in the bean’s class with the same return type.

    I get this for two methods out of like a dozen or more that are in the bean and interface. The signatures look the same to me in the interface and the bean implementation, and I’ve done a cut-and-paste to be sure. I must be missing something simple here. Any ideas?

    Thanks.

    #261082 Reply

    Riyad Kalla
    Member

    John,
    This has happened to me once before and it ended up being some really silly mistake. In my interface I was returning a List (java.awt.List, woops!) and in my impl I was returning a List (java.util.List)… see if it’s something really silly like that.

    #261087 Reply

    johnjoreilly
    Member

    Thanks, yes, it was just like that, a subtle differnece in the signature I just missed it.

    #261091 Reply

    Riyad Kalla
    Member

    Nice, glad you got it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: ejb newbie question:local interface must match bean?

You must be logged in to post in the forum log in