I am using 4.0.5GA.
it depends on what you want to do on the client. In most cases it is sufficient to add the jbossall-client.jar to the client classpath. You can find that jar under JBOSS_HOME/client.
If you already did add this library, you have to give more information about what you are doing on the client.