Results 1 to 4 of 4
Thread: JSON Lib: json-lib-1.0-jdk13.jar
- 05-13-2010, 07:42 AM #1
Member
- Join Date
- May 2010
- Posts
- 4
- Rep Power
- 0
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.
- 05-13-2010, 07:58 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
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.
- 05-13-2010, 09:15 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
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.
- 05-13-2010, 10:00 AM #4
Member
- Join Date
- May 2010
- Posts
- 4
- Rep Power
- 0
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
-
hashmap to json
By prakashkadakol in forum New To JavaReplies: 5Last Post: 07-30-2011, 01:32 AM -
DB Values to JSON
By prakashkadakol in forum New To JavaReplies: 1Last Post: 01-05-2010, 06:19 PM -
JSON Parsing
By prakashkadakol in forum New To JavaReplies: 1Last Post: 01-04-2010, 07:13 PM -
JSON from javascript to java servlet
By boss-tech in forum Java ServletReplies: 1Last Post: 09-18-2009, 08:27 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks