Using External java within web dynpro DC

Hi
I'm new in web dynpro and I'm facing a problem.
I'm doing a web dynpro DC application and I want to use some external java classes I have created into my DC. But I don't really know how to do it, I tried EJB but I don't exactly how it works.
by the way, I was using a stand along web dynpro before and this worked fine, I just needed to create a package within my web dynpro project with all my class architecture to have them directly. but now with the DC stuff, it's not the same at all. so please help
thanks

Hi
Better you create a Java Development component and add all your java classes to that DC and build it.
Create a webdynpro DC to develop front end and add the java DC in used DC's of your Webdynpro DC.
This is the way you can use the java classes effectively with out redundancy.
If you create a package inside a normal webdynpro project, then you can not reuse them later in other webdynpro proj
Go with SAP component model by creating 2 development components one for java and other for webdynpro and define the reusability (Used DC's) in DC Metadata.
Regards
Kalyan

Similar Messages

  • Use external libraries in web dynpro java

    Dear Experts,
    I need to add an external library to my project.
    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:
    [javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes
         [javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\MainView.java:34: package com.estaf does not exist
         [javac] ERROR: import com.estaf.jpay;
         [javac] ERROR:             
    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/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.
    A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.
    I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.
    Infinitely appreciate any help. Thank you very much.
    Rasim
    Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM
    Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

    Hi,
    please find below path for adding External Jar files.
    right click on the webdynpro dc and select the properties .
    then clcik on Java Build path->select libraries->select External External Jars.
    after that just rebuild your project (not Build).
    Regards,
    Govindu
    Edited by: Govindu Nagotla on Apr 12, 2011 2:28 PM

  • 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

  • Using external libraries in Web Dynpro DCs

    Hi,
    I've followed the example in the following blog for using external libraries in my Web Dynpro (WD) DCs:
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro and some other messages in the forums. However, it isn't working exactly as described in the blog. I have to twist it a bit to get it work. I were wondering if anyone has any better solution for this problem?
    The senario is like this:
    - External libraries: a.jar, b.jar
    - WD DCs: wd1, wd2 in that wd1 and wd2 are both using external libraries a.jar and b.jar; wd1 is a library DC that can be reused in wd2.
    According to the example in the blog, the following steps are carried out:
    - Step 1. Create an external library DC, add a.jar and b.jar to public part "ExternalLibs" as described in the blog.
    - Step 2: Create, build, deploy “J2EE Server / Library” DC. (Add reference to the public part of the external library DC as a used DC, with both Build-time and Run-time dependency).
    - Step 3: Create WD DC wd1, add used DCs and WD reference libraries as described in the blog. Add WD components as public part. Build and deploy WD DC wd1.
    All are ok so far!
    - Step 4: Create WD DC wd2, add used DCs and WD reference libraries as before. Try to build and FAIL!
    The error occurs here because wd2 cannot access to the classes in the external libraries, similar to the problems described in thread Re: Problems with deploying a JAR file.
    I've found a workaround, although quite tedious and cumbersom, but it works. My solution so far is:
    - Round 1: Perform those 4 steps above, but in step 1, after adding the jars to the public part "ExternalLibs", set the property of the public part "purpose" to "compilation", then build and deploy all other DCs accordingly.
    - Round 2: Change the public part "ExternalLibs" property to "assembly", then bulid and deploy all other DCs again.
    And now I can reuse the external libraries in my WD DCs as well as WD DCs as library in other WD DCs.
    I know it's not an elegant solution. So I were wondering if the experts out there can help me with better solutions?
    Many thanks in advance for your help.
    Regards,
    Van
    Edited by: Van Hai Ho on Dec 18, 2007 3:30 PM
    Edited by: Van Hai Ho on Dec 18, 2007 3:31 PM

    Hi Pascal,
    Thank you so much for your help. Your suggestion has helped to make my life a lot easier.
    Regards,
    Van

  • External jars in Web Dynpro for Java CE 7.1.1

    Hi there,
    Can you give me some guidance for including external jars in Web Dynpro for Java (CE 7.1.1)?
    I vainly tried for some hours now to get my external jars running in the new version of web dynpro (part fo Composition Environment 7.1.1).
    The routines described in some other threads didn't help me. For example, in CE 7.1.1 there's no DC Metadata that would allow me to add an external library.
    FYI, in the error message during build it simply says the package is not found.
    My error is javac ERROR: D:\test.jdi\LocalDevelopment\DCs\demo.sap.com\retail\_comp\src\packages\com\sap\demo\retail\javafiles\DomParser.java:12: package com.sap.semprom.retail.sc does not exist
    javac ERROR: import com.sap.semprom.retail.sc.BoundEvent;
    Thx in advance!
    Holger

    See http://help.sap.com/saphelp_nwce10/helpdata/en/d7/fc139ba1549047a5372ad3c0d540ea/frameset.htm
    under "External library".
    Armin

  • Problem with external libraries and Web DynPro

    Hello,
    we're stuck here.
    We're trying for a week now to include external libraries(e.g. Hibernate) into our Web DynPro Project, without success so far.
    We read every single forum and blog entry we could find on this topic.
    E.g.: /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    We're running Netweaver 2004s SP9 Trial Version.
    The biggest problem is, that when we deploy an J2EE Server Component Library DC exactly like described in the blog entry above, although it is deployed correctly an lists under Server->Libraries in Visual Administrator, the external hibernate.jar doesn't get deployed onto the server. It's just an empty container named hib/lib without any entries in "Jars Contained". The sda file of the library DC also has only 2K and doesn't include the hibernate.jar which we added as used dc...
    Any help would be greatly appreciated.
    Or is there a simpler way to include external jars into Web DynPro Projects and deploy them to the server? (We already tried putting them into the lib folder without luck, we always get "NoClassDefFound...")
    Edited by: Christian Wieland on Jan 31, 2008 11:22 AM

    Hallo Christian,
    this is a bug which should be fixed in NW 7.0 SP9 patch1: [Look at this forum thread on the same issue: External Library DC in NW2004s SP09|External Library DC in NW2004s SP09].
    Regards, Bertram

  • Interactive Form within Web Dynpro ABAP

    Hi,
    I've an Adobe interactive form element within Web Dynpro ABAP view. I've more than one WebDynproActiveX buttons within the Interactive form (like Submit, Cancel, Clear).
    How can I differentiate the user selection within Webdynpro  ? Whether the user selected Submit or Cancel or Clear ? Can we associate any function code for each button ?
    Thanks
    Ravikumar

    Hi Ravi,
    You can take a context attribute lets say "STATUS"(string) in your form context.  For your buttons in the form, in click event set the value. like
    STATUS.rawValue = "1";      (eg Submit)
    STATUS.rawValue = "2";      (eg Cancel)
    And in your submit event read this context attribute and you can use CASE like when 1 , when 2 etc and you can execute your code accordingly.
    it should solve your problem.
    With Regards,
    Ravi.D

  • How to use a CAS in web dynpro with NWDS 7.0

    Hi, all.
            I implemented a cas project (some entity services and application services). Now I want to use it in a web dynpro project.
    I know how to do that with NWDS 7.1, but it seems  something differernt with NWDS 7.0.
    Can  anyone give me a hand?  Thanks.

    hi
    CAF Core project comes with a sub-project WebDynpro.
    You can implement business logic using CAF Core Service ,integrate it in WebDynpro UI.
    1)Select your CAF project root , right click on it and select u201CCreate Web Dynpro Modelu201D from the context menu.
    2) Switch to the Web Dynpro Perspective
    3)You can find  the CAF Core services have been generated and are available to the WebDynpro component.
        you can find caf services under modelclasses of webdypro project .
    4)Then you proceed with creating component etc..
    Regards
    sowmya.

  • Created in Web dynpro Java or Web dynpro ABAP

    hi all,
    I have a web application running. Its UI  is created either in web dynpro java or web dynpro ABAP. Is there any way by which we can find out that in which form of UI technology is it created; in web dynrpo java or web dynpro ABAP ?

    Hi,
    I am really not sure if this is recommended..
    Try some negative testing on the application. If the application crashes, the trace of the error occured will tell you what kind of development has been adopted for the Web Dynpro application.
    Another hint can be the port number in the Application URL. If it is not 50xxx, and is somewht like 8xxx, it is surely Web Dynpro for ABAP.
    Regards,
    Alka.

  • Using .properties file in web dynpro

    Hi,
    I am having a requirement. I have to create a .properties file and I have to use it in my web dynpro application. How can I do that? Any help...
    Thanks & Regards,
    Raj

    Hi,
    Go to the navigator view...select src\Components\<ComponentName> and create create a .properties file.
    You can read the  configuration file in your webdynpro app as follows
    IWDConfiguration configuration =
          WDConfiguration.getConfigurationByName(
            wdComponentAPI.getDeployableObjectPart(),
            "<<>>");
    http://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm
    Regards, Anilkumar
    Message was edited by:
            Anilkumar Vippagunta

  • Using FREE-SELECTIONS_DIALOG in Web Dynpro

    Hi Experts,
    I want to transfer a report whicht uses the FREE_SELECTION_DIALOG Function into Web Dynpro.
    Is it possible to use this function with Web Dynpro?
    The aim is to generate a list on the left side of the screen with different attributes from a dictionary table.
    By clicking on an attribute it should open the select-options for this field. The inputs should be saved.
    In the End I want to select data from a list that fit to all of the inputs.
    Thanks for any ideas!
    Martin

    any help..

  • Using macromedia flex in web dynpro

    how can i use flash object in web dynpro for displaying charts instead of using the webdynpro default charts .
    i want to use from NWSD not through the portal ..

    Hi Valery,
    I didn't say that it is the only solution. But this could be one of the solutions. Now, it depends on the requirement whether need to use it or not.
    Hi Yashpal,
    No need to use WDURLGenerator service. You can directly give flash object name which you have imported in mimes->components-><package>.
    Regards,
    Bhavik

  • Difference between web dynpro java and web dynpro abap

    Hi this is watson maureen,
                 I wnat to know what is  the difference between web dynpro java and web dynpro abap?
    thank
    maureen

    Hi watson,
    Go through these links, you will get the difference between web dynpro java and web dynpro abap
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
    Web Dynpro: ABAP or Java?
    Regards
    Sreedhar.

  • Integrate VC models within Web Dynpro?

    Hi
    It easily is possible to integrate Web Dynpro Components within Visual Composer models. Does it work the other way around too - is it possible to integrate VC models within Web Dynpro, and if yes, how?
    Regards

    Hi Jan,
    Unfortunately not. Currently there's no way of doing this (other than having them as UI for human tasks in BPM, but this is not what you want I guess). The generated Web Dynpro application (from the Visual Composer model cannot be consumed as a project in the IDE, but it you can try to call it from the WD application (I just don't remeber the exact API for this) like it was any other WD application (after it's eployed, of course).
    Regards,
    Netanel

  • Using External JAR file within Web Dynpro DC

    Hi,
    I have created a Web Dynpro DC and I need to use an external JAR file.
    I want to use this external JAR file within the same Web Dynpro DC and NOT creating another DC to house the external JAR file as I can see from the blog.
    I have included the external JAR file in the "lib" folder of the Web Dynpro DC.
    When I tried to perform a DC build, it keeps complaining error....
    How should I solve this problem...
    Thanks.
    mike

    Hi Mike,
    Go through the below which might help you.
    Re: Lookup of RFC Destinations
    Re: Import a Java Bean from a different DC
    Web Dynpro References
    Re: j2ee library with webdynpro
    Re: Web Services :HTTP Destination not getting resloved.
    http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce3e4df201d63e10000000a11466f/frameset.htm
    Thanks n Regards,
    Jhansi Miryala

Maybe you are looking for

  • Motion: controlling start/stop of animated still?

    Very simple move on a still.  I want to start on closeup, move out, pause at one point mid-frame, then move out further to full frame. I'm just using keyframes.  I get my start very smooth (bezier) out to my 'pause' ... both the start and the stop at

  • Adobe Acrobat 7.1.0 professional

    My Adobe Acrobat 7.1.0 professional all of a sudden won't start anymore... Cansomebody tell me what to do?

  • HT1550 how to put my own ring tone

    How can I change ring tone by putting a song?

  • Download not working shows file damaged.

    Download not working.  Shows files damaged or I should covert original to pdf.  Where is original?  When I try even that does not work.  Download is picking location.  Not allowing me to pick location of download.  Very frustrating.

  • Accessing application from one subscription to other subscription

    Hi, I want to access my cloud service application deployed in one subscription to other subscription cloud service. For Ex: if I have an application in one cloud service which have one text box and one button where I will enter some text and click on