Use thrid-party library in EJB

Hello,
In an EAR file, it contains WAR, JAR(ejb).
If the ejb JAR file required other Java library(JAR files), is it possible to
deploy with the EAR ??
For example, I want to use Jakarta Lucene in on eof my EJB. I tried to add <module><java>lucene.jar</java></module>
in application.xml, but it failed to deploy.
How can do this in WebLogic ???
Best regards,
Eric

You can alternatively in 8.1, just drop your libs into EAR/APP-INF/lib
cheers
mbg
"Philip Strube" <[email protected]> wrote in message
news:[email protected]..
Hi Eric,
Eric Chow wrote:
Hello,
If there are more than one extra libraries to be used, what separator
should
be used?use whitespace:
Class-Path: lucene.jar log4j.jar another.jar andonemore.jar
Can it support wildcard "lib/*.jar" ???I don't think so, but I am not sure.
You can use paths, like this
Class-Path: lib/lucene.jar otherdir/some.jar anotherdir/bla/foo.jar
but I guess you already knew...
Best regards,
Philip
Best regards,
Eric
"Philip Strube" <[email protected]> wrote in
message
news:3ee59fec$[email protected]..
Hi Eric,
Eric Chow wrote:
Hello,
In an EAR file, it contains WAR, JAR(ejb).
If the ejb JAR file required other Java library(JAR files), is it
possible to
deploy with the EAR ??
For example, I want to use Jakarta Lucene in on eof my EJB. I tried toadd <module><java>lucene.jar</java></module>
in application.xml, but it failed to deploy.module is for ejb-jars, not for libraries etc.
How can do this in WebLogic ???1. remove the lucene.jar-stuff from the application.xml
2. put a classpath entry in the manifest.mf of your ejb-jar. The
manifest should look like this:
Manifest-Version: 1.0
Class-Path: lucene.jar
That is all you need to do.
Hope it helps,
Philip
Best regards,
Eric

Similar Messages

  • How to use third party library (like .dll and .lib files) in flascc?

    I have a number of .dll and .lib files of the  third party library, which are generated from C++ code.
    I read about flascc on other web site says:
    "If you want to use third party library in your Flascc project,you must have either the source code or the linkable file which is compiled of the third party library   "
    Dose the linkable file mean .dll file or .lib file?
    AND
    How can I use the fuctions in them in my flascc project.?

    Native code is not interchangeable between platform.
    It means that you can't use library that wasn't build specifically for flascc.
    And when they say linkable files they mean libraries compiled for flascc, not any libraries.
    So if your libs are for windows, no luck, you have to recompile everything

  • Using 3rd party library on linux (ABI Compatibility ?)

    Hi all !
    I am facing a problem while developing an application that uses a 3rd party library. This 3rd party library is an OCR Engine.
    Actually I am able to use this OCR from Java via JNI under windows. Now I try to do the same thing under Linux.
    I created a C++ wrapper shared library linking the OCR Engine shared library.
    I wrote 3 JNI functions for :
    - loading the engine
    - closing the engine
    - setting the engine language support
    Using my wrapper from any C/C++ program works fine. But when I use a JNI interface to these method, it ends randomly with a segmentation fault.
    Consider this simple program :
    engine.nativeLoadEngine();
    for(int i = 0; i < 500; i++)
    bq. engine.nativeSetTextLanguage( "French" );
    engine.nativeCloseEngine();
    Sometimes the segmentation fault appears before the nativeLoadEngine(), sometimes after nativeCloseEngine(), sometimes at iteration N etc.
    It cannot be a matter of my JNI code because... take a look at my functions bodies :
    * Class: com_XXX_ocr_OCREngine
    * Method: initEngine
    * Signature: ()V
    JNIEXPORT void JNICALL Java_com_XXX_ocr_OCREngine_initEngine( JNIEnv* env, jobject thisObj )
    * Class: com_XXX_ocr_OCREngine
    * Method: closeEngine
    * Signature: ()V
    JNIEXPORT void JNICALL Java_com_XXX_ocr_OCREngine_closeEngine( JNIEnv* env, jobject thisObj )
    * Class: com_XXX_ocr_OCREngine
    * Method: setTextLanguage
    * Signature: (Ljava/lang/String;)V
    JNIEXPORT void JNICALL
    Java_com_XXX_ocr_OCREngine_setTextLanguage( JNIEnv* env, jobject thisObj, jstring textLang )
    Even if I do "nothing" in the bodies, I face segmentation faults. If I don't link the OCR library, it is self-evident that there is no problem.
    I even used JNA (https://jna.dev.java.net/) to access a shared library exposing my three functions and linking to my 3rd party .so. I reproduced the same issue.
    Config :
    Ubuntu 2.6.20-16
    gcc 4.1.2
    libstc++6
    jdk1.5.0_11
    My wrapper and OCR Engine are both linking to :
    libc.so.6
    libstdc++.so.6
    My libjvm.so is linking to :
    libc.so.6
    I tried both g++ and gcc to compile my wrapper.
    Am I facing a kind of ABI compatibility issue between libjvm.so and my OCR engine 3rd party library ?
    I tried some compile command tweaking but it was pointless. It really seems hopeless to me...
    Thanks for any help.

    I believe I built Boost using the complete option. I have several files for each library, for example, I have the following in the boost_1_47_0\stage\lib\  folder:
    libboost_regex-vc100-mt-1_47.lib
    libboost_regex-vc100-mt-gd-1_47.lib
    libboost_regex-vc100-mt-s-1_47.lib
    libboost_regex-vc100-mt-sgd-1_47.lib
    libboost_regex-vc100-s-1_47.lib
    libboost_regex-vc100-sgd-1_47,lib
    boost_regex-vc100-mt-1_47.dll
    boost_regex-vc100-mt-1_47.lib
    boost_regex-vc100-mt-gd-1_47.dll
    boost_regex-vc100-mt-gd-1_47.dll
    I think the ones that have the -s- in the filename are the static versions of the library.
    I've tried changing the Project Properties->C/C++->Code Generation->Runtime Library settings without luck. And I'm not sure if there are other settings that I need to change.

  • Thrid Party DLL File

    Hi,
    How to use Thrid Party DLL File through Java Access Bridge or Any other way.
    Thanks

    You should find the information at http://java.sun.com/products/accessbridge/docs/index.html

  • Third-party library for J2ME

    Can I use third-party library in the J2ME wireless toolkit? and How?
    I have trouble using MathFP library provided by http://home.rochester.rr.com/ohommes/MathFP/
    with the J2ME wireless toolkit(1.04, 2.1 and 2.2).
    If I can not use third-party library with the toolkit, is there any way around it?
    Also, I find out that even if I wipe out my CLASSPATH on my windows system, the J2ME wireless tool kit still remember the old CLASSPATH. It means I still can compile Java project with J2ME wireless toolkit, but I can not compile any Java file with command line ( it can not find any Java library!). The bottom line is J2ME wireless toolkit has special setup. And I don't know to use third-party library with the toolkit. If developer can not use third-party library with the toolkit, it would be kind of ridiculus. It would be just like the Visual Studio .NET can not use any other third-party DLL.

    Hi,
    You can very well use third party libraries in J2ME as far as it is compatible. If u have the source code of the library copy it in to the src directory of the project or if u have only the library then put it in lib directory of the project

  • Burning to thrid party drive

    I can't find option to change DVD drive in iDVD6 preferences.
    Someone please tell me how to burn DVD within iDVD6 using thrid party burner. It should be simple . . .
    Thanks.

    Hold down the Control key when you click the Burn icon.

  • Calling a third-party library from JNI-enabled C++ code

    Hi everyone,
    I have some existing C++ application code that extracts data from a file in a special format (HDF5). This code uses a static library (third party) to decode the file format. I would like to wrap this application code in a JNI wrapper so that I can call the code from Java. So I have a situation like this:
    Java front end -> application code (C++) -> static library (C++)
    I have compiled JNI headers and modified the application code accordingly. I created a shared library by bundling the application code together with the static library (using gcc 3.2.2 on Red Hat Linux 9):
    g++ -shared hdf5_jni.cc -o libhdf5_jni.so -I<include path> -L<static library path> -lhdf5
    (the <static library path> contains the static library libhdf5.a). This creates a shared library which contains the application code and the relevant bits of the static library.
    When I call the Java front end, the shared library (libhdf5_jni.so) is correctly found and accessed. However, I get an UnsatisfiedLinkError which I don't understand:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: <blah>/lib/libhdf5_jni.so: <blah>/lib/libhdf5_jni.so: undefined symbol: _Z4formPKcz
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
    ... etc
    I have no idea what the undefined symbol "_Z4formPKcz" represents. It's not part of the application code or the static library.
    Here's some more info that might help diagnosis:
    1) The problem seems to be due to the approach of having a three-step process (Java code calling bespoke shared library which includes unmodified 3rd-party code). I get an identical error (including the mysterious "_Z4formPKcz" symbol) when trying to do something similar with a different 3rd-party static library.
    2) When I simply have Java code calling C++ code which I have written myself (no calls to static library methods), I have no problems, i.e. there doesn't seem to be a problem with the way I set up the JNI wrappers or the application code, or in the way I create the shared library.
    3) When I simply have C++ code calling the static libraries (i.e. no Java wrapper) I have no problems, i.e. there doesn't seem to be a problem with the application code or the static libraries.
    4) The static libraries were compiled from source using the same compiler that I used to compile the application code.
    5) I'm using J2SDK 1.4.2 on Red Hat Linux 9, although I've tried other versions of the SDK and had the same problem.
    I've done a lot of web searches on the "_Z4formPKcz" symbol and have turned up absolutely nothing (zero Google hits!).
    Any help would be very much appreciated.
    Thanks, Jon

    Thanks chrisswhite,
    I should have mentioned that I tried this too and it didn't solve the problem. You're right though, I should be compiling with -fPIC anyway.
    Jon

  • Using an IRC Library, I can't get it to play with the Form at all!

    I'm having a problem getting my IRC Client to work. I normally don't use winforms or WPF, I chose WinForms because it was slightly easier to work with, I'm not new to threading, but I have no idea how this works.
    Problem: When I start the application it doesn't even start the thread, or the Program.cs Main() function. It just hangs around, being a Gooey. 
    MainForm.cs:
    public partial class MainForm : Form {
    public Program pro = new Program();
    public MainForm() {
    InitializeComponent();
    }Program.cs:
    [DllImport("kernel32.dll")]
    private static extern void ExitProcess(int a);
    static MainForm Form1;
    public static MainForm form = new MainForm(); // Main Form Controls
    [STAThread]
    public static void Main() {
    Application.EnableVisualStyles();
    //Application.SetCompatibleTextRenderingDefault(true); - Ignoring this due to a start error.
    form.Text = "Test"; // Trying to send text, doesn't work
    form.MessageSend.Text = "Test 2"; // Trying to send text, doesn't work.
    // Startup
    MessageHandle(null, "Starting Client!! Welcome" + conf.BaseAdmin, 0);
    GenerateFiles();
    form.Text = "IRC Client Attempting to connect...";
    irc.OnConnected += new EventHandler(OnConnected);
    irc.OnChannelMessage += new IrcEventHandler(OnChanMsg);
    irc.OnQueryMessage += new IrcEventHandler(OnPriv);
    irc.OnJoin += new JoinEventHandler(OnJoined);
    irc.ActiveChannelSyncing = true;
    try {
    irc.Connect(conf.Server, 6667);
    } catch {
    //irc.OnChannelAction += new ActionEventHandler(ActionEvent);
    Form1 = new MainForm();
    Application.Run(Form1);
    #region --- Method: MessageHandle(name,msg,type) ---
    public static void MessageHandle(string name, string msg, int type) {
    DateTime now = DateTime.Now;
    string timestamp = now.ToShortTimeString();
    if (type == 0) {
    // Client Message
    form.MessageSend.Text += String.Format("[{0}] --- {1}\n\r", timestamp, msg);
    } else if (type == 1) {
    // Private Message
    form.MessageSend.Text += String.Format("[{0}] <{1}> {2}\n\r", timestamp, name, msg);
    } else if (type == 2) {
    // Regular User Message
    form.MessageSend.Text += String.Format("[{0}] <{1}> {2}\n\r", timestamp, name, msg);
    } else if (type == 3) {
    // Channel Mod (Operator)
    form.MessageSend.Text += String.Format("[{0}] <@{1}> {2}\n\r", timestamp, name, msg);
    } else if (type == 4) {
    // Broadcaster (Admin)
    form.MessageSend.Text += String.Format("[{0}] <~{1}> {2}\n\r", timestamp, name, msg);
    } else if (type == 5) {
    // Bot Admin
    form.MessageSend.Text += String.Format("[{0}] <+{1}> {2}\n\r", timestamp, name, msg);
    } else if (type == 6) {
    // Channel Action (/me)
    form.MessageSend.Text += String.Format("[{0}] * {1} {2}\n\r", timestamp, name, msg);
    } else if (type == 7) {
    // Join Channel
    form.MessageSend.Text += String.Format("[{0}] *** {1} has joined the channel!", timestamp, name);
    } else if (type == 8) {
    // Self Message
    form.MessageSend.Text += String.Format("[{0}] <{1}> {2}\n\r", timestamp, name, msg);
    irc.SendMessage(SendType.Message, conf.Channel, msg);
    #endregion
    Yeah, I have no idea how forms work, but I'd like to learn for this little IRC Client project.
    Thanks in advance!

    Hello Brandan,
    Like your title mentioned, you thread related to party library. I am afraid this is out of our support. Thanks for your understanding.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • FI Changes for HR Payroll Integration with Thrid party Payroll Software

    Hi
    I am looking for information the SAP FI activities/ Changes to be done for enabling SAP HR Payroll integration with third party payroll softwares. Can you give some issues you might have encounter and any recommended thrid party payroll softwares. Highly appreciate any documentation on the same.
    Regards,
    Vic

    Download all the files into Execel, hope after tht u can change it to CSV.... To download HR MASTER DATA use Ad-Hoc qqry. Else use SE11, SE12 or SE16 to download IT wise. PA starts with PA0000 ets OM starts with HRP1000. Hope through this u can download and send to 3rd party system....
    In std we are having an option for 3rd part PY transfer. Check this if help
    SPRO>CROSS APPLICATION COMPONENTS>PREDEFINED ALE BUSINESS PROCESS> HUMAN RESOURCES>HR EXTERNAL SYSTEM

  • How to use Third Party DLL in Adobe Illustrator Plug In

    Hi Everyone,
    I want to design plug-in for Adobe illustrator CS6(64 bit). As first step I am referring sample plug ins from ../SDK/SampleCode. I am not getting how to use third party DLL in plug in.
    Please let me know how to refer C# DLL in illustrator plug in.
    Thanks in advance.

    There's no C# API for the Illustrator SDK, so your plugin must be C++ at the very least. That said, you can probably write a bridge if you need to call out to a C# library/DLL.

  • 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.

  • Thrid party application wont delete in trash- comes back

    i have downloaded a thrid party applciation named 4easy dvd ripper; the free version . I tried to get rid of it by droping in into the trash but not all files deleted.. I had to search for every single file that went with it ... The problem is that the actul application that opens up the download box wont erase from my mac. It comes back evry time i place it in the trash.. the trash will take the .dmg application but once i try to delete form the trash it pop back to Doenloads. How can i get rid of thing .. please help

    I think i found a solution ... I had to use the secure empty trash option under finder to completely erase it off otherwise if you try to empty the trash using the regular "empty trash" option the item would disappear from trash and would come back to the mac download folder agian ! ... Thanks for the advice though.

  • Any third party library ?

    java can not fetch the System information. may be its a windows machine or may be its a linux machine. because they depend upon native. though JNI has given some access but that is tedious to do.
    I am looking for some third party library which can fetch the System information .
    Do you know any such third party library ?
    i need CPU and Memory information of the System.
    is there any third party library provides that ?

    does java 1.5 can help us in this regard ?
    i found
    In 1.5, you have the management beans. will it be of any use ?

  • Using Third Party Libraries in J2ME IDEs

    How easy is it to use functions from a third party library in J2ME IDEs? Is it usually just a matter of including the library or is more configuration involved?
    Thanks for your time.

    I had this problem a year ago. I'm surprised it hasn't been fixed yet. Here is what I had to do to create an external library DC for my third-party apis.
    - Create a java library DC.
    - Switch to resource view
    - Edit .dcdef to change component type to Library
    - Edit .project file, Delete Nature Java line
    - Restart IDE so that it shows as Library DC instead of Java
    - Switch to Resource View
    - Get all the third-party jar files into folder structure com
    - Copy and past the root folder into src (this would bring all class files)
    - Add build.vm in cfg folder (content #BuildSecondaryLibrary())
    - Add Public Part for API Reference (the IDE should allow to add the all the classes from the selected folder. You probably will have to select each classes manually. Very problematic when you have a lot of classes from your third-party provider)
    - Build and Deploy
    - Now go to your other project where you want to refer this external library DC
    - Add to the external library DC as used DC (select build and deploy options)
    - Build and Deploy
    - Make sure provider.xml in the sda file has reference to dfc lib (for some reasons the IDE doesn't want to reference the external library DC and just skip it despite the fact that you've selected build and deploy options when you referenced the used DC)
    - If not extract the SDA file, Edit the provider.xml, and zip back. then Build and Deploy

  • Use my itunes library to DJ

    Is it legal to use my itunes library to DJ a party for a charity event?

    It's not a matter of legality, it's one of Performing Rights, something which is a part of Copyright law. However, having said that, I'm not an expert, but basically, if it is a public event, then you would need to pay a royalty for the right to play (perform) each piece of music.
    It has nothing to do with iTunes (or Apple), because the royalty is paid to whoever owns the copyright, such as the music's composer or publisher. Note that is is not paid to the performers (musicians who played it), unless they are also the copyright owners. Often, they are not. Usually, this royalty is paid to a collective rights organisation, who collect the money on behalf of the rights owner. So you would only make one payment.
    Make a search on the internet for "Performing Rights" (the Wikipedia entry is a good start), as the organisation you pay will it will depend on which county you are in. The amount will depend on the type of event etc.

Maybe you are looking for

  • Adding data mid-month?

    HI, i recently just switched to verizon and so far i have loved it. But now im running into an issue and itseems almost impossible to get ahold of anyone via phone for support so im going to try this way. I am mid way through my month and i have ran

  • Changing my gallery address on my Iphone 4

    Hi can any one help, I want to change my gallery address, I have a .mac address for my gallery and when I set up my Iphone I put in my mobile me email address, When I try to save to mobile me it does not save to my main gallary address, which isb at

  • Converting bytes to strings

    iam receiving data from other device iam storing hole data in byte buffer as   byte[]  data= new byte[1024];for every read i get 16 bytes of data .. when iam veiwing i am getting some bytes in -ve like -127 and some or +ve 126,115. i want to convert 

  • Changing page order?

    I read in a few posts that you can just drag the page to change the order under "view thumbnails". It's not working for me. I'm not exactly sure what I am doing wrong... Can anyone help me out with how to move a page in a different place?

  • SAP LSO historic load

    hi. I'm New in SAP LSO. My client is implementing SAP LSO for the first time and they want to load the historic courses that an employee has taken since 2 years ago to the present. I have tried to use transacion LSO_PV00 to create a call transaction.