You'll need to provide AS7 client libraries for your AS 5.1 setup. Check out this thread and this blog post for more info.
Reply to this message by going to Community
Start a new discussion in JBoss Remoting at Community