How to package 3rd party libs into EAR

Netweaver 7.0, WEBAS 640:
I have an EAR I am deploying containing an EJB and a webapp. I have third party jars that I need to use from both the EJB and webapp, and so want to just package in as part of the EAR. I do not want to fuss with deploying the third party jars separately, nor do I want to duplicate them into the EJB and WAR separately...
I have the jars in the root of my EAR project, and have the build path set up in NWDS for the EJB and WAR so that the jars are referenced, so I'm ok at build time...
...but I'm getting NoClassDefFound exceptions for the classes in the 3rd party apps when I go to run them.
What do I have to do in my EJB and WAR projects to be able to see the third party jars in the EAR at runtime?

Hi,
<module>
    <java>
      <uri>abc.jar</uri>
    </web>
  </module>
Try putting this in application.xml.
The best option for such type of problem is creating a APP-INF folder under the root.
Sample structure:
ear
      APP-INF
           classes   -- put all class files and properties files
           lib           -- put all jar files
    war
    ejb-jar
Try with this structures. Put all the jar files under APP-INF/lib folder, and the application class loader will pull all the classes and properties from classes and lib folder.
NOTE: I am not sure this folder is recognised in EP server. Weblogic recognises this folder.
Try this once.
In EP server the recommendation is to create  j2ee library projects and refer them in the project descriptor files. By specifying thus the server will load them in the application class loader.
Rama Murthy

Similar Messages

  • How to package third party jars into an ejb application?

    Hello everyone, thanks for reading...
    Does anybody can give me any hints or directions on how to include inside my .ear or .jar all the dependencies of all my EJBs?
    I need to deploy inside my ejb.jar or application.ear all the dependencies. The thing it's that I have a services-ejb.jar and it depends on several jars: services-api.jar, services-util.jar, ws-client.jar, etc.
    I read somewhere that these jars should be inside the META-INF/lib directory inside the ejb-jar. Is this correct?
    I deploy to Oracle Application Server and I'm using EJB 3.0.
    Thanks in advice.

    IDE and Maven have nothing to do with it.
    You need to look at your Oracle AS docs and put the 3rd party JARs in the directory where it expects to find them. I don't know where that is. Most Java EE app servers are different. WebLogic uses an APP-INF directory at the top level of the EAR file. I don't believe it's a Java EE standard. There's more variability in EAR arrangements than there is for WAR files. Those are standard.
    %

  • How to access 3rd party website into MS CRM online 2011/2013

    Hi,
    I want to access a form which is in my .net application/website  into the ms crm 2011/2013 on-line versions using web-services.
    Actually from .net form using web-service I have added contacts into CRM but now I want to do it in reverse way, like if I have stocks in my website I want to access them in my CRM 2011/2013.
    jo

    Hello,
    Recheck following articles:
    https://msdn.microsoft.com/en-us/library/gg509030.aspx
    https://mscrmmindfire.wordpress.com/2013/06/14/calling-external-web-service-from-a-crm-2011-plug-in/
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • How to package other jar files into one jar?

    How to package other jar files into one jar? How can i get the class in the inner jar file?

    Generally not a good idea. The Java runtime won't be able to load classes from those "inner" jars, you'd have to write your own classloader to do that. It's not a brilliant idea, generally, anyway, since the point of having lots of jars is to keep your application modular. Bundling them all together like that means you have to re-deploy the whole thing to fix, for instance, one small bug in one small library
    If you really want to do this, there's an Eclipse plugin called FatJar, but I urge you to consider whether you really want to do it first.

  • How to uninstall 3rd party apps? -1.1.4

    I still stick to 1.1.4. How to uninstall 3rd Party apps?

    GoodmorningNightmare wrote:
    I still stick to 1.1.4. How to uninstall 3rd Party apps?
    If you have 3rd party apps on a phone with 1.1.4, you must have a jailbroken phone. Discussion of those is heavily frowned on here. I recommend finding a forum that supports such phones.

  • How to include 3rd party jar package in the native code aiming to generate ane for android

    in my native java code,i need to reference a class in another jar package.Simply to say,i want to make use of member functions of a class of some jar package A in the call function of the native class which have implemented the FREFunction class.To generate the native extension,native java code needs to be compiled to a jar package B.i have tried serveral methods to compile jar package A into B.Howerver my flex project failed to proceed when calling function of package A in the call function of native java code.To be sure of the correctness of the package A and B,i referenced them in a java project with main function and succeeded. at the same time my other call functions of classes impemented FREFunction work well,Then, why did i fail referencing package A?
    in the discussion http://forums.adobe.com/message/3965757, i found the same problem,but i was unable to get a workaround,can anybody give me same help?

    Standard Java does not support jars within other jars.
    Either re-architect your stuff so jars in jars is eliminated, or write a custom classloader that can load from them, or look into 3rd-party solutions, which you can find by searching the net and these forums.

  • How to include external .js file into .ear file using NetBean 5.5.1?

    is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
    I am using JBOSS 4.2.2 GA as server
    thx!!

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • How to archive an exploded format into EAR

    Hi all,
    I have my application in the following exploded format:
    c:\bea\...\mydomain\applications\MyApplication
    MyApplication
    \ejb
    \mypackage\....
    \META-INF\ejb-jar.xml, weblogic-...........
    \META-INF\application.cml, weblogic-application.xml
    \web
    \folder1\*.jsp
    \folder2\*.jsp
    \WEB-INF\web.xml
    \WEB-INF\lib\*.jar
    \WEB-INF\tld\*.tld
    \WEB-INF\classes\mypackage1\*.java
    Now, anyone please tell me how to package the above exploded format into .jar
    and war and finally the EAR.
    and also, after deploying the EAR, how can we access the application?
    Thanks in Advance,
    Seshu

    The bottom line is you should use ant.
    If your using a version prior to 8.1 you can use the built in jar/ear tasks,
    if you cant upgrade to 8.1 I reccomend it.
    If your using 8.1 we have an exploded directory structure for development
    known as split-dir (go to http://edocs.bea.com and search) with a set of ant
    tasks to do compilation and deployment. There is also one called wlpackage
    that will create an archived EAR for you as well.
    The basic principle is that in development you want to develop with an
    exploded format as it is much faster to compile and to deploy. When moving
    to production and for distribution you want an archive. You have a couple of
    options for the archive. You can archive EVERYTHING where each module
    inside of the ear is also archived.
    Such as:
    foo.ear
    META-INF/applicaiton.xml
    web.war
    ejb.jar
    I am not a huge fan of this because in development you really want
    everything exploded and if you archive your modules inside the ear you have
    to change the URI's in your applicaiton.xml. I prefer:
    foo.ear
    META-INF/applicaiton.xml
    web/
    WEB-INF/web.xml
    ejb/
    META-INF/ejb-jar.xml
    This is the format of the ear that wlpacage ant task creates for you.
    Cheers
    mbg
    "Seshagiri" <[email protected]> wrote in message
    news:3f08c9ea$[email protected]..
    >
    Hi all,
    I have my application in the following exploded format:
    c:\bea\...\mydomain\applications\MyApplication
    MyApplication
    \ejb
    \mypackage\....
    \META-INF\ejb-jar.xml, weblogic-...........
    \META-INF\application.cml, weblogic-application.xml
    \web
    \folder1\*.jsp
    \folder2\*.jsp
    \WEB-INF\web.xml
    \WEB-INF\lib\*.jar
    \WEB-INF\tld\*.tld
    \WEB-INF\classes\mypackage1\*.java
    Now, anyone please tell me how to package the above exploded format into.jar
    and war and finally the EAR.
    and also, after deploying the EAR, how can we access the application?
    Thanks in Advance,
    Seshu

  • Accessing 3rd party jars from ear.

    I was able to create a war with the 3rd party jars in webinf/lib, register it with weblogic and access them from webapps another ear, after specifying this reference in EACH of the webapps.
    However if I want to just make the ear reference these jars, ie., all the webapps in the ear access these jars, without individually specifying the reference, then it gives me an error.
    What is different with providing a reference from an EAR ? I added it to the weblogic-application.xml as the docs suggested....

    http://www.jcp.org
    Cheers
    mbg
    "joe" <[email protected]> wrote in message news:[email protected]..
    >
    what do you mean by "to integrate this back into the specifications"? whatis the
    J2EE way to achieve it if there is one? Thanks
    "Mark Griffith" <[email protected]> wrote:
    Nope, embrace and extend. We are working to integrate this back into
    the
    specifications.
    cheers
    mbg
    "Joe" <[email protected]> wrote in message
    news:3e77c70d$[email protected]..
    Is that part of J2EE or weblogic's implementation?
    "Mark Griffith" <[email protected]> wrote:
    Upgrade to 8.1 and stick the jar's in myEar/APP-INF/lib
    cheers
    mbg
    "Jen" <[email protected]> wrote in message
    news:3e724f46$[email protected]..
    Is there a way to put in one shot instead of modifying every .jar
    and
    ..war's manifest
    file.
    Philip Strube <[email protected]> wrote:
    Hi Sudhindra,
    you can put them in your EAR (on top level or you can create a
    directory
    for them, like "libs" or sth.), and then create class-path entriesin
    the manifest files of your WAR and ejb-jars.
    Example: if myApp.war needs myUtil.jar, then write a line
    Class-Path: myUtil.jar
    in the manifest file of myApp.war. If myUtil.jar is in libs, write
    libs/myUtil.jar and so on.
    -- Philip
    Sudhindra wrote:
    Hi
    I have some common 3rd party jars and zips that are accessed
    by
    my
    WARs and EJB
    JARs. Where in my EAR structure do i place them so that these
    common
    jars like
    classes12, formulaone etc can be accessed from within my WARs
    and
    EJB
    jars?
    Regards Sudhindra

  • Cannot enter 3rd-party certificate into SCUP 2011 on Server 2012

    Hello all,
    I am trying to deploy SCUP 2011 on Server 2012 with a SCCM 2012R2 primary site w/WSUS onboard.
    Client is using a 3rd-party Digisign cert from a CA that is trusted through the enterprise. This cert has been imported into the private store and exported as a .pfx to be loaded into SCUP 2011. The Digisign cert is in the TrustedPublishers and Trusted Root
    stores.
    Administrator registry hack applied for Server 2012
    Options of SCUP 2011: Successfully connect to SCCM local site server and local WSUS server. However, when I browse and select the exported .pfx, I am not prompted for a password for the cert, and no certificate information is displayed. Also, there are no
    entries in the Trusted Publishers tab.
    I am stumped at this point. Any suggestions? SCUP just isn't looking at the cert (which was ordered according to the requirements in the SCUP blog.
    Thanks,
    -P

    A couple of questions...
    1. How, and where exactly, did you import the PFX to the WSUS Server (SUP)? Most notably.. the fully-signed cert needs to be in a cert store named *WSUS*, which has been notably difficult to create except when using the WSUS API to create it.
    2. You don't need to export the PFX for SCUP, only the CER (provided that the PFX is properly held on the WSUS server); but even so, if you already have the original cert from Digisign, why bother exporting from the store to import... you already *had* the
    full cert that could be imported to SCUP?
    3. If you're not prompted for the password of the PFX, that suggests that it wasn't exported with a password, or, since no cert information is available, maybe the export failed completely?
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How to include  3rd Party swc files in my Application

    Hi ,
    I have downloaded , a calendar component namely "kccalendarflex1.4.0beta-4.1.swc" . 
    I want to include this 3rd party swc file in my Application , please suggest me what are the
    steps i need to follow to use it in My Application . 
    Thanks

    1) You have to just copy your swc file into your project libs folder.
    2) Right click on your project and choose properties->Flex Build path->Library Path then click on Add SWC button and choose your swc file and finally hit ok button

  • Packaging 3rd pty libs with SSPI providers

    I wish to package a 3rd party library with a custom authentication provider.
    I can place the library on the system classpath and the provider can see it -
    but I would prefer to deploy the provider as a single Jar.
    The MBean class loader seems a little strange.
    If I put the library in the mbeantypes dir, then the provider can't see it unless
    the Class-Path atttrib of the manifest points to it! This doesn't work if the
    library is actually packeaged in the provider jar.
    Does anyone (BEA engineering?) know what's going on - and how to deploy a provier
    with packaged 3rd patry library ?

    I believe this is a known issue. You may want to post your question in the weblogic.developer.interest.management
    newsgroup for more information.
    -Craig
    "David Pollitt" <[email protected]> wrote:
    >
    I wish to package a 3rd party library with a custom authentication provider.
    I can place the library on the system classpath and the provider can
    see it -
    but I would prefer to deploy the provider as a single Jar.
    The MBean class loader seems a little strange.
    If I put the library in the mbeantypes dir, then the provider can't see
    it unless
    the Class-Path atttrib of the manifest points to it! This doesn't work
    if the
    library is actually packeaged in the provider jar.
    Does anyone (BEA engineering?) know what's going on - and how to deploy
    a provier
    with packaged 3rd patry library ?

  • How to install 3rd party counters?

    Is it possible to install 3rd party counters such as NeoWorks counters
    in iWeb 06? I saw it mentioned in this forum but I am thinking it only
    works in iWeb 08, or am I wrong, and if so, how can the html code be inserted?
    I see an "insert" menu option Insert/choose....is this it? and what would I choose?
    thank you,
    todd

    Ok I just downloaded BBedit. Now before I dive into the big manual can
    you give me the quick take on where to past widget code? Do I insert and
    the front before the original index code or at the end? If at the end, is it
    just before the </head.<body><body></html>
    or after that
    I tried inserting at the very front and it appeared momentarily on the published document but was then quickly covered over by the original page.
    todd

  • How to Call third party Jar into Application

    Hi Can any Expert help ?
    I want to put third party Jar into my application but i have some problem occur.
    1. how to call jar with parameter in application ?
    2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
    3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
    Thanks.
    Sanki Poon ([email protected])

    1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
    2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
    3) Under the resources tag you can have as many jar tags as needed.
        <resources>
            <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
            <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
        </resources>

  • How to consume 3rd Party WSDL which contains the Include statement

    I have a 3rd Party WSDL I am trying to consume using the BizTalk WCF Consume Wizard.
    When I try and consume the WSDL it gives me blank XSDs and Binding files. It does produce the Port Types in an Orchestration.
    This
    article mentions how to use the svcutil tool to get around the use of Import statements but does not give the full command. I have tried svcutil /t:metadata <Path of WSDL> but get an error stating can't load file or assembly.
    Any ideas anyone?

    Hi,
    Please refer to the blog which might helpfull:
    #The BizTalk WCF Service Consuming Wizard and a Look at the Artefacts Created
    http://jamescorbould.wordpress.com/2013/09/27/biztalk-and-wcf-consuming-a-wcf-service-part-2-the-biztalk-wcf-service-consuming-wizard-and-a-look-at-the-artefacts-created/

Maybe you are looking for

  • New system coming....

    Finally put my VIa NEO K8T 754 and 3000+ to rest. I'd like to start contributing my findings with how this new setup performs. I picked up the following: http://www.newegg.com/Product/Product.asp?Item=N82E16817703001 PC Power and Cooling 510 SLI http

  • Is there any way to get true "actual size"?

    The "actual size" view on my new 20" Apple cinema display is only 75% of actual size in all of my layout/image programs. Is there any way to fix this? I posted a similar topic earlier, but no one has responded. Your help would be greatly appreciated.

  • Max 255 characters in MS Office file name problem

    When saving files via WebDAV to KM folders within collaboration rooms we often hit this limit of 255 characters that Office documents allow for file names (218 for MS Excel). Because the complete webDAV URL to portal is made up of server name + a lot

  • Help in update data

    Hi, I am unable to update in entity column and gets the error. How I can update this script successfully. Any help please. My SQL-Script update pruder set hr_tb=345 where  hr_tb=10 Error message Can not update identity column

  • Concatenate values in an assign activity

    Hello Basically putting it, I have an assign activity and 2 variables (var1 and var2). In my assign activity, the variable var2 needs to be assigned the value of var1 || '_.csv'. But I can't see any way of doing this. In the object details of var2 I