How to create simple JSP and deploy to J2EE engine?

Hi,
I need to create simple JSP pages and deploy it to SAP J2EE engine.. what is the procedure?...I may later add some businness logic but not needed for now.
Please help
Thanks,
Jai

Gabrie,
Here are Simple steps,
In the NWDS
1) create J2EE -> Web Module Project    (XYZ)
2) create/add your JSP pages to the project
3) Right click on your project root and click on 'Build Web Archive' from the context
3) create J2EE -> Enterprise Application project(EAR)
4) Right click on your Web Module Project root and click on 'Add to EAR Project' from the context, select the EAR you just created in step 3.
5)Right click on your EAR project root and click on 'Build WebApplication Archive' from the context
6)Expand the EAR project node, and right click on the *.ear file, click on 'Deploy to J2EE Engine'.
7)Enter your SDM password  when prompted,
You can access you JSP at this url
http://server:port/xyz/a.jsp
- Dileep

Similar Messages

  • How to pre-compile jsp and deploy to tomcat

    Hi All,
    I wuld like to know how to pre-compile JSPs and deploy to tomcat. I am using ANT tool to build and deploy the war file.
    Thanks in Advance.
    Regards,
    --Nagesh.                                                                                                                                                                                                                                                                                                                                               

    for Tomcat 5.0 (You'll need to edit to fit your needs)
        <path id="jsp.classpath">       
            <!-- point classpath to directory containing jasper-compiler.jar and
                   jasper-runtime.jar -->
            <fileset dir="C:\tomcat\common\lib">
                <include name="**/*.jar"/>
            </fileset>
            <fileset dir="C:/tomcat/common/endorsed">
                <include name="**/*.jar"/>
            </fileset>       
        </path> 
        <target name="jsp" >
        <!--
             The Ant JSPC task doesn't work with Tomcat 5.0
             so in the meantime we need to define our own task.
          -->
        <taskdef name="jspc50" classname="org.apache.jasper.JspC">
            <classpath>
                    <path refid="jsp.classpath"/>    
            </classpath>
        </taskdef>
        <jspc50 outputDir="${build.classes}"
                package="jsp"
                uriroot="${project.dir}/web/webApp"
                webXmlFragment="c:/web.xml"
                verbose="9"
                validateXml="false">           
        </jspc50>
        <javac srcdir="${build.classes}/jsp"
               destdir="${build.classes}"
               debug="true"
               optimize="false"
               includes="**/*.java"
               source="1.4">
                <classpath>
                    <path refid="classpath"/>
                    <path refid="jsp.classpath"/>
                </classpath>          
        </javac>
    </target>    More information can be found here :
    http://www.onjava.com/pub/a/onjava/excerpt/AntTDG_chap8/index1.html?page=last

  • How to create Agreement Configuration and deploy it

    Hi All,
    Through self-service API's we are able to create the agrement. How to I create the configuration for the same and deploy it using java/pl-sql code ... any sample code and example file...???
    Regards,
    Praveen

    Hi Praveen,
    You can use self-service API to deploy configuration using a JAVA program or command line. To use it in the command line-
    1. java oracle.tip.adapter.b2b.selfservice.TradingPartnerManager --- creates the Trading Partner profiles from the specified XML file
    2. java oracle.tip.adapter.b2b.selfservice.AgreementManager creates agreements from the specified XML file
    To use it in the JAVA -
    FileInputStream fis = new FileInputStream(tpFile);
    InputSource is = new InputSource(fis);
    TradingPartnerManager tpMgr = TradingPartnerManager.newInstance();
    tpMgr.init();
    if (args.length == 2) {
    tpMgr.processTPProfiles(is, true);
    } else {
    tpMgr.processTPProfiles(is, false);
    tpMgr.shutdown();
    FileInputStream fis = new FileInputStream(tpFile);
    InputSource is = new InputSource(fis);
    AgreementManager agreementMgr = AgreementManager.newInstance();
    agreementMgr.init();
    agreementMgr.processAgreements(is);
    agreementMgr.shutdown();
    Please refer below link for the same -
    http://www.b2bgurus.com/2007/09/creating-b2b-metadata-using-self.html
    Regards,
    Anuj

  • Problem in Proxy call from an application deployed in J2EE engine

    Hi,
    I am trying Java Sender Proxy --> XI --> DB.
    I have generated o/b proxies using integration builder.
    <b>Following is the code that i am using for proxy call and it runs absolutely fine when runnning stand alone</b>
    <code Controller.java>
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
    p.put(Context.PROVIDER_URL, "server:50004");
    p.put(Context.SECURITY_PRINCIPAL, "Administrator");
    p.put(Context.SECURITY_CREDENTIALS, "password");
    ctx = new InitialContext(p);
    ref = ctx.lookup("sap.com/ProxySenderEAR/UsersSyncMI_PortTypeBean");
    queryOutHome = (UsersSyncMI_PortTypeHome) PortableRemoteObject.narrow(ref, UsersSyncMI_PortTypeHome.class);
    queryOutRemote = queryOutHome.create();
    UserDT_Type reqtype =     new UserDT_Type();
    reqtype.setUsername(name);
    reqtype.setPassword(pwd);
    UsersDBMTResponse_Type response = queryOutRemote.usersSyncMI(reqtype);
    role = response.getRole();
    </code>
    I am including this java file(Controller.java) in the same EJB project ProxyEJB which includes
    my beans and home/local/remote interfaces.
    Then I have created a Web Module Project ProxyWeb, that includes Proxy.jsp.
    In proxy.jsp i am using the following code
    <%
    Controller obj = new Controller();
    String name = request.getParameter("uname");
    String password = request.getParameter("pwd");
    String role = obj.getRole(name,password);
    %>
    Then I have included both ProxyWeb and ProxyEJB in ProxyEAR file, created Enterprise Archive and Deployed in J2EE engine.
    and when I call the jsp...i am not getting expected result.
    When i am debugging the code using try catch blocks for the controller.java...I observed that
    Problem occured at :
    <code>
    queryOutHome = (UsersSyncMI_PortTypeHome) PortableRemoteObject.narrow(ref, UsersSyncMI_PortTypeHome.class);
    queryOutRemote = queryOutHome.create();
    </code>
    what i am not able to uderstand is that ...when it is working fine when calling from standalone ...then
    why it's giving me problems when deployed in j2ee engine...
    note: I am using all required jars for XI.(included in ProxyEJB).And I have used NetWeaver Developer Studio for the above EAR,WAR projects.
    Kindly suggest,
    Regards
    Vedavyas

    The JNDI call is different when you call an EJB from inside the J2EE.
    ctx = new InitialContext();
    ref = ctx.lookup("java:comp/env/<JNDI-Name>");
    Regards
    Stefan

  • How to create simple Helloworld Portlet Channel

    Hi
    I am using Sun ONE Studio 5.0. I have created .war file and deployed into the Sun ONE Portal Server 6.2 using pdeploy. I got the deployment successful confirmation.
    But the portlet name not displayed in Sun ONE Identity Server portlet list.
    How to add our portlet name to Sun ONE Identity Server portlet list.
    Is there any solution for this problem?

    Using my own HelloWorld Portlet, I encountered the same issue on PS6.2. But, in portlet.xml, I replaced <portlet-app> tag with the following one, and it works after restarting web server.
    <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd" version="1.0">

  • How to create a partner and header record using CRM_ORDER_MAINTAIN?

    Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
    I tried to  create a record, but i only managed to create a header record and the partner record is not reflected in the transaction.  Why is that so? is there any indicator that i need to include?
    Thanks..
    Jen

    Hi Jen!
    I use this FM and it works perfectly.
    Use this to create a partner:
      gs_partner-ref_handle    = '0000000001'.
      gs_partner-ref_kind      = 'A'.
      gs_partner-ref_partner_handle = '0001'.
      gs_partner-partner_fct   = '00000001'.
      gs_partner-partner_no    = NO_PARTNER. "number of the partner, bu_partner
      gs_partner-display_type  = 'BP'.
      gs_partner-no_type       = 'BP'.
      gs_partner-kind_of_entry = 'C'.
    *  ls_partner_l-ref_handle    = '1'.
      gs_partner-ref_guid      = '00000000000000000000000000000000'.
      APPEND gs_partner  TO gT_partner .
      ls_input_field-ref_kind  = 'A'.
      ls_input_field-logical_key   = '0001'.
      ls_input_field-objectname  = 'PARTNER'.
      ls_input_field-ref_handle  = '0000000001'.
      ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'NO_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_FCT'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_NO'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      INSERT ls_input_field  INTO TABLE  gt_input_fields.
      clear ls_input_field-field_names[].
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
    *    it_schedlin_i   = gt_schedlin_i_com
        it_partner      = gt_partner
    *    it_sales        = gt_sales
    *      it_orgman       = gt_orgman
    *      it_appointment  = gt_appointment
    *      it_ordprp_i     = gt_ordprp_i
    *   it_product_i    = gt_product_i
    *      it_activity_i   = gt_activity_i
    *      it_pridoc       = gt_pridoc_com
      CHANGING
        ct_orderadm_h   = gt_orderadm_h
    *   ct_orderadm_i   = gt_orderadm_i
        ct_input_fields = gt_input_fields.
    *      ct_doc_flow     = gt_doc_flow
    *      cv_log_handle   = gv_log_handle.
    Hope it helps u,
    Regards,
    Mon.

  • How To Create A Technical And Business Systems For Web AS ABAP ???

    Hi Experts,
    How To Create A Technical And Business Systems For Web AS ABAP ???
    Please Let me Know All the Step-By-Step Process to Create ????
    Points Will be Given
    Regards
    Khanna

    Hi Sumit,
    When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
    So I got An Entry for the Technical System for XI System.
    Now i Deleted that and Executed RZ70 in R/3.
    When I Executed RZ70, I got this Error.
    <b> "RFC Call failed: Error Opening an RFC Connection "</b>.
    Now I am Unable to see Any Technical System  Under Web As ABAP. It's Showing Empty Now.
    Please Let me know
    Regards
    Khanna

  • How to create simple Adobe Forms in ABAP

    hi,
    i want to know how to create simple Adobe forms in ABAP

    Hi,
    Look at this eLearning Documents. This a good way to start.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning">SAP Interactive Forms by Adobe eLearning Catalog</a>
    Regards.
    Marcelo Ramos

  • How to create the ICONS and SYMBOLS

    how to create the ICONS and SYMBOLS
    Title was edited by:
            Alvaro Tejada Galindo

    HI,
    Check this sample code....Not mine...
    REPORT SHOW_ICONS.
    TABLES: ICON.
    INCLUDE <ICON>.
    FIELD-SYMBOLS: <F>.
    SELECT * FROM ICON.
       ASSIGN (ICON-NAME) TO <F>.
       WRITE:   /(5) <F>, 20 '@',21 ICON-ID+1(2),23 '@',ICON-OLENG,
                ICON-BUTTON,ICON-STATUS,ICON-MESSAGE,ICON-FUNCTION,
                ICON-NAME.
    ENDSELECT.
    Also Try this,
    INCLUDE <symbol>.
    INCLUDE <icon>.
    Write:/ 'Phone Symbol:', SYM_PHONE AS SYMBOL.
    SKIP.
    WRITE: / 'Alarm Icon: ', icon_alarm AS ICON.
    For more information check out the following link it will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e4a35c111d1829f0000e829fbfe/content.htm
    Regards,
    Padmam.

  • How to create a package and add a file?

    Hi all,
    I am new to Java and very much much confussed with how to create a package and then include some files any help will be very thankfull.
    Thanks for your help
    kka.

    Steps for creating a package in java are as follows:
    Choose a base directory for your classes. For example, you might choose c:\java\packages. Type the following command:
    set CLASSPATH=%CLASSPATH%;c:\java\packages
    Create subdirectories for each chapter or section, if you don't already have them.
    For each of the classes in the subdirectories, add the following line to the very top of each file:
    package directory-name;
    where directory-name is the name of the subdirectory the class file is located in.
    In other directories you may have class files that need to access one of the classes in another directory (package). To do this, write one of the following at the top of the class that needs the other class:
    import subdir.*;
    or
    import subdir.classname;
    Use the class by name in the new class file.
    Note that you can create sub-packages by creating subdirectories of the original subdirectories, and inserting package statements at the top of the java files in those directories.
    Hope this helps!

  • How to create new user and How can i assign end user roles

    Hi,
    I am new to SAP, please explain how to create end users and their roles
    Thanks
    ravi

    Hi,
    Roles are decided by IT managers. Suppose if Persons who are working in shopfloor or production side
    give authorization to Production order create , change and Confirm like that etc
    1. In role maintenance (transaction PFCG), choose the Authorizations tab page.
    2. To change the authorization data for the transactions assigned to the role, choose Change Authorization Data or Expert Mode for Profile Generation. Otherwise, a dialog box appears in expert mode (see Regenerating an Authorization Profile After Changes).
    Please take telp from Basis person also refer this link,
    http://help.sap.com/saphelp_46c/helpdata/EN/52/6714a9439b11d1896f0000e8322d00/frameset.htm
    Thanks

  • How to create portal user and integrate with external appl login

    How to create portal user and integrate the user with external application for single sign-on ?
    I want to access my external application thru portal user ..?
    Shyam

    Hi Jithin,
    The link that you've shared talks about a different scenario.
    In my case, I want to pass the portal user id when the user clicks on the Help Link present in the header area.
    I am trying to pass it along with the Help Link Url property of a masthead iview but it is not getting passed to the target Url.
    I would like to know if it is possible to pass the Portal User Id in this way or not.
    Though if we create a appintegrator iview and pass the user id <User.UserID> along with the target Url, it reaches there.
    Thanks & Regards,
    Anurag

  • How we create custom infotype and how to configure with its subtypes.

    hai abap-hr gurus,
    how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
    plz help me for this with an example code.
    thanks..
    kiran kumar

    Hi Kiran,
        Please fallow the below steps to create the custom infotype. If you have any quires let me know.
    For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
    then select the `Employee Infotype' radio button
    after that select the `PS Structure Infotype'
    then click on Create… A separate table maintenance window appears
    then Create a PS structure with all the fields you want on the infotype
    Save and Activate the PS structure
    now Go back to the initial screen of PM01
    Click on `All' push button. It takes a few moments
    Click on `Technical Characteristics’. Infotype list screen appears
    Click on `Change'(pencil) button
    Now select your Infotype and click on `Detail' (magnifying glass) button
    Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
    Give your subtype field as subtype field & Save and come back to PM01 initial screen
    Click on `Infotype Characteristics' … Infotype list screen appears
    Click on `Change' (pencil) button & on New Entries
    and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
    to fill yours). Now save ur entries
    Now the Infotype is created and ready to use.
    If you want to change the layout of the Infotype as per your
    requirement…
    In the PM01 initial screen…Select `Screen' radio button and give
    2000 as the screen name, then click on edit.
    In the next screen.. Select `Layout Editor' and click `Change'.
    Screen default layout appears…here you can design/modify the
    screen..change the attributes of the fields..etc.
    Save and activate. (Don't forget to `Activate at every level)
    Regards,
    Ramakrishna kotha.

  • Can any 1 tell me how to create budget journal and how to enter journal ?

    hi all+
    Can any one tell me how to create budget journal and how to enter journal against that budget ?+
    Regards+
    Yasir+

    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/gl/budjrnl.htm#index-Budget-journals-Entering--0
    Enter budget journals to maintain an audit trail for your budget balances. You can use budget rules to calculate budget journal amounts automatically.
    When you post budget journals, the journal amounts update existing budget balances. You can review and change your budget journals before posting them.
    Attention: When you use budget rules in Journal Mode, General Ledger calculates the appropriate debit or credit needed to achieve the balance you enter for the account type.
    Prerequisites
    1. Define a budget
    2.Open one or more years for your budget
    3.Define a budget organization
    4. Assign the "Entered" budget entry type to the accounts for which you want to enter budget journals
    To enter budget journals for a single account:
    1. Navigate to the Enter Budget Journals window.
    2. Specify the Budget Organization for the account to which you want to budget. If the budget organization is password-protected, you must enter the password before you can enter budget journals.
    3. Enter the Budget you want to update. You cannot use a budget that is frozen.
    4. Enter the range of Accounting Periods to which you want to budget.
    5. Enter the Currency of the budget amounts you are entering. The accounts must be assigned to the budget organization for this currency.
    6. Choose Journal Mode from the region poplist to enter budget amounts in a journal format.
    You can also use Single Row Mode or Worksheet Mode to enter budget journal amounts. However, you can only generate budget journals from these entry modes when you use the Enter Budget Journals window.
    Additional Information: When you use Journal Mode, Balance Type is a display-only field. It displays Budget when you are entering budget journals. In the Enter Journals window, this field displays Actual when you are entering actual journals.
    7. Enter or query the Account to which you want to budget. You can also switch to Worksheet Mode to easily query accounts, then return to Journal Mode to enter budget journals.
    8. Enter a Debit or Credit amount for each period. Do not enter journal amounts if you want to use budget rules to calculate and distribute budget amounts.
    9. Choose Create Journals to create a budget journal batch. If you are using budgetary control, you specify a funds action when you create the batch.

  • No release template matching the current build definition was found to create a release and deployment for.

    When I try to start a build that's linked to a standard release template (vNext template) I get "No release template matching the current build definition was found to create a release and deployment for." and the build fails. 
    I am able to successfully start a release from the Release management client so I don't think there is a problem with the release template. If I start a build with agent based template it works fine so I don't think there is any TFS-RM integration issue. 
    My environment is a 2013 Update 4 (VS, TFS & RM). I even tried to uninstall and re-install all the components still no luck. 
    I can't find anything useful (or obvious error) in the release management log files & event log (all the RM components log are set to Verbose)
    I even tried to trigger a release (vNext) via a REST API suggested in a website but no joy.
    Thanks in advance.
    Bharath

    Hi Bharath, 
    Thanks for your reply.
    Do you mean that you can start this standard release template from your RM Client? 
    There’s the below error message in your RM Server log, it seems RM Server try to find the Deployment Agent, but standard release needn’t the deployment agent.
    ErrorMessage="No communication from the deployer. Possible reasons include: 'Deployer is not installed', 'The service is stopped', 'Deployer is not well configured', 'Deployer is not responsive'"
    Additionally, try don’t specific the stage value in your build definition>>Process>> Release Target Stage, then queue build definition again.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How do I prepare my iPad to give to a new owner?

    What are the steps I must take to transfer all my apps and info to my new iPad from my ipad2?  I want to give my iPad 2 to a family member and I want him to be able to have the iPad 2 to be like a brand new one so that he can set it up the way he wan

  • Regarding #SegmentCount# function

    Hi All, we are trying to send multiple PO's in a single transaction using the EDI X12 over Generic Exchange protocol, for the SE01 tag to get the segment count we are using a function #SegmentCount#. Say suppose in a transaction if i have 2 PO's. For

  • Why does Itunes keep opening every 30 seconds?

    When I have Itunes minimized on my toolbar it keeps popping up in front of all my other windows and programs about every 30 seconds. It is making it impossible to listen to music in Itunes while I play a game or work on my writing. Any help would be

  • Mail merge in Pages using Address Book - problem with fields

    I am a fan of using the many of the Mac OS, iLife and other Apple applications together and just purchased iWork '09. I'd never done mail merges in previous versions of Pages, but I decided to try today with my Address Book data. I stumbled across so

  • Settings for Video Podcast?

    I don't have a video iPod, but a friend told me that my video didn't sync with her new iPod Nano via iTunes. Trying to figure out if there's something wrong with the encoding. I read in the new video capable iPod specs... H.264 video, up to 1.5 Mbps,