Import MDM jars to DC

Hi All,
I have created a DC, I want to import a few MDM jar files to this DC. I tried copying the jar files into the lib folder of the DC and then set the path in the java build path, but when I try to build the DC the reference path that was set goes off and throws an error that it is unable to import those jars.
I also tried adding these jars as "add external jar" but it throws the same error saying unable to resolve the path.
Is there specific way we need to follow to add a MDM jar to a DC? The same code worked fine with a normal project, but not working when Iam using a DC. Please advise.
Regards
Suresh

Hi Suresh!
Thank you for your detailed answer. I am developing a Local DC Web Dynpro workflow, using CAF GP.
The system I use: NetWeaver 2004s SP9 (Sneak Preview), and NetWeaver Developer Studio, version 7.0.07.
I also deployed com.sap.mdm.tech.mdm4j.sda which contains all the MDM jar files, but these cannot be reached using DCs as far as I know.
So thats why I need to create another Local DC which contains the MDM jars and after I have created it, I can add it as "Used DC" to my Web Dynpro type DC.
The workflow is going to be displayed on Portal so I need to create Callable Objects. After I got the following document, I started to develop my WD project as DC.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementing a WD CO which Implements the GP Interface</a>
I went through the steps you suggested, after I have built the J2EE/Enterprise Application DC I deployed it. Then I added it to my WD DC as "Used DC" but the build failed, because of errors where the implementation uses the MDM Java API.
Have you any ideas what can cause the problem, or how to solve it?
Could you please tell me the version of NetWeaver, which solved your problem!
Thank you for your help in advance!
Kind regards,
Peter
Message was edited by:
        Peter Ley

Similar Messages

  • How to import a jar file in JSP

    How to import a Jar file in JSP Page.
    please reply its very urgent!

    Hey I am facing a similar problem:
    I have this jar file lbswebservice.jar that I have to use for my application.
    I added it to the classpath, I copied it in my WEB-INF/lib folder, but when I try to access classes in this package, it doesnt work.
    For example the jar contains the package com.blipsystems.lbs.ws.messages.* ; that contains different classes, like the Campaign class.
    I tried to use this class (just to create an object) in different context (through jsp, or just through java test classes), but it never works, i get the error: com.blipsystems.lbs.ws.messages.Campaign cannot be resolved to a type
    I am a bit desperate here...

  • Don't know how to make my main class import a jar file

    OK, the title doesn't make much sense but here are my create-jar.bat and manifest files:
    create-jar.bat:
    jar cvmf manifest.txt dassimul-admin.jar player/ admin/ com/ connector/ common/ *.class
    manifest.txt:
    Main-Class: admin.DASAdmin
    the problem is that in connector/ folder there is the jdbc mysql connector driver (.jar file).
    in Eclipse I can add this jar to the Java Build Path, so the program runs.
    When I double-click the dassimul-admin.jar file, I get a Class Not Found Exception
    C:\MYWORK\dassimul>java -jar dassimul-admin.jar
    FATAL ERROR WHILE LOADING SQL DRIVER: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    I think that the problem lies in the fact that admin.DASAdmin can't see and import the jar file in connector/ folder... am I right?

    It looks like you are putting the mysql jar file inside the dassimul jar. That won't work unless you write custom code. You should use the Class-Path attribute of the manifest to define a relative path(s) to the other jar(s) that you need to use.
    [http://java.sun.com/docs/books/tutorial/deployment/jar/index.html]

  • How to import external jars in a CAF project?

    Hello Experts!
    Could you help me find out the way to import external jars in a CAF project. I have tried to import the jars
    in ejbmodule using "java build path--->libraries". But while trying to build the project it's displaying error and all the imported jars automatically get removed from the list.
    I have read that creation DC of type "External Library" can help me.
    1) Create a DC of type external library
    2) Copy my jars to folder "libraries"
    What should I do next? And how can I import my DC of type "External Library" to my CAF project?
    Looking forward for your suggestion.
    Thanks & Regards
    Vitaly

    Hi,
    This article will guide you how to deploy the external jar files to the application server.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60a0f850-c451-2c10-a6a6-ddcabfa3a65b&overridelayout=true
    Add the library project to the public part of your caf project to use the jar files.
    Regards,
    Gayathri

  • How to import external jar file

    i am using bcprov-jdk14-124.jar file for my project. i can import this jar file through eclipse project properties but this is not worklng when i create jar file for my project. This is worked in eclipse only. i want to use that jar file in my project current path. so any body help me how to import this jar file? ( i am using mac os to develop java project )

    You need to specify the classpath when you execute it outside of Eclipse.
    Kaj

  • Static initialization of java code included in the Imported Archives jars?

    Hi
    Does SAP PI 7.0 support static initialization of java code included in the Imported Archives jars?
    Static block of a java class included in the Imported Archive jars throws a Runtime Exception called ExceptionInInitializationError while trying to run.
    Regards,
    RDS

    Have you tested the code outside PI?

  • MDM Jars in EJB DC

    I have created a EJB DC.
    I have added the required MDM Jar files to the class path.
    But the DC build fails.
    Qn:
    How to bundle the MDM jars in a DC?
    How to create the Public Parts in the DC for the added MDM Jars?
    How to use the above DC in the EJB DC?

    Adhappan,
    This question is basically related to DTR and CBS.  I would sugesst you to look into the NWDI forum, I'm sure you will get perfect answer for the same there.
    Just to point you in the right direction, have a look at the "External Library DC" where you can put your external libraries and create public part and use it into any other DCs.
    or  write me a mail on mausam[dot]kakkad[at the rate]wipro[dot]com, I've got a really good step-by-step guide for the same.
    Thanks and Regards,
    Mausam

  • Import Libraries (jar) into DC Project

    Hi all,
    I want to create a J2EE application with an DC Web-Modul.
    I have to import any jar libraries for other functions (struts.jar etc.). I have imported the library in the project settings:  properties ->java buildpath -> add external jars. But it doesn't´t work. I have also made another dc in which I have import the library. But it doesn't´t work. Could anybody give me some information's how does it work?
    Kind regards
    Axel

    Hi Axel,
    Refer the following thread "Using External JARs in a Web Dynpro Project"
    Web Dynpro Java
    This will be useful for you.
    Regards,
    Santhosh.C

  • Import the jar file of jfreereport to bluej

    i'm having trouble importing the jar file needed to use the jfreereport in bluej.
    as much as possible i don't want to type the SET CLASSPATH in the command window. is there a way to include the jfreereport jar file to be used in the bluej?

    You're doing privileged operations almost everywhere in this applet so you can't use the straightforward calls. At a minimum you need to put your applet in a jar, sign the jar and use AccessController.doPrivileged() to wrap the code which does the privileged operations, which is basically all of your code. In other words, you would need one to wrap your code in init(), one in start(), one in actionPerformed(), etc.

  • Error While adding MDM jars

    Hello,
    I was trying to create a WDJ applicantion for connecting to the MDM system.
    When I tried to add the MDM  jars through "Add External Jars" option in NWDS.
    Also i tried to add through external library and add that in my WDJ application.
    When I tried to build the error: Compilation and build fails. Please see the error message.:
    Compile failed; see the compiler error output for details.
    Can anybody please suggest teh remidy for this
    [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-689,5,main]]
    [EXCEPTION]
    C:\Documents and Settings\mnaraya4\workspace.jdi\LocalDevelopment\t2\F867B35130709687F0871E7D15573434\default\logs\build.xml:244: Compile failed; see the compiler error output for details.
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:114)
         at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:57)
         at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
         at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:403)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:149)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:87)
         at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
         at com.sap.tc.devconf.internal.DCProxyMake.make(DCProxyMake.java:302)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1355)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1337)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:3653)
         at com.sap.ide.dii05.lib.internal.commands.dc.BuildJob.build(BuildJob.java:376)
         at com.sap.ide.dii05.lib.internal.commands.dc.BuildJob.doInWorkerThread(BuildJob.java:190)
         at com.sap.ide.dii05.util.api.job.JdiJob$1.doInWorkerThread(JdiJob.java:77)
         at com.sap.ide.dii05.util.internal.job.InternalJdiJob$3$1.run(InternalJdiJob.java:198)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1779)
         at com.sap.ide.dii05.util.internal.job.InternalJdiJob$3.run(InternalJdiJob.java:207)
         at com.sap.ide.dii05.util.internal.job.BusyBackgroundIndicator.showWhile(BusyBackgroundIndicator.java:74)
         at com.sap.ide.dii05.util.internal.job.InternalJdiJob.internalRun(InternalJdiJob.java:188)
         at com.sap.ide.dii05.util.internal.job.InternalDiiJob.runInternal(InternalDiiJob.java:305)
         at com.sap.ide.dii05.util.internal.job.InternalDiiJob.runL(InternalDiiJob.java:207)
         at com.sap.ide.dii05.util.internal.job.InternalDiiJob.run(InternalDiiJob.java:194)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
          [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-689,5,main]]

    Hello Saurav,
    Thanks for replying.
    Yes, I have gone through this link.
    We are using SAP NetWeaver Developer Studio 7.1 SP08 .
    We tried to add through the external library.
    But again the same error.If iam not adding the jars, its working fine.
    But the moment I add the jars (either through the external library or through "Add external jar") option, Its giving error.
    Basically 2 error:output for details.
    Error1:    output for details.      [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-732,5,main]]
    Error 2: [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-732,5,main]]
    Please suggest me if i am doing something wrong.
    Regards
    -sandip

  • Artifact harvest failed due to: Unexpected error import: Invalid jar file

    Hi,
    i am trying to submit the .biz and .proxy file to OER using Eclipse,
    but i am getting the following error,
    can anybody help me on it,
    what i am missing ?
    8332 [Main Thread] INFO com.bea.alsb.harvester.plugin.reader.OSBReader - OSB Config Jar Import / Validation starting.
    <Mar 13, 2012 10:28:16 AM IST> <Warning> <ConfigFwk> <BEA-000000> <Setting transaction '6' as rollback only. Rollback reason:
    java.io.IOException: Invalid jar file
    at com.bea.wli.config.importexport.ConfigJar$LogicalJarForm.<init>(ConfigJar.java:1341)
    at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:46)
    at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
    at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
    at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
    at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
    at com.bea.wli.config.task.impl.UploadJarTask.uploadJar(UploadJarTask.java:36)
    at com.bea.wli.config.mbeans.Config.uploadJarFile(Config.java:442)
    at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:79)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:196)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQueries(OSBReader.java:112)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.read(OSBReader.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
    at $Proxy0.read(Unknown Source)
    at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
    at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
    at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:430)
    8426 [Main Thread] ERROR com.oracle.oer.sync.framework.MetadataManager - Artifact harvest failed due to: Unexpected error import: Invalid jar file
    com.oracle.oer.sync.framework.MetadataIntrospectionException: Unexpected error import: Invalid jar file
    at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:97)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:194)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQueries(OSBReader.java:112)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.read(OSBReader.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
    at $Proxy0.read(Unknown Source)
    at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
    at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
    at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:430)
    Caused by: java.io.IOException: Invalid jar file
    at com.bea.wli.config.importexport.ConfigJar$LogicalJarForm.<init>(ConfigJar.java:1341)
    at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:46)
    at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
    at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
    at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
    at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
    at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
    at com.bea.wli.config.task.impl.UploadJarTask.uploadJar(UploadJarTask.java:36)
    at com.bea.wli.config.mbeans.Config.uploadJarFile(Config.java:442)
    at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:79)
    at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:196)
    ... 11 more
    Please help...
    Regards,
    yogesh

    Hi Yogesh - when you say "i don't think the file is corrupt, because it works fine in eclipse", do you mean, you are actually able to publish them to a server and test those out?
    Dont know your exact scenario, but when you say that you took the sbconfig from another machine and used it on your local system, cant we just go ahead with that? I mean, clean up your code base, and then import this latest "working" sbconfig and start afresh?
    -Swagat

  • Eclipse importing a jar

    I have this line of code:
    import com.google.inject.Inject;
    I have imported this jar: google-api-translate-java-0.6.jar (from google)
    (right click project name-> import -> general -> archive file -> google-api-translate-java-0.6.jar
    But the interpreter does not recognize the import line (i.e. red underline).
    I am missing something easy, can someone help please?

    ophirgott wrote:
    I have this line of code:
    import com.google.inject.Inject;
    I have imported this jar: google-api-translate-java-0.6.jar (from google)
    (right click project name-> import -> general -> archive file -> google-api-translate-java-0.6.jar
    But the interpreter does not recognize the import line (i.e. red underline).
    I am missing something easy, can someone help please?Use WinZip or the command-line "jar" utility to inspect that jar and ensure it really has a /com/google/inject folder in it, and an Inject.class file within that folder. If not, then you're using the wrong jar, or the wrong package and class name from it.

  • How to create package and import from jar file?

    Hi all,
    I am writing a software and I am not sure how to create a package for the classes.
    Say I have two classes in the same directory as follows:
    testA.java
    ==========
    package AB;
    public class testA
    public static void main(String[] args){
         testB myB = new testB();
         System.out.println("A test");
    testB.java
    ===========
    package AB;
    public class testB
    public testB(){
         System.out.println("B constructor");
    both file compile without the package heading;
    both file compile using: javac -classpath .\ *.java
    Question 1:
    I cannot run testA by: java -classpath .\ testA
    I think it is a syntax error. What is the correct one?
    If I run testA by: java testA
    The only output I get is: A test
    But I am expecting: B constructor /n A test
    What went wrong?
    Question 2:
    I need to use APIs of another software. I have downloaded a .jar file (xxx.jar) with all the classes in it. And I have put "import xxx.*;" in my source file. But the compiler complains about the importing. What is the right way to copmile it?
    I have read a couple of tutorials but they don't answer my question.
    (I am using windows2000 and don't have the classpath variable.)
    Hope some one can help.
    Thanks a lot

    Try moving testA out of the package and importing 'AB.*;'
    If you have:
    ./testA.class
    ./AB/testb.class
    Then to execute testA from ./ type: java -cp . testA

  • NoClassDefFoundError : when I am using MDM jar file

    Hi All,
    In my Webdynpro Java application, I need to acces the MDM Data. i have to use these jars,
    mdm-data.jar
    mdm-protocol.jar
    mdm-admin.jar
    mdm-common.jar
    mdm-core.jar
    MDM4J.jar
    and i getting this Error, while deploying the application to server.
    java.lang.NoClassDefFoundError: com/sap/mdm/net/ConnectionAccessor
    I guess, the reason may be that I dont have these above JARs in the server.
    Please give me a solution as soon as possible.
    Thanks,
    Boopathi.

    Dear Bhoopathi,
    You are getting classnotfound exception because, the external jar file you are using is available only at designtime (ie. Only in NWDS), and not available for runtime (ie. in J2ee server). To make it available in runtime, you have to deploy the jar file to J2ee server, so that the classes available in jar file will be available at runtime also.
    If the project is a simple webdynpro project, then, copy the jar file in to lib folder of the project and add the jar file in build path of the project. When this project is deployed, the jar file will also be available along with project. But, this jar file will be available only for this webdynpro project.
    If the project is a dc project, you have to deploy this jar file as a separate dc, and refer this dc in you dc project.
    Since jar file cannot be deployed directly, we have to bundle this jar to ear file,as a library.Once this library dc is deployed, you can use the same library dc in other dc projects also.
    For deploying external jar to J2ee engine, refer this link
    Bid adieu to bots - using CAPTCHAs
    I prefer this link, because it worked for me.
    If it is not working, refer this..
    A bit of (impractical) scripting for Web Dynpro
    Thanks,
    Fahad Hamsa

  • To import a .jar file in NWDS 7.0

    Hi All,
    I have to establish connection between NWDS 7.0 and MDM . Therefore, I want some .jar files to be used in my application.
    But, I am unable to include them.
    Have tried a lot of threads but still am unable to include them.
    Please help me.
    Thanks and regards,
    Shubham Narayan Gupta

    Dear Shubham,
    You need to create external library dc to includes external .jar file.
    Please refer to below documents :
    How to use external libraries in the SAP component model (PART I)
    How to use external libraries in the SAP component model (PART II)
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/006a6229-b1ed-2e10-0c8c-cc5673cf268f
    Best Regards
    Arun Jaiswal

Maybe you are looking for

  • Unable to install Power2Go & Trend Micro antivirus after upgrade to windows 7

    Hi. Recently I received my free windows 7 Upgrade Kit from Lenovo. (fulfillment) Installed it and inserted the driver dvd to install the drivers from the dvd automatically. Everything went fine but the power2go software wasn't installed. Downloaded t

  • How to form a URL dynamically in my portlet

    hi all, i have a requirement in weblogic portal 10.2,how do i form my URL dyncamically in my portlet which is as below I have a requirement to dynamically form my URL. Further suppose I have a left navigation portlet which has 3 links and right navig

  • How to re-install creative suite CS6 on a Mac.

    I recently purchased creative cloud suite CS6 for my Mac Pro, 2009 model. I was very happy untill I noticed a small program called "clean up" or something like that. I ran the program to clean up my old CS5.5 versions of the suite thinking this would

  • How can i limit the number of taps that open in safari

    How can i limit the number of tabs that open in safari

  • What does DUMMY=1 mean in the URL string

    Hello, I am executing WAD template that contains a query for my planning layout. When I look at the URL link of the WAD in the browser, it has the following in it: http://xxx.xxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap