EAR and external libraries (jar)

In my application, I use a number of external 3rd party classes (quartz, jersey, jackson) and they are packaged in jar files. When I deploy my EAR application, if I include these jars file inside my EAR file, do I need to add these jar files in the classpath section of my server also?
I'm using WLS 10.3.5.
Thanks

Hi,
In general when you add them with in EAR / lib folder or WebApp/ lib folder then it will be part of the classpath. if these jar are not appears with in classpath then try to set Prefer-web-inf option in weblogic.xml file will solve all the problem.
Regards,
Kal

Similar Messages

  • How to use external libraries jar files in the composite application?

    Hi,
    I have some external jars files (which consists of java classes) that I would like to use in my composite application. 
    I have created a DC with type as external library for the jars.  However, I don't know how to specify the DC to be used in my caf application.
    Can anyone help?
    Thanks.
    Regards,
    Fui Voon

    Hi,
    My jar files consists only java classes and a manifest.mf. The files are compiled using jdk 1.4.2-b28.  Will this be any issue?
    It seems that if I ignore the error and continue step 7 which is to do deployment of the ear, the error given is
    Cannot update it.
    Caused by: com.sap.engine.library.bytecode.cf.CFException: Invalid constant pool tag, 60 at index 41.
    Does anyone know what that mean?
    Is there any sample that teach how to deploy external libraries as bundled library?
    Thanks.
    Regards,
    Fui Voon

  • How to use external libraries and JAR files with OpenScript

    Hello.
    I am trying to include ApachePOI, JODATime, and Javamail in my scripts to handle different aspects of our automated performance tests.
    I followed the documentation for Eclipse to be allowed to utilize these external libraries, however, when I attempt to run my tests the classes and methods that are being imported, show up with errors saying that they do not exist.
    I think perhaps that I am using them incorrectly. I cannot see them as script assets, package assets, or project assets using the properties for these items. An error pops up and says those screens are not displaying correctly or display incorrect information.
    If anyone can provide guidance on using these items, that would be great. Right now I'm trying to include them as "previously exported scripts" but I'm not sure that method will work.
    Any advice is appreciated.
    Thanks.
    --tiff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Tiff
    For OpenScript 9.* there is an out of the box solution for that, all you need to do in OpenScript go to:
    Script -> Script Properties -> Script Assets -> Add -> jar File ....
    And that is it.
    Alex

  • Problem with creation of jar with external libraries

    hi guys, I've no problem with creation of jar,i use this command:
    jar -mcf MANIFEST.MF NameFile.jar *.class
    my file manifest is this:
    Manifest-Version: 1.0
    Created-By: Me
    Main-Class: NameFile
    Now,I've to make a jar file,but i have to use some external libraries in jar format.
    I've read on sun tutorial and i've added to manifest this line:
    Class-Path: dt.jar formshelp.jar formsrt.jar jh.jar looks-1.3.1.jar substance.jar TableLayout.jar
    But the jar file doesn't work, neither with a double click nor with console...
    Someone can help me?Thanks!:)

    Darkweb wrote:
    sorry but,the external libraries that i use are in .jar,what i've to do to include these libraries in my jar?One of 3 things
    1) Take them out of the jar, and put them in a folder, preferably a folder in the same folder as the jar
    2) Write a custom classloader to load classes from nested jars
    3) Extract the contents of all the dependency jars, and jar them all up with your own code
    The first is almost always the most preferable, the second one is doable but brittle and resistent to updating dependencies ( you have to release everything for any changes you need, even if it's not a change in your own code ) and the third one is tedious and suffers from the same robustness problems of the second, not to mention that a lot of software licences prohibit you from actually doing it. Do the first one, it's by far the most common and easiest to maintain. I really wouldn't advise the third option, ever, though. Any activity that reduces the modularity of your application is ill-advised

  • Best Practice for External Libraries Shared Libraries and Web Dynrpo

    Two blogs have been written on sharing libraries with Web Dynpro DC, but I would
    like to know the best practice for doing this.
    External libraries seem to work great at compile time, but when deploying there is often an error related to the external library not being a deployed component. 
    Is there a workaround for this besides creating a shared J2EE library which I have been able to get working?  I am not interested in something that works, but really
    what are the best practice for this. What is the best way to  limit the number of jars that need to be kept in a shared library/ext library.  When is sharing ref service/etc a valid approach vs. hunting down the jars in the portal libraries etc and storing in an external library.

    Security is mainly about mitigation rather than 100% secure, "We have unknown unknowns". The component needs to talk to SQL Server. You could continue to use http to talk to SQL Server, perhaps even get SOAP Transactions working but personally
    I'd have more worries about using such a 'less trodden' path since that is exactly the areas where more security problems are discovered. I don't know about your specific design issues so there might be even more ways to mitigate the risk but in general you're
    using a DMZ as a decent way to mitigate risk. I would recommend asking your security team what they'd deem acceptable.
    http://pauliom.wordpress.com

  • Problem with external libraries and Web DynPro

    Hello,
    we're stuck here.
    We're trying for a week now to include external libraries(e.g. Hibernate) into our Web DynPro Project, without success so far.
    We read every single forum and blog entry we could find on this topic.
    E.g.: /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    We're running Netweaver 2004s SP9 Trial Version.
    The biggest problem is, that when we deploy an J2EE Server Component Library DC exactly like described in the blog entry above, although it is deployed correctly an lists under Server->Libraries in Visual Administrator, the external hibernate.jar doesn't get deployed onto the server. It's just an empty container named hib/lib without any entries in "Jars Contained". The sda file of the library DC also has only 2K and doesn't include the hibernate.jar which we added as used dc...
    Any help would be greatly appreciated.
    Or is there a simpler way to include external jars into Web DynPro Projects and deploy them to the server? (We already tried putting them into the lib folder without luck, we always get "NoClassDefFound...")
    Edited by: Christian Wieland on Jan 31, 2008 11:22 AM

    Hallo Christian,
    this is a bug which should be fixed in NW 7.0 SP9 patch1: [Look at this forum thread on the same issue: External Library DC in NW2004s SP09|External Library DC in NW2004s SP09].
    Regards, Bertram

  • I have been storing my Aperture and IMovie Libraries on an external hard drive that recently died.  Fortunately I've been using Time Machine to back up to a 2nd external drive.  How do I restore my libraries to a new external hard drive?

    I have been storing my Aperture and IMovie Libraries on an external hard drive that recently died.  Fortunately I've been using Time Machine to back up to a 2nd external drive.  How do I restore my libraries to a new external hard drive?

    This is a tricky one.
    Open up Time Machine and go back to a date using the timeline on the right side of the window when you know the drive was working and was backing up as part of Time Machine backups.
    Click on the name of your Mac under the Devices heading on the left side of the window in Time Machine, and if things are working correctly you will see Macintosh HD (or whatever you have named it) and the name of the external hard drive that was backing up in the past.
    Right-Click on the name of the external hard drive and then click on "Restore (name of drive) to....."  You may be asked for your adminstrator password at this point.
    It might be easier to restore the drive contents to your desktop if you have room on your Mac, and then copy things over to the new external drive where you want to store the Aperture and iMovie Libraries.
    Once the libraries have been moved over the new external hard drive, you will likely need to "point" Aperture and iMovie to the location of the libraries on the new external hard drive.

  • Can I store iPhoto and iTunes libraries on an external hard disk?

    I have a Mac Book Pro with Retina Display that I bought new in late 2014.
    It has 250GB of storage but apparently I am already running out of space already.
    I want to know if I can store my iTunes and iPhoto libraries on an external drive to help free up space.
    Also, when I get the breakdown of space used on my internal storage, it shows "photos, audio, movies," etc and how much each category takes up.  But for some reason "Other" takes up nearly half of my hard drive.  Is there a way I can find out what "Other" files I have that I might be able to delete to reduce the size on my internal disk?

    1. Yes. Drag the libraries there, launch the applications with the Option key held down, and choose those libraries; the iPhoto one needs to be stored on a drive, partition, or disk image formatted as Mac OS Extended.
    2. Click here for information. If desired, run a tool such as GrandPerspective.
    (123835)

  • If I move my itunes and photo libraries to an external drive, will they still be backed up via time machine (on another external drive)?

    I have 2 external drives, one of which I would like to use to store my iphoto and itunes libraries (to create space on my laptop hard drive).  Then I have a 1tb drive that I'm going to use for my time machine backup.  Will I be able to back up the itunes and iphoto libraries from the external drive onto the time machine drive with the rest of the files that are on my laptop hard drive?  Thanks.

    Depends on the version of the OS that you are using I would post on the forum for the version of the OS that you are using.
    Later version od Time machine will, definitely. If the version you have doesn't, then there are plenty of 3rd party back up utilities that wll do the job for you.
    If you're moving the iPhoto Library then remember the disk needs to be formatted  Mac OS Extended (Journaled)
    Regards
    TD

  • Hello, I reformatted my mac to factory settings. Since then I cannot reconnect to my itunes and iphoto libraries stored on an external hard drive. Any suggestions?

    I am using an old Imac G5 2.16 GHz intel core 2 duo.
    Its 8 years old. I had my iphoto and itunes libraries on an external hard drive. Li
    The mac was running slow so I backed up important stuff and then did a factory reset.
    Then I did upgrades to snow leopard.
    Its now running 10.6.8. Like I was before.
    Now that it is all reformatted, I cannot get it to reconnect to my iphoto or itunes libraries.
    Any help would be appreciated.
    Thanks

    Hi Terence,
    I tried the option key thing when starting both.
    For itunes when I select the folder on the external drive it says 'could not locate library file' or something like that.
    For iphoto the iphoto library file is there but it is not one I can select (it is greyed out).
    Sorry, not sure which versions they are. Am currently re-importing my itunes library so can't check.
    iPhoto is not opening today. Yesterday it would.
    Both versions would be updated as far as they could go on snow leopard.

  • After moving my iTunes and iPhoto libraries to an external hard drive and deleting the originals i found i still had no space on my mac.help

    i moved my itunes and iphoto libraries to an external hard drive to free up space on my mac.
    after i had moved them and checked they could be found i trashed the originals and checked again that the could be found on the external hdd.
    all seemed to be ok.
    when i checked the disc utility it did not show i has made any more free space than i had before.
    any help please as i am loving tje mac but i am still quite new to it.

    Did you empty Trash?

  • Explain about JAR,EAR and WAR files

    Explain :what is JAR,EAR and WAR files and how is useful in creating archive files in java with more example?

    Please look up this type of information on your own.
    http://java.sun.com/reference/glossary/index.html

  • Want to save files, documents, bookmarks, iTunes and iPhoto libraries, each in separate folders to external hard drive prior to full sweep and overwrite for the purpose of full sweep of Macbook?

    Never done this before and cannot find a manual for OS X 10.7.5 Lion. Basically I want to clean my 2009 Macbook6,1 as though I were selling it and start out fresh but before I attempt it I want to stash my contents (Files, Documents, Bookmarks, iTunes and iPhoto libraries to my external Hard Drive, all in separate folders to return them to Macbook after the full sweep and big overwrite. Can anyone help me?

    That may not be the best approach (see below).
    Format the drive for a Mac (see #1 in Using Disk Utility if you're not sure how).
    Create the folders you want on it.
    Open a second Finder window and drag what you want from one to the other.
    If you only copy the stuff listed, you'll lose your AddressBook, Mail, Calendars, preferences, and probably all sorts of other things.
    A better option might be to back up your entire system, either with Time Machine or one of the "cloning" apps.  Then you can restore selectively from TM, or copy selectively from the clone.

  • How do I migrate my iphoto and itunes libraries to an external hard drive, then point the programs to read them from that location?

    Hi, do you know how I can migrate my iphoto and itunes libraries from my over-filled laptop to an external hard drive then point the programs to read from that location instead? I'm trying to make some space available on this old computer

    To move iTunes...
    http://support.apple.com/kb/HT1449?viewlocale=en_US
    ...and iPhoto.....
    http://support.apple.com/kb/HT1229

  • Deployment: Deploying external libraries from dependent projects

    Hi,
    i need some help for the following issue.
    How do I deploy external libraries from dependent projects? I have one project for the model layer which references TopLink JPA library and an other project for view/controller based on JSF/ADF Faces. The view/controller project has the model project as dependency.
    For the view/controller project i have created a WAR deployment profile. On deployment all classes and referenced libraries from view/controller project and all classes from model project were included. But not the referenced library for TopLink JPA.
    My second approach was to create a JAR deployment profile for the model project. Again the referenced library for TopLink JPA was not included.
    My third approach was to add a library file group to the JAR deployment profile. I tried to add the library to jar's root and to META-INF directory. But the application don't find the library (java.lang.NoClassDefFoundError).
    The only way I got this running was adding all referenced libraries from dependent projects to the view/controller project which couldn't be the proper solution.
    So how do I get this running? What are the best practices?
    I would be glad to get some input on these issue. Thank you.
    PS:
    I'm using JDeveloper 10.1.3.2 and like to deploy on Tomcat 5.5.23.

    I see your points.
    Unless you have Java EE 5 there is no real standard way of including libraries in EAR files. Including the libs in the WAR files is the only standard supported way for file formats prior to Java EE 5. If you have to consider Tomcat as a possible platform, WAR files are your only option.
    You reluctance to include the libs in the WEB-INF/libs structure is understandable but think of injected dependencies in the Entities you're not aware of. These might be needed in the view layer too.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Forcing a user to add attachement in wf ?

    hi, i have a workflow in which a user MUST attach a scanned document. well, how can i force a user to add this attachement. that means "no attachement = no continuing of workflow" ! my workflow starts with a form where i can enter the form, but there

  • JSF on IAS 10.1.2

    Hi, I want to use jDeveloper 10.1.3 (for its JSF support) to build a JSF-compliant application, and run it on IAS 10.1.2, with the Bpel Process Manager Engine support. Will this work? Alternatively, will the Bpel Process Manager 10.1.2 run on IAS 10.

  • Oracle E-Business Suite 12.0.6 on Oracle Linux 5.5

    My production apps (Oracle E-Business Suite 12.0.6) and db (Oracle Database 10.2.0.4.0) tiers reside on their own Redhat 4.6 servers. I have a new server that I am in the process of installing Oracle Linux 5.5 on for hosting a TEST instance - both ap

  • How to save Custom control records through module pool program ?

    Hi guru , 1. How to save Custom control records through module pool program ? I wrote multiple lines of record in custom control Who to save that records ? thanking you. Regards, Subash.

  • BOM middleware

    Hi Experts, I am trying to replicate the BOM adapter object in CRM 7.0. All the materials in the BOM belong to the same plant but when applying filter criteria on MAST I am only getting the field STLAN and now WERKS.WERKS field is not appearing in th