Make a jar file availlable for all web application at deployement time

Hi !
Is there a way to make a jar file availlable to all web application included in a .ear file. I know that i can manually copy the jar under (OC4J_HOME)/j2ee/home/lib , but can i create a package that have those web application ( lets say 4 ) and also the common jar file, deploy the that .ear file and make my jar file automatically availlable for all the deployed web application ? or is there a special command that i can use to copy that jar to the (OC4J_HOME)/j2ee/home/lib while deploying the .ear file ?
i tried adding a manifest file with the classpath option but this seem to work only with jsp...
thanx for your audience...

Open the file %J2EE_HOME%/applcation-deployments/your-app/orion-application.xml. Add a tag like the one below:
<library path="location_of_my_library.jar" />
This will make the JAR availible to only your application, and the modules within it, and no others.
Rob Cole
Oracle

Similar Messages

  • 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

  • One Search service application for multiple web applications in a single server

      We are planning to host 17 Web applications in a single Server. Do I need to create search service application for each web application or I need to create one  Search service application , create a Content source for each web
    application and create a Result source for filtering. Which is the best approach. And which approach takes more RAM memory.
       In my application I am using Search web part, "Recently Changed Items", "Popular Items" web parts. when I created only one one  Search Service application for all web applications and using Result sources ,
    I am not getting the results. What could be the problem.

    Hi,
    One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
    Multiple SSA's will eat up RAM/CPU like a mother :)
    As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
    Thanks,
    Mikael
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Adding all dependent classes of an applet to make a jar file

    Hi everyone,
    I have this problem which I was not able to find a solution for, So I truly appreciate any feedback on this.
    I have a project on eclipse which is basically an applet.
    This applet is using some classes in some jars that I have imported as libraries for this project.
    Everything works on eclipse with no problem. However I need to make a jar file of the applet and required classes to use it in an html page.
    Now that's the part I have been facing difficulties, cuz I have to include all the classes that the applet is using from other jar
    files. And I can not come up with a way to find out all those classes.
    On the other side if I include the whole jars then my applet goes over 100 meg and would be useless.
    I am going to give an example of the problem I have in hope of making it a bit clear.
    I have a applet, which uses some classes from some jars. i.e., class A. but class A itself need class B and etc.
    Now how can I find all these dependencies since I have to include them along the applet in the jar file I am going to make.
    Once again I appreciate any feedback and sorry that is a long question.

    Fractalz wrote:
    . . . Now that's the part I have been facing difficulties, cuz I have to include all the classes that the applet is using from other jar
    files. And I can not come up with a way to find out all those classes.See the Class-Path: parameter (of a Manifest file) documentation here:
    http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Manifest-Overview

  • How to make jar files availabe for deployed EJBs

    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
    classpath, but I think that shouldn't be the way. Is there somthing in the admin
    console to make jars available or do I have to insert it in the ear file? And
    if so, where do I hve to place it?
    Thanks
    Claudia

    Put the util.jar in the ear with your ejb jars - at the same level (i.e. in
    the root) - but do not include them in the manifest.xml.
    Also each ejb jar that refers to util.jar must have util.jar on its internal
    classpath in the manifest.
    "Claudia" <[email protected]> wrote in message
    news:3d537db5$[email protected]..
    >
    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
    classpath, but I think that shouldn't be the way. Is there somthing in theadmin
    console to make jars available or do I have to insert it in the ear file?And
    if so, where do I hve to place it?
    Thanks
    Claudia

  • Accessing Files in Jar File as part of Web App

    I have put a number of NON-CLASS files in a jar file that resides in WEB-INF/lib in my webapp (running tomcat). These include xml files, xml schemas, images, etc. I would like to give my webapp programmatic access to these non-class files, such as providing the user with a list of all of the xml files in the jar file. I have seen a number of posts on this topic, but no answers.
    I have tried everything that I can think of, to no avail. ServletContext.getResource() with just about any path fails. If I do: ServletContext.getResourcePaths(), I get a list of all of the jar files in WEB-INF/lib (as well as other resources). The jar files are listed as: "jndi:/localhost/WEB-INF/lib/XXXXX.jar". If I use that value in ServletContext.getResource(), it does not work. It appears that I need to set up a JNDI context if I want to get the jar file, using: File f = (File)context.lookup(...). this may or may not work, but I can't figure out how to set up the JNDI context for purposes of tomcat. Right now, this is the only thing that I can think of.
    It would also be great if there was some way to take a path in the jar file, treat it as a directory, and list all of the files in that "directory".

    Thanks. That got me started. You need to put the full path to the file you want. here is the full code, either for getting an individual file or for getting the entire jar file, so that you can enumerate through it and read any file you want (this is for a non-binary file):
    URL url = this.getClass().getResource("/path/path/path/file.xml"); // need full path
    if(url != null)
         JarURLConnection conn = (JarURLConnection)url.openConnection();
         JarFile jarfile = conn.getJarFile();
         JarEntry jarEntry = conn.getJarEntry();
         BufferedReader br = new BufferedReader(new InputStreamReader(jarfile.getInputStream(jarEntry)));
         StringBuffer sb = new StringBuffer();
         String line = null;
         while((line = br.readLine()) != null)
                   sb.append(line);
                   sb.append(System.getProperty("line.separator"));
         br.close();
    String fileContents = sb.toString();

  • Mak a jar file

    hello,
    i've been working with java and java servlet for a while, but i've no clue about jar files. my question is, how do i make a jar file? is a jar file a compressed version of multiple class files or what? thanks for any advice.

    OK, here's a link to learning about JAR files - this should help you master all you'd need to know to work with jars.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/basics/
    Rather than provide you with a brief explanation here, i guess visiting the link and learning all thats there would be more helpful.
    Hope the above helps.
    John Morrison

  • Configure Log File for each web application deployed in weblogic server usi

    Hi All,
    How do I configure Log4J to log separately for each web application? i.e. Assuming, I have a web application "AWeb" and a web application "BWeb". I need a log file to be created for AWeb Separately and BWeb Separately. i.e. All the log information for "AWeb" web application will be stored in AWeb.log and all the "BWeb" web application will be stored in BWeb.log
    Do you have any sample code and configuration details for the above-mentioned requirement?
    Thanks in Advance,
    C R Baradwaj

    You do not need to do anything strange, just use log4j the usual way with the exception that you do not need to init log4j (this is not necesary when using a log4j.xml.)
    A minimal sample of a log4j.xml is
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
    <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
    <layout class="org.apache.log4j.SimpleLayout"/>
    </appender>
    <root>
    <priority value ="debug" />
    <appender-ref ref="ConsoleAppender"/>
    </root>
    </log4j:configuration>
    You just have to be sure that you have different log4j.xml in your classpath for different web applications.
    Regards,
    LG

  • I am having major problems with Firefox. About 3 weeks ago I started experiencing the display only when on Firefox for all web site, that the display would be shifted right about half a screen. It only happens on Firefox and happens for all web sites.

    I am having major problems with Firefox. About 3 weeks ago I started experiencing the display only when on Firefox for all web site, that the display would be shifted right about half a screen. It only happens on Firefox and happens for all web sites.

    This issue can be caused by the Babylon Toolbar 1.1.8 extension
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • HT3819 For home sharing do you have to use one apple ID? Im trying to make my own new account for all my devices (iphone, ipad, mac) , but i still want the music from my dads account.

    For home sharing do you have to use one apple ID? Im trying to make my own new account for all my devices (iphone, ipad, mac) , but i still want the music from my dads account.

    For home sharing do you have to use one apple ID? Im trying to make my own new account for all my devices (iphone, ipad, mac) , but i still want the music from my dads account.

  • Changing default open with for file type for all users

    hello
    can I change the default app to open a specific file type for all users and not juist for my user?
    i am admin for my mac mini.
    tnx
    gil

    What applications are offered for open with depends on the application itself informing the system it can open certain files, plus your own custom selections for opening files. Evidently the alternate app you want to use does not claim to be able to open the files you are assigning it. If you have a plist editor and know how to use it you could edit the info.plist file inside the application itself to add the file type you want to the application's declaration of file types it will open. Then restart so the system will read that declaration. I think it would be far easier to simply launch the application and then drop a file you want it to open onto its icon in the Dock.
    Francine
    Francine
    Schwieder

  • How to make a jar file from a java file?

    how to make a jar file from a java file, is there any one tht can help me thank you;

    You can study this.
    http://java.sun.com/docs/books/tutorial/jar/basics/index.html

  • Jar files required for Java Proxies

    Hi,
    Can someone mail me the following jar files required for Java Proxies or tell me where exactly I can find them….?
    aii_proxy_xirt.jar
    aii_msg_runtime.jar
    aii_utilxi_misc.jar
    guidgenerator.jar
    Regards,
    Abhy

    Hi Abhy,
    aii_proxy_xirt.jar
    C:usrsapJ2EJC00j2eeclusterserver0 inextcom.sap.aii.proxy.xiruntime
    aii_msg_runtime.jar C:usrsapJ2EJC00j2eeclusterserver0 inextcom.sap.aii.messaging.runtime
    aii_utilxi_misc.jar C:usrsapJ2EJC00j2eeclusterserver0 inextcom.sap.xi.util.misc
    guidgenerator.jar C:usrsapJ2EJC00j2eeclusterserver0 inextcom.sap.guid
    check this link
    http://72.14.203.104/search?q=cache:kBa_MrHu8lAJ:https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to%2520guides%2520-%2520rig%2520official/xi/how%2520to%2520work%2520with%2520xi%25203.0%2520java%2520proxies.pdfjarfilesforaii_proxy_xirt.jar&hl=en&gl=in&ct=clnk&cd=1
    just copy the total path and paste in IE..
    u will find the jar files required .... with path..
    Regards,
    Sridhar
    Message was edited by: sridhar reddy kondam

  • Import tables using same file name for all tables

    hi,
    We are using oracle 11.2.0.3.0, we have taken export of multiple tables in schema, unfortunately in exp command we have mention same file name for all the tables, now it has created one file for all export but the size of that file shows that all the tables included in it , when we try to import the tables only last table mention in export command is imported for other tables it hangs, example of code show below.
    Is there any way to import the remaining tables.
    exp system file =exp05042013.dmp tables=gr.table1
    exp system file =exp05042013.dmp tables=gr.table2
    exp system file =exp05042013.dmp tables=gr.table3

    Hi,
    You can use as :
    exp username@database tables=table1,table2 file=tabledata.dmpDid you have any RMAN full backup?
    Why you are not recover crash database?
    Mahir

  • File Associations for all users

    How does one go about changing file associations for file types for all users? I've recently installed iWork '08 on a computer on the network and now when I log in as a user it wants to open all of my Excel and Word Documents in Numbers and Pages respectively. How can I get it to default back to Microsoft Office for all of my Microsoft Office documents for all users. The iWork '08 install seemed to just take over, so it must be possible.
    Thanks!
    Chad

    I too need this information, but seeing it's been over a year and no one replied to the thread starter.....

Maybe you are looking for