Shared JNI Library

Hello:
I have two different web applications hosted on a server. Both of them use a servlet
to initialize their own environment. This servlet needs to load a JNI library.
That means two serlvet contexts will use the same library. The question is:
When the first web application is done in initialization, and server is trying
to load the second web application, I will get unsatisfiedLinkError message, that
is like "the JNI library is loaded by another".
I have no idea for this issue. Could anyone give me some ideas, doing some configuration
in webLogic server or changing the design structure?
I appreciate for any help.
Johnson Ouyang

Thank you. I fixed my issue.
"Dimitri I. Rakitine" <[email protected]> wrote:
Native library can only be loaded by one classloader, so just move
class(es) which use JNI to the system classpath. It will solve the
problem you are currently seeing and will make your application redeployable.
Johnson <[email protected]> wrote:
Hello:
I have two different web applications hosted on a server. Both of themuse a servlet
to initialize their own environment. This servlet needs to load a JNIlibrary.
That means two serlvet contexts will use the same library. The questionis:
When the first web application is done in initialization, and serveris trying
to load the second web application, I will get unsatisfiedLinkErrormessage, that
is like "the JNI library is loaded by another".
I have no idea for this issue. Could anyone give me some ideas, doingsome configuration
in webLogic server or changing the design structure?
I appreciate for any help.
Johnson Ouyang --
Dimitri

Similar Messages

  • JNI accessing shared object library (3GPP AMR codec) in linux

    Hi,
    We built a shared object (.so) library including the 3GPP AMR codec implementation. (NB: AMR codec is a speech encoder/decoder).
    When trying to access this library from a JNI app this gives incorrect results but when trying to use the same library with a simple C program it gives the expected results !
    We believe that the JNI environment makes some unexplained modification to the runtime environment that makes this library to not work correctly. Do you know what could explain this strange behaviour ?
    Used JSDK: 1.4.2_10
    platform: Fedora Core 4 2.6.11-1.1369_FC4
    Regards,
    Pascal

    Hi,
    Thank your for your answer!
    Well I don't know if I can enter in details here but here is what's happening:
    0) we built a shared object library (.so) including the 3GPP AMR codec and some functions calling the codec operations (decode, encode, etc.)
    1) in the C++ JNI wrapper we call the function Speech_Decode_Frame() of the 3GPP AMR codec with in input an array of Word16 (= type "short"),
    2) when we link the library created in 0) with a small .cpp program, the function Speech_Decode_Frame() returns the speech decoded correctly in a an array of Word16 as well,
    3) when we used the same library with a JNI application, the call to Speech_Decode_Frame() returns only a table of zeros --> incorrect result
    We're currently tracking down in the source code of the 3GPP AMR where the result array gets these 0.
    We'd like to understand what in the JNI runtime environment could make the library to behave differently.
    Regards,
    Pascal

  • Error in SAPGUI-on AIX- Can't load JNI library

    Error in SAPGUI-on AIX- Can't load JNI library
    I am getting error as below:
    ^C# ./sapgui /H/punlparidm06 /S/sapdbIND
    ERROR #############################
    07.03. 12:48:37.619 ERROR: Attempt to load shared library /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so failed.
    07.03. 12:48:37.619 ERROR: The library file exists, so either the program
    07.03. 12:48:37.619 ERROR: don't has the privileges to access the library
    07.03. 12:48:37.619 ERROR: or the library is not loadable by the shared object loader
    07.03. 12:48:37.619 ERROR: Technical information:
    07.03. 12:48:37.619 ERROR: Error location: GuiJniLoader.loadPlatinLibrary()
    07.03. 12:48:37.619 ERROR: Error message : /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so: load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
    ERROR #############################
    java.lang.UnsatisfiedLinkError: /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so: load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2144)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1973)
    at java.lang.Runtime.load0(Runtime.java:773)
    at java.lang.System.load(System.java:887)
    at com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:114)
    at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:24)
    at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
    at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
    at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
    at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
    at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
    at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
    at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.Gui.main(Gui.java:65)
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
    at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:25)
    at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
    at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
    at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
    at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
    at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
    at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
    at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.Gui.main(Gui.java:65)
    ERROR #############################
    07.03. 12:51:52.173 ERROR: GuiConnection: Connect failed
    07.03. 12:51:52.173 ERROR: JniAgiLibAdaptor.<init>: Cannot load JNI library
    ERROR #############################

    Hi,
    It seems to be a permission issue.
    Just check the permissions and grant 755 using chmod comand.
    Hope it helps.
    Reward suitable points!!!!!

  • Solaris java sapgui error JniAgiLibAdaptor. init : Cannot load JNI library

    i have a problem java sapgui.
    Launch the Sapgui and then try to connect to any one of the three choices and it should produce the following error.
    i am running this on a Solaris 10 32bit. This sam java SAPGUI runs fine when i boot into the windows xp pro. Hope this helps.
    gui version;
    SAPGUI for Java 7.10 rev 8 (java),
    no library (lib)
    (Version ID 071000040800)
    Mon Mar 30 10:34:24 MEST 2009
    uw1059, 710_REL, 1054563
    Java VM: Sun Microsystems Inc. Version 1.6.0_14
    OS: SunOS(x86) Version 5.10
    The version of Java being used is:
    java -version
    java version "1.5.0_16"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_16-b02)
    Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
    Thank You,
    Ferhan
    JniAgiLibAdaptor.<init>: Cannot load JNI library
    details;
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:29)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at: java.awt.Component.processMouseEvent(Unknown Source)
    at: javax.swing.JComponent.processMouseEvent(Unknown Source)
    at: java.awt.Component.processEvent(Unknown Source)
    at: java.awt.Container.processEvent(Unknown Source)
    at: java.awt.Component.dispatchEventImpl(Unknown Source)
    at: java.awt.Container.dispatchEventImpl(Unknown Source)
    at: java.awt.Component.dispatchEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.proc
    Attempt to load shared library
    /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so failed.
    The library file exists, so either the program has
    insufficient privileges to access the library or the library
    is not loadable by the shared object loader.
    Please recheck the system requirements for your operating
    system and make sure all required libraries are installed.
    details;
    ava.lang.UnsatisfiedLinkError: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: ld.so.1: java: fatal: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: wrong ELF data format: ELFDATA2MSB (Possible cause: endianness mismatch)
    at: java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at: java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at: java.lang.ClassLoader.loadLibrary(Unknown Source)
    at: java.lang.Runtime.load0(Unknown Source)
    at: java.lang.System.load(Unknown Source)
    at: com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:56)
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:27)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicB

    Hello Ferhan,
    the output of the AboutBox is indicating that you are trying to run SAP GUI for Java on Solaris 10 with x86 CPU. Unfortunately, the library required to be loaded is complied for SPARC. Please have a look at the system requirements part of the manual coming with the installer of SAP GUI for Java or [note 959236|https://service.sap.com/sap/support/notes/959236].
    Best regards
    Rolf-Martin

  • Error: Can't load libJPlatin.so -(JNI Library)in SAP GUI  for java 7.0 -AIX

    Hi,
    I am getting error in SAP GUI  for java 7.0 -AIX
    <b>Error: Can't load libJPlatin.so -(JNI Library)</b>
    I ran command as
    <b>./guistart /H/localhost/S/sapdbIND</b>
    I gave 777 permission to corressponding library.

    It's on AIX.
    <b>I am getting error as below:</b>
    ^C# ./sapgui /H/punlparidm06 /S/sapdbIND
    ERROR #############################
    07.03. 12:48:37.619 ERROR: Attempt to load shared library /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so failed.
    07.03. 12:48:37.619 ERROR: The library file exists, so either the program
    07.03. 12:48:37.619 ERROR: don't has the privileges to access the library
    07.03. 12:48:37.619 ERROR: or the library is not loadable by the shared object loader
    07.03. 12:48:37.619 ERROR: Technical information:
    07.03. 12:48:37.619 ERROR: Error location: GuiJniLoader.loadPlatinLibrary()
    07.03. 12:48:37.619 ERROR: Error message : /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so:  load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
    ERROR #############################
    java.lang.UnsatisfiedLinkError: /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so:  load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2144)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1973)
            at java.lang.Runtime.load0(Runtime.java:773)
            at java.lang.System.load(System.java:887)
            at com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:114)
            at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:24)
            at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
            at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
            at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
            at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
            at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
            at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
            at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.Gui.main(Gui.java:65)
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
            at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:25)
            at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
            at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
            at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
            at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
            at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
            at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
            at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.Gui.main(Gui.java:65)
    ERROR #############################
    07.03. 12:51:52.173 ERROR: GuiConnection: Connect failed
    07.03. 12:51:52.173 ERROR: JniAgiLibAdaptor.<init>: Cannot load JNI library
    ERROR #############################

  • Compiling JNI library with resource files (i.e. images)

    hi-
    i'm compiling a jni library on mac osx leopard using a command like:
    cc -g -dynamiclib -o libJNI.jnilib file1.o file2.o main.o -framework JavaVM -framework Foundation -framework AppKit -framework Cocoai'd like to include resource files like images in the build of the jni library. how can i compile those into the jni library?
    thanks,
    augusto.

    Creating shared libraries themselves are compiler/linker/OS problems.
    Not Java/JNI.
    So finding a forum that answers questions about the compiler/linker in use is the place to ask them.

  • Loading JNI library on Tomcat startup

    I am trying to load a JNI library on startup of servlet. I have written the following code in my servlet init function:
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    log.info("Loading native libraries...");
    System.loadLibrary("foo");
    log.info("Native libraries loaded...");
    On Tomcat startup, I see the "Loading native libraries..." message, but I don't see the "Native libraries loaded...". As if the system hung in the System.loadLibrary function.
    Anybody knows how to solve this problem?
    Martin

    The specification specifically forbids the use of native libraries in container objects. So you might want to take that into consideration with whatever you are doing.
    If you do want to do that then I would suggest loading it outside of the container. There is probably some configuration option that allows you to force tomcat to load something on start up.
    You might also want to consider if hot deploys are part of your future. If they are then you might want to put the interface inside of your own custom class loader, so you can probably control the unload of the shared library.
    If you search the J2EE lists you will find that almost everyone states that JNI should not even be loaded into the server. Instead you should create a seperate application and use RMI to access it. Myself I think that is overkill, but I would probably consider exactly what I am interfacing to before making that final decision. If your JNI library blows up it will take down the entire server (which is why the spec forbids it.)

  • 4 people in our family have an iphones or ipod on the same apple id ..so that we can all share the itunes library. however  this means that we all get each others imessages. is there a way of sharing  itunes library with 4 separate ids?

    4  of us in the family with iphonesor ipods share the same apple id so that we can share the itunes library . However , this means we all receive each others imessages, unless we disable imessaging. Is there a way of sharing itunes library (ie.g with 4 separate ids) that avoids the sharing of imessages? .

    Thanks, Terence, but if she was inclined to upload things, I wouldn't need access!
    Here is an example: we go on vacation, she takes 250 photos, edits twenty of the best shots, and uploads three to facebook.  I want to make an album including some of the edited shots and some of the less perfect but still fun shots - so I need all 250 photos - uploading that many photos to a photosharing site takes forever even if she did it - but she won't.  I used to just hijack her computer for a day, but I'd like to be able to hijack her iphoto library without stealing her computer...if possible!
    Thanks for any help you can offer!
    - A

  • How to automatically sync a shared itunes library between all accounts?

    Hi Guys
    I have my itunes library on a separate drive in my desktop computer. My account points on this desktop to this library. I have another account on my laptop, set to automount this drive. iTunes on the laptop points to this library also. Both have admin rights to the iTunes library drive. I can add music or files from either account.
    In order to sync what each account sees in iTunes, the iTunes Library file and the xml file in each accounts' iTunes folder needs to be the same in both accounts.
    This is a pain whenever I have added to the library, eg downloaded a podcast, or ripped a CD. I know I can either manually drag the added files into the window of the iTunes that needs updating, or I can copy the iTunes Library file and the xml file from the most recently modified iTunes, or I can export the added playlist from the newer iTunes then add it to the older iTunes. All of these manual methods are not ideal.
    Now, my question is, has anyone achieved an automated way of doing this with the minimum degree of fuss? I'm thinking along the lines of Automator perhaps, or using a backup program on either computer to sync the library files say every night. Or is there another way. Or is my method of sharing one library not the best way. (I know I can use iTunes sharing, but it means I can't modify the library from all accounts.)
    Any comments?
    Thanks
    Michael

    have you done a consolidate in iTunes?
    http://docs.info.apple.com/article.html?artnum=93195
    http://docs.info.apple.com/article.html?artnum=301748
    http://docs.info.apple.com/article.html?path=iTunesMac/5.0/en/670.html

  • Backing up a shared itunes library

    Hi, I want to back up my shared itunes library and most importantly my purchased music onto an external hard drive. When I use backup it can't find the purchased music in the shared file (I have two users on one mac sharing the itunes library). What is the best way of getting around this. I have noted the help pages on support but they are mainly for burning to a CD/DVD and don't discuss the issue of sharing!
    Many thanks
    Matt

    No-one responded!

  • Sharing Aperture library with another user on the same mac

    Hi
    I just upgraded to Aperture 3.3, on a MBP running Lion (10.7.4) - I am trying to share the library with my wife so that each of us can retain our separate accounts and preferences and be able to edit/print/add pictures to the library
    I've seen some other posts, suggesting creating a separate directory outside of /Users which I've done: I've created /ApertureLib and moved the library there. I made sure I set permissions for owner, group and others to read/write/execute
    When i try opening the library through my wife's account it tells me that "the library is being used by (null), you must first quit (null) to use this library"
    I added sticky bits, tried to set ACLs, no dice...
    any suggestions?
    Thanks!
    PS: all of the image files are actually stored on a NAS box and mounted via AFP. I tried moving the Aperture library to the NAS box but the performance was atrocious. so I kept the library on Macintosh HD and just reference the picture files from the NAS share.

    PS: all of the image files are actually stored on a NAS box and mounted via AFP. I tried moving the Aperture library to the NAS box but the performance was atrocious. so I kept the library on Macintosh HD and just reference the picture files from the NAS share.
    That is the safest solution. The Aperture library should reside on a local volume, MacOS X extended formatted. Your NAS probably is neither local nor formatted MacOS X extended, see
    Aperture: Use locally mounted Mac OS X Extended volumes for your Aperture library
    I am trying to share the library with my wife so that each of us can retain our separate accounts and preferences and be able to edit/print/add pictures to the library
    Aperture is a single User program. Only one of you can use Aperture at a time. So you hvae to quit Aperture in your account, before your wife can launch it from her account. Also make sure that iPhoto is not using the library.
    One big problem with sharing a Library are permissions and ownerships. When you make changes to an Aperture Library and add images, you are the owner of the added images. The safest way to share a library therefore would be to put it on an external volume or onto a separate partition of your hard drive. Then you can set the "Ignore ownership on this volume" flag and share the data with out permission problems. To set this flag on a volume, select it in the Finder and use "File > Get info" from the Finder's main menu bar (or press cmd-I).
    Regards
    Léonie

  • ATV3 New Update Breaks Home Sharing Music Library Streaming (Again)

    Windows 7 user here using Apple TV 3.  Overall, I love the device, when it works right. 
    When I first got it, using the Home Sharing Music Library feature from the Apple TV (in other words, pulling content from the computer) was broken in that it would play for a while, then suddenly stop.  There was a *huge* thread on this where many people seemed to experience it. 
    I was so happy when the last AppleTV update fixed this (for me anyways, and I'd guess many others) - since then (months) it worked flawlessly until today, when the ATV prompted me for an update.  Now it's even worse than before and appears to play the first song, then immediately get stuck on the second.  =(  Anyone else having this issue?
    Fortunately, my workaround works, which is "pushing" content from my computer, but this isn't nearly as convenient for a variety of reasons (including much less control via the AppleTV if I'm just relaxing and listening).
    I truly hope Apple can resolve this quickly, since they had it nailed before...

    Luke, I can confirm the bugs with the latest AppleTV software, version 5.  It doesn't matter if it is an ATV2 or ATV3 because they are running the same OS version.  There are Home Sharing problems because immediately after I updated my ATV2, I started having Home Sharing problems when trying to play any video from my iMac.  The link between the Mac and the ATV2 breaks and it bumps back to the main menu with no computers displayed.  Quitting iTunes and re-launching fixes the problem, but it isn't guaranteed.  Sometimes you will get lucky and it will remain connected, other times, it will break the link again, after another 5 minutes.  And, it won't remember your place in the video when the link breaks.
    The other major bug is that TV shows are displayed out of order.  Apple has confirmed the TV show order bug, but haven't heard anything on the Home Sharing bug.  I have reported that one to Apple.  Hopefully we will get a software update soon.

  • Sharing iPhoto Library Not Recomended?

    According to this.
    Is this really a problem? I would like to do this if its not a problem. Acually I do have several iPhoto Libraries in the /Users/Shared folder and so far in iPhoto 5 there didn't seem to be any major problems except for the one listed at the bottom. When upgrading to iPhoto 6 yesterday I did get the permission error while opening a /Users/Shared/iPhoto Library for the first time and I did this.
    Setting Permissions for iPhoto Library Folder
    1 - Select the iPhoto Library folder and type Command-I.
    2 - When the Info window comes up go to the Ownership and Permissions section and make sure You have Read & Write permission and that the Owner and Group have Read & Write also. Others - Read Only.
    3 - Then click on the "Apply to enclosed items..." button.
    And it seems to be fine. I would really like to keep the iPhoto Libraries in the /Users/Shared folder if I can so that both me (Admin) and my wife (Standard) can access/edit/add/delete pics to this library. Thats why I'm troubled why it's not recommeded.
    I also use iPhoto Library Manager v3.2.1 and have the options set as Owner and Group have Read & Write and Others - Read Only. I also have the settings Permissions to Apply as enabled to automatically apply before launching iPhoto and when iPhoto Quits. But I only use it if I want to change libraries if not I just open iPhoto.
    I noticed in iPhoto 5 that sometimes after importing photos to this library from one user that when accessing that library from another user iPhoto wouldn't open until the permissions were changed again. I think this happened when I did not launch iphoto from iPhoto Library Manager. Does this mean if I leave the library in the Shared folder I should after importing photos always open iPhoto with iPhoto Library Manager to change the permissions. Will this fix the problem?
    Alan

    Hello, I have an issue where my iPhoto library is not visible in iTunes Photo Sharing Preferences. I wish to have my iPhoto library (Aperture Library) available on my Apple TV.
    Does your joint Aperture/iPhoto library show in the Finder as "Kind Aperture Library"?
    Then set your Photo Sharing to share from Aperture and not from iPhoto.
    When I try to sync or share iPhoto libraries from iTunes, it will look for libraries "Kind iPhoto" and not sync with an Aperture library, even if it is the current iPhoto library.

  • Sharing iphoto library in Shared folder - so frustrated!

    I am so frustrated trying to put the iPhoto Library in the Shared folder, in order to give all users Read & Write access. It worked for about a month, and now my wife suddenly is getting lots of permission problems. I tried making her the "owner" of the library, but that caused iPhoto to not read it at all and say the Library was 0 k in size. Once I changed ownership back to me, it was 20GB.
    Certain folders inside the library give her Custom permission, so I went in and changed permission to Read/Write. Doesn't help - photos in iPhoto disappear or black out. Sometimes a folder (like a certain date) won't even show on her side at all.
    This seems like such a simple thing, and something most people would want to do. Why won't this work correctly???
    Any other ideas?! Thanks!!

    have you read this article?
    Sharing via the Shared Folder -- Another major annoyance with versions of iPhoto prior to iPhoto '09 was that you couldn't just put your iPhoto Library in the /Users/Shared folder to share it among multiple accounts on the same Mac, since iPhoto always set the permissions on thumbnails to the account that imported the photos, preventing other accounts from editing those photos and having the edits reflected in the thumbnails.
    That limitation has now been fixed in iPhoto '09, so you can share an iPhoto library merely by moving it to /Users/Shared and then double-clicking it to open in iPhoto from each account. You may be prompted to repair permissions on the first access - click the Repair button to do that. Note that this also works for storing an iPhoto library on an external hard disk that's shared among users or on a network volume for access across a fast network.
    Only one person may access a shared iPhoto library at a time.
    LN
    Message was edited by: LarryHN

  • How do i stop sharing a library without knowing the user name and password?

    Ok, So i was browsing in iTunes just to see what im able to do and i noticed that I am sharing my library with a total stranger. I clicked on the link under "shared" (it has his name) but i need a password in order to access it. i dont want anything from his library i just want nothing to do with his library. Im assuming its been a while that we were "sharing" libraries. The thing is i didnt know about it. It explains why i can never keep a iTunes gift card, it always appears to be out of mine the next day i register the card and i didnt buy anything yet! Have i been hacked? Is there any way i could get him off my iTunes?! PLEASE HELP ME!!

    Hello Stevo39,
    If your iPhone continues to prompt for your old account and password then check out the following article.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    This article may help too.
    Apple ID: What to do after you change your Apple ID - Apple Support
    Regards,
    Nubz

Maybe you are looking for