Results 1 to 4 of 4

Thread: spring jars: server classpath v. in ear/war

  1. #1
    Join Date
    Jul 2005
    Posts
    108

    Default spring jars: server classpath v. in ear/war

    anyone know which spring jars can safely be placed in server classpath and which jars are required to reside in the ear (e.g. in web-inf/lib)?

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    We normally recommend that J2EE deployment units are self-contained. That was the intention of the J2EE specs.

    It is possible to place Spring Framework JARS on the server classpath; you may or may not encounter issues with this. It will depend on the app server or web container's class loader architecture, which is not standardized at this level and differs between products.

    Trial and error is your best guide.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Jul 2005
    Posts
    108

    Default

    thanks rod,

    i can live with that.

    do you follow the same policy for all dependency packages as well (e.g. hibernate, commons, etc)?

    i.e. does your typical ear file contain like 50+ jar files?

    if thats the best practice, then i'm cool with it, just taking a sanity check.

    tony.

  4. #4
    Join Date
    Jul 2005
    Posts
    246

    Default

    That's best practice for any J2EE app, yes you can end up with 50 jars in the ear file.

    Reason:-

    Say you need to upgrade a library for one app and not another. What do you do if the library is on the server classpath?

    Bob

Similar Threads

  1. Replies: 2
    Last Post: Oct 17th, 2011, 11:32 AM
  2. HSQL server wrapped into a Spring bean
    By sebastien in forum Data
    Replies: 9
    Last Post: Dec 1st, 2009, 10:32 AM
  3. Gaijin Studio for Spring MVC 0.9.2 Released
    By dadams in forum Announcements
    Replies: 8
    Last Post: May 30th, 2007, 10:48 PM
  4. Replies: 6
    Last Post: Sep 29th, 2005, 04:25 AM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •