Results 1 to 4 of 4
  1. #1
    Raghuraman K is offline Member
    Join Date
    May 2010
    Posts
    4
    Rep Power
    0

    Default JSON Lib: json-lib-1.0-jdk13.jar

    Hi,

    I'm working on json with ajax. I need to know where to add the json library i.e) json-lib-1.0-jdk13.jar and ezmorph-1.0.2.jar.

    1. should i add this to weblogic classpath or should i pack it with my war file?
    2. when should one add an external jar to server classpath? when should one add an external jar with war?

    I'm using weblogic server.


    Thanks.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    You add a jar to the server's classpath if all applications to be deployed on that server are going to use the same version of that jar file.
    You add it to your web application's Web-Inf/lib folder and configure isolation if may apps are going to be deployed using different versions of the same jar file.

  3. #3
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default

    And since you can almost never tell what apps are going to be deployed on a server through time, it's almost always (YMMV) better to simply deploy with the web app.

  4. #4
    Raghuraman K is offline Member
    Join Date
    May 2010
    Posts
    4
    Rep Power
    0

    Default

    Hi Tolls/r035198x,

    Thanks for you reply. My application is a simple web-application and it also uses some EJB's. We are using ajax calls with json(for data convertion). I just wanted to know whether to add the json.jar and other dependent libraries to weblogic classpath or pack it with war file.

    As Mr.R035198x replied, i'll pack it with my war file itself.

Similar Threads

  1. hashmap to json
    By prakashkadakol in forum New To Java
    Replies: 5
    Last Post: 07-30-2011, 01:32 AM
  2. DB Values to JSON
    By prakashkadakol in forum New To Java
    Replies: 1
    Last Post: 01-05-2010, 06:19 PM
  3. JSON Parsing
    By prakashkadakol in forum New To Java
    Replies: 1
    Last Post: 01-04-2010, 07:13 PM
  4. JSON from javascript to java servlet
    By boss-tech in forum Java Servlet
    Replies: 1
    Last Post: 09-18-2009, 08:27 AM

Posting Permissions

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