Compiling web dynpro using javac

I am writing an ant script to build ear file for my web dynpro application. We can not want to use Netweaver studio because our build process is automated using ant. In my web dynpro application there are 45 java files including my own java classes & the java classes generated by netweaver studio. But in my app.jar file there are 80 java classes. if I can locate all the java files then I can use javac to compile these classes & create ear file independent of netweaver studio.
Has anyone tried using ant to build ear file for a webdynpro app? How are these extra classes created without corresponding java files?

Hi Sam,
        Webdynpro is a framework within the Studio.The meta model of it requires all the jar files for compilation.You can see all jar files in the plugin folder of the same.If you can export all these jar files
then I think you can compile and run your script outside studio but surely it is a tedious process.Moreover when you want to run any webdynpro application it is designed to open an IE with the framework.Lot of work around has to be done for opening external browser for running it other than studio.
          Hope my points briefs your query.
       Can you tell me the reason why you don't want to compile it within the studio?
Regards,
Guru

Similar Messages

  • Error while compiling Web Dynpro program due to missing JAR files

    Hi Experts,
    I am getting error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    HI Stuart,
    you are missing the jar files required for sending mail in java
    Installing JavaMail
    You will need the latest version of JavaMail (Version 1.2) available here:
    http://java.sun.com/products/javamail/
    Download and unzip the file, in the newly created top level JavaMail directory you will find a number of jar files,
    these need adding to your classpath.
    To do this in Eclipse, right click on your project in the tree view, select properties, select the libraries tab.
    Now click the 'Add external jars' button, navigate to your JavaMail directory and click on the jars.
    The tutorial also makes use of the Java Activation Framework, which is available here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html
    Instalation of JAF is identical to JavaMail
    activation.jar / mail.jar are 2 distinct names i remember rest you will get above
    P.S: close the question to assist other users narrow the search and find solutions
    Message was edited by:
            Armin Reichert

  • Java error while compiling Web Dynpro program

    Hi Experts,
    I am getting following error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    Hi,
    Have you imported the required JavaMail jar?
    Please tell me what API you are using for the same.
    Also check Barcode Printing from EP --using barcode4J (Gurus kindly help me) forum to check how to add external jar files into WebDynpro project
    Let me know if you need more help on it.
    Regards,
    Ashutosh

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Creating a report in Web dynpro using OOPS concept

    Hi all,
             Iam new to web Dynpro, i need to create a report in Web Dynpro  using oops concept. can any one guide me regarding it.
    Regads,
    Easter

    Hi,
    Please refer to these links -
    DEMO_COMMON_ASSISTANCE1 -Example for standard component
    http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    Regards,
    Lekha.

  • I want to write ABAP Program in web dynpro Using se80 tra.code

    hi
    I want to write ABAP Program in web dynpro Using se80 tra.code and to Create URL for the same.
    Please let me know the steps to do.
    Thanks

    Hi Shiva,
    I understood ,  you want to create a Webdynpro Applicaiton and run it.
    this will help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007f130
    Regards
    Abhimanyu

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • Srm 7.0 - Hide field in web dynpro using configurations

    Hello to all,
    I'm trying to hide some fields on PO web dynpro. In this example on web dynpro /SAPSRM/WDC_DODC_PO_I_BD I start the component configuration /SAPSRM/WDCC_DODC_PO_I_BD, I search for the fields I want to hide and put the visibility attribute to Invisible and I mark final check box.
    The fields don't dessapear from the web dynpro. Am I missing something?
    Best regards,
    Nacho

    Thanks for your reply.
    I have here two situations:
    SPRO. If I add the field on Configure Field Control at Header Level/Item Level it disapears but not all fields appear on this transaction. For example, I can't do that to tolerance group (TOL_GP)
    Webdynpro. Using Component Configuration of the dynpro. I guess that it is in two actions:
       - Change the value of visibility to Invisible on Web dynpro Built-In
       - Add field to context. I put for this example:
             Attributes of the Element usagesDefinition (ITEM_TOL.TOL_GP)
                     usageName ITEM_TOL.TOL_GP
                     componentName ITEM_TOL.TOL_GP
                     ConfigurationName /SAPSRM/WDCC_DODC_PO_I_BD
    The webdynpro way doesn't work, Am I missing something?
    Best regards,
    Nacho

  • What is the right  way to display a table in Java web dynpro using a node.

    Hi experts,
      I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro.  In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to  show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Please refer to my post.. you will get the answer
    Dynamic Table -  same data repeating in all rows
    Special care should be taken in designing the context for table attribute.
    The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
    Now coming to final solution :
    For designing a table in adobe interactive form you have consider following
    You have to design the view context upto three level, I am explaining you the properties
    PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
    TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
    TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
    TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
    Then under TableData value node, you have to put all your table attributes.
    This Value Node name can be anything but hierarchy should be same as I have mentioned above.
    Please try out these steps and get back to me if you have any doubt.

  • Showing Image in Web Dynpro using ABAP

    Hi All,
    I am new to Web Dynpro ABAP , basically my requirement is to show a image , could any one please tell me the steps to do that , i have already uploaded the image in application server using T-code smw0 , and in the layout i have taken the element IMAGE.
    I have also made the context node as Image and under that i have made three attributes named as :-
    IMAGE (Context Node)
    source (Attibute type string)
    tooltip (Attribute type string)
    visible (Attribute type WDUI_VISIBILITY)
    In the WDDOINIT  method i have written the following code.
    DATA:
    context_node TYPE REF TO if_wd_context_node,
    context_elem TYPE REF TO if_wd_context_element,
    stru_image TYPE if_image_view=>element_image.
    fill structure with values
    stru_image-source = 'abc.gif'.
    stru_image-tooltip = 'Image Tooltip!!'.
    stru_image-visible = '02'. "=visible
    navigate to <IMAGE> via lead selection
    context_node = wd_context->get_child_node( name = `IMAGE` ).
    get element via lead selection
    context_elem = context_node->get_element( ).
    bind structure to context element image
    CALL METHOD context_elem->set_static_attributes
    EXPORTING
    static_attributes = stru_image.
    But I am getting the error if_image_view does not exist.
    Please help me and guide me if I am proceeding in a wrong way.
    Thanks and Regards,
    Rachit Khanna

    Hi ,
    Its very simple ....
    Dont use any transaction to upload image.
    right click on component and select
    create->mime_object->import
    suppose ur image is on desktop...
    So select the path of desktop select the image and click ok.
    U will see an MIMEs named folder in ur component and under which u will have ur image.
    now add image element into UI and there u will have source name property ...just write the name of ur image file and test ur application.
    U can see the image in output..
    (Also there are different properties of image element to set the position and other things)
    any queries ..feel free to ask
    regards
    panky

  • Cannot import DCs, necessary for Web Dynpro use in CAF GP

    Hello!
    I'm a newbie in SAP technologies. I want to develop a Web Dynpro (WD) application, which will be used as UI in CAF GP. The problem is that I cannot import necessary DCs for this!
    As I understand, the following ones are necessary to develop a WD app for use in GP:
    caf/eu/gp/api
    caf/eu/gp/api/wd
    com.sap.security.api.sda
    (according to http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/06ae42848bb211e10000000a155106/content.htm)
    I acted as it is described in "Implementing a Web Dynpro CO which Implements the GP Interface" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59).
    Actually, those DCs don't exist in my local configuration - so, as it is told in "Implementing a Web Dynpro CO which Implements the GP Interface", I tried to get the DCs from remote host (there's a server in Intranet with all stuff installed). In NetWeaver Dev Studio, in "Preferences -> Development Configuration Pool" I have written http://<local server>:50100. Actually, I don't know, what port should be used - I've written the one, which handles requests to SAP NetWeaver Portal. The response to "ping" button click is "HTTP response code: 403 (Forbidden)".
    I tried to check the status of SLD, and went to http://<local server>:50100/sld. I have successfully logged in, but when I try to go to tab "Administration", I receive the message " 403 Forbidden. You are not authorized to view the requested resource."
    Is there a problem with my roles & groups? Actually, I'm in group SAP_SLD_ADMINISTRATOR.
    What is wrong?
    How can I get the detailed information about the error (log files or something)?
    Thanks in advance!

    Barry, as I understand, I have no these roles, available for granting. Maybe, I've acted in a wrong way (the version of SAP NetWeaver is "Release 2004s".):
    I logged in NetWeaver portal as administrator, went to section "User administration", selected my user, opened the tab "Assigned Groups" and searched for the groups you've written - I found no one

  • Web dynpro using RFC

    Hi,
         I am working on one web dynpro application where I am using function module : Bapi_Employee_Getdata .
         In this i need to get the user id from portal and need send that as input parameter to RFC, I did everything but when i see output i couldnt see anything I guess basically itz not pulling any data from back end, I am not sure where I am doin wrong ..?
            any ideas..?
         Thanks

    Hi
         In my application I am passing portal userid as input parameter, do we have to pass the portal userid to fuction module or does it automatically send the userid to function module..?
          Here is Cust Controller Code:
            public void wdDoInit()
        //@@begin wdDoInit()
       try{
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
            IUser user = wdUser.getSAPUser();     
             if (user != null)
               try{
                    IUserAccount[] acct = user.getUserAccounts();
                    if(acct[0] != null)
                             String strUserid = acct[0].getLogonUid();
                             System.out.print(strUserid);
                           Rhxss_Ser_Get_Employee_Data_Input input = new Rhxss_Ser_Get_Employee_Data_Input();
                           wdContext.nodeEmployee().bind(input);
                           Bapi_Employee_Getdata_Input Input = new Bapi_Employee_Getdata_Input();
                           wdContext.nodeEmployeeOrgData().bind(Input);
                           input.setUsername(strUserid);
                           Input.setUserid(strUserid);
                    }catch (UMException ex)
                           ex.printStackTrace();
       }catch (WDUMException e)
        //@@end
    public void executeRHXSS_SER_GET_EMPLOYEE_DATA( )
        //@@begin executeRHXSS_SER_GET_EMPLOYEE_DATA()
        try{
             wdContext.currentEmployeeElement().modelObject().execute();
             wdContext.nodeEmployeeOutput().invalidate();
        }catch (Exception ex)
              ex.printStackTrace();
        //@@end
      //@@begin javadoc:executeBAPI_EMPLOYEE_GETDATA()
      /** Declared method. */
      //@@end
      public void executeBAPI_EMPLOYEE_GETDATA( )
        //@@begin executeBAPI_EMPLOYEE_GETDATA()
        try{
             wdContext.currentEmployeeOrgDataElement().modelObject().execute();
             wdContext.nodeOutput().invalidate();
        catch (Exception ex)
                   ex.printStackTrace();
        //@@end

  • Web dynpro using a portal service

    Hello All,
    We are using the JDI.
    We want to use a portal service DC from a web dynpro DC.
    The web dynpro DC is part of a software component.
    When the portal service is a local DC it is working fine (except failing later on the CBS build)
    but when the service is part of a software component as well I get a runtime exception: a java.lang.NullPointerException.
    The WD sharing reference I'm using is: PORTAL:sap.com/<dc service prefix>.<service name>
    I assume that this is the right reference because without this exact phrase I get a java.lang.NoClassDefFoundError: com/sap/<name of service>
    <b>Does anybody know how to use a portal service that is part of software component?</b>
    Thanks a lot in advance, Adi.

    Thanks Bharathwaj , but I already solved my problem.
    The solution was  to change the next code line in the service client code :
    Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(Idb_srv.KEY)
    to:
    Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(""<PARFilename>.<service name>");
    Regards, Adi.

  • Web Dynpro using EJB to implement database access for MS SQL 2005 server

    Hello,
    For using EJB model in Java Web Dynpro, why do I need another dictionary project with all the required tables (there are 5 tables in my project), when the same database is already created in back end MS SQL 2005 Server.
    Thanks
    Srinivas

    Thanks for your reply Charan,
    I am fairly new to EJB. I have created only one session bean (called TrainingBean) and created all the business methods inside it.
    Here is my database schema, with the following 5 tables
    Courses
    CourseSchedules
    Students
    Registrations
    Competencies
    Here are the session bean business methods:
    changeCourse(String)
    changeStartDate(String)
    createCourse()
    createCourseSchedule()
    getCourses()
    getCourseSchedules()
    registerStudent(String)
    unRegisterStudent(String)
    Is this good way to implement EJB, or should I create multiple session beans and multiple corresponding Data access command beans  ?
    Thanks a lot
    Srinivas

  • CompileException: Error compiling web service (using ant jwsc)

    Hi,
    I try to use the ant task jwsc to create my portable artefacts for a web service.
    Unfortunately I get the following exception:
    BUILD FAILED
    C:\Sun\jwsdp-2.0\apache-ant\bin\build.xml:7: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\Sun\jwsdp-2.0\apache-ant\bin\src\test\WsTest.java
    I do not know why the ant task can not compile my jws file (shown below) whereas Eclipse can!
    package test;
    import javax.jws.WebService;
    @WebService (name="WsTestName", serviceName="WsTestServiceName")
    public class WsTest {
    * @param name
    * @return Say hello to the person.
    public String sayHello(String name) {
    return "Hello, " + name + "!";
    I hope somebody can help me.
    Thanks
    Franz

    I thought I would post an update since I found a solution. The problem was a ClassCast exception in a part of the SSL stack, that wanted to use the ant BuildException class. This has the effect of hiding the real issue which was that the SSL connection was not successfully occuring. The real problem was that the SSL connection started with a WSDL retrieved via SSL, but the connection for the port was through a username/password. When a username/password is used to create a port, the WL stack falls back to http and causes a ClassCast exception on weblogic.wsee.connection.transport.http.HttpTransportInfo. The solution is to create an https transport object when the service impl is created:
    HttpsTransportInfo transport = new HttpsTransportInfo ();
    transport.setUsername (user.getBytes ());
    transport.setPassword (pass.getBytes ());
    gServiceImpl = new PersistenceManagerService_Impl (url, transport);
    and to create the port without parameters:
    port = getServiceImpl ().getPersistenceManagerServicePort ();
    This allows one-way SSL with username/password for the connection.

Maybe you are looking for

  • I have no broadband and BT are making me pay twice...

    Hi all, I have posted this in the business forums but feel it will get more attention over here. I started up a small business in June with two working directors, and wanted to setup an email exchange server so i decided it would be easy to convert m

  • Date earlier

    hi all, i am getting an array of dates from database in which i have to pick the earliest date can anyone help me with some sample code using for loop. regards and thanks in advance

  • Workflow Goes Processing Obsolete Even Deadline Not Reached

    Dear Workflow Gurus, Currently all the workflows in my system goes processing obsolete and escalate to the next approval path even though the deadline has not yet reached. Does anyone know why and help me in resolving this? Yours Truly, Rachel Rose

  • Dynamic Link for Premiere and After Effects CS4 with Titles

    I've created a Rolling Title in Premiere Pro CS4.  I'd like to create a Dynamic Link to bring the title into After Effects CS4 to add effects that will show up in Premiere.  I've watched a few video tutorials on Dynamic Link and read the documentatio

  • Peak detection function for sawtooth waveform not working properly

    I am using peakdetector function for finding peaks in a sawtooth wave. The peaks it detects is 2 units higher then the actual peak. But when i do the same thing for sine wave it detects the peaks properly. Can anyone please tell me why am I having th