Web Dynpro DC witch references a simple Java DC - NoClassDefFoundError

I need use the logic in a simple Java Project or a Standalone Proxy Project (weg.net/test/dc2) by a Java WebDynpro (weg.net/test/dc1), but when the DC 1 call the DC 2 this show a runtime error of class notfound java.lang.NoClassDefFoundError: net/weg/test/Test ).
The DC 2 is a Simple JAR, that is not possible deploy directly and it should be deployed with the Web Dynpro (DC 1). In other words, I believe the jar of DC2 should be inside the DC 1 (web dynpro).
The public part is declared perfectly. I have tried all combination of configuration of used DCs (DC 1 has the option build time, run time and strong at moment). In properties u201Clibrary referencesu201D I added u201Cweg.net/test/dc2u201D.
Thanks,
Cleiton Garcia.

Hi,
Did you create the public part of type SDA (Can be packaged into other public parts).
If you are testing in local server:
Dont deploy using "DeployNewArchieve and Run".
Deploy using "RightClick>DevelopmentComponent>Build && RightClick>DevelopmentComponent>Deploy"
See this blog
/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
And this is another way:
/people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
Regards,
Charan

Similar Messages

  • Web Dynpro Application For developing a simple calculator

    Dear Experts,
    I am trying to develop a simple calculator application in abap web dynpro .
    but i am not able to enable the buttons (1 to 9) . that is what i want is like how it happens in a normal calculator if we press 1 , then in the screen, 1 comes and if 11 then twice we press 1. Like wise i want if the button 1 is enabled then in the input field it should take 1 and if 11 then it should take 11. Kindly give some suggestions to develop this application.
    Regards
    Swarnadeepta

    Hi Swarnadeepta,
    I developed a calculator in web dynpro...please go through the following code. I have made a few changes with respect to modularization but the basic concept is still the same.
    Method to Enter Data on the screen
    METHOD enter_data .
      DATA lv_input TYPE i.
      DATA lv_flag TYPE c.
    ***Read input in the screen 
    wd_this->get_input(
        IMPORTING
          ev_input = lv_input                       " integer
    ***See whether flag is set. If yes save the present value in global attribute gv_previous.
      wd_this->get_flag(
        IMPORTING
          ev_flag = lv_flag                        " wdy_boolean
      IF lv_flag = 'X'.
        wd_this->gv_previous = lv_input.
        lv_input = 0.
      ENDIF.
    ***Modify screen input
      IF lv_input IS INITIAL.
        lv_input = iv_number.
      ELSE.
        lv_input = lv_input * 10 + iv_number.
      ENDIF.
    ***Set the new value of input field
      wd_this->set_input(
        iv_input = lv_input                          " integer
    ***Reset the flag
      wd_this->set_flag(
        iv_flag = ''                           " wdy_boolean
    ENDMETHOD.
    Use the above method on button click
    method ONACTIONONE .
      wd_this->enter_data(
        iv_number = 1                        " integer
    endmethod.
    Method to Register Operations
    method ENTER_OPERATION .
      wd_this->set_flag(
        iv_flag = 'X'                           " wdy_boolean
      wd_this->set_operation(
        iv_operation = iv_operation                      " string
    endmethod.
    Use of above method in operations button
    method ONACTIONADD .
      wd_this->enter_operation(
        iv_operation = 'ADD'                     " string
    endmethod.
    Method to calculate
    method ONACTIONEQL .
    DATA lv_operation TYPE string.
    DATA lv_input TYPE i.
    ***Read screen input 
    wd_this->get_input(
         IMPORTING
           ev_input = lv_input                        " integer
    ***read operation requested
      wd_this->get_operation(
        IMPORTING
          ev_operation = lv_operation                   " string
    CASE lv_operation.
    WHEN 'ADD'.
    lv_input = wd_this->gv_previous + lv_input.
    WHEN 'SUB'.
    lv_input = wd_this->gv_previous - lv_input.
    WHEN 'MUL'.
    lv_input = wd_this->gv_previous * lv_input.
    WHEN 'DIV'.
    lv_input = wd_this->gv_previous / lv_input.
    WHEN OTHERS.
    ENDCASE.
    ***Set the new value of input field
      wd_this->set_input(
        iv_input = lv_input                         " integer
    ***Clear the operation attribute
      wd_this->set_operation(
        iv_operation = ''                     " string
    endmethod.
    Getter Methods example for attribute INPUT
    method GET_INPUT .
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_input TYPE wd_this->element_context-input.
    get element via lead selection
      lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_context IS INITIAL.
      ENDIF.
    get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `INPUT`
        IMPORTING
          value = lv_input ).
    EV_INPUT = lv_input.
    endmethod.
    Setter Methods example for attribute INPUT
    method SET_INPUT .
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_input TYPE wd_this->element_context-input.
    get element via lead selection
      lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_context IS INITIAL.
      ENDIF.
    @TODO fill attribute
    lv_input = iv_input.
    set single attribute
      lo_el_context->set_attribute(
        name =  `INPUT`
        value = lv_input ).
    endmethod.
    Hope this will be helpful. Let me know if you have any doubt.
    Its working fine for me.
    Regards,
    Sayan

  • Web dynpro rfc  model reference

    Is there a way to change the  jCOclient reference
    of  rfc model after creating the model for example from WD_RFC_MODELDATA_DEST to WD_R3_RFC_MODELDATA_DEST

    Yes Natti.
    You can change the reference to the model by changing the Application /Message server settings of the
    MODELDATADEST and METADATADEST.
    Open the cotent administrator and click the "edit" button of the destination that you want to change. Then change the Application / Message server setting from the client1 (current client) to say client 2 (the required client).
    Please reward appropriate points.
    Bala

  • Difference between mobile web dynpro and simple web dynpro application

    Hi Everyone,
    Can anyone pls let me know what's the difference b/w mobile web dynpro application and an offline or simple web dynpro application.
    Thank U!!
    Ravi Aswani

    Hi ,
    Mobile WebDynpro
    The SAP Web Application Server allows direct online access to Web Dynpro applications using mobile devices. As part of the SAP Web Application Server, Web Dynpro provides a development and runtime environment with which you can quickly and simply create professional user interfaces for desktop PCs or for mobile devices. An appropriate infrastructure and renderer classes are provided for developing mobile Web Dynpro applications for Pocket PCs as well as for BlackBerry Wireless Handhelds and Nokia Series 80 devices.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/100d4113eff16fe10000000a1550b0/frameset.htm
    WebDynpro Java
    Web Dynpro is a client-independent programming model of the SAP NetWeaver technology platform for developing user interfaces for professional business applications. It is based on the model view controller paradim which ensures that the business logic is separated from the presentation logic. This architecture is visible in the Web Dynpro perspective of the SAP NetWeaver Developer Studio (NWDS).
    Web Dynpro helps you with the development of Web applications by:
    ·        Ensuring platform-independence with the meta model approach
    ·        Minimizing the implementation effort through declarative programming
    ·        Supporting a structured design process by applying the model view controller paradigm
    ·        Providing reuse and better maintainability by using components
    ·        Providing graphical support with tools in the Web Dynpro perspective
    ·        Providing the SAP NetWeaver Java Development Infrastructure (NWDI) which supports team work with different services such as source code versioning and the Central Build Service.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/100d4113eff16fe10000000a1550b0/frameset.htm
    Thanks
    Suresh
    Edited by: Suresh Mandalapu on Sep 2, 2008 11:07 AM

  • When to use 'Web dynpro ABAP' and when to go for 'Web Dynpro Java'

    Hi,
    I am trying to learn 'Web dynpro ABAP' from tutorials available on SDN as i am presently working in ABAP. I am also Java learned.
    Please tell me the selection criteria for using Web Dynpro component / application using ABAP or JAVA.
    Regards,
    Tanaya

    Hi,
    Go through this
    Web Dynpro: ABAP or Java?
    WebDynpro for ABAP Vs Java
    Re: Javascript future in Webdynpro (JAVA and ABAP)
    Javascript future in Webdynpro (JAVA and ABAP)
    PradeeP

  • Email Sending  - Web Dynpro java

    Hi All ,
    When we want to send Emails through Web Dynpro java application  , what are the necessary or prilimanry things needed ?
    1 ) In my application , jar files are there ( activation and mail )
    When deployed and run it is giving no errors but mails are not going .
    Secondly , from portal ( abap stack ) sap inbox when i send message to any company mail id , it is going
    That is SMTP in portal is configured .
    I could not understand , why it is not going from Portal ?
    Also Do I need any configuration / setttings in
    1) Config tool
    2) Visual Adminstrator
    3) Sys Adm - Sys config - UME - Emails notification
       and SYstem
    Regards,
    Suray

    refer the following links
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/6bd83e8cb23d67e10000000a114084/frameset.htm
    https://forums.sdn.sap.com/click.jspa?searchID=1063990&messageID=1486766
    Re: Sending Email from Web Dynpro
    Send Email  in webdynpro for java
    http://hc.apache.org/httpclient-3.x/methods/post.html
    But if you don't need its, maybe this link can post can help you.
    How to send data from Web dynpro App to JSP or vice versa
    Code
    try
    String strSMTPIPAddress ="192.168.100.103";
    Properties props;
    Session session;
    Provider p;
    props = System.getProperties();
    props.put("mail.smtp.host", strSMTPIPAddress);
    session = Session.getDefaultInstance(props, null);
    StringBuffer strMailBody = new StringBuffer();
    wdThis.createmailbody(strMailBody);
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress("<give the email address here>"));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress("<email address>"));
    message.setSubject("<give the subject of mail>");
    MimeMultipart mimemultipart = new MimeMultipart();
    // //set message content
    //this is body content
    MimeBodyPart mimebodypart1=new MimeBodyPart();
    //This is attachmnent
    MimeBodyPart mimebodypart2=new MimeBodyPart();
    // mimebodypart1.setText("xxx"); //Attachment
    mimebodypart2.setText("<give the content of attachemnt>');
    mimemultipart.addBodyPart(mimebodypart1);
    mimemultipart.addBodyPart(mimebodypart2);
    //message.setText(wdContext.currentContextElement().getSalorder());
    message.setContent(mimemultipart);
    message.setText(strMailBody.toString());
    Transport.send(message);
    wdComponentAPI.getMessageManager().reportSuccess("E-mail is sent to sharanya");
    catch (Exception e)
    wdComponentAPI.getMessageManager().raiseException("Exception" + e.getMessage(), true);
    Thanks
    Suresh

  • Can Web Dynpro for ABAP supports Mobile devices as like web dynpro for java

    HI,
    Experts,
    Web dynpro for abap application supports mobile devices as like web dynpro java application supports the mobile devices.
    Thnaks
    shabeer ahmed.

    Hi Shabeer,
    if you are looking for Mobile Web Dynpro, this is only supported with Java: [Mobile Web Dynpro |http://help.sap.com/saphelp_nw04/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/frameset.htm]
    If you are on NW 7.0, check out this documentation:
    [Mobile Web Dynpro Online|http://help.sap.com/saphelp_nw70/helpdata/en/42/c136cb0f241d66e10000000a1553f6/frameset.htm]
    Kind regards
    Stefanie

  • Web Dynpro and Oracle

    Greetings to all!
    We had been two weeks trying to develop a simple application with Web Dynpro that brings data from an Oracle database. We have defined a table in the Java Dictionary with such fields and names that in the data base. We have created a project J2EE with a EJB Entity with properties and methods for the fields of the table. For the tableView model in Web Dynpro we had to use a Java conventional Bean since it did not accept the EJB import directly. Also we have defined a system with the connection properties, user, password... of the Database. Everything seems to work fine, but sometimes we obtain the java.lang.NoClassDefFoundError exception:  com/sap/tc/webdynpro/progmodel/gci/IGCIComponentDelegate and the others just an empty tableView. Can somebody help us? It would be to us of much utility a simple project of this kind with all the properties, detailed references...
    Thank you very in advance.

    Hi Srikant,
    I have worked on similar stuff, but the scenario was a little different. I worked on creating Web Services using EJBs, but the basic part was that, the web service was supposed to interact with the SQL Server database. So maybe I can help you...
    First thing which is needed is that you have created the JDBC Connector in your Visual Administrator correctly. If you wish to cross check, you can see my answer in the following thread:
    JDBC error
    In this thread itself I have given the code which is the solution to your problem (this is what i believe). I am pasting the code again:
    <b>InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/MyAlias");
    java.sql.Connection connection = dataSource.getConnection();</b>
    You can use this code in the method of your EJB, and then you can easily use this connection object to access your database tables using SQL queries.
    And if by any chance you are looking for a step wise procedure for creating a web service from an EJB, then give me your email address, i will send you the doc.
    Bye
    Ankur
    Do reward points if it helps!!

  • Basic  of Web dynpro

    Hi All
    I am new in Web-Dynpro and please give me some document releted to these words
    WdThis
    IWDController
    IWDViewController,IWDWindowController,IWDmessagemanager,IWDWindowmanager
    and please tell me how and when we access these.
    Regards
    Satish

    Hi
    1) Controller Shortcut Variables
    private final IPrivate wdThis;
    private final IPrivate.IContextNode wdContext;
    private final IWDViewController wdControllerAPI;
    private final IWDComponent wdComponentAPI;
    public (IPrivate wdThis) {
    this.wdThis = wdThis;
    this.wdContext = wdThis.wdGetContext();
    this.wdControllerAPI = wdThis.wdGetAPI();
    this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
    2) Within any Web Dynpro controller, three shortcut variables are always present, whose values are all derived from the member variable wdThis.wdThis is the Web Dynpro specific self reference and should be used in preference to the standard Java self reference of this.
    3) The member variable wdThis is populated from a parameter of the same name, passed in by the Web Dynpro framework when the controller is instantiated.
    IWDController
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDController.html
    IWDViewController
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDViewController.html
    IWDMessageManager
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDMessageManager.html
    IWDWindow
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow.html
    IWDWindowManager
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindowManager.html
    Thanks and Regards,
    Arun

  • Web Dynpro Learning Materials

    Dear All,
    Kindly tell me the links where I can get free and easy learing stuff on SAP Web Dynpro.
    Thx...
    Paul

    Hi,
    ChrisWhealy book Inside Webdynpro for java:
    http://www.amazon.com/gp/reader/1592290388/ref=sib_dp_top_toc/102-5823260-5699349?ie=UTF8&p=S00B#reader-link
    Web Dynpro UI Element Reference Guide :
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/aa63688343bd40aafc537971aee068/content.htm
    web dynpro material
    web dynpro material
    regards,
    Vijayakhanna Raman

  • Exchanging data between a Web Dynpro application and SAP Web Shop

    I'll try to keep this as clear as possible:
    1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
    2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
    3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
    4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
    If this is a glaringly obvious question to Java programmers, my apologies!
    - Tony.

    Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
    - Tony

  • ABAP Web Dynpro - OfficeControl - Word Integration

    Hi,
    i have a problem concerning the office control of the abap web dynpro.
    I have a textedit box on the view of a web dynpro. Now i want to transfer the data from the textedit box to the word document. I used the "IOS_TEST_WORDPROCESSING" as an example.
    Everything works fine, if there is only one line of text in the textedit box. If i put for example three lines in it, word opens and now i have the choice for a data seperator.
    The word document contains only one field as a "MergeField" like the field of the word document used in the "IOS_TEST_WORDPROCESSING". 
    Could anyone give me a hint how to solve the problem.
    With best regards
    Markus

    I have the same problem. I want to integrate an ABAP Web Dynpro in GP, but there is no way to implement an Interface from GP like it is in JAVA. That means you cannot maintain input , output parameters and give a status back to GP. Seems that in ABAP the WD is not integrated in GP.
    I went to the relevant developement departement an they gave me the following answer.
    In GP you can maintain input parameters for a ABAP Web Dynpro Application manually which will be displayed in the apllication UI URL . Then you need a function module to map the input parameters inside the url to the ABAP Web Dynpro context. Output parameters are not possible in GP with ABAP Web Dynpro. It is also not possible to give back the processing state to GP from your ABAP web Dynpro Application like it is in JAVA. Only the GP framework provides a button to complete this Step manually by the user.
    Regards
    Rainer

  • Print Functionality for Web Dynpro ABAP Application

    Hi All,
    I am using the standard print button provided by FPM in my application.
    The application has a date navigator control as well as a dynamic ALV with fixed and on fixed columns.
    I would like to know if the application has to do any implementation to provide print functionality. If yes, how do we do it?
    Will it consider all the ALV columns as the ALV could have horizontal scroll bar.
    How do we test it?
    Defining output device in our user as LOCL is enough to test it? Are there any limitations?
    Findings until now:
    I just happened to see that gc_event_print FPM event is raised and the application uses interactive PDF form to implement printing.
    I am not sure if this satisfies my requirement.
    Could you help me in providing more information regarding this? You could also provide me some web dynpro examples for reference.
    Regards,
    Rekha

    >I just happened to see that gc_event_print FPM event is raised and the application uses interactive PDF form to implement printing.
    I am not sure if this satisfies my requirement.
    As you are already suspecting, the FPM doesn't provide the print functionality itself.  It only raises the event and the specific application is then responsible for how it wants to produce the output.  Therefore it is your job to design the output (generally using PDF forum).

  • Creating Client-side Image Map in Web Dynpro

    Hi,
    How can I create a client-side Image Map in Web Dynpro application?
    My application consists of a screen-size image in which several areas will have to link to URLs and actions. I have browsed through the "Web Dynpro UI Element Reference Guide," but could not find anything appropriate.
    Can someone give me an advice? Thanks.
    Teecheu

    It doesn't, there is no corresponding UI control for this.
    There is only onAction event on BusinessGraphics (have not working with them since SP5, eventing did not work at that time) and onObjectAction in GeoMap (never see it in action, probably an option for you if your map is geographic map
    WBR,
    VS

  • ABAP Web Dynpro Guided Procedures integration

    Hello,
      does anyone know if there is a way for an ABAP Web Dynpro to expose input and output parameters for use in Guided Procedures?
      Thanks in advance
        Gabor

    I have the same problem. I want to integrate an ABAP Web Dynpro in GP, but there is no way to implement an Interface from GP like it is in JAVA. That means you cannot maintain input , output parameters and give a status back to GP. Seems that in ABAP the WD is not integrated in GP.
    I went to the relevant developement departement an they gave me the following answer.
    In GP you can maintain input parameters for a ABAP Web Dynpro Application manually which will be displayed in the apllication UI URL . Then you need a function module to map the input parameters inside the url to the ABAP Web Dynpro context. Output parameters are not possible in GP with ABAP Web Dynpro. It is also not possible to give back the processing state to GP from your ABAP web Dynpro Application like it is in JAVA. Only the GP framework provides a button to complete this Step manually by the user.
    Regards
    Rainer

Maybe you are looking for

  • My mail signature links no longer work

    my mail signature links no longer work

  • Target Stage and append iframe from inside symbol????

    Having trouble again. I am SLOWLY getting use to the CC 2014 thing =). Now I need to be able to target a Symbol on the stage from within an element inside a symbol and append it with an <iframe> and pass attributes to the iframe. I have a file -- ple

  • Best way to transfer songs from iPod to iTunes

    I had been using a LaCie 320gb firewire 800 drive to hold all of the music for my iTunes plus a Apple Lossless backup of all of my CD's. Recently the LaCie drive decided that after 18 months it had had enough and died on me (but that's another story)

  • Returning string thru a Customer Exit

    Hi, I have a requirement where i need to do a comparison between 2 Fiscalperiod fields and return a string accordingly. Logic: If( Year/Month < Cur Year/Month) return "Period" else return Year/Month Is this possible using customer exits? If not, how

  • Web Authentication Bundle

    Hi All I am currently playing aound with the WLC Web Auth Bundle. I need to do Guest Access using a Proxy Server so obviously the Web Auth doesn't work unless you configure the client to locally bypass the 1.1.1.1 address. This isn't practical for th