2 Replies Latest reply on Oct 10, 2006 9:20 AM by jimmymani

    need to access jars from jboss lib directory not from WEB-IN

    jimmymani

      hi
      i am developing an ejb3 application with servlets and jsps in war and ejbs in a jar and all together packed in an ear.

      my servlet access some thirdparty api and i am adding their jar files inside the war(WEB-INF/LIB).

      session bean also access some third party jars and they are accessible from server/default/lib folder(so no need to include with application).

      is there any way to access jars from server/default/lib folder for servlets also?
      so that i can reduce the ear file size.

      thanks in advance
      jimmy

        • 1. Re: need to access jars from jboss lib directory not from WE
          peterj

          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).

          • 2. Re: need to access jars from jboss lib directory not from WE
            jimmymani

            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