Where to put Third Party Jars in an .ear file

Where to put Third Party Jar files in an .ear file so that they can be packaged along with the entire application and thus bypass the trouble of putting the third party .jars inside the application server lib directory and set the class path.

Just put them in the root of your EAR. You can specify them in the classpath of your EJB JAR's manifest.

Similar Messages

  • Where to put third-party jar files

    ok i've made some classes that i use to filter file types for when the user needs to open a file, but i've just been putting the classes used for filtering in the project i'm working on and i was wondering where i would put a jar file that contains those classes so that i could include them in programs. for example like you include java.awt.

    Create a Jar from those classes and place it in the lib/ext folder of your JRE.

  • Where should the third party JAR files be placed ?

    Hi,
    We have a requirement to perform encryption / decryption of supplier bids. In this case we require to use third party provider JAR files with OA framework code. Where should the JAR files generally be placed in such a scenario ?
    Thanks and Regards,
    Sandhya

    Checkout this post.
    How to inclue a third party .jar file in OA fwk classpath Class not found

  • Where do i need to put third party jar files in localmachine?

    Hi
    I am writing jsp where i am importing the classes from third party libraries. When i am running this jsp, it is getting error as "cannot access class ...". Where do i need to put these third party libraries in my local machine in order to run the jsp locally.
    Thanks

    The easiest way is to put them in WEB-INF/lib.
    --olaf                                                                                                                                                                                                       

  • Where to define third party logical system name in file to idoc scenario

    Hi Friends,
      I am shalini shah.
    I have one doubt, where I can define the logical system name in File to Idoc scenario.
    I created Logical system for R/3 system in SALE t.code, but where to define the Third party logical system ,
    In SALE or any where.
    Please give me solution.
    Warm Regards,
    Shalini Shah

    Hi Shalini,
    You need to create Business system in SLD and import the business system in ID.Then u will start with the configuration.
    Just refer the below link for configurations with step by step solution.
    File To IDOC - Part1 (SLD and Design):
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
    File To IDOC - Part2 (Configuration):
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
    File To IDOC - Part3 (Steps required in XI and R3):
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
    Thnx
    Chirag

  • How to Call third party Jar into Application

    Hi Can any Expert help ?
    I want to put third party Jar into my application but i have some problem occur.
    1. how to call jar with parameter in application ?
    2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
    3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
    Thanks.
    Sanki Poon ([email protected])

    1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
    2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
    3) Under the resources tag you can have as many jar tags as needed.
        <resources>
            <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
            <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
        </resources>

  • How to include third party .jar files into my jar file

    Hi,
    how do i include a open source third party jar file into an executable jar?
    i have a class called BlogBox.java and it uses org.apache.commons.net.ftp.FTPClient, i want to create an executable file, where do i put the .jar file containing FTPClient aka Apache Commons Net?
    currently i'm getting the following error from when executing my BlogBox.jar
    C:\MyJava\BlogBox>java -jar BlogBox.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
    at blogbox.BlogBox.<init>(BlogBox.java:27)
    at blogbox.BlogBox.main(BlogBox.java:103)
    Any suggestions? i have searched google and this forum but could not find the solution to my problem, thanks
    [edited msg] do i need to add the classpath at execution or something of the apache commons net library?
    Message was edited by:
    gekkokid

    When you use an executable jar the normal class path
    is ignored, but you can put a classpath inside the
    jar. The usual trick is to place the library jar
    files in a directory inside the application directory
    and direct the manifest file to it. The manifest file
    live in the jar inside the META-INF directory and
    it's called manifest.mf
    The two heavilly used entries are Main-class: and
    Class-path: lines. Class-path just has a
    comma-separated list of library paths.
    The jar utility has a special option to load it up.Thanks :) I created a "/lib" directory, placed in the packages in there and redirected the Class-Path: lib/commons-net-1.4.1.jar
    and it works,
    thank you everyone :)

  • Third Party Jars

    Hi folks,
    Just wondering if anyone has used any third party jars in conjunction
    with your applications. If so where do U put it....I tried putting in the
    lib directory as well as a startup class, but my application just doesn't
    pick it up. Anyone has any ideas ? Thanks for the help
    Len

    Hi Lennard,
    You have to put all these jars in the iAS classpath. To do that open
    kregedit, then,
    Application Server-> 6.0->java->classpath.
    Add the full path of the 3rd party jars here and rerun the application.
    Please get back, if it helped you or if you have any questions further.
    Thanks,
    Rakesh,
    Developer-Support Team, iAS.
    Lennard Low wrote:
    Hi folks,
    Just wondering if anyone has used any third party jars in conjunction
    with your applications. If so where do U put it....I tried putting in the
    lib directory as well as a startup class, but my application just doesn't
    pick it up. Anyone has any ideas ? Thanks for the help
    Len

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

  • Best way to make a jar with third party jars

    hi, i have a question.
    i have an application that uses different third party jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    or
    b2) just put them as resources
    Another question :
    i sign my jar, but can't access the local file system. if i use solution a from above, do i have also to sign the jars that i include in my jar...
    for solution b i think i will have to sign all the jars... right ?
    Thx for your help

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • Using third party jars with Oracle Business Rules

    Hi
    I am working on Oracle AS 10g release 2.
    We are using Oracle Business Rules in integration with Oracle BPEL.
    While using third party jars however, Oracle Business Rules end is facing errors.
    Error during unmarshallingProvider com.sun.xml.bind.ContextFactory_1_0_1 not found
    oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: com.sun.xml.bind.ContextFactory_1_0_1
    Dependent class: javax.xml.bind.ContextFinder
    Loader: oracle.xml:10.1.0_2
    Code-Source: /D:/oracleasr3/lib/xml.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\oracleasr3\j2ee\home\oc4j.jar
    Can anybody help in figuring out where Jaxb jars(3rd party jars) are to be kept so that OAS access it?
    We tried using the applib folder to load the jars but we are getting class loading errors.
    When new instances are created, class loading is not happening.
    Pls help.
    Thanks
    Kavya

    Are you using Application Server Release 3 or Release 2? There are different versions listed in your mail.
    I think you probably want to add this as a shared library via EM and then import the shared library to your application with the application's xml config files.

  • Accessing third party jars - please help

    I have an application that I developed and put in a jar file.
    The application will run from the jar file and will run after
    it has been signed with a certificate from the signed jar file.
    I think I followed all the necessary steps according to the developer
    documentation.
    When I attempt the use it under webstart it fails with the
    following messages.
    Unable to open SQL connection. - openSQLConnection - Class not found exception
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at ca.wim.passport.startup.openSQLConnection(startup.java:692)
         at ca.wim.passport.startup.main(startup.java:1011)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    The manifest in my jar file looks like this after it is signed.
    Name: ca/wim/passport/
    Sealed: true
    Main-Class: ca.wim.passport.startup
    Class-Path: . images/ jars/commons-collections.jar jars/commons-digester.jar jars/commons-logging.jar jars/commons-logging-api.jar jars/commons-beanutils.jar jars/jasperreports.jar jars/dnsns.jar jars/kunststoff.jar jars/ldapsec.jar jars/localedata.jar jars/mysql-connector-java-3.0.6-stable-bin.jar jars/pjx.jar jars/sound.jar jars/sunjce_provider.jar
    Name: ca/wim/passport/
    Specification-Title: "Passport"
    Specification-Version: "1.0"
    Specification-Vendor: "WIM Consulting"
    Implementation-Title: "passport"
    Implementation-Version: "build34.9"
    Implementation-Vendor: "WIM Consulting"
    Sealed: true
    The classpath in the manifest has "jars/mysql-connector-java-3.0.6-stable-bin.jar"
    I signed all the third party jars and they are in a sub directory "jars" under
    the directory my jar file is in.
    My JNLP file looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for the Passport Application -->
    <jnlp spec="1.0+" codebase="http://localhost:8080/sterlingcrane/" href="passport.jnlp">
    <information>
    <title>Passport</title>
    <vendor>WIM Consulting</vendor>
    <homepage href="http://www.wim.ca"/>
    <description>Sterling Crane Passport.</description>
    <description kind="short">Passport</description>
    <icon href="WIMicon.gif" width="32" height="32"/>
    <icon href="WIMsplash.jpg" kind="splash"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="passport.jar"/>
    </resources>
    <application-desc main-class="ca.wim.passport.startup"/>
    </jnlp>
    I checked the files webstart downloaded and they are all were downloaded.
    The code from my program is as follows:
    String connectionDriver = "jdbc:mysql://localhost/passport?user=root&password="
    Class.forName(connectionDriver); // Load database driverYet I am getting "ClassNotFoundException" as if the program cannot find
    the third party jars.
    Obviously I am missing something?
    rykk

    Thanks I now have it working.
    With your suggestion I added a "jar href"
    for each of the third party jars.
    It does seem rather stupid to have to do this
    as the manifest already has the required information
    in it.
    rykk

  • Deployment (Ejb and third party jars with portal app)

    My problem is that I'm trying to set up the development env for a portal project.
    I have an ejb and a third party jar in my portal app. My portlets have some java
    classes associated with them. The ejb needs to reference(instantiate) the java
    classes in the portlets.
    Right now the only way I can get it to work is to put the ejb, third party jar
    and the portlet classes(jarred up) into the classpath of the server.
    I think there should be a way to deploy these things without putting them in the
    class path. I've read all the manual sections about deploying.
    Can anyone help me with this. It would be much appreciated.
    Thanks
    Rob Castle
    Principal
    NuWave Solutions, LLC
    12510 Prosperity Drive
    Suite 300
    Silver Spring, MD 20904
    office phone: (301) 625-3000 ext. 2003
    mobile phone: (410) 340-5529
    email: [email protected]
    website: www.nuwavesolutions.com

    On 01/10/2002 06:40 AM, Rob Castle wrote:
    My problem is that I'm trying to set up the development env for a portal project.
    I have an ejb and a third party jar in my portal app. My portlets have some java
    classes associated with them. The ejb needs to reference(instantiate) the java
    classes in the portlets.
    Right now the only way I can get it to work is to put the ejb, third party jar
    and the portlet classes(jarred up) into the classpath of the server.
    I think there should be a way to deploy these things without putting them in the
    class path. I've read all the manual sections about deploying.
    Refer to the portal deployment guide
    (http://edocs.bea.com/wlp/docs40/deploygd/index.htm). Also refer to
    http://edocs.bea.com/wls/docs61/ejb/deploy.html for more general
    information on deployment of ejbs.
    Regards,
    Subbu

  • Create a JAR including third party JARS

    How can I export my project into a JAR file also including the third party JARs being used from my application (project)?
    I think Eclipse does not support this, does it?
    The problem is, that when I export my project into a JAR and then manually put the required JARs into the JAR using WinZip I do get such an Exception:
    java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceFactory
    In my project I have a class (Runner.java) with a main method which the user can invoke from command line. Furthermore I have a GUI also with a main method which internally invokes Runner.java. How can I start either of themain methods/classes both in the same JAR?
    Thank you.

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

Maybe you are looking for

  • No display of error message log in dialog box

    Dear MM Experts, During enter incoming invoice (MIRO), when we click simulate after entering all necessary data, all error & warning messages are displayed in a dialog box if there is red traffic light. In our case despite red traffic light error mes

  • Changing key of a loop?

    Can I change the key of a loop (say, from A to D) to accompany tune, so that the same loop is used in the track in different keys?

  • Video input into Mini for live st-reaming

    I want to use a Mac Mini for strea-ming video. Note: I want to broadcast the str-eaming videos, not watch them! I will hook up a camcorder to the Mini, and then stream the video to a str-eaming service. My question: how can I connect the camcorder to

  • ITunes 9.0.1 and Snow Leopard are not displaying video

    upgraded to Snow Leopard and applied the 10.6.1 patch yesterday, and tried to watch video in iTunes today. I get audio but no video. Tried all the obvious (making it full screen, moving the window around) all with no resolution. looking for pointers

  • MSI P67A-GD53 P67 cannot get sound nor internet

    Hey, it's my 1st time with Intel products and windows 7. I installed my mobo drivers tonight, but I cannot seem to get any sound out nor get my internet working... I never had this problem before Mobo- MSI P67A-GD53 P67 SLI CrossFireX Do I need to do