Ok, so I made some progress. If JBOSS is not started and you run the client, you get the following error:
[java] log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).
[java] log4j:WARN Please initialize the log4j system properly.
It appears that org.jnp.interfaces.NamingContext uses log4j.
Some more detail on what org.jnp.interfaces.NamingContext does/logs and whereto would be usefull.
I too was facing same problem as you and I added those two jar files to my classpath , but I m still getting the same error.
Can u please suggest something to get rid of that error.
You need to have $jboss/client/jboss-common-client.jar on the classpath of your client.