NWDS SPS 09: Jars not in external Library - Patch available?

Hello experts,
I am facing the problem described here:
https://forums.sdn.sap.com/click.jspa?searchID=131779&messageID=2755058
The result of the discussion is that the jars not being included in the external library is a bug of NWDS SP 9.
Is there already a patch available? I searched throught Service Market Place but there is only a patch for Developement Infrastructure (DI Build Tool).
Thanks for help,
Enrico Lenk.

Hi Maksim,
Here you are the content of application-j2ee-engine.xml from EAR project
<?xml version="1.0" encoding="UTF-8"?>
<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">
</application-j2ee-engine>
And just in case, content of ejb-j2ee-engine.xml from the EJB project
<?xml version="1.0" encoding="UTF-8"?>
<ejb-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ejb-j2ee-engine_3_0.xsd">
</ejb-j2ee-engine>
Libraries i'm using are: mdm-admin.jar, mdm-common.jar, mdm-core.jar, mdm-data.jar, mdm-extension.jar, mdm-protocol.jar and mdm-publishing.jar
Not sure what's the prefered option, if use these libraries as external jars or add to my project as dependency
Thanks a lot in advance
Pablo

Similar Messages

  • Help!! I Can not deploy external library to the J2EE Engine!

    I'm trying to create a J2EE Library DC that contains a few jar files that I want to deploy to the J2EE server for usage by a set of test classes.
    I created an external library DC, imported a jar file into the libraries folder, and added the jar file to a public part that has selected option "provides an API for Developing/compiling". I then built the DC Successfully.
    Then I created a J2EE Library DC, and added the external library DC as a used DC, with a build and run time dependancy, and I created an entity reference to the external library DC's public part.
    When I build the J2EE Library DC, the jar file are not included in the SDA file. Nothing I've tried can get the jar file to be placed in the SDA file for deployment.
    Why is the jar file not in the SDA? What am I doing wrong? I've spent the last while reading everything I can find on SDN about j2EE Library DCs, and it seems that I'm doing everything correctly - or am I?
    I'm running 7.00 SP9 . Can someone verify that a) my procedure above is correct, and b) that this does work under 7.00 SP9 ?

    a) the runtime dependency from the J2EE library to the external library is not necessary and will be ignored during build. There may be a warning in the build log about incompatible runtime-types, but I'm not sure if that warning exists in SP9.
    b) see Pascals latest answer regarding a patch for this issue.
    Regards,
    Marc

  • 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]

  • Executable jar referring to external library

    dear reader,
    I developed a swing tool which uses xml generated by xerces for socket communication contents. I'd like to the classes that I made to an executable jar.
    Just making executable jar file is simple. I followed the guide on the web.( thanks you all guys for that).
    However, once the jar file need to refer to xerces to generate xml file, it fails to refer to the library which is located as './lib/xerces**.jar'.
    './' means the location that my jar file is located.
    the purpose of this system is a run in any OS.
    Actually I found a way of using Ant. and using manifest file.
    In the latter case, the string "Main-Class = " stop me to set referred path.
    and the former Ant case, I am not sure if the values are validated or i am using the exact tag.
    I tried "Main-Class = test.MainClass", "Main-Class = test/MainClass.class", etc. and even with <manifest .../>, it doesn't work.
    is it possible to refer to external jar file as lib?
    give some clue.
    best regards,
    from moon in the sky...

    Sorry, let me explain a little bit better. I am new to java and eclipse and terminology has never really been my thing but lets try this again:
    I am trying to turn my project into a JAR file. My project needs an external jar (AvayaPushSDKLib) in order to run. I have my code running fine in Eclipse, but the moment I export it, it gives me the "Exception in thread 'Main' java.lang.NoClassDefFoundError: com/avaya/phones/push" followed by several other errors, one of which says "Cause by: java.lang.ClassNotFoundException: com.avaya.phones.push".
    In Eclipse these run fine. Here is the files that are currently in each directory:
    ./Server1.0/
              /server/
              start.jar (I created the jar file here)
    ./Server1.0/server/
              /start/
              MANIFEST.mf
    ./Server1.0/server/start/
              AvayaPushSDKLib.jar
              PushClass.class
              ServerStart.class
              UserInterface.class
              PushClass.java (all .java files will eventually be removed)
              ServerStart.java
              UserInterface.javaI hope this makes more sense. Thanks

  • 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

  • Can't wrap External Library DC project.

    Hi all,
      I do these procedure:
    1. create a External Library DC,
    2. then create two public part : compilation and assembly,
    3. add jars to the two public part
    4. build dc
    5. Create a second DC of type web dynpro
    6. add used DC  compilation and assembly
    7. write my test code use jars added in step 3
    8. build DC
    9,deploy
    After deploy and view in EP, my web dynpro DC can't find jars added by External Library.
    And i can't find external jars in deployed ear file.
    My NW is 7.0 SP9, if someone know which step i have missed.
    best regard

    hi Alka,
      i did the procedure follow the blog, but still not success.
      There is some difference. When i add jars to public part in External Library DC, it do not create ExternalLibs auto, but info creating public part of two choice:
      1. provides an API for developing/compiling other DCs
      2. can be package into other build result(e.g.SDAs)
    and i try the all two choice and add it to u201CJ2EE Server / Libraryu201DDC, it can't succeed. i can not find jars in sda file. jars contained were null when see the "J2EE Server /Library" in visual administrator.
    best regard.
    reefish

  • Problem with DC External library

    Hai,
    I am using 3 DCs .
    1st Dc: is type of external library
    2nd Dc: having the some class files using that libraries(DC type of Wdp)
    3rd DC: is main wdp DC
    I added the libraries in public part of 1st DC . add as a used dc in 2nd DC. Add 2nd DC class files to public part. add it as a used Dc in 3rd DC.
    Its working fine.
    Now i added one more jar file in External library and build it . add some classes in 2nd DC and build it . build the 3rd Dc then Deployed the 2nd and 3rd DCs.
    when i tried to invoke the classes in 2nd Dc it is giving me java.lang.NoClassDefFoundError
    How to solve this ?
    Regards,
    Naga Raju

    Hai,
    I am getting warning when i tried to build the 2nd DC.
    [pppacker] WARNING: Overlapping entity definitions? Ignoring duplicate file: com/abc/ac/AtoR.class
      [pppacker] WARNING: Overlapping entity definitions? Ignoring duplicate file: com/abc/ac/AtoQ.class
    How to solve this warnings
    Regards,
    Naga

  • 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

  • Export JAR from NWDS does not include external JARs imported to project

    Hi.
    I'm need to develop and run a batch java program.  I'm having difficulty getting the application to find the 2 external JARs at runtime.
    For compile time, I have physically imported these 2 JARs into the project.  To add them to the build path, I selected "Add Jar".  I now see the JARs in the project.
    I've also update the Manifest file appropriately by adding this line.
    Class-Path: com.sap.security.api.jar logging.jar
    However, when running the program from the command line, I get class not found errors.
    I noticed that the exported application JAR does NOT contain the needed 2 JARs even though they clearly exist under the project.
    Am I going about this correctly?  Why do external JARs not get included in the application JAR that is created?  Can I somehow force them to be included?
    Thanks,
    Kevin

    Hi Kevin,
    why don´t you just add the two additional JAR files to the classpath at runtime:
    java -cp x1.jar;x2.jar -jar yourJar.jar
    This is the easiest way to start your Java app.
    Have a look at java - the Java application launcher for details.
    Regards Helmut

  • External Library DC does not contain any archives for deployment

    Hi Experts,
    I am currently trying to deploy an external library dc with the required external jars for an EP application.
    However, I am getting the following message when deploying the DC:
    DC dc_lib does not contain any archives for deployment
    I have already created the public parts and added the necessary jars to the assembly and compilation PPs. I have followed the link below:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/006a6229-b1ed-2e10-0c8c-cc5673cf268f?QuickLink=index&…
    May I know if there's anything I have missed?
    Regards,
    Greg

    i deployed both, ear dc successfully deployed but lib dc has the warning above.
    upon checking portal it has exception:
    portalRuntimeException: There is no portal component associated with the following context.

  • Jars not included in J2EE Library DC SDA

    I'm trying to create a J2EE Library DC that contains a few jar files (JUnit and JUnitEE) that I want to upload to the J2EE server for usage by a set of test classes. 
    I created an external library DC, imported the two jar files into the libraries folder, and added both jar files to both a compilation and assembly public part.  I then built the DC.  Great, the jar files are copied into the hierarchy under gen/default/public/assembly and gen/default/public/compliation.  Everything seems to be in order.
    I then created a J2EE Library DC, and added the external library DC as a used DC, with a build and run time dependancy.
    When I build the J2EE Library DC, the two jar files are NOT included in the SDA file.  Nothing I've tried can get the two jar files to be placed in the SDA file for deployment.
    Why why WHY are the jar files not in the SDA?  What am I doing wrong?  I've spent the last while reading everything I can find on SDN about j2EE Library DCs, and it seems that I'm doing everything correctly - or am I?
    I'm running SP16.  Can someone verify that a) my procedure above is correct, and b) that this does work under SP16?
    FYI, I have done this before, but not with SP16 - this is my first attempt.  That said, I've always had problems getting the imported jar files to appear in the final SDA file....it's frustrating to say the least.  DCs are wonderful things, but man, when they don't work, it's a royal pain in the rear end trying to figure out what's wrong.

    Hmmm, perhaps this is part of the problem:  here is the defLib.pp file which is automatically generated when you create a J2EE Library DC:
    <?xml version="1.0" encoding="UTF-8"?>
    <public-part ....>
         <name>defLib</name>
         <purpose>compilation</purpose>
         <caption></caption>
         <description></description>
         <entities>
              <entity>
                   <name>sap.com~test~lib</name>
                   <entity-type>SERVER_COMPONENTS</entity-type>
              </entity>
         </entities>
    </public-part>
    I created a new Server Library DC and changed the purpose to assembly, and then was able to create an entity reference. However, now I get this error:
    createPublicParts:
      [pppacker] Packing assembly public part 'defLib'
      [pppacker] Packed   0 files for entity sap.com~zzz~lib (SERVER_COMPONENTS)
      [pppacker] Packing entity reference zzz/jars (sap.com), assembly:  ()
      [pppacker] ERROR: java.util.zip.ZipException: Access is denied
    (sigh)
    I'm not sure what SP you're running, but perhaps the later SP's understand the structure of External Libraries, and automatically propagate the references for you....at least, that must be what was happening with SP15, since it worked properly.
    I think I'll install SP15 again, and have close look at the generated public parts, and see if I can't detect a difference.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • NOT WORKING: Putting a jar file requiring native library in bootclasspath

    Hi,
    I put my own jar file into the bootclasspath like this:
    java -Xbootclasspath/p:myboot.jar TestClass
    Some classes in the jar require a native library. For JVM 1.3 on Solaris, I put the native library in $JAVA_HOME/jre/lib/sparc and everything works just fine.
    However, when I try the same thing on JVM1.4, I got the following error when my class containing the native methods is called:
    Failed to load the native library: myboot_native
    java.lang.UnsatisfiedLinkError: no myboot_native in java.library.path
    I tried to put that native library in several different directories in jre/lib but still had no luck.
    Is there anybody know the solution? Does JVM1.4 allow me to put a custom jar file that requires a native library in the bootclasspath?
    Regards,
    Eman

    Well is your file in a directory included in the java.library.path environement variable. I use java on windows but I have to add the directory where my native library is to the path variable (not classpath) in order to avoid the error you get.

  • My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pr

    My aperture library lives on an external hard drive that is corrupt and I can not locate the library. I do have it backed up with TM. How do I safely restore the library from TM to my laptop? I am using the newest version of aperture on my macbook pro.

    Hello Sandra,
    The article linked below details how to go about restoring items from Time Machine in Snow Leopard.
    Mac OS X 10.6: Recovering items using Time Machine and Spotlight
    http://support.apple.com/kb/PH6379
    Sincerely,
    Allen

  • How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    File -> Export to a folder and copy it over.
    That will give you a folder with the images. There is no way to move an album outside of iPhoto. You would need to have a library containing it.
    Regards
    TD

Maybe you are looking for

  • FPM - Trying to get it work on Service Pack 13

    I came across the FPM today. Since I had to create a new simple application today I gave FPM a try. Basically my application would contain two views: 1. A tree illustrating a HR organisation structure 2. A table listing documents based on entry selec

  • Submit a Document on a bug workaround in metalink

    Hi All, Recently I did a workaround for an oracle bug. I'd like to publish a document in metalink for our use. Is there is way, where i can publish it in metalink or any other technical site? Cheers, Kamalesh JK

  • Metadata Server says content indexing is disabled, how to enable?

    My Spotlight has been hobbled for some time... I just downloaded and ran Spotless 2, and it says: The Metadata Server is reporting that content indexing is DISABLED for the volume Macintosh HD but the volume itself is reporting that the content index

  • Putting a byte array on the stack

    Hi, How do you allocate a local variable (eg a byte[]) on the machine's stack instead of allocating memory on the heap ? To clarify my question: void foo()    byte[] theArray = new byte[5]; }C equivalent: void foo(void)    u_8* theArray = getmem(5);

  • Sales Plan in SD Module.

    Hai SD Gurus,                        Where Sales plan arrived in SD Module ? How it is transferred to PP Module. Regards, Mohanraju