Where do we put common JARS in enterprise/web applications

Hello everyone,
Could someone please advice me as to a good/best way to handle this scenario:
1. an EAR contains a bunch of web applications, which have to use a common archive of classes, like an XML parser for instance. Where can i put this JAR? the brute way would be to put in the WEB-INF/lib of every web-app, but...?
Grateful for any suggestions,
deepak

Well... depends I suppose on your container. We use IBM's Websphere... and we have several EAR's that contain a half dozen or so dependant JARs... we "import" them into the EAR, and then whoever must have access to these dependencies references the EAR's path in the "Java Buildpath" and "Module Dependencies"
The dependant JARs are just put into the root directory of the whatever EAR we happen to be dealing with.
The trick is in whatever resource (i.e. EJB) is making sure that its MANIFEST is aware of the location of the dependant JARs, which IBM's Websphere Application Developer Studio handles all that stuff for you.
./dave

Similar Messages

  • Can I put Discoverer Portlet in my web application

    Hi!
    Can I put Discoverer Portlet in my web application? Let's say I want to put or publish worksheets it in my own J2EE web application (not on Oracle AS Portal)
    Please comment on this.
    Thanks.

    Hi
    I'm really not sure. You might try asking this in the Application Server forum:
    Oracle Application Server - General
    Best wishes
    Michael

  • Where do I put db.jar when using in a servlet?

    servlet container library level, or servlet library? I am guessing that because db.jar uses JNI code, reloading would be a problem, so it should reside at the servlet container library level, but it would be nice to know for sure.

    Hi Garey,
    Because using the Java API in Berkeley DB (BDB) implies making JNI calls, you should place the "db.jar" JAR file under your servlet container library directory (e.g. for Tomcat this should be "common/lib").
    All servlet engines use separate classloaders for each web application. You need to ensure that the native BDB library is loaded by the servlet engine's common classloader.
    If you place the "db.jar" file under your web app's WEB-INF/lib directory you will get errors like "UnsatisfiedLinkError: Native library <path_to_BDB_lib>\libdbNN.dll already loaded in another classloader" when reloading your servlet.
    Of course, the directory where the native library resides, should be included the PATH or LD_LIBRARY_PATH (java.library.path) environment variables.
    Regards,
    Andrei

  • Where do I put the .jar file for the database connection?

    I am trying to connect to an Oracle 11g database. I see under the coldfusion settings summary that the java version is 1.7.0_55. So I downloaded the ojdbc7.jar file from Abode.com. Now the question is where do I put it so that coldfusion can access it?
    Of course I need to set up the database connection (which I still don't have the connection string for), but I still need to know where to put the ojdbc.jar file.
    Thanks.

    jasonwryan wrote:What does the man page say?
           The  program  has builtin defaults and temperature thresholds but users
           can   specify   their   own    settings    in    configuration    files
           /etc/default/i8kmon  and  ~/.i8kmon.   The daemon defines 4 states with
           different fan speeds ({0 0}, {1 0}, {1 1}, {2 2}) and  for  each  state
           are  defined  the temperature thresholds which cause the switching to a
           higher or lower  state.  Furthermore  each  state  can  have  different
           thresholds  for operation on ac power or battery.  For example the fol‐
           lowing configuration:
    I've put the following file in /etc/default/i8kmon:
    # Run as daemon, override with --daemon option
    set config(daemon) 0
    # Automatic fan control, override with --auto option
    set config(auto) 1
    # Report status on stdout, override with --verbose option
    set config(verbose) 1
    # Status check timeout (seconds), override with --timeout option
    set config(timeout) 1
    # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
    set config(0) {{-1 0} -1 50 -1 50
    set config(1) {{-1 1} 50 70 50 70}
    set config(3) {{-1 2} 70 128 70 128}
    But it doesn't seem to do anything. I'm running a Dell Inspiron 3521 with no dedicated GPU, so it only has one fan. I was somehow able to get i8kmon to work in Ubuntu by putting this config in /etc/i8kmon, but can't get it to work in Arch. Putting it in /etc/i8kmon and /etc/default/i8kmon doesn't do anything.

  • What is directory where I can put in jar file without specify classpath ?

    hi,
    Is there any directory in weblogic similar to the directory of WEB-INF/lib/ where I can throw a jar file in without specify classpath explicitly.
    The reason I'm looking for such directory is :
    -- I do not want to specify classpath explicitly
    -- I'd like it outside of an application so that it stay even if the application redeployed.
    Thanks

    Hi Aacc,
    The domain library directory that you are looking for is usually $DOMAIN_DIR/lib, for example "C:\Oracle\WLS_Middleware10.3.4\user_projects\domains\test_domain_1\lib" (Windows) or "/u01/weblogic/domains/my_domain/lib" (Linux/Unix).
    The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath.
    You can override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.
    -Cris

  • How to deploy one common filter for all web applications

    I want to deploy a filter for all the web applications i have running on weblogic server. I don't want to deploy the filter just within a specific web
    context, was able to achieve this on tomcat as it provides a common web.xml
    which will apply to all web apps. But i don't know how to achieve this on Weblogic. Your help would so much appreciated.

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • How to use two different ojdbc14.jar for two web application.

    Hi,
    I have two web application running in same tomcat, I need to use the two different ojdbc14.jar for two application, now both are taking the jars from tomcat common/lib directory, I tried copying the new ojdbc14.jar in web-inf/lib folder of one application, but it is not working.
    Could you please let me know whether this will take the jar from tomcat by befault or from web-inf, and a solution how to proceed with this.
    Thanks in advance.

    Yes, I tried removing the jars from common/lib, but as the connection string is mentioned inside the server.xml it is showing db connection error while trying to connect to the database

  • Need common page for two Web applications

    Hi,
    I got two web applications. I need to have a common point/ page to get access to them. I need to have a jsp or html page with two respective links. Providing this is fine but I need help as to how do handle switching the contexts.
    Any alternative solution is also welcome.
    Thx.

    Does it have to be an Itinerary?  This is fairly simple with just an Orchestration.

  • Where can I find the jar files of the application I have deployed?

    If I deploy an J2EE application successfully on NetWeaver, where are the jar files located? How to find them?

    Hi Luc,
    APEX does not create physical file that is in APEX_APPLICATION_FILES table.
    It can only store the file in BLOB format in repository.
    So when we upload file APEX stores file in BLOB column of APEX_APPLICATION_FILES table and then use when needed but no physical file.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Oc4j to Weblogic: JAAS login module in enterprise web application

    Hi Experts,
    I have a LoginModule defined in my existing EAR application.
    oc4j doc referece: http://download.oracle.com/docs/cd/B31017_01/web.1013/b28957/loginmod.htm#BABECDDC
    I already followed Developing Custom Security Provider : http://download.oracle.com/docs/cd/E12890_01/ales/docs32/dvspisec/progrmng.html
    How can I integrate LoginModule same way in weblogic..(10.3.4) thank you all in advance. Already know the process of MBean jar and configuring it in weblogic console.
    But Standalong MBean JAR can't find my Custom LoginModule defined in EAR which I am pointing from my CustomSecurityProvider thru
    getLoginModuleConfiguration()Thanks for reading my post.. hoping to get some response..

    is this even possible, is it a bug? anybody from weblogic team??

  • Where put the JAR File jakarta-regexp-1.3.jar ?

    I'download jakarta-regexp-1.3.jar file from jakarta-apach site for validate a email adress..
    But i did not find any doc to telle me where put this file..
    I put it in the jre subdirectory of my sdk directory but the javac compiler
    do not recognize this part of my code import org.apache.regexp.* ..I try the lib directory of the tomcat and it was same..
    Where should i put this jar file ..
    By the way i 'm coding on linux for jakarta-tomcat server..
    Could some body help me ?

    DON'T CROSS POST:
    http://forum.java.sun.com/thread.jsp?thread=461653&foru
    =33&message=2116135
    http://forum.java.sun.com/thread.jsp?thread=461654&foru
    =45&message=2115945
    http://forum.java.sun.com/thread.jsp?thread=461653&foru
    =33&message=2115943
    http://forum.java.sun.com/thread.jsp?thread=461652&foru
    =1&message=2115941Ooops, didn't see it, ehmmmz
    I re-draw my answer, first learn some posting etiquette, then people might help.

  • Where do i put external libraries?

    I have some oracle classes that I use for XML generation. Where do I put the jar file so that
    Weblogic can use them? Do I reference it in the CLASSPATH variable, or can I put the jar file in the
    weblogic directory structure?
    Thanks in advance,
    Josh Cimino
    Software Developer
    Mxi Technologies Ltd.
    1430 Blair Place, Suite 800
    Ottawa, ON, Canada
    K1J 9N2
    E: [email protected]
    T: 613.747.4698 ext 479
    F: 613.747.1909
    www.mxi.com
    "From the flight line to the bottom line"
    [att1.html]

    Thanks!
    "Dimitri Rakitine" <[email protected]> wrote in message
    news:[email protected]..
    http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
    Josh Cimino <[email protected]> wrote:
    What if I have a session bean that uses external libraries? There is no
    web-inf/lib directory for an EJB.
    "Renaud Waldura" <[email protected]> wrote in message
    news:3bd348b5$[email protected]..
    If your application is packaged correctly it should be in WEB-INF/lib.
    If
    not, well, let's just say it's probably worth your time to package it
    correctly. I know it sounds harsh, but really it's worth it.
    --Renaud
    "Josh Cimino" <[email protected]> wrote in message
    news:3bcaf5f6$[email protected]..
    I have some oracle classes that I use for XML generation. Where do I
    put
    the jar file so that
    Weblogic can use them? Do I reference it in the CLASSPATH variable,
    or
    can
    I put the jar file in the
    weblogic directory structure?
    Thanks in advance,
    Josh Cimino
    Software Developer
    Mxi Technologies Ltd.
    1430 Blair Place, Suite 800
    Ottawa, ON, Canada
    K1J 9N2
    E: [email protected]
    T: 613.747.4698 ext 479
    F: 613.747.1909
    www.mxi.com
    "From the flight line to the bottom line"
    Dimitri

  • Where i should put external java library so UDF can import directly ?

    Hi All,
    I have some scenario using UDF and this code required a lot of external jar file. Please
    advise me where i should put this JAR file so i can import directly from UDF without need to import using Import Archive ?
    Thank you and best Regards
    Fernand

    Hi,
    is there any other alternative rather than put in into import archive ? like i copy all ther Jar file into certain
    directory in XI server and restart ther server so automatically, i can import insite my UDF wihout import archive ?
    Thank you and Best Regards
    Fernand

  • Web Application - Data caching of enterprise data

    Sorry in advance if this is off-topic but I can't find anywhere else to post this type of question.
    I am looking for information/suggestions such as books, technology or design methodology for my enterprise web applications. These sites are currently up and functional using only JSP, servlets and regular Java classes stored in a web application session to provide data caching and access. We are using Weblogic Server 6.1 running on an AIX Unix system at this time. I'm not sure that this is the best design architecture as our web sessions are getting too large but I can't think of any other Java technology to use and I need some help. Here's an overview of our environment and our needs.
    Our core data is held in a mainframe based IMS system. Some DB2 is also used. Access to this data is through IMS COBOL transactions which we can execute with IMS Connect. We also use some JDBC to get to the DB2 tables directly where available.
    Some overall application data is cached when the web application is deployed. We use singleton classes which are created and refreshed at deployment and they then refresh themselves from the sources every 24 hours.
    Each time a user logs in we execute several IMS transactions and JDBC calls to cache user specific data in regular Java classes which are then simply placed in the users web session where we access them from JSP, servlets and other Java classes. The fields in these Java classes range from any type of primitive field to TreeMaps of other Java classes. As the data is cached it is sorted and other fields are calculated and stored in these classes. As the user progresses through the system we then may have to do several other IMS transaction and JDBC calls to collect other types of data. All of this is then also added to the users session. Most of this in inquiry. We do allow transactions but those are built from user input and data already cached and are then we just execute the IMS transactions with the input.
    As our application has grown these Java classes have gotten larger and larger. And since these are simply stored in server memory in the web sessions then these are also getting huge. I'm concerned that this is not the best way for this application to be architected. Is there something else we should be doign? I simply don't understand how Entity Java Beans could be used but then again I don't know much about them. I wouldn't think that caching the data to a local database and accessing it from there would be any more efficient and would probably just slow down the system from all the I/O.
    Any help or direction would be greatly appreciated.

    The best book you can buy is 'Professional Java Server Programming, j2ee edition' by Wrox. It is by far the best reference I've used. Another quick reference consideration might be the j2ee book provided by codenotes... its quick and to the point.

  • Can any body tell where i have to place the mdb file in the web application

    Hi
    I am doing a web application in NetBeans 5.0 and using MSAccess (*.mdb ) file as a backend, so now where i have to place this mdb file in this web application in NetBeans. and tell me the code how to connect to that mdb file.
    The mdb file name is "db.mdb" and i am using a jsp page through which a servlet will be communicated. in servlet i am not able to connect to this mdb file.
    Reply asap.
    Sasi .

    DrClap wrote:
    duffymo wrote:
    Then I'd put it in my CLASSPATH. Maybe WEB-INF/classes.I'm not sure that I like the idea of the database being inside the web application's context. When you deploy a new version of the application, wouldn't that be a problem? My answer to "Where do I place the MDB in the web application" would be "Anywhere but there".DrClap, I'm embarrassed to read this, because you're only too correct. Thanks for the correction.
    When you think about it, your advice makes a great deal more sense. Any database BUT Access would be on a separate server (e.g., Oracle, MySQL, SQL Server, etc.) Why wouldn't that be a good idea for Access, too?
    On the other hand if it's a read-only database that would be different.You're too gracious to leave me this out. I throw myself on the mercy of the court for being a dumb ass. 8)
    %

Maybe you are looking for

  • BO 4.0 webi: Conditional formatting on a bar graph

    Hi, Is it possible to fiormat a Bar graph conditionally in BO 4.0(SAP BO BI: web intelligence).. I want to create a bar graph that displays bar in Green color if the value of bar is greater than target set and Red if it is less than target, which is

  • Logic 8 and 9 sync'ing on two separate computers

    hi there and thanks for reading this post. here's my setup... 1 ppc mac g5 running logic pro 8 - with various vst virtual instruments that only work on the ppc platform 1 intel mac pro 8 core running logic 9 - with au virtual instrumets only here's m

  • How to determine the proper size for Oracle 8i Data Base Objects

    Hi, I'm working on an Oracle 8i Data base. I'd like to know how to determine the proper size for the Data Base objects such as tables, datafiles, tablespaces... Thanks.

  • JDBC in a JavaBean with Webforms

    I have a javabean which is called from webforms on a when-button-pressed trigger. The javabean works fine, except when it reaches a point in the code where i try to load the oracle jdbc driver: DriverManager.registerDriver(new oracle.jdbc.driver.Orac

  • Direkter Bild-Import in Bridge CS6 bricht sofort ab

    Beim Start des Bild-Importes aus Bridge CS6 heraus bricht der Import aus der Kamera ab. Andere Windows-Tools importieren Bilder direkt von der Kamera ohne Probleme. Die Kamera: CANON5DMarkII mit aktueller Firmware und geladenen Akkus.