Referring as optional library

We have an ear(webapp) file has dependency on external libraries. So the weblogic-applications.xml file has them as
<library-ref>
<library-name>oracle.somepath.someclass</library-name>
</library-ref>
We used to deploy the jar file containing someclass in weblogic first and then deploy the ear and application was working fine.
Now we have requirement to make someclass as optional library and not a compulsory one, so that even if someclass is not present, deployment of ear goes fine.
So we removed the xml snippet from weblogic-applications.xml and added that in MANIFEST.MF file of ear as follows:
$ cat META-INF/MANIFEST.MF
Manifest-Version: 1.0
Class-Path:someclass1.jar someclass.jar
Extension-Name: oracle.someclass1
Specification-Version: 11.1.1.5.0
Implementation-Version: 11.1.1.5.0.1
Extension-Name: oracle.someclass2
Specification-Version: 11.1.1.7.1
Implementation-Version: 11.1.1.7.1
Extension-Name: oracle.somepath.someclass
Specification-Version: 11.1.1.7.1
Implementation-Version: 11.1.1.7.1
after making this change, webapp complains about not finding someclass etc. ( noClassDef found )
What could be the issue ?
Note that:
1. we have specified Class-Path in MANIFEST.MF but mentioned all jars in a space separated list - is that fine ? These jars are not included in lib folder of ear ( we can not do that ) - so the path in Class-Path is fine ?
2. MANIFEST.MF has line separated for each libraries - is that fine ?
Can anyone provide a sample MANIFEST which works in this way ?
Many thanks

Hello user768409,
You can check http://middlewaremagic.com/weblogic/?p=231. It worked for me (thanks middlewaremagic guys!!!)
I am using optional packages for some of my deployments. Basically what I do is the next.
Application that reference the library MANIFEST.MF:
Manifest-Version: 1.0
Extension-List: myLibrary
ssoFilters-Extension-Name: myLibraryLibrary (optional package) MANIFEST.MF:
Manifest-Version: 1.0
Extension-Name: myLibraryHope it helps,
Luis

Similar Messages

  • Executable jar referring to external library

    dear reader,
    I developed a swing tool which uses xml generated by xerces for socket communication contents. I'd like to the classes that I made to an executable jar.
    Just making executable jar file is simple. I followed the guide on the web.( thanks you all guys for that).
    However, once the jar file need to refer to xerces to generate xml file, it fails to refer to the library which is located as './lib/xerces**.jar'.
    './' means the location that my jar file is located.
    the purpose of this system is a run in any OS.
    Actually I found a way of using Ant. and using manifest file.
    In the latter case, the string "Main-Class = " stop me to set referred path.
    and the former Ant case, I am not sure if the values are validated or i am using the exact tag.
    I tried "Main-Class = test.MainClass", "Main-Class = test/MainClass.class", etc. and even with <manifest .../>, it doesn't work.
    is it possible to refer to external jar file as lib?
    give some clue.
    best regards,
    from moon in the sky...

    Sorry, let me explain a little bit better. I am new to java and eclipse and terminology has never really been my thing but lets try this again:
    I am trying to turn my project into a JAR file. My project needs an external jar (AvayaPushSDKLib) in order to run. I have my code running fine in Eclipse, but the moment I export it, it gives me the "Exception in thread 'Main' java.lang.NoClassDefFoundError: com/avaya/phones/push" followed by several other errors, one of which says "Cause by: java.lang.ClassNotFoundException: com.avaya.phones.push".
    In Eclipse these run fine. Here is the files that are currently in each directory:
    ./Server1.0/
              /server/
              start.jar (I created the jar file here)
    ./Server1.0/server/
              /start/
              MANIFEST.mf
    ./Server1.0/server/start/
              AvayaPushSDKLib.jar
              PushClass.class
              ServerStart.class
              UserInterface.class
              PushClass.java (all .java files will eventually be removed)
              ServerStart.java
              UserInterface.javaI hope this makes more sense. Thanks

  • Problem with *Optional Library Subscription Tile URL*

    hi
    i want to put a this banner in library view in my app
    in which format it can be? i tried *.html and *.png formats. no results..
    any examples?
    hope for help
    thanx

    ok
    i want a banner _at the top of library view_ , as described in help.
    (http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60c5dd08612e5ea7d27f-7ff f.html#WS9293e1fb3b977c5c-3de2b57512f0e8b6756-7fff)

  • Advice on photo storage options, library or referenced

    Hi. I am unsure what the best setup is for my photos and wondered if someone could help...
    I have a NAS drive that has all my photos on, in organised folders, so I can stream them to my tv and browse them by folders. So easy to find events, holidays etc. If this was a Library the structure is terrible to browse as you know. So I have setup Aperture to use referenced masters. The problems are 1) I can't then manage the structure in aperture, I forgot the other day, moved everything around, and realise my physical structure won't move. Had to do it all again and relocate them, and 2) when I import they often import into the library and I have to reference those and move them into the physical folder or something like that.
    So basically referenced is a nightmare to manage and import within aperture. But it seems the only way I can have my photos in browsable/organised structure for streaming from my NAS.
    I wondered if there's a way to use the Library so it's all managed in aperture I don't have to worry about its physical location, and still access them on my tv from my NAS as browsable folders.
    P.s I don't want to stream from aperture via ATV because the computer has to be on, that's why I have a NAS so I don't have to leave the computer on.
    Thanks

    amityweb wrote:
     ...So easy to find events, holidays etc. If this was a Library the structure is terrible to browse as you know.
    Folders may make events and holidays easy to find but that is about it. The Library is not meant for browsing, that is what Albums are for. Each new batch of pix is simply imported as a Project, and keywords are assigned: 120930_Aunt_Sally_Bday might be a Project, for instance. Maybe another Project 120930_HS_Car_Wash also happened on 2012-09-30.
    During the Project import the 120930_Aunt_Sally_Bday Project gets assigned key words like birthday and family and event; the 120930_HS_Car_Wash Project gets assigned key words like CarWash and HighSchool and event. Individuals get their own key words that are managed via Faces.
    Albums just consist of pointers (that can be created or destructed at will) to image files, very powerful and they take up no space. In a few seconds search on AuntSally and find every photo ever taken. Sweet when it comes time for posters for Aunt Sally's 100th birthday celebration.
    Uisng the Library, Keywords and Albums is by far the preferential way to organize.
    HTH
    -Allen

  • HT2638 I am trying to rebuild Iphoto 11 Library

    For some reason my iphoto library does not wanna work however the file is still there, trying to do a rebuild but hitting the command/option keys, In get a box that asks which library want to open and then get a error message, does not give me the option to ask about rebuilding the library, wondering why the rebuild box is not being displayed for, I can d/l a $20.00 but hate giving out credit card information and then have to us this other program before can open up iphoto, apple should havea free add on program, thanks for any help anybody is able to give

    Sentences and paragraphs help other people understand what you're asking.
    If you get a box asking you to choose a library then you're not holding the command key as well as the option key when launching iPhoto.
    Are you referring to iPhoto Library Manager? That does not require a purchase to use the rebuild command.
    Regards
    TD

  • Same iTunes library on different computers.

    I have two personal computers that both serve different functions (one is a Mac and another is a PC running Windows 7) and I would like to use the same iTunes library between them, using my external hard drive. On the mac, I have moved the default library to the external hard drive, and when the drive is connected it runs through there. I would like to do the same for the PC, but instead of creating a new library folder, how do I tell iTunes to use the one that is already there from the Mac? I would like to do this through the external hard drive, as I use the computers in different locations and Home Sharing is not an option. I would like to be able to use the external hard drive to access my library and sync my iPod from either laptop, because when I travel I leave the Mac at home.

    It can be done, however you will need the appropriate drivers or disk format so that both operating systems can read & write to the drive, your library needs to be in the standard nested format of an iTunes library folder containing the database files and an iTunes Media (or iTunes Music) folder with all your media. The library also needs to be in the newer layout as shown on the right in this image.
    If it isn't use the option Library > Organize Library >  Rearrange files in the folder "<Media Folder>".
    If it isn't in nested folders see this post.
    tt2

  • View Options

    View Options - Library - Show Columns, I feel there should be a Column to show what PlayList the song has been added too.

    hmmmm. you can sort of get that by right-clicking on a track, and drifting your cursor down over top of "show in playlist". (you'll only see that option if the song is in a playlist, though.)

  • Itunes Library and ID3 tags

    Hi,
    So here's my problem :
    I spent hours cleaning my MP3 collection and re-Writing ID3 tags in order to have a clean Itunes Library without "Blink 182" and "Blink-182" (for exemple) in the Explorer but just "Blink 182".
    And importing my tied up music in the library, I noticed that there still was "Blink-182".
    I checked my ID3v1 and ID3v2 tags : They're all the same : "Blink 182".
    I don't understand where iTunes takes these artists name since they aren't in the tags.
    Can you help me or these hours of cleaning where worthless ?
    Thanks

    If you open iTUnes, rightclick the song, hit "Get Info" and the artist field is "Blink 182" instead of "Blink-182" then all you need to do is play the song and iTunes should read the tag and correct the info.
    If it does not do this one of the 2 is most likly happening, theres multiple tags on the song that needs to be stripped off using the program "TidyMP3" or windows media player is "Sneaking around" in the background and changing them back based on the info its getting off the net, in which case you will have to open WMP, goto tools>oPtions>Library tab and UNCHECK "Retrieve info off the internet"

  • ACL Found but not expected on "Library"

    I looked at the ACL's for Library and I wouldn't have changed that myself but also don't see where it's deviated from the standard in the Info window. Also, Disk Utility won't correct or repair the ACL so I'm not sure if I am exposed here or not. The current ACL for /Library/ is drwxrwxr-t+ 55 root admin. Can someone tell me what is expected or if there's another way to correct this or whether I'm exposed here or not... please advise.
    Thank you!

    I suggest that the message "ACL found but not expected on 'Library'" is not harmless, as suggested by Apple and echoed by many in this thread.
    My experience is that Spotlight searches are suddenly not comprehensive. In a recent search, a file that I knew to exist and saw onscreen was not included in Spotlight's result. That file is located in /Users/.../Library. I'm aware that that is not the same as /Library, to which the message refers, but since /Library is above /Users/.../Library in the file hierarchy, I assume that, in one way or another, the ACL (Access Control List) is causing my file not to be available for Spotlight's search. BTW, the file does not appear with Terminal's "locate" command either. I can select, open, and otherwise manipulate the file in the Finder.
    Another anomaly: my Mac Pro is connected to an older G4 Quicksilver by an Ethernet cable. Surprisingly, there are many – not all – files (in the G4's /Users/.../Library file and elsewhere) that are inaccessible to me in screen-sharing mode. I originally thought that this was because the G4 is running Tiger. But, upon consideration, it seems to be more likely caused by an access denial.
    Finally, the Mac Pro's Superdrive recently became unable to recognize or read CDs, though it continued to handle DVDs. I installed a new Pioneer Superdrive which works fine, with a major exception. It is not consistently recognized (mounted?) by the system. I.e., it does not respond to a Media-eject-button command. I installed the Media Eject icon into my Menubar and that usually works. But after the machine goes to sleep, even that doesn't work reliably and programs like Safari and Mail get hung unexpectedly. Disk Utility's Open and Close commands are reliable. It seems that the System still expects the original Superdrive and the tidbit of data that makes the new drive a part of the System has not been written and accepted. The most likely suspect seems to be a denial of access to write the new drive's identity.
    Accordingly, I suggest that the "ACL ... Library" message is not harmless. It represents an oversight by Apple's software engineers. The ACL may be intended to prevent accidental (or nefarious) deletion of important files, but, as written, it is overbroad and denies legitimate users access that enables the Mac to perform as advertised.

  • How to refer to J2EE library server component from a web service?

    Hi,
    I need help!  I created a web service and it worked fine.  However, I started having problems when I tried to use java classes from my deployable J2EE library server component.  I got the NoClassDefFound error.
    I tried to include the library DC in the Used DC list and put the reference of it in the web service deployment descriptor xml (application.xml and application-j2ee-engine.xml), but it did not work.
    How do I refer and use java classes from my deployable J2EE library at run time from my web service application?  What should I do?
    Thanks,
    Giavinh Pham

    I would like to clarify more about the web service project.  I created a Java DC project and converted it into a web service as the SAP manual instructions.  It worked fine by itself, but I now want to use some of my classes that I deployed as a J2EE library server component. 
    It was compiled and built when I refer to my J2EE library server component DC in the UsedDC.  It was deployed fine as well.  However, it broke when I tested the web service calls.  The class declarations and usage from the J2EE server component could not be found (NoClassDefFound error.) 
    I thought it was because I did not have an application-j2ee-engine.xml in my META-INF folder so I created one and referred to the library in xml as type library and reference 'strong'.  I built and deployed again.  It still did not work. 
    I examined the EAR and noticed that there were two parts of the EAR.  One is the WSAR archive file that contains the META-INF folder from my project and other web service assemblies.  The other part is the META-INF folder generated by the SAP NetWeaver IDE. 
    The strange thing was that SAP NetWeaver IDE generated an application-j2ee-engine.xml without any reference to my J2EE library server component.  However, the nested application-j2ee-engine.xml in the WSAR archive file did contain the info. 
    Since I cannot control the application-j2ee-engine.xml generated by SAP NetWeaver IDE, what should I do?  Is it the cause for my problem?
    Please advice, anyone?
    Giavinh

  • "To open this iPhoto library in Aperture, it first needs to be upgraded".  Aperture already up to date. still cant open aperture library. please advice

    When I try to open my aperture library, this is the message pop out  " TO OPEN THIS iPHOTO LIBRARY IN APERTURE, IT FIRST NEEDS TO BE UPGRADED. "
    My apperture application is already up to date. no more upgrade available. please advice what to do.

    The update refers to the library not the application. 
    So is this an Aperture library you are trying to open in iPhoto or an iPhoto library you are trying to open in Aperture? You're post is confusing on this point.
    In either case make sure the library is up-to-date in the originating application then the other should open it.
    BTW what version of iPhoto abnd Aperture are you running?
    Message was edited by: Frank Caggiano

  • IPhoto 6 library not seen by other iApps and 3rd party applications

    EVery since upgrading to iLife 6 my iPhoto library is not seen by iWeb, iMovie, ScreenSaver preference panel, PrintShop 2, etc. What I've tried:
    1. Rebuilding all four options library
    2. Deleting prefs
    3. Repair permissions
    Any ideas on what else i can try?

    Randy:
    What do you see when you look for photos in the Media pane of iDVD or iMovie?
    In addition to deleting the pref files for the iApps there's another preference file, com.apple.iApps.plist, that you should delete also. Then open the applications in the following order: iTunes, iPhoto, iMovie, then iDVD. That may help.

  • How do you display the library name?

    After upgrade to 11.0.0.163, the library name no longer displays.  How do yoy display the library name?

    If you a referring to the Library Name that other devices can see over the network, it's in Preferences (Ctrl+,) under the General heading.
    Another way to get Preferences up is to:
    Hit the 'Alt' key
    Click on Edit
    Click on Preferences...

  • How long does it take to rebuild an 89GB iPhoto 11 Library?

    I pulled an older iPhoto library file from a Time Machine backup, replaced the faulty one.  (Took an "over-night" to do so!)
    When I tried to launch IPhoto after doing so, no pics showed up in the libarary.  Per the dialog box suggesiton, I did the Command / Option library rebuild.  I checked ALL of the boxes on the next dialog box.
    The current status message is "Rebuilding Libary Database" / "Rebuilding Library: 20801 Versions restored."  The little dash-wheel spinny thing is spinning in the middle of a gray iPhoto window.
    It has been doing this for about 3 hours.  Q1) Is this normal?  Q2) Should I "let it go?"
    Q3) Was that the best way to restore an iPhoto library from a Time Machine backup?  If not, please advise re: a better way.  The data is there (via nighly Time Machine Backups) , so I just need to know how to restore / replace it.
    Thanks!
    -Tim

    I think I found the solution in this post:
    https://discussions.apple.com/thread/2400554?start=0&tstart=0
    it worked for a couple of people there and it worked for me as well.
    Here is what I did:
    1) copied my library which had probably been corrupted by several failed attempts to access it
    2) deleted iPhoto app, went to HD/Library/Receipts and removed any pkg file there with iPhoto in the name. (I think another good option would be to use an App removal software like Appcleaner or Trashme, I actually sed the former and it worked)
    3) restored a good copy of the iPhoto library from Time Machine
    4) installed iPhoto from the iLife disk (you can do that from the recovery disk, if you had it bundled with your mac)
    5) remembering that iPhoto '11  had some problems with the library already from first release (version 9.0), before launching it, I run Software Update and downloaded first version 9.1 and then 9.1.5 (downloading 9.1.5 was crucial, for some reason Software Update downloaded only version 9.1 at first, and it wasn't still able to read my library)
    6) launched iPhoto 9.1.5 and all my library was there, as far as I remember in exactly the same status I had left it: events, faces, places, albums, smart albums, mobile me, facebook and flickr galleries, all in place!
    Step 1) and 3) might not be necessary, especially if you haven't messed up a little the library deleting some files in it in order to have iPhoto try to rebuild them
    I hope this works also for other people!

  • How to block on iTunes "library sharing"?

    I trying to block the option "library sharing" on iTunes, Does anyone know what regristry should we add on Windows (64 bits) to do it?

    You can probably block the iTunes/Bonjour applications or a couple of ports in Windows Firewall.
    These support documents should give you some hints:
    HT1601 - Archived - iTunes for Windows: Music Sharing With Windows Internet Connection Firewall
    PH12372 - iTunes 11 for Windows: Enable iTunes in the Windows Firewall
    TS3448 - iTunes for Windows: Bonjour alert due to firewall, security, or proxy software
    Though obviously you'll be looking for ways to create the problem instead of resolve it.
    If your organization uses roaming profiles then it is also worth making sure that the user's iTunes libraries are not located within the profile and likewise any iOS device backups are safely redirected to local storage.
    tt2

Maybe you are looking for

  • How can I restore my old Apple ID?

    I can not use my old Apple ID. I update app from Apple store by my IPhone 4S. I type my password and receive message "you are not member of administrator group". And I can not use my Apple ID any more. I create a this new one for ask this question. H

  • HT4847 I have apps in my backup on my iPhone how do I release them as usable apps again?

    I had all my apps I liked on my iPhone when I was syncing iTunes somehow I thought I had lost them but I had backed my apps up on my phone. So they are in my backup I just want to restore them to my iPhone where I can use the apps. There is a place t

  • How to install CRM Web Channel applications on local pc

    Hi All I need to do some development for CRM Web Channel (B2B) and just installed NW developer workspace (NWDS and MC both are running, NWDS is connected to local j2ee engine now).  I guess the next step is to setup application track / nstall the app

  • IBM Notes with Mavericks

    I am having some trouble on a couple of accounts using IBM Notes with Mavericks. On my workstation, I upgraded to Mavericks and installed the new IBM Notes 9.0.1 with no troubles. However on two other Macs of the same model, I upgraded them to Maveri

  • Curious Behavior regarding timeouts

    hi, In preparation to writing a bpel process which will be using a synchronous non-bpel webservice call, I wrote a dummy asynch bpel process which does nothing but loop a webservice call that waits for 5 or so minutes... causing a timeout. I catch al