Using external library jar

Hi everyone,
I am working on a J2EE 1.3 project. I have a external library jar file at, for example, /myproject/lib. My EAR has to access that external library jar. Moreover, the library jar is not self-contained. It has to use the class that stored in the EAR file.
I have seen a lot of articles that talking about using Class-Path attribute in the manifest file but that seem not work in my case.
Could any one have any idea how I can call a external library jar file which is not self-contained under J2EE 1.3 spec? Thank you very much.
Jacky

In J2EE 1.3 there was no portable mechanism for extending the appserver-wide classpath of
a J2EE appserver. However, most appserver's have some way of doing it. You'll need to
consult the documentation of whatever implementation you're using.
However, in that case you cannot have code in the appserver classpath with dependencies on
code in a specific J2EE application. The dependency can only occur in the other direction.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to use external library(in .jar format) in netbeans project?

    How to use external library(in .jar format) in netbeans project?
    Thanks!

    How to use external library(in .jar format) in netbeans project?
    Thanks!

  • Using External Library in a DC problem (SP16)

    Hi,
    I've been trying to get the example that Valery is outlining in his <a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro">Blog</a>.
    I've done it exactly as Valery says, but I can't get it to work. I create the External Library DC, add the jar to Public Part (purpose Assembly) and build. Builds ok.
    I then proceed to creating the J2EE Library. It is created ok. I then add the External Lib I just created to Used DCs. This goes ok. I build the DC. There are warnings:
    Warning: Warning: Source folder does not exist, will be ignored: server
    Plugin initialized in 0.03 seconds
    Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.
    And:
    createDeployArchive:
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sdaprep
           [cda] Creating descriptor server/provider.xml ...
           [cda] WARNING: Ignoring invalid runtime dependency on js/jars (orion.com), type External Library
    I've tried nearly every combination of Dependency Types When adding the used DC to J2EE DC. The jar never ends up in the SDA file in gen\default\deploy or jar in gen\default\public. I only get different types of warnings.
    Here is the whole build.log:
    Apr 7, 2006 8:48:00 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] WARNING: js/lib: built with warnings orion.com/js/lib(MyComponents) in variant "default" (0.753 sec) :
    Build log -
    Development Component Build (2006-04-07 08:48:00)
      Component name: js/lib
      Component vendor: orion.com
      SC compartment: MyComponents
      Configuration: LocalDevelopment
      Location: local
      Source code location: jarpak@UFIES-JARPAK
      DC root folder: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\
      DC type: J2EE Server Component
      DC subtype: Library
      Host: UFIES-JARPAK
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/addLib"
              [dcmake] validating dependency to  public part "Tokenizer" of DC "orion.com/js/jars"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/addLib
              [dcmake] starting build plugin from : C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\
    Build Plugin 'J2EE Library', Version 6.40 SP 16 (630_VAL_REL, built on 2006-02-13 00:17:07 CET)
       development component:  js/lib (orion.com)
          software component:  MyComponents (demo.sap.com)
                    location:  local
                        type:  J2EE Server Component, subtype Library
               build variant:  default
             source location:  jarpak@UFIES-JARPAK
           plugin start time:  2006-04-07 08:48:00 GMT+02:00 (EEST)
                     Java VM:  Java HotSpot(TM) Client VM, 1.4.2_03-b02 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Warning: Warning: Source folder does not exist, will be ignored: server
    Plugin initialized in 0.03 seconds
    Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0 seconds
    Executing macro file..
      Using macro file:     C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\macros\build.vm
      Creating output file: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\logs\build.xml
    Macro file executed in 0.482 seconds
    Starting Ant..
      Using build file:     C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\logs\build.xml
      Using build target:   build
      Generation folder:    C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426
      Using Ant version:    1.5.4
    prepare:
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\deploy
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\int-pp
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sda
    compile:
    createPublicParts:
    createDeployArchive:
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sdaprep
           [cda] Creating descriptor server/provider.xml ...
           [cda] WARNING: Ignoring invalid runtime dependency on js/jars (orion.com), type External Library
    packDeployArchive:
    [srcpacker] Creating source archive
    [srcpacker] No sources available for packing, no archive will be created.
         [timer] Source archive creation finished in 0.02 seconds
        [jarsap] Info: JarSAP version 20041217.1600
        [jarsap] Info: JarSAPProcessing version 20060104.1634 / JarSL version 20060106.1831
        [jarsap] Property jarsap.info.dir is not set.
        [jarsap] Building: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\deploy\orion.comjslib.sda with compression
         [timer] JarSAP finished in 0.03 seconds
    build:
    Ant runtime 0.161 seconds
    Ant build finished with WARNINGS
    Build plugin finished at 2006-04-07 08:48:00 GMT+02:00 (EEST)
    Total build plugin runtime: 0.693 seconds
    Build finished with WARNING
    What am I doing wrong ?
    Kind Regards,
    Jari Pakarinen

    Hi,
    There is an issue with SP16 in using External library DC.
    Go through this Jars not included in J2EE Library DC SDA. This thread deals with the same issue.
    Hope this helps.
    Regards,
    Rathna.

  • Using External Library in Mobile Web Dynpro Offline

    Hi all,
    i would like to use a jar in a Mobile Application for Handheld and i followed the steps from the wiki "Using External Library in Mobile Web Dynpro Offline" at
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/usingExternalLibraryinMobileWebDynpro+Offline
    >How to use External Library in Mobile Web Dynpro Offline
    >For using external jar in local deployment scenario, one can do following:
    >1. In the dc where jar has to be used, add the jar as external jar classpath entry. It can be done via <dc> > (Right-click)> properties->Java Build Path->Select "add external jar".
    >2. Do the programming using the jar.
    >3. Shut down the mobile client.
    >4. Copy the jar in the "lib" folder of mobile client installation.
    >5. Deploy the application in the IDE.
    >6. Run the application.
    >In 5, the jar will not deployed and will be picked from the lib folder during 6.
    >...
    >Note: This will work on and after SAP Net Weaver CE 7.1 SR3 with Mobile plugins from CE 7.1 SR3 (and after).
    i get a error at the deployment with the message "...package myres does not exist...":
        >echo:     C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5gen_oca
          >echo:   class path:  C:Program FilesSAPIDECEeclipsepluginscom.sap.tc.ap_2.0.1.080222142948compXOCADCssap.com     cmobileocaapi\_compgendefaultpublicapilibjavasap.comtcmobileocaapi~api.jar
          >echo:   output dir:  C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5classes
         >javac: Compiling 16 source files to C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5classes
         >javac: ERROR: C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5gen_ocacomsapdemoemployee_scserviceimplEmployeeService.java:8: package myres does not exist
         >javac: ERROR: import myres.TestA;
    there is only sap.comtcmobileocaapi~api.jar in the class path and myres.jar was not added.
    how can i fix my problem or does the steps in the wiki not work yet for SAP Net Weaver CE 7.1 SR3 with Mobile plugins from CE 7.1 SR3 ?
    Thanks,
    Ismet

    Hi,
    1) in Development Infrastructure Perspective -> rightklick in Navigator/Projekt Explorer  -> new Project  -> (Development Infrastructure)  Development Component (DC).
    NWDS generates Project Ressources e.g. the folder "libraries"
    2) copy the jars to the "libraries" folder.
    3) rightklick on the newly created Development Component (DC) ->  Development Component -> Show In ->  Development Properties -> go to the Tab "Public Parts",
    in -> "Defined Public Parts" -> klick on Button "Add" -> give a name for "Public Part" -> at "Purpose" select "Compilation" -> Finish.
    rightklick on the newly created Public Parts -> select  "Manage Entities" and select the jars you want to use -> Next -> Finish.
    4) switch to the Mobile Apps for Handhelds Perspective ->  in Development Component  select e.g. the Service Component or the UI Component ->
    rightklick ->  Development Component -> Show In ->  Development Properties -> got to Tab "Dependencies" -> klick on Button "Add"  -> under the Node MyComponents -> select the newly created Development Component with the Public Parts/jars (that was created in 1 - 3).
    thats all, now you can deploy your application
    Regards,
    Ismet

  • Using External Library in Web Dynpro - Error

    Hello,
    I want to use an external library in a web dynpro. I use WAS 6.40 SP12.
    1. I have created an dc web dynpro app
    2. I have created an dc external library app
    3. I have importet the jar to the external library
    4. I have published the jar as public part
    5. I have imported the public part to web dynpro
    If I build the project I get no error. If I deploy an run the project then I get an error stacktrace:
    java.lang.NoClassDefFoundError: com/sap/netweaver/bc/rf/util/uuid/UUID
    NoClassDefFoundError - I think the jar-file was not deployed. What is wrong?
    Greetings
    Thomas

    Hi THomas,
    Please explain how you are adding the jars into the publicpart of the Libary DC.
    You need to create 2 public parts .
    1. Assembly
    2. Compilation
    You need to add your jar to above two public parts.
    Then you need to add above two publicparts to your webdynpro application.
    Regards, Anilkumar

  • 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 library in EAR deployed onto J2EE engine

    For certain reasons some classes in .jar file in operation system level should be used in the EAR project I've deployed onto J2EE Engine.
    Can some one tell me what steps I should perform to acheive this?

    hey there,
    Think im already late for this... but it may be useful to someone who reads this forum later.
    I am struggling with exactly the same problem for the past more than 24
    odd hours now. The sad part - Im sure I have seen this being done in a
    matter of a few minutes when my team mate had an older version on NWDS.
    (I am currently using SP16 NWDS). May be this indeed is a bug that SAP
    needs to fix in its SP16 NWDS release.
    I need to use the HSSF POI libraries for my webdynpro components and
    have been trying ALL possible options given out here on SDN. To mention a
    few, I have tried -
    1) Jarrod's method of making a Java DC and then declaring a usage
    dependency for it inside a J2EE Server (library) DC. It didnt work... it
    gave me a warning that an illegal reference has been made to the runtime
    public part. And the final SDA file generated in the J2EE server
    component DC DIDNOT contain the jar files that I had added to the public part
    of the Java DC. On investigating further, I found that there were NO
    entities present in BOTH the public parts of the Java DC, even though the
    folder actually contained all the required .jar files.
    2) Creating an External Library DC, adding the JAR files to the
    'libraries' folder. Creating two public parts, one for assembly and the second
    for compilation. Then adding this DC as a 'Used DC' into a J2EE Server
    (library) DC. Yet, the .sda file that is created on building the J2ee
    Server (library) DC DOESNOT contain the JAR files.
    3) Creating an external library DC, adding the JAR files to the
    'libraries' folder. Creating two public parts, one for assembly and the second
    for compilation. Then adding this DC as a 'Used  DC' into a webdynpro
    DC. On building this webdynpro DC, the .ear file DOESNOT contain the JAR
    files.
    4) Directly adding the JAR files to my own webdynpro component in the
    'src/packages' folder. This didnt work because on rebuilding the
    project, the JAR files get deleted on their own.
    5) Renaming my .JAR files to .ZIP, extracting the entire package
    structure into folders, copy pasting this entire folder structure along with
    its .class files into the src/packages folder. On rebuilding, the NWDS
    deletes these folders and files on its own / behaves erratically. Also
    copy pasted these .class files along with the proper package structure
    into the '/bin' directory of my webdynpro application, but it still
    didnt work.
    The only thing that I have to try yet is to shift to SP10 of NWDS,
    build this external library project and get the required JAR files put on
    the wendynpro server. After that I might choose to get back onto the
    SP16 version and hopefully continue productive work... !
    Regards,
    Navneet.

  • Using external Library like iText

    Hi everyone, first of all i would like to thank all you guys because this forum help me so much, i´m new to webdynpro and i´m facing this problem, (this is my first post)  . . . all i want to do is to "deploy new archive and run" and see my app running.
    I ´m using the iText .jar in my DC Webdynpro project, i followed this blogs but to me is very confusing because it seems that are to many ways to do that, but nothing results to me.
    /people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    this are the two main solutions i tried.
    1.- Create DC Library
    2.- add .jar to libraries folder
    3.- add to public part (the two ways, assembly and the other one)
    4.- build
    4.- Create J2EE library DC
    5.- Add to Used DC the two public parts of the DC Library
    6.- Build & Deploy
    7.- I don't see any .jar in my deploy folder
    8.- I see the new library in Visual Admin
    9.- Add to Used DC of my DC Webdynpro the j2EE public part
    10.- I cant deploy and run my app
    1.- Create DC Library
    2.- add to public part the assembly and the other one
    3.- build
    3.- Add to used DC of my webdynpro app , the public parts of the DC library
    4.- I have the hints, the class definitions but when i click deploy new archive and run
    the deploy stops with errors.
    i really want to know what is the problem behind this because i only try all the blogs solutions but with no knowledge behind, and i´m expecting some results following the solutions like a recipe.

    Hi ,
    To user iText .jar in the webdynpro java project,  you need to do the following steps :
    1.- Create a project of type external DC Library.
    2 - add iText.jar to libraries folder.
    3.- create new public part of type "Compilation" by selecting the option 'Provides an API for developing/compiling other DCs'  and the compilation
    create a new public part of type 'Assembly' by selecting the option 'Can be packaged into other build results (e.g. SDAs)'.
    4.- Then navifate to the "navigation perspective" and expand the External DC project and navigate
          to folder "def" and open the files with .pp ext. Then add the following piece of code in the "entities"    tag in both the files.
                 <entity>
                   <name>itext.jar</name>
                   <package></package>
                   <caption>itext.jar</caption>
                   <description></description>
                   <entity-type>Archive</entity-type>
                   <entity-sub-type>Java Library</entity-sub-type>
              </entity>
    5.- Then build the project and release the activity.
    6.- Add to used DC of my webdynpro app -
    Choose 'DC Metadata' under your WD DC and navigate to 'DC Definition' --> 'Used DCs'. Right click 'Used DCs' to add the DC usage relations. In the 'Add Dependency' wizard, choose 'Local Development' --> 'My Components' --> Used DC --> 'Public Parts'. Select both the pulic parts ExternalLibCompilation and ExternalLibAssembly and check the dependency type 'Build Time' for ExternalLibCompilation, and "Build Time & Run Time" for ExternalLibAssembly and then click 'Finish'.
    7.- Finally, 'Build' the WD DC, so that all the declared dependency relationships gets well established. Thus far we've seen the approach for solving the problems related to the usage of External Library DCs.
    Hope the above mentioned process helps you to solve the prob.
    Thanks
    Ritushree

  • Problem using External Library DC

    Hello,
    First of all, I'm a java programmer kind of new to NWDI. I'm working on a Java DC that's meant to send e-mails which of course uses the JavaMail API, so I understand I have to add to my SC another DC of type External Library that contains the jar files I need. Here is where it all falls apart. I have followed step by step several possible solutions to this and still gettin' the "import cannot be resolved" error message in my Java Perspective. The procedure I'm using is the one described in this thread:
    Re: External Library DC question
    Can anyone help me out with this? I'm using NWDS 7.0.14
    Thanks in advance...

    HI,
    That post was to big. so without reading it im posting.
    1 create a library DC.
    2.Add the jar files in it.
    3. create a public part of type API and SDA.(use SDA if you want to deploy it with the project(just like an add external jar file) or use API part (if you want to use it as add jar file option))
    4. use that public part in you DC.
    5. use add jar option in your build path.
    if you have done these an having an error please tell me at what step you have a problem

  • Debugging in "strict mode" while using external library assets

    Hi everyone. A new ActionScript-3 user here with a question on strict mode.
       I have multiple Flash pages which use the same art assets. To support modularity and possibly decrease total download time, I have implemented this by placing the shared assets into the library of a shared .swf file (the other .swf files all load this shared .swf file). The shared .swf contains ActionScript routines to place instances of the assets onto the stage and to perform other common functionality.
       A drawback to this strategy is that, correct me if I'm wrong, "strict mode" can not be used to debug calls to functions which exist in external .swf files. That is, if the parent .swf makes a call to a function which is defined within an externally loaded .swf, that function call will be reported as an error in strict-mode because Flash is unaware of the contents of an external .swf at compile time (though it is aware at run-time.)
       My understanding is that shared code can be compiled under strict-mode if the shared code exists purely as an external .as file, not as an external .swf file. However, again please correct me if I'm wrong, art assets which are shared at run-time must exist in an external .swf file. Therefore, by my understanding, if run-time shared assets are desired, then strict mode will not properly compile the projects.
       Is my understanding correct?
       Thanks for any help,
         - Rashid

          Posting an update.
          I have since found a way to compile in strict mode a project which loads an external .swf and acesses its functions. This external swf is able to have a library of its own which is accessed in the external swf's own ActionScript.
          Unfortunately, the solution I have found increases the size of the project's compiled swf. If anyone knows of a way to solve this problem without increasing swf size, I would be quite grateful if you were to share your knowledge.
          Posted below is the solution I am aware of, which increases file size. In these steps, “main project” refers to the top-level Flash project which is attempting to load other swf's. “External project” refers to an swf which is to be loaded by the main project.
    1) Publish the external projects as swc files. “Swc” is a class file, and is to be accessed by the main project when debugging under strict mode. The .swc presumably contains information about external project's library items which are to be exported for ActionScript.
          To create an .swc file, head to “File->Publish Settings...->Flash”. Check the “Export SWC” box.
    2) In the main project, add the external projects' .swc files to the external library path. This is found in, “File->Publish Settings...->Flash->Settings->External library path”. Either individual swc files can be added here (via the SWC file button) or the name of the directory where they reside (via the Path button). Both approaches should work.
    3) Somewhere in the main project's ActionScript, the external project is likely being loaded via a line of code similar to myLoaderObject.load( myURLRequest ). For this new approach, it is now necessary to make use of the second parameter to load(), the loader context. Here's the new line of code:
    myLoaderObject.load( myURLRequest, new LoaderContext( false, ApplicationDomain.currentDomain ) );
          If the LoaderContext parameter is NOT passed, then Flash unfortunately shall not report this as an error. Instead, you may observe strange behavior when the external swf attempts to use its exported library items.
    4) If the main project's code refers to the external project's class by name, then that class will need to be “import”ed into the main project's code. Without this, the compiler will complain about not recognizing the class.
    5) In the main project, edit  “File->Publish Settings...->Flash->Settings->Source path”.  Add the path to the external project's .as class file. Without this, the main project shall give a run-time error of not being able to find the external class.
       This final step, 5, is what increases the size of the main project's swf. I have a project with a few nested .swf loads, and the main project's swf increased by about 10Kb when using this solution.
          This does not seem proper. That is, one would desire the sizes of the final swf's to remain unchanged regardless of the level of compile-time error reporting. If my interpretation of an .swc class file is correct, then it seems logical to presume that step 5 above should not even be necessary, because the class information is given to the compiler/debugger through the .swc.
       Anyone know what I am doing wrong, or otherwise how to get around this problem?
       Thanks bunches.

  • Using external util JAR from Session EJB

    I have a Stateless Session EJB that uses some classes packaged in a utility jar. How do I package the EJB jar with this util jar, and get the app server to recognize this utility jar? including a /lib dir with the utils jar in it, like you would with a WAR, doesn't work.
    I've temporarily got this to work by modifying the startup scripts for my app server to ensure my jar is included in the -classpath arg, but this cannot be the intended way. (cannot find details on this in the tutorial).
    Thanks in advance!

    Well, the answer depends a lot on which appserver you're using, because it obviously depends on how the vendor implemented the containers' ClassLoaders. What usually works is dependent upon a portion of the JVM spec regarding the MANIFEST.MF file. If you package your ejb.jar and library.jar in an .ear file, you can put the following in the ejb.jar MANIFEST.MF:
    ClassPath: library.jarNote that there must be at least one blank line at the end of the MANIFEST.MF file.
    This works on WebLogic, but, as an example, JBoss uses a single ClassLoader, so I'm not entirely sure how you'd go about the same thing there.
    And you're quite right - putting it in the JVM ClassPath is not a good idea...

  • Not able to use external library DC in NW 7.0

    Also refer steps in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b7199b?QuickLink=index&overridelayout=true

    Hi Saurabh,
    I followed the steps from the link you had mentioned. When I am trying to deploy the Enterprise Application DC which is the last step in the document, I am getting the below error:
    Result
    => deployment aborted : file:/C:/DOCUME1/NETWEA1.HUL/LOCALS1/Temp/temp121535821949879994com.hul.testpdfjee_ea.ear
    Aborted: development component 'pdfjee_ea'/'com.hul.test'/'local'/'20111214163609'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/pdfjee_ea.ear. Reason: None of the available containers recognized the components of application com.hul.test/pdfjee_ea; it is not possible to make deploy.  Most commonly used containers do not recognize the content of the application. Please contact the application vendor for details. (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Request you to help me in finding out what could have gone wrong.
    Regards,
    Saurabh

  • Problem with external library DC

    Hi,
    I am working on NWDS Version: 7.02.06.
    I am trying to use JXL jars in my DC and have used the blog /people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components to achieve this.
    My problem comes at the last step. When I add the Library refernce in my WD DC, i give sap.com~hkjecomp. Sap.com is my vendor and hkjecomp is the JEE (Library type DC) wrapping the External lib DC.
    When I deploy the WD DC, it deployed with warnings and a cluster wide exception :
    Aug 5, 2011 5:41:12 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [011]Deployment finished with warning
    Settings
    SDM host : sapdapp1
    SDM port : 53918
    URL to deploy : file:/C:/DOCUME1/hkandpal/LOCALS1/Temp/temp28228sap.com~hktest02.ear
    Result
    => deployed with warning : file:/C:/DOCUME1/hkandpal/LOCALS1/Temp/temp28228sap.com~hktest02.ear
    Finished with warnings: development component 'hktest02'/'sap.com'/'local'/'20110805174050'/'0':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application sap.com/hktest02 and wait. Reason: Clusterwide exception: server ID 398344750:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application sap.com/hktest02 for startup. Reason=Clusterwide exception: Failed to start dependent library ''sap.com~hkjecomp'' of application ''sap.com/hktest02''. Status of dependent component:  STATUS_MISSING. Hint: Is the component deployed correctly on the engine?     at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1507)     at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)     at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171)     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301)     at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342)     at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126)     at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245)     at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4741)     at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4646)     at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4619)     at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)     at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330)     at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201)     at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(Native Method)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    While trying to add the Library reference, I have also tried with sap.com/hkjecomp.
    I have asked the basis guys to find out if the JEE application is running or not, but meanwhile can someone suggest if anything else could have gone wrong.
    Thanks,
    HImanshu

    Hi,
    Please check below link on how to use external library in Web Dynpro.
    [http://www.sapgeek.net/2010/10/web-dynpro-java-use-external-library/|http://www.sapgeek.net/2010/10/web-dynpro-java-use-external-library/]
    And you can find more information on Web Dynpro from here:  http://www.sapgeek.net/sap-tutorial/web-dynpro-java-tutorial/
    Regards,
    Andy
    Edited by: Andy Zhao on Aug 6, 2011 1:47 PM

  • How to use a jar from a external library DC Project?

    I followed the steps of how to create DC, External Library Project, which contains the jar I want.
    I understood that this type of project can't be deployed so I build and deployed other DC Project from the type J2EE server component Library and added it to it's public part. What do I do next, to actually use the jar and it's imports?
    Thank you,
    Meytal.

    Hi,
    Check this:
    Making a JAR file publicly available
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • Adding Libraries & External Library DC - Not able to import JAR Files

    Hi,
    I am trying to import the jar files to development environment.
    The JAR file was added by following the steps mentioned in below blog :
    /people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
    Please find the error log below :
    20100728065650 Info   :connected to deploytool via sdm protocol
    20100728065651 Info   :deploy every archive associated to the buildspace: DP1_MSSTRK19_D
    20100728065651 Info   :getting DC mss/eepro/salarydata from CBS for buildspace: DP1_MSSTRK19_D
    20100728065651 Info   :Following SDAs were added:
    20100728065651 Info   :  201007280456510519_sap.com_SAP_MSS_1_sap.com_msseeprosalarydata.sda
    20100728065651 Info   :archives (201007280456510519_sap.com_SAP_MSS_1_sap.com_msseeprosalarydata.sda) for DC mss/eepro/salarydata were selected
    20100728065652 Info   :Start deployment:
    20100728065652 Info   :The following archives will be deployed (on http://sapdp1ci.zrh.swissre.com:53018)
    20100728065652 Info   :/usr/sap/DP1/SYS/global/TCS/DEPLOYARCHIVES/201007280456510519_sap.com_SAP_MSS_1_sap.com_msseeprosalarydata.sda
    20100728065652 Info   :starting deployment
    20100728065652 Info   :errorhandling rule is switched from OnErrorStop to OnErrorSkipDepending
    20100728065652 Info   :prerequisite errorhandling rule is switched from OnPrerequisiteErrorStop to OnPrerequisiteErrorSkipDepending
    20100728065654 Info   :deployment finished
    20100728065654 Info   :errorhandling rule is reseted
    20100728065654 Info   :prerequisite errorhandling rule is reseted
    20100728065654 Info   :Deploy log:
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: Start file transfer to /usr/sap/DP1/JC30/SDM/program/temp/201007280456510519_sap.com_SAP_MSS_1_sap.com_msseeprosalarydata.sda
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: File transfer of /usr/sap/DP1/JC30/SDM/program/temp/201007280456510519_sap.com_SAP_MSS_1_sap.com_msseeprosalarydata.sda finished for 9 ms. Total file size is 1347307 bytes.
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: The SDM client uses an old SDM client API.
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: -
    Starting deployment -
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: Error handling strategy: OnErrorSkipDepending
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: Prerequisite error handling strategy: OnPrerequisiteErrorSkipDepending
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: Update strategy: UpdateAllVersions
    20100728065654 Info   :Jul 28, 2010 6:56:52 AM  Info: Starting deployment prerequisites:
    20100728065654 Info   :Jul 28, 2010 6:56:53 AM  Info: Loading selected archives...
    20100728065654 Info   :Jul 28, 2010 6:56:53 AM  Info: Loading archive '/usr/sap/DP1/JC30/SDM/program/temp/201007280456510519_sap.com_SAP_MSS_1_sap.com_msseeprosalarydata.sda'
    20100728065654 Info   :Jul 28, 2010 6:56:54 AM  Info: Selected archives successfully loaded.
    20100728065654 Info   :Jul 28, 2010 6:56:54 AM  Error: Unresolved dependencies found for the following SDAs:
    20100728065654 Info   :
    20100728065654 Info   :1.: development component 'mss/eepro/salarydata'/'sap.com'/'DP1_MSSTRK19_D'/'31236'/'0'
    20100728065654 Info   :dependency:
    20100728065654 Info   :       name:     'temp/jxljar1'
    20100728065654 Info   :     vendor:     'swissre.com'
    20100728065654 Info   :
    20100728065654 Info   :There is no component either in SDM repository or in Deployment batch that resolves the dependency.
    20100728065654 Info   :
    20100728065654 Info   :Deployment will be aborted.
    20100728065654 Info   :Jul 28, 2010 6:56:54 AM  Error: No Software Component Archive (SCA) or Software Delivery Archive (SDA) selected. Select at least one.
    20100728065654 Info   :Deployment will be aborted.
    20100728065654 Info   :Jul 28, 2010 6:56:54 AM  Error: Prerequisites were aborted.
    20100728065654 Info   :Jul 28, 2010 6:56:54 AM  Error: Error while creating deployment actions. No Software Component Archive (SCA) or Software Delivery Archive (SDA) selected. Select at least one.
    20100728065654 Info   :Deployment will be aborted.
    20100728065654 Info   :end of log
    20100728065654 Info   :End deployment:
    20100728065654 Info   :
    20100728065654 Info   :Summary of deployment
    20100728065654 Info   :==> deployment finished for mss/eepro/salarydata (28979) with rc=12
    20100728065654 Info   :deployment finished for buildspace: DP1_MSSTRK19_D
    Please let me know how to fix this issue.
    Thanks in advance.
    Thanks and Regards,
    Rashmi

    Rashmi,
    Following observations from the error log:
    a)  DC temp/jxljar1 is External Library DC; if I am not wrong.
    b) Once the J2EE DC is deployed; automatically jxljar1 should also be loaded in server
    Coming to the issue you are facing; plz let us know following points:
    a) Are you trying to transport the content from one landscape to the other i.e. development to QA?
    b) During what operation and in which unit(DTR/CMS/CBS);you are facing the issue?
    Regards,
    Ganga

Maybe you are looking for

  • Error in installing MySap 2004s SR1 with DB2 and IBM AIX.

    Hello Gurus, I am installing MySap 2004s SR1 with DB2 and IBM AIX. I am facing the following error : <b><i>ERROR 2006-11-08 18:33:01 MDB-01101  Installed Software Level '08.02.0002' is insufficient for this installation ...</i></b> <b><i>ERROR 2006-1

  • Printing using dot matrix printer,problem with landscape printing

    Hi all, We are planning to use Dot matrix printers for printing through SAP.We do front end printing using Windows OS. I am able to get prints properly if it is a script form. In case of list outputs, printer is printing the text outside the paper.On

  • Help with only allowing someone to fill or edit a pdf form twice

    I need to make a pdf form. This form I would like the customer to only be able to fill it out and save it one time. No printing. The form will be on a usb drive. I then need the same thing but be able to fill or edit the form twice and five times. Bu

  • Hiding screen fields

    m using PNP selection screen. i want to hide some of these fields. how can i do it.

  • Applying filters to a nested sequence

    Hey guys. This is probably simple, but anyhow, here goes. I'm on a powermac g5 with Final Cut HD. I've layered video material and then nested it to create a single video layer which is easier to handle. I then want to apply further filters to the nes