The jars in server/default/lib are automatically available to your application, no need to do anything special. (As an example, if you need database access, the JDBC driver jar file always goes into server/default/lib directory.)
By the way, you probbaly should have asked this in the Beginner's Corner or Installation, Configuration & Deployment forums. This forum is specific to the Web Server (which is a replacement for the Apache HTTP Server and Tomcat).
sorry for roaming here
my problem is
if i remove jars from war(web-inf/lib) and keep them in server/default/lib i am getting java.lang.classcastexception,otherwise its working fine
do i have to do something with jboss-web.xml for classloading issues
i am using jboss4.0.4 GA