I have a J2SE client that is connecting to JBoss and calling some beans. I have a class, lets say SharedTask, which I want to share between the client and the server, so I have it packed up in a jar file. On the client side it's no problem , I just include the jar in my client classpath. However on the JBoss side there is a problem as when the client calls a method which uses methods from SharedTask a NoSuchMethodError is thrown. I have place the jar with SharedTask in the JBoss server\default\lib directory, but still no joy. Seems like JBoss isn't finding my class. Has anyone got any ideas?
Thanks in advance
Solved the problem, the class I was trying to access used static methods and the bean trying to access these methods didn't like this. I changed the class to a non-static and it worked fine.