How to refer latest jar(shared library) in ear?

Hi ,
I have created one share library(myappshared) which refer myapp.jar. this jar is getting updated freequently.
I deployed one ear which is reffering this shared library(myapp.jar).
This reference is working fine  but once jar is getting changed, new changes are not getting reflected unless and until i restart the instance/server.
myapp.jar contains only classes, it does not have any other file/folder like META-INF.
In weblogic-application.xml file of ear i am only reffering through shared library name . i.e.e
<library-ref>
    <library-name>myappshared</library-name>
  </library-ref>
Please let me know how to refer the latest jar without restarting the instance/server.
Thanks and Regards
Deepak

Once an application is deployed and started the application classloader (plus system and bootstrap) loads all classes. In order to change some classes you should try to redeploy the application.
Option B would be to use the hot redeploy option which requires to deploy applications in exploded format and run the domain in development mode
Take a look at this document that explains the WebLogic Application classloading for more details - https://docs.oracle.com/middleware/1213/wls/WLPRG/classloading.htm#WLPRG282
in the "Individual EJB Classloader for Implementation Classes" section you will find an example of how to reload/redeploy a specific class.
Cheers,
A.

Similar Messages

  • How to Redeploy a new version of a JAR Shared Library

    Hello,
    I have deployed successfully a JAR shared library with the following MANIFEST file
    Extension-Name: myPackageSharedLibrary
    Specification-Version: 1.0
    Implementation-Version: 1.0
    Now when I try to modify it and redeploy a newer version from the admin console, I get the following Exceptions
    Message icon - Error Unable to access the selected application.
    Message icon - Error Exception in AppMerge flows' progression
    Message icon - Error Exception in AppMerge flows' progression
    Message icon - Error [J2EE:160112]Error: The directory, 'C:\Oracle\Middleware\user_projects\domains\SharedLibraries_domain\servers\AdminServer\upload\myPackage.jar', does not contain a valid module. If the directory represents an ear file, it must contain a META-INF/application.xml file. If the directory represents an ejb-jar file, it must contain a META-INF/ejb-jar.xml file. If the directory represents a war file, it must contain a WEB-INF/web.xml file. Please ensure the source directory is a valid module and try again.
    I get the following errors whether I deploy it with the same Implementation-Version or even with a newer higher version
    To redeploy it, I have to delete the shared library and install it once again.
    Any help? I'm using WLP 10.3.2
    Thanks,

    You need to wrap your JAR file within a WAR containing the MANIFEST highlighting the version of the library and the JAR file, you might also need a weblogic.xml file use the default one the jdev creates:
    LIBRARY.WAR
    |--META-INF
    |--|---MANIFEST.MF
    |--WEB-INF
    |--|--weblogic.xml
    |--|--lib
    |----|--LIBRARY.JAR

  • How to refer a .jar file in the code.

    How to refer a .jar file in the code.
    I want to use a library dnsjava.jar, which I download from the internet. I want to know how to refer it
         If I am compiling the code on Solaris
         If I compiling the code on windows using eclipse.
    I added the following line in my code to refer to this library. But it always complains of not found the class
    import org.xbill.DNS.*;
    I tried the following to add this library but did not work
    On eclipse/windows: Went to window-> preferences -> BuildPath _> class path Variable.
    On Solaris: Could not add this library /opt/java_reference/v1.6.0_04/jre/lib. Although I am logged in as root, but not able to add the library there. Complains of Permission denied.

    Set the classpath option when compiling.
    javac -classpath /path/to/lib/dnsjava.jar YourProgram.java
    I don't use Eclipse, but it probably has a library list on your project preferences. Add it there.
    Regards,
    Henrique Abreu

  • How can I use a shared library made with the application builder?

    Hi,
    I am using LabVIEW 7.1 running on Slackware 10.1 (kernel 2.4.29) and I am trying to call a graph display from a C program that I use for debugging VME access from a VMIVME controler. So using the application builder I built the VI as a shared library (graph.vi -> graph.so) containing a function called "graph". In my main program the call to the dlopen fails with the error: "graph.so: undefined symbol: UninitLVClient". When I examin graph.so with nm I see that UninitLVClient and other LabVIEW functions are indeed undefined and using ldd shows that graph.so has dependencies only on libc.so.* and *linux*.so.* but not on LabVIEW related stuff. Those functions are defined in the liblv.so that's in the cintools directory but I have no idea if the user is supposed to use that.
    So I think I am missing an important concept here. Can somebody help or direct me to some documentation (I found lots of information about how to link external code to LabVIEW but nothing about how to link LabVIEW code to an external program)?

    Thanks Watermann,
    your message has been very useful so now I am linking to the proper library but I still have problems when trying to load dynamically the shared library produced with LabVIEW. It is strange that I could successfully load the lvrt library at loading time but it does not work when I am loading the library at execution time.
    I made a small LabVIEW program that prints a hello window and I am calling it from a C program. In the first program main.c I am linking to the lvrt library at loading time and it works but in the second one I am linking dynamically at execution time and it does not work. For my work I need to be able to load code done in LabVIEW at execution time. Any help is appreciated!
    Program main.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include "hello.h" // got this from the LabVIEW builder, i.e. when I made the hello.so
    int main(void)
    printf("Hello from C!\nLets call LabVIEW now\n");
    hello();
    printf("Bye ... \n");
    return 0;
    The command to compile main.c, i.e. linking shared library lvrt when loading main program:
    gcc -Wall -I /usr/local/lv71/cintools/ -o main main.c hello.so -l lvrt
    The LD_LIBRARY_PATH has been defined and exported:
    $ LD_LIBRARY_PATH=$PWD
    $ export LD_LIBRARY_PATH
    IT WORKS!
    Program main2.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include
    int main(void)
    void * h_lvrt;
    void * h_hello;
    void (* hello)(void);
    char * error;
    printf("Hello from C!\nLets call LabVIEW now\n");
    // open LabVIEW RunTime shared library
    // in my computer located at /usr/local/lib/liblvrt.so
    h_lvrt = dlopen("/usr/local/lib/liblvrt.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    printf("error : could not open LabVIEW RunTime library\n");
    printf("%s\n", error);
    return 1;
    // open hello shared library
    // in my computer located at /home/darss/lv_call/hello.so
    h_hello = dlopen("hello.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not open hello library\n");
    printf("%s\n", error);
    return 1;
    // get function hello from library hello.so
    hello = dlsym(h_hello, "hello");
    // check for error
    error = dlerror();
    if (error) {
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not get the hello function\n");
    printf("%s\n", error);
    return 1;
    // call hello function
    hello();
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("Bye ... \n");
    return 0;
    The command to compile main2.c, i.e. dynamically linking library lvrt at execution of main2 program:
    gcc -Wall -o main2 main2.c -l dl
    The LD_LIBRARY_PATH still defined and exported.
    IT DOES NOT WORK!
    Program output:
    Hello from C!
    Lets call LabVIEW now
    error : could not open hello library
    /home/darss/lv_call/hello.so: undefined symbol: WaitLVDLLReady

  • How to create a c++ shared library (.so) for linux real time (for myRio) with Eclipse to use in LabView?

    I tried already these Tutorials and Advices but I didn't find a solution:
    - http://www.ni.com/tutorial/14625/en/
    - http://www.ni.com/tutorial/14690/en/
    - http://forums.ni.com/t5/LabVIEW/Shared-Library-on-myrio-Linux-Real-time-system/m-p/2842540/
    - http://forums.ni.com/t5/LabVIEW/How-to-create-shared-library-for-linux-real-time-target-in/m-p/28218...
    - and some more
    I want use c++ codes on linux real time. For testing reasons I want to have a function that adds 2 values and gives the result.
    I've done these steps:
    1. writing a c++ file in Eclipse (see screensot 2)
    2. building a shared library (.so) from my c++ project in Eclipse (with Cross GCC)
    3. putting this file on myRio (path: /usr/local/lib/)
    4. creating a VI that calls this library from Labview with a "Call Library Function Node" (see screenshot3)
    5. Setting the properties for the "Call Library Function Node" (see screenshots 4-7)
    After I run this VI i get this error message: LabVIEW:  (Hex 0x627) The function name for the ... node cannot be found in the library. To correct this error, right-click the Call Library Function Node and select Configure from the shortcut menu. Then choose the correct function name. (see screenshot1)
    I've tried a lot things to solve this problem but I couldn't find a solution. Would be very happy if anyone can help me. I guess that I have to edit my c++ code to export my function (symbol). But I have no idea how to make it. I also tried it with a dll file in the same folder but it didn't help.
    Perhaps someone can send an example which works on myRIO.
    Thanks!
    screenshot1
    screenshot2
    screenshot3
    screenshot4
    screenshot5
    screenshot6
    screenshot7

     can see it in the screenshot8 there is a function called "_Z8AddierenddPd" instead of "Addieren". I copied this name to Labview (see screenshot9) and it worked.
    I'm sure that there is a way to compile the shared folder with gcc without decorations (mangling). But I don't know how. If someone has a recommendation I would be very glad!
    Prepend each function declaration that you want to be available without name decoration with
    extern "C" <your function declaration>
    Or if you have multiple functions you want to export you can in the header file where you declare your functions simply use:
    #ifdef __cplusplus
    extern "C" {
    #endif
    <all your function declarations>
    #ifdef __cplusplus
    #endif
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to catch exception from shared library on Linux?

    Description:
    JNI dynamically loads shared library. Shared library throws exception (class CTestException). JNI can not catch it by CTestException name, only (...) works.
    My config:
    Linux RH AS 4 (x86 64)
    gcc: 3.4.5
    glib: 2.2.5
    Java 1.5.0_06
    g++ compiler options for JNI and shared libraries:
    g++ -Wl,-E -fPIC -shared ...
    There are multiple bugs on Java bugs database regarding C++ ABI incompatibility between Java binaries and stdc++ libraries linked with native code. But I could not find any conclusions on these bugs. Only plans/suggestions to recompile Java on new gcc. These bugs were quite old (regarding Java 1.3, 1.4). Now 1.6 is available but still there is same incompatibility. Maybe I am missing something and there is a way to fix this problem? Like to use specific gcc/glib versions for compilation? How people solve such problems? Any help is appreciated.

    It isn't any different; the commands are the same. You can find the exp executable in tehe $ORACLE_HOME/bin directory.

  • How can i access my Shared Library in Seagate Cental on my Iphone?

    I have a Seagate Central which has an itunes Library. I can see the library in iTunes in my MAC, but don't see the shared library in my iPhone. The home sharing is on for both my iphone and mac and they seem to work. I have gone to MORE  in iTunes but my shared Library is not coming.
    Note: Seagate Central does have iTunes Server in built into it.
    Please tell me how I can listen to my shared library in my iphone5.

    whyitislikethisinmac wrote:
    I have a Seagate Central which has an itunes Library. I can see the library in iTunes in my MAC,
    How are you "seeing" it?
    Yuu mean this is the iTunes library you are using?
    I have gone to MORE  in iTunes but my shared Library is not coming.
    iTunes on your iPhone is for purchasing items.
    Use the Music (and Videos) app on the iPhone to see the Shared library from iTunes on your Mac.

  • How to get rid of shared library that is not mine.

    I logged into iTunes from my computer and now there are playlists under a Shared Library that is not mine.  This was not there last week when I was in iTunes.  I don't know whose library this is as none of the songs are mine or anyone's that I know.  How can i remove this library from Shared.  I don't have Sharing selected under the preferences.

    See if anything in this MozillaZine support thread helps you: <br />
    http://forums.mozillazine.org/viewtopic.php?f=38&t=2014247

  • How do I fix a shared library error?

    Thought I did a good job of cleaning out some old fonts, but now InDesign will not launch because of a shared library error:
    "+InDesign 2.0.2><PublicLib><ACECarbonLib><>"
    I need to fix this very quickly... what do I do?

    You probably need to run the installer again and "Repair" the installation. I presume you have some really ancient hardware there to make 2.0.2 run at all.

  • How to solve: The JVM shared library "/System/Library/Frameworks/JavaVM.framework" does not contain the JNI_CreateJavaVM symbol ?

    I cannot run Eclipse or Aptana any more because I get the following error
    The JVM shared library "/System/Library/Frameworks/JavaVM.framework"
    does not contain the JNI_CreateJavaVM symbol.
    I already tired to reinstall Java from the oracle website but it does not help.

    By everything, did you mean eclipse and java?

  • How to copy media from shared library from ipad

    Hello,
    I have home sharing turned on and i have a local computer as a media server which stores all my media files. I can access the data from within my network on all my devices.
    I am hoping there is an easy, with just using the ipad(iphone), to choose a movie from the library to take with me on a trip. It is easy to copy media from computer to computer with itunes. I was hoping there is an equally easy way from the ipad or iphone.
    For example, launching the video app allows you to access shared libraries. Is there a way to copy that content to the ipad or iphone from an app?
    FYI, i have all pc based computers
    Thanks,
    Jeremy

    Hi ralph,
    Can i sync a particular movie without logging into the pc? Thats what I am hoping to accomplish. I want to navigate to a movie thats in my home shared library "from my ipad" and copy it to my ipad. I just cant find a way to do it

  • How to refer utitlity jar from EJB jar in ear?

    hi, all,
    I want to refer an existing jar file from EJB, but i do not know how to do it? please help!
    Thanks.

    I am using weblogic 6.1

  • How do I get the "shared" library of music off of my iTunes?

    I have the music from my Dad's computer on my computer, and I DON'T want it!  I had to use my Ipod on his computer because it was the only computer, but now that I have my own I do not want his library on my computer.  How do I get it off?

    CTRL+/ will turn it on.

  • How do I create a shared library from iPhoto when the file is too large to burn on DVD?

    I  need to remove some photos (70 GB) to relieve a full hard drive.  I have exported and burned .jpg images on DVDs, but that is only useful as a worst case backup.  What I would like to have is a separate iPhoto Library for each calendar year of photos, so I could still view them in the albums and folders I have created to organize them.  I have done this before in an earlier version of iPhoto, and was able to create 2003 iPhoto Library, 2004 iPhoto Library, etc.  I put a copy on DVD (the full year fit on 1 DVD) and another copy on an external drive. 
    I am having problems doing this with iPhoto '09 (version 8.1.2).  The iPhoto library for each year is too large to burn on DVD.  When I select certain albums from the year that will fit on DVD and use the Share>Burn commands, it creates a library with Events and Faces, but none of the albums are listed on the left.  The albums are important to organize the photos for viewing (birthdays, vacations, holidays, etc.)  I didn't always pay attention to labeling Events when I imported photos, so that is not an adequate alternative to my albums.
    I was thinking that if I could create a library for the entire year, it might include my albums and folders. I would have space for this on my external hard drive.  However, I can find no way to create a library for the entire year and put it on my external drive - the only option is to burn a DVD or export .jpg images.
    Any suggestions would be appreciated.

    Best suggestion: Buy some external USB or Firewire drives. Move your Library to one, back it up to another. A lot more reliable than DVD, a lot less work and much more convenient. For a start, you don't have to break up the library...
    Regards
    TD

  • How to create the shared library?

    I am new to this topic. I would like to know how I should create the shared library? I followed the provided lesson's steps and in step 5, it states that a shared library has to be create.
    I am using Win2000 and I have installed Visual C++ 6.0, and when I try the command "cl -Ic:\java\include -Ic:\java\include\win32 -LD HelloWorldImp.c -Fehello.dll", there is an error said that it can't find the mspdb60.dll?
    what is the problem? and what should I do?
    please help.
    Thanks.

    I am new to this topic. I would like to know how I should create the shared library? I followed the provided lesson's steps and in step 5, it states that a shared library has to be create.
    I am using Win2000 and I have installed Devc++ 4.9.8.0 and when I try the command "cl -Ic:\java\include -Ic:\java\include\win32 -LD HelloWorldImp.c -Fehello.dll", but it reports as: "accepting connections" or "press any key to end CL"
    what is the problem? and what should I do?
    please help.
    Thanks. please send me e-mail: [email protected]

Maybe you are looking for

  • Black screen in Creative Cloud app 1.8.0.447 on Windows 7

    Hi! After updating the Creative Cloud application to the latest version (1.8.0.447), I have a blank black screen in the Home tab of the application. The Apps, Resources and Behance tabs work as they should. Also, I noticed that playing any one of the

  • How can I use a scanner connected to my old PC?

    Hi! Aside from my iMac, I have a PC to which a printer is attached. I used system preferences to connect to that printer (it worked just fine), and now when I click "print" on the mac, the printer starst printing (as long as the PC is on). Now, I wou

  • Bootcamp Windows 7 install issues...can't pick a partition and drivers problem

    I have two issues actually. 1. When I attempt to install Windows the setup begins but then it says that some required drivers aren't available. It tells me that I can eject the installation CD for this portion and put in a disc that has the drivers,

  • STATIC with Dell Laptop and Inspire T7900

    I've been getting really annoying interference whenever I plug in my speakers. I also have a problem getting a strong connection through the?output socket in the laptop(alot of wiggling the cable to get half decent sound). And lastly the laptop can o

  • Apple Time Server displaying wrong time

    So I have the option 'Date and Time' I have the 'Set Date and Time Automatically' checked and the apple time server selected. I also have the correct time zone selected. However, the time that is displayed is one day and five hours ahead of the actua