Deploy external jar to WAS 6.40

Hi all,
I'm trying to deploy an external jar file (classes12.jar - an oracle jar). I've followed the instructions on 'defining libraries' found on sdn -http://help.sap.com/saphelp_nw04/helpdata/en/ee/6ede3f7bc1eb06e10000000a1550b0/frameset.htm
But I cannot access the deployed project/jar, although I do see its definition using the visual administrator.
Any help would be appreciated,
  Aviad

Hi Aviad,
You have deployed these Library files using Library project.
And i guess, you are accessing these library files from your webdynpro application.
If yes, then goto properties and there choose webdynpro references.
Here, choose library references tab, and make entry of your library project like this:
sap.com/<library project name>
If your are using these Jar files in J2ee application then make entry in your application-j2ee-enjine.xml file under J2ee Application project.
Regards,
Bhavik

Similar Messages

  • Deploying external jar files to the server

    Hi,
    How can I deploy the external jar files belonging to a simple webdynpro project(no DC) so that it is also available durng the runtime.
    I have no direct access to the WAS server and I am looking for means to deploy directly from NWDS.
    Regards,
    Meesum

    hi meesum,
    There is no direct things to do that. All u need to do is keep the jar files into the lib folder of webdynpro project and also add it from the build-path/classpath by right clicking the project.
    1. Go to navigation perspective
    2. get into the project\lib folder of the your project. copy the jar files into it
    4. right click on the project
    5. click on properties
    6. click on java build path
    7. go to libraries tab
    8. click on Add Jars button
    9. select the jar in you r project
    10. click ok
    11. recompile
    12. deploy
    Hope you got what you want...
    Thanks & Regards,
    Raghavendra Pothula

  • Exporting External JARs on WAS from Webdynpro

    Hello everybody,
    I have posted same topic earlier also. But i can't any solution for that. Bharadwaj has suggested to make Library project and add all JARs in it and deploy on WAS. But in Library projects, we can only add JARs of Exsisting projects only.
    So, what could be other options for that?
    Thanks in advance,
    Bhavik

    Hi Bhavik,
    Sorry for a very very late reply. I think it is a limitation (or probably a bug ) . What i do usually is ,add it to some other project's lib folder and then take the jar from there. Since it is added as a seperate copy in ur .sda file it wont be problem after deploying. No reference exists.
    Its just that u wil have a problem while adding it design time..
    Its a round about way to take a jar.But it works.
    And about ur question.. i doubt if u can really find the jar in the bin folder directly.. (If we add a external jar to project i cant find any jar in the project folder. I searched the .ear file but i am not able to find it. Just check if u can find it )
    Regards
    Bharathwaj
    Message was edited by: Bharathwaj R

  • Deploying external jar files in CE 7.1

    Hi All,
    I am using CE 7.1 SP01 NWDS to develop my applications.
    Now I want deploy one external jar files to J2ee engine.
    I know how to do the same in NWDS 2004s. But here the steps seems to be little bit different.
    I referred the following blog for doing this in CE 7.1
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    But, still I am getting Classnotfound exception, when i try to use the jar file in dc applications. There, I posted some queries, but I didnt get any solution.
    Can any one help me on this please.
    Thanks,
    Fahad Hamsa

    Hi  Fahad,
    I am facing the same problem, but am  not able to get the solution.
    I am following the below steps..
    1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC.
    2) Created a DC of type "External Library" called "externaljar"
    3)Added Public Parts of type assembly and compilation to the "externaljar" DC (Component Properties Tab -> Public Parts)
    4) Right click on the  assembly Public Part name -> Manage entities, and added the JAR files as archive.
    5)Right click on the compilation Public Part name -> Manage entities, and added the JAR files as archive.
    6)Go to Webdynpro DC "testProj" .
    Under Component Properties Tab -> Dependencies tab  -> Add -> selected the "externaljar" DC  -> Next ->  for "externaljar" DC checked Deploy time and Run time.
    For assembly Public Part  and compilation Public Part "build" is selected by default.
    7) I did build of both the DC's and deployed it.
    Im getting "Class not found" error.
    Please let me know where i am going wrong.
    Thanks,
    Shilpa.

  • How to add external jars when deploying webapp via worksop for wls 9.2

    While attempting to deploy my web application using Workshop for WLS 9.2, WLS complains it is unavailable to resolve references to a 3rd party JAR(tomhawk.jar) which is being referenced by the JSPs. I have added the JAR via the J2EE module dependancy tab in workshop but that does not seem to be helping the deployment.
    If i build the web application outside workshop and include the tomhawk.jar in the WEB-INF/lib folder of the deployed WAR file, the app works fine.
    I have attempted to copy the tomhawk.jar into the <domain>/lib folder and restart the weblogic server. But this does not seem to help resolve the references.
    Any clues on how i could achieve iterative deployments via workshop for WLS 9.2 pickup references to external JARs being referenced by the JSPs.
    Thanks
    Ramdas

    Raj,
    Thanks for your suggestion. The link that you sent out was useful. I was actually able to get the webapp to resolve its references to the 3rd party classes by adding the tomhawk.jar as an external jar via the "build path" property for the web project. I tested this by running the app in the WLS instance hosted by workshop and looks like the JAR from the build path gets somehow referenced during run time too. Not sure how this works?
    Thanks
    Ramdas

  • WAS Property for External JARS

    Hi All,
    We are using AIX as a platform for a Netweaver WAS 6.40. I have a EAR file that contains some 3rd party JARS. When I deploy the EAR on WAS and run the JSP that is calling one class inside the JAR, the JSP is not able to find that class.
    I have checked and deployed my EAR on another Netweaver WAS which is running on a windows platform. I have even checked my application on tomcat. In both the cases the problem is not there. My application runs fine.
    It is only on AIX and this particular WAS that it is throwing this error below
    No ClassDefFoundError
    This error is for one particular class inside a third party JAR.
    Imp : This application was running fine before, the only change that we did was clustering on the server. Thats all.
    Do I need to set some server variable for making the server accept 3rd party JARS. Am I missing some server parameter.
    Plz help
    /sab

    Hi
      When creating a system itself, you can set WAS and ITS properties in system properties. A transaction iView uses these properties to connect to the system. For host entry, it is sufficient to maintain entry for R3 host in server machine alone. Hope that will serve the purpose.
    Regards,
    Harini S
    Do reward for helpful answers

  • How do I deploy an external JAR file

    Hello,
    How do I deploy an external JAR file?
    I am grateful for every hint.

    Hi Manuel,
      If you read my blog mentioned in the beginning of the thread, you will note that such solution is not supported in our engine due to number of reasons.
      Please, read the blog and use application library shared among these two applications. You will achieve the same effect. Please note that the using application will need run and deploy-time dependencies to the shared library.
      You should not add files to any of the folders manually or manipulate engine's classpath in such situations.
    Best Regards,
    Georgi

  • External jar file deployment issue

    Dear Experts,
    I have one external jar :  tc_sec_https.jar  to be used in my dc.
    Hence I have created an external library dc and included this jar in the library . I have also created one dc of type j2ee server component where I have used the public parts of the external  library dc at build time.Finally I have deployed the j2ee type dc.
    But when I log into visual admin I dont find the jars deployed on the server.
    I have followed all the steps of the tutorial :
    " External Library Deployment and Usage in SAP NWDS" by Saurabh Agarwal.
    Could u please guide why I am not able to find the jar on the server while I log through visual admin ??
    Regards,
    Mamai.

    Why do you deploy jar which is already on the server?
    \usr\sap\<SID>\JC<INSTANCE_NUMBER>\j2ee\cluster\server0\bin\ext\security.class\tc_sec_https.jar
    Just set reference to the library in your application-j2ee-engine.xml:
    <reference-target target-type="library" provider-name="sap.com">security.class</reference-target>

  • Help need in Adding External jar files.

    Hi all,
    Iam developing ADF application using JDEV 11.1.1.3.0.
    I need to move files from one directory to another so i have used external jar "commons-io-1.4.jar" file.
    i did this by going to the project properties -->Libraries and Classpath -->Add Library
    added the jat file.
    In java class i have used the function
    File.copyFileToDirectory(reQueueFile, TargetLocation,false);
    it was working fine when i tried in IntegratedWeblogic server but when i deploy in Standalone Weblogic server its not getting the jar file.
    Its throwing me the exception
    javax.el.ELException: java.lang.NoSuchMethodError: org/apache/commons/io/FileUtils.moveFileToDirectory(Ljava/io/File;Ljava/io/File;Z)V
    at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)
    Please let me know is there a way of adding the lib to the project.
    Regards,
    Suresh kumar.k

    First you should check that the library has the checkbox 'Deploy by default' is checked for your library.
    The you open the project properties of the view controller project, select Deployments, edit the deployment descriptor. Select the Node 'File Groups'->'WEB-INF/lib'->'Contributors'. this should give you a list of libraries your project uses. Check if your library has the checkbox checked (is selected fro deployment). If it's not checked, set it.
    This should include the library.
    Timo

  • OAF-UCM integration - Issue in deploying RIDC.jar to EBS server

    Hi ,
    We are doing OAF-UCM integration with followng business scenario and need your help urgently.
    Business Scenario :
    We have custom OAF pages with OA train and and in one train link we have added 'managed attachment' button to open UCM page to add documents to DM server .
    We are successfully able to do integration of OAF to UCM , that is we are able to open UCM page on clicking Managed attachment button.Business agreed that OAF and UCM are two different applications so after transaction is completed in  UCM, at OAF we have refresh button which user has to clicked explicitly to pull document metadata ( lilke PDF URL etc) to OAF pages.
    This is data needs to stored in EBS tables as well , to achive the same we are using RIDC mechanism to PULL the data stored corresponding on 1 unique metadata.
    I m successfully able to integrate the PULL( Sychnonizaton) of data on click on refersh button of OAF page. RIDC ( UCM version 11g) is correctly configured in Jdev10g and working fine on local oc4j server,
    Problem :
    When this RIDC is jar is deployed in EBS server  I m getting following error -
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.NoClassDefFoundError: oracle/stellent/ridc/IdcClientException
    We have added RIDC jar(actual physical path is =/APPS/XXXXXXX/common/java/)   file name in jserv.properties and also added in CLASS PATH
    # Custom classpath
    wrapper.classpath=/APPS/XXXXXXX/common/java/oracle.ucm.ridc-11.1.1.jar
    Appreciate if some can provide pointers how to deploy this external jar file (RIDC.jar) and avoid this error.
    Many Thanks ,
    Ashish

    Ok, Figured out the issue,
    Values in the OAF_AXF_CMD_PARAMS table was not matching with the actual attributes on the OAF pages. The four values
    Entity Name, Primary Key, View Object and Attributes are to be entered for each page where we are intending to have the MA button.
    Thanks,
    Rajiv.

  • External Jars referencing error

    I followed all the following steps which were discussed in forum to referencemy 9 external jars, my DC build was succeded in NWDI and has been deployed onto portal server. I got error message "DeploymentException:Clusterwide Exception:Failed to prepare application.....check the reference....." while running that ear file from portal.
    Steps i followed to reference external library:
    1) Created externallibrary DC, plces jars and made them as public (<b>here i made one public part for all jars, do i need to create different public part for different jars)...</b>
    2) Created library DC and added the above DC as used dc for build time and runtime reference,then deployed onto server i can see the service in visual admin with alljars in it.
    3) Created webdynpro DC and added above library DC as used DC, I added library reference tooo, build was succeded and above getting runtime error. <b>Iam giving the exact reference which is copied from visual admin.</b>
    I removed the library reference but iam still getting the same error.we running on NW'04s SP8,Any help is appreciated.
    Thanks,
    Damodhar.

    Hi Damodhar,
    Please check the posting
    https://forums.sdn.sap.com/click.jspa?searchID=216037&messageID=2563001.
    from the posting::
    "you need public part with type "compilation". Also you need to open project properties, go to "Web Dynpro References -> Web Dynpro Application" and add run-time reference to DC that exposes component"
    Regards, Anilkumar

  • DownloadService.loadResource for external jars for 1.6.0-19+

    First, be kind with my english, i'm french (nobody's perfect...)
    I have a JNLP into which i declare a signed jar resource main.jar. This application retreive at execution a list of signed jar names (+a.jar, b.jar+...) that i dynamically load on my need through DownloadService.loadResource. My a.jar, b.jar are cached and it rules! But if i made a new main.jar, a.jar and b.jar, and deploy them on my server, here what's happend:
    - main.jar is tested for modification date on server (thanks to "If-Modified-Since" HTTP header), cache date is before this date, so JWS update main.jar by downloading this new main.jar. This is the behaviour described into specs and it is perfect for me!
    - but for others resources (a.jar, b.jar) i was excpected the same behaviour but JWS does not seems to check for modification date. So a.jar and b.jar are not updated.
    So my first question: Is there a way to tell to DownloadService.loadResource to check for modification date? i could deal with jar version but this basic date checking was great for me...
    Except this cache minor problem, external jar download works just fine except i get the warning security problem [Mixing Signed and Unsigned Code |http://java.sun.com/javase/6/docs/technotes/guides/jweb/mixed_code.html].
    All my jars are signed with the same certificate, so i was a bit confused.
    Anyway, i follow indications and put the Trusted-Only: true attribut into the manifest of main.jar.
    But it leads to this exception:
    java.lang.SecurityException: Trusted-Only loader attempted to load sandboxed resource from http://monserveur/a.jar
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at my.package.a$5.run(a.java:348)
         at java.lang.Thread.run(Unknown Source)I found some posts that deal with similar problems but it does not give me a working solution. The difference seems to be the fact that i load external jars (not defined into JNLP).
    My JNLP is validated though JaNeLA.
    I cannot set a.jar, b.jar as resources into jnlp because i retreive their location during execution...
    My JNLP also declare:
    <security>
            <all-permissions/>
    </security>I think i'm a bit confused with the sandbox notion and the Trusted-Only: true attribut of the manifest. I also tried to add it to a.jar, b.jar and not main.jar but vainly. I also tried to set it on all jars but it does not work better.
    Is there a way to load external jar without having the Mixing Signed and Unsigned Code warning popup? What do i not well understand?
    Sorry to be so chatty...
    Thanks in advanced for any answer.

    So, I finally succed in finding a solution.
    But this solution seems perhaps a barbarian way to solve my problem but it works.
    The idea (as far as i understand) is that when you define "all-permission" into JNLP file, then these permission are granted for JNLP ClassLoader. When you load external jar through DownloadService.loadResource, then another classloader is used. It seems that this classloader does not inherit security policy from JNLP ClassLoader.
    My solution is to define my own policy:
    Policy.setPolicy(getAllPermissionPolicy());
        * @return a {@link Policy} with all permission granted
       private Policy getAllPermissionPolicy()
          Policy policy = new Policy() {
             private PermissionCollection m_permissionCollection;
             @Override
             public PermissionCollection getPermissions(CodeSource p_codesource)
                return getAllPermissionCollection();
             @Override
             public PermissionCollection getPermissions(ProtectionDomain p_domain)
                return getAllPermissionCollection();
              * @return an AllPermissionCollection
             private PermissionCollection getAllPermissionCollection()
                if (m_permissionCollection == null)
                   m_permissionCollection = new AllPermission().newPermissionCollection();
                   m_permissionCollection.add(new AllPermission());
                return m_permissionCollection;
          return policy;
       }For sure, you can decline this with permission you need. Here, all permission are allowed.
    I'm not quite satisfied because it's seems to be a barbarian style solution. But for now, it fits my uses => no warning popup!
    If anybody has a more proper way to deal with such an issue, i'll be glad to hear it!
    Hope it helps.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Activation failed: Missing external jar

    Hi,
    I'm using an external jar in my WebDynpro development for ESS. I placed this jar file in the lib folder. Everything works fine when deploying to the development server directly.
    During activation, i got the error which describing the imported classes from the jar file cannot be found. I'm confirmed this jar file was uploaded into the open activity prior to the activation.
    How to solve this problem?
    Any help would be highly appreciated. Thanks.
    - julius

    Hi julius,
    if you want to use a class in a jar file in your WebDynpro Development DC, you have to do the following steps:
    1) create a external library component , copy your jar file into the library folder
    2) creating two public parts one of the type assembly the other one of the type compilation
    3)create a j2ee library component and use the Public part of type assembly from step one as used component. Build and Deploy that component (sda file) to your server.
    4)In your WD DC use the PP from step 1 of type compilation, build the DC -> then you can use the classes of yor jar file.--> Organize Imports
    5)Last step: navigate to the properties of your WD project-> select Web Dynpro References -> select Library references and perss add. Enter the name of the j2ee library component ( this is for runtime dependency)
    regrds
    Martin

  • ADD EXTERNAL .JAR

    Good morning.
          I need to add an external library to my project. The library is the Apache POI (http://poi.apache.org/). Anyway, I do not know how to do it because it gives me many problems. I tried modifying the classpath and placing it in the lib folder of the project from "Navigator". Also project properties, add. jar outside, and throws me the following error:
    The project not was built STI Since classpath is incomplete. Can not find the file class for java.lang.Iterable. Fix the classpath Rebuilding Then try this project. "LocalDevelopment ~ name ~ vendor."
    Also this:
    Indirectly this compilation unit references the missing type java.lang.Iterable (typically Some required class file is referencing a type Outside the classpath).
    Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
    I read the following link:
    /people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
    but my version is 2.0.14 NetWeaver. On the other hand, did not understand because they do not know how to add "External Library DC. "
    Infinitely appreciate any help. Thank you very much.

    I'm trying to work with POI that can be found in http://poi.apache.org/. The. jar I'm adding are
    commons-logging-1.1.jar
    junit-3.8.1.jar
    log4j-1.2.13.jar
    poi-3.7-20101029.jar
    poi-examples-3.7-20101029.jar
    poi-OOXML-3.7-20101029.jar
    poi-OOXML-schemas-3.7-20101029.jar
    poi-scratchpad-3.7-20101029.jar
    Of the code is
    HSSFWorkbook HSSFWorkbook book = new ();
    / / Create a sheet inside the book
    HSSFSheet libro.createSheet leaf = ();
    / / Create a row within the sheet
    HSSFRow row = hoja.createRow (0);
    / / Create a cell within the row
    HSSFCell fila.createCell cell = ((short) 0);
    / / Create the contents of the cell and gets into it.
    HSSFRichTextString HSSFRichTextString text = new ("hello world");
    When I look for the "Organize Imports" I do not recognize any other additional library
    Edited by: Daynet1840 on Feb 26, 2011 3:19 PM

Maybe you are looking for