Announcement Announcement Module
Collapse
No announcement yet.
spring jars: server classpath v. in ear/war Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      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.

      Comment


      • #4
        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

        Comment

        Working...
        X