WAR files sharing multiple JAR library files?

Hello all, I want to make an EAR file that contains 4 WAR files, each of those WAR files relies on the same jar library files, is there some way I can make an EAR that only has one copy of each jar file?
i put the jar files in the /library of the EAR as per the java deploytool, but that just gives class not founds
my ear structure currently is this
test.ear
======
a.war
b.war
c.war
d.war
\library\xerces.jar
\library\tools.jar
\meta-inf\manifest.mf
\meta-inf\application.xml
\meta-inf\sun-j2ee-ri.xml
i tried putting classpath: xerces.jar tools.jar
but that doesnt work, any idea on how my syntax or EAR structure is wrong?
thanks!

Hi,
Have you tried this way ?
(including the line below in the Manifest file of the your wars file)
Class-Path: library/xercers.jar library/tools.jar

Similar Messages

  • Where do I add my custom jar library files

    I need sone extra .jar library files, fo my application to compile. e.g
    lotusxsl.jar, xerces.jar
    what should be the location of these files, in the .ear file, and also in
    exploded directory?

    Yes, that might work but the problem is that to my understanding only the
    content of .ear-files are distributed to managed servers. Where do I put my
    jar-files inside the .ear-file?
    "Viresh Garg" <[email protected]> wrote in message
    news:[email protected]..
    best thing would be to put them in any relqative directory in archive or
    exloaded directory and then add them as classpath element in manifest filefor
    your archive/exloaded directory.
    Viresh Garg
    Manmari wrote:
    Thanks Viresh. So in 6.1 where do I put these files in the .ear ?
    My guess is, I need to put them under WEb-INF/lib directory in the .war
    file. and similarly in the exploded directory as well.
    Can you please confirm this, or otherwise?
    Thanks
    "Viresh Garg" <[email protected]> wrote in message
    news:[email protected]..
    Currently you have to put then in system classpath and not include in.ear.
    Unfortunately manifest calsspath currently doesn't work with
    enterprise
    archive. This is getting fixed in 6.1, for which beta is alreadyavailable.
    Consult J2EE Application specifications for manifest classpath and to
    know
    how it works.
    Viresh Garg
    BEA Systems
    Manmari wrote:
    I need sone extra .jar library files, fo my application to compile.
    e.g
    lotusxsl.jar, xerces.jar
    what should be the location of these files, in the .ear file, andalso
    in
    exploded directory?

  • Need help with File Sharing and iPHOTO Library sharing........

    I recently upgraded my imac and my macbook pro to Mavericks.
    I have some problems now.
    Previously using iPHOTO when running I was able to see the other computers iphoto library on the left side bar.  I was able then to access the other computers iphoto library.  This is no longer showing the other computers library from either computer.
    When I try to access the other computers files using file sharing I get a message that permisions are missing.
    It then asks if I want to fix permisions ,  I say yes....it will run for an hour and do nothing...I need to force quit.
    I really dont want to use the cloud to do this sharing....why should I upload into the internet when I have the computers on same network.
    Is there any place I can go to find how this is now done?  Before I didnt need to look up a thing....was just intuitive .  Now Im running into walls every way I try to share the iphoto libraries across computers.

    The iPhoto sharing that was in the previous version doesn't seem to exist. There is now iCloud Photo Sharing.
    http://support.apple.com/kb/HT5902
    I don't know about the file sharing issue.

  • To pick files from multiple directory in FILE ADAPTER

    Hi all,
    Is their any settings or adapter configuration parameters to be used  to pick  the files from multiple directory .

    Hi,
    You can only specify one directory on the communication channel. The advance selection allows the selection of different files within this directory.
    Therefore you will need a communication channel for each directory you wish to pull files from.
    (Just looked at the blog and see it is possible after all - I'm on the wrong SP)
    Kind regards
    Colin.
    Message was edited by:
            Colin Bickell

  • Multi-page ID file into multiple individual ID files

    I am creating a catalog in ID and have started it as a single file with multiple pages. My printer has asked that I submit it as multiple individual ID pages. I found a script that will do it for me. The problem is that I have applied master pages to the files and when the files get exported into individual pages they all take the characteristics of the 1st page. i.e. the number is "1" on all of them and appears on the right side. The question is, is there a script that has been made that deals with this already, or is there a way to "flatten" the ID file before I run the script so that the numbering doesn't shift around?

    @RGBguyinaCMYKwrld – +1 to that what Larry and Colin already said.
    But, in general, there might be really good reasons separating a document into individual parts.
    Might be a colaboration workflow with several designers where the project began with one person…
    Or in a DPS workflow.
    The Swiss scripter Hans Häsler did a lot of scripts and one of them is slicing an InDesign file into pieces. Page by page, range by range or other criteria. The script comes in German language, but the source code is available, so you could translate it. It has a ScriptUI graphical user interface. A extensive readme file comes with the code (LiesMich_Aufsplitten.txt).
    Hans Haesler
    (Split Documents Script v515d)
    DokumenteAufsplitten.zip
        DokumentAufsplitten_515d.js
        LiesMich_Aufsplitten.txt
    German Interface:
    http://www.fachhefte.ch/downloads.php?groupIDX=&orderby=name&sort=ASC&search_query=&itemID X=&begin=&limit=&read_group=18&page=0&downloadIDX=655
    If the link will not work (maybe due to an update of the site), look under Downloads / JavaScripts at: www.fachhefte.ch
    Uwe

  • [SOLVED]Long delay opening files if multiple selection in file chooser

    neok wrote:
    Hi,
    When I try to open several files in an application, (example: Gimp), by multiple selection in the 'open' filechooser, there is a long delay (about 1 sec per file) before the Gimp starts opening image files. During this delay, the disk access LED flashes continuously and iotop indicates that its jbd2 accessing (writing) on the / partition on my SSD drive. This is despite the fact that the image files are on an external USB hard disk and the Gimp would have no reason to write anything on the / partition. Even if it did, the image files are small (50-100 kb) and such a long delay would be out of place.
    The significant thing is that the delay occurs _before_ the Gimp starts opening files. It seems the delay is in the filechooser making a list of the files to be opened. Once the Gimp starts opening files, it finishes quickly.
    This sort of thing happens with other apps that can open several files by multiple selection in a filechooser.
    Any hints please? I am lost here :-(
    The delay is caused by (apparently) GTK which writes to the ~/.local/share/recently-used.xbel file, to record all the files that are opened in the multiple selction. Even so, this writing seems too slow, even when opening a large number of files (the ones that I open by multiple selection, by an app that I am working on, are about 10k each, so opening a few hundred should not take the delay I see, about 30 sec).
    Anyhow, I patched the problem eventually by chattr +i ~/.local/share/recently-used.xbel to stop the writing. But I would prefer to disable the use of this file by configurtion rather than brute force, if there is such a choice.
    Last edited by neok (2012-03-13 04:55:31)

    neok wrote:
    Hi,
    When I try to open several files in an application, (example: Gimp), by multiple selection in the 'open' filechooser, there is a long delay (about 1 sec per file) before the Gimp starts opening image files. During this delay, the disk access LED flashes continuously and iotop indicates that its jbd2 accessing (writing) on the / partition on my SSD drive. This is despite the fact that the image files are on an external USB hard disk and the Gimp would have no reason to write anything on the / partition. Even if it did, the image files are small (50-100 kb) and such a long delay would be out of place.
    The significant thing is that the delay occurs _before_ the Gimp starts opening files. It seems the delay is in the filechooser making a list of the files to be opened. Once the Gimp starts opening files, it finishes quickly.
    This sort of thing happens with other apps that can open several files by multiple selection in a filechooser.
    Any hints please? I am lost here :-(
    I re-installed and reconfigured Arch so that I now have a fresh, uptodate system. In the process, I found that this problem occurs when I run the Gimp as a normal user. If I run it under sudo, all is well. I am strggling to find out why, but no results so far (have checked file permissions where I thought there may be a problem, but no joy).
    Any hints much appreciated.

  • Change File Format For Existing Library Files? How?

    Lightroom v5.3: I'm a long time DNG file user for Pentax and Nikon cameras. I recently discovered that about 300 of my RAW Nikon files already imported into the Library are NEF files instead of DNG files as my other 5700 files are.
    I know that I made an error somewhere along the way, but- Is there an easy solution to converting those existing NEF files to the DNG format?
    I was thinking of renaming them, but..........somehow that seems too easy.
    Thanks for any wisdom you can send my way.

    Thank You, John. That menu command went right by me when I searching the best way how to do this task.
    Appreciate your help.

  • File sharing can not open files when transferred.

    File sharing. When files are sent over to folder on mac can not open message comes up " you do not have permission to open the document"
    Had no problem before loading 10.9.

    Files are coming from another computer on the network and they put the files into a folder on the deck top. When I try to open them I found that I had to select the folder and "get info" and go down to the gear and select "apply to enclosed items" It seems once I take the files out of the folder it reverts back to the default. Then I have to  reset it each time to open new files. In Sharing & permissions I have all the privileges set for read & write is there another way to set it as a default to be able to open the files with going to the gear each time?.

  • File sharing problem because of file permissions mistake?

    Hi,
    this is my prob:
    Can't connect via personal file sharing from other macs to my G5 (10.4.3).
    Everything is hooked up properly, a G4 and a G3 powerbook exchange data this way without probs in my network.
    The G5 shows up under the network icon, connects, but as soon as I try to click on the now mounted server-icon of the G5 it stalls and at the same time the system preferences pane on the G5 turns off Personal file sharing by itself. Firewall is off anyway BTW.
    Thinking around the prob, I came to the conclusion that file permissions might be the reason and I tried to make a file permission 'first aid' run ...
    but 'first aid' wouldn't do anything but tell me 'can't repair ... no packets found' ... uh?
    Any ideas?
    Thx a million
    Alex
    iMac G5 2GHz   Mac OS X (10.4.3)  

    I'll tell you some, but certainly not all, of the things I have tried.
    1. I connected an iBook directly to the eMac without a hub or router involved. Same result.
    2. I can even network an old 8.6 6500 and I get the the disk icon on the desktop and then I get a disconnect. And the "file sharing" check box is unchecked.
    3. I have gone in to the network using name of computer, IP addresses and all that those other methods. Same result.
    4. I have trashed various permissions and repaired permissions both off the system drive and off of the installer DVD.
    Networking is useful for me but not critical to what I do.
    I have resorted to putting an icon for a folder on my G4 on the desktop of the eMac so that if I need a file my secretary drops it in there, I work or it and then she drags it out and replaces the file on the eMac. Sort of a step above a "sneaker network". I think that the next up-grade might just fix the problem. John

  • How to export war files without including the library files

    Hi,
    I have several portlets that share the same jar files. In my tomcat, I'd like to load those jar files from shared/lib when tomcat starts up. Currently, to accomplish this, I export the war file from jsc, deploy to tomcat, then manually delete the jar files from WEB-INF/lib.
    Is there a way I can modify some property file so that my war file does not include the shared libraries?
    Thanks,
    Marc

    Hi!
    Rightclick project's root node in Projects window and select Properties. Then go to Build->Packaging and remove unnecessary libraries.
    Thanks,
    Roman.

  • Programatically add description into the Shared Variables in library file

    Hello All,
    I have been successful to programatically create the shared variables.
    Now, i want to programatically add the description to these variables, is there any method through which i can progrmatically add the description into these variables?
    Regards,
    Nishant

     Hello Dennis,
    I haven't refuseed to change the icon but whenever i try to change the icon, i am getting nothing in my icon gallery and subsquently failing to change the icon.
    I am really sorry, fi that would have create problems. But, i have always tried to change it.
    Let try it once again.
    Regards,
    Nishant

  • How to call Fortran .dll file that using other library files?

    Hi,
    I am trying to do some arkward tasks using LabView, and I am desperately need help....
     A little bit background:
    1. My co-worker has some code written in Fortran, where he called other libraries (many from CERNLAB or PAW). Those stuffs are pretty powerful in mathmatical calculation and simulations.
    2. In some of my LabView code, I need to call his Fortran source code in order to do some complicated calculations. I have no capablility to translate his Fortran code to Labview (or is it even possible??), so we end up with trying to use "Call library function node" where I just provide input/outputs to communicate with his code. The idea sounds simple enough?
    3. We complie the Fortran code into .dll, and then specifiy the dll in "Call library function node". The first try with a very simple Fortran code, something like c = a+b*a, was sucessful. The dll file and Call lib function worked good. It's sort of proved the concept.
    4. Now I am trying more complicated Fortran code (say Test.dll), which calling other library (.lib files) that using typical "call xxx(a,b,c)" line, and my nightmare started....  It seems nothing was excuted when I call Test.dll in LabView.
    Questions:
    1. How do LabView know if the Test.dll code needs functions from other .lib files? Do I need to copy all the .lib files to a specific folder?
    2. When I create .dll file, for LabView to be able to use it, are there any special requirement on the way the .dll is compiled?
    3. Seems there is mismatch btw the data type in Fortran and LabView. For example, LabView's  Signed 8-bit Integer seems different with a integer in Fortran. How can i know the correlation btw data type in different langurage, i.e. LabView vs Fortran?
    4. Are there any good examples that I can take a look?
    I would highly appreicate any suggestions/helps!
    Rgds,
    Harry

    You are aware that Intel Visual Fortran is the successor to Compaq Visual Fortran (I think you made a mistype with the Virtual)? So an upgrade might be at its place.
    Anyhow I'm really not familiar with Fortran at all, but lib files are usually compiled into an EXE or DLL and not loaded dynamically. 1) 
    So there should be no problem with locating those libs. What most likely is a problem are other DLL dependencies such as any Fortran Runtime library or possibly other third party DLLs the more advanced code in your DLL might be using.
    Typically most compilers can be configured to link the runtime library code statically into the DLL, as altenbach reports for the Intel compiler, otherwise you must make sure to install the  redistributable Fortran Runtime Library for your compiler. Besides that you must make sure to find out what other runtime dependencies your code might have and install them.
    1) One exception I know of is LabWindows CVI which allows to also load lib files dynamically. This is supposedly a legacy feature from LabWindows for DOS, which allowed that feature to simulate dynamic module loading in order to swap modules at runtime to work around the 640k memory limitation of DOS.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Firefox cannot find a file at the jar! file on start up Why and what does this mean

    When i launch the new firefox 4 I get an error page titled
    problem loading page - with this message
    File not found
    Firefox can't find the file at jar:file:///Applications/Firefox.app/Contents/MacOS/omni.jar!/browserconfig.properties.
    Check the file name for capitalization or other typing errors.
    Check to see if the file was moved, renamed or deleted.
    Why and how do i fix it I have tried reinstalling the program once.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How can I get file from multiple instance using file adapter

    Hi.
    Our system(PI7.1) have three application instances running with each physical servers.
    We use sender file adapter.
    The file data is sent to one of the servers.
    Now, how can I get the file using three file adater?
    Should I put the file "sapmnt(\usr\sap)" .
    Or are there another solution?
    regards,

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

  • Itunes file sharing doesnt show any files on ipad 2!

    imovie, keynote, photoforge2 - all of them have files, keynote has very importnt presentation. itunes and ios are the latest! Help please - got to make presentation tomorrow, but the file is stuck on ipad and i need it to transfer to pc!

    I did it, where it was possible- in iMovie, for example. Keynote doesn't have such option, it's meant to show all presentation files in iTunes as soon, as you create them on iPad.

Maybe you are looking for

  • My Macbook Pro keeps restarting out of the blue

    It's been doing it for a couple of weeks already. As far as I can tell, its very random. It happens at any time, ive tried to see if its a specific program, but it restarts at random times. I did an SMC reset and that didn't do anything. Lastly, i wi

  • Unicode issue for custom CLASS

    Hi Experts, we have a custom CLASS 'Z_ADD_INN_SALES' as part of unicode conversion i have corrected all the unicode compliants found in the UCCHECK transaction associated with the CLASS and also marked unicode check in the properties of the class. Bu

  • When synching iPhone4s capacity lists "other" as 28.9GB.  What's with that?  There's not much on my phone.

    When synching iPhone4s capacity lists "other" as 28.9GB. What's with that? There's not much on my phone.

  • New update....asking me to save repeatedly

    My computer just automatically updated to Adobe Reader version 10.1.2. I want to print a PDF file. Adobe wants me to save the file first, no problem. I save the file and tell it to print, Adobe wants me to save the file again. Over and over again. Ve

  • Design Question enums etc

    Ok. So I have a class that represents a symbol. A symbol can have many values associated with it e.g name, description, type etc I have a BaseSymbol which contains a map, which I'm intending to use to store the values associated with a symbol ( as ab