How to execute and test servlets

I wounder if smbd can explain me what software do I need to execute my servlet program. I'd like to test my first servlet on local machine. How to do that?
thnks

Erm to be more helpful...
Tomcat is a servlet container freely downloadable from Apache. You will find it here:
http://jakarta.apache.org/tomcat/index.html
with documentation on how to use it.

Similar Messages

  • How to Create and Test a Zone of Type F1-APP-URL

    Hi,
    I would like to how to create and test a Zone of Type F1-APP-URL?
    What all is required to setup an ADF application based URL in F1-APP-URL, what to configure and what are the basics or definite steps required to have a Zone of Type F1-APP-URL up and running in the application? Any Sample ADF components to be created?
    Please kindly let me know. Any test or dummy URL existing already which is based on ADF?

    Refer to Doc. Id 1515146.1 on the support site. Although for the moment it refers to a MWM example and may not be much of a help but it'd give a basic idea as to how it should be done.

  • How to deploy and test J2ME application on handset???

    Hi all,
    I write an application using j2mewkt toolkit and generated all jad and jars.It's working fine on test models but want to test it on handset.Can naybody tell me how to deploy and test it on Handset,what basics i required,kindly tell me step-by-step as i m novice in J2ME.
    thanx

    STEP-1
    Create the package - In the J2ME Wireless Toolkit Menu Select "Project"-"Package"-"Create Package". It creates jar and jad file in the bin directory.
    STEP-2
    Converting this file from m/c to device : There are many tools to transfer your midlet suites to your device. for example MIDWay Tool
    The MIDWay tool allows you to download MIDlet suites to your developer-enabled device via SERIAL CABLE. Please note this is a preview of the tool included in the upcoming Motorola SDK for J2ME v3.1. The MIDWay v2.6 preview only supports the following devices : V60i, V66i, T280i, T720, T720i, A830
    For this tool to work properly your device must be enabled for development and the "Java
    STEP : 3
    Open the jad file from Midway Appplication in which it imports the jad file and export it to the device. This is done by jam (Java Application Manager) takes responsibilities for this function i.e., the jad file is installed to the device. After installing it u can test as same as in emulator.

  • Test executive and Test stand deployment cost

    Hello,
    would some NI support engineer kindly answer below questions ? i would be obliged.
    we have been running customized Test executive built from Test executive toolkit. We are now making  decision as to whether We should migrate to test stand or keep the existing structure? Here are some questions:
    1) in case We switch to test stand, do We still need to buy runtime engine license ?
    2) can we call executables in Test stand ?
    3) stating from ground zero, what is the deployment cost estimate between Test stand and customized test executive scenarios, from end user point of view ?
    -Ahmed

    Hi Ahmed,
    To answer your questions:
    1)  You will need to have a deployment (runtime) license for all the machines that you plan on running your application on.  However, you will only need a full development license for the computer that you are actually developing the application on.  You can see a full explanation of the different types of TestStand license in the document "When Should I Purchase a License for my TestStand System?"
    2)  In regards to calling executables, TestStand has a builtin step to call executables making it extremely easy to do.  You can download an evaluation copy of TestStand here to see how easy it is to use as well as see the simple Call Executable Step.
    3)  In regards to price comparison between TestStand and a customized test application, this really depends on the project.  Each project can have a different cost.  However, you can take a look at this cost analysis to get a general idea of one example of cost comparison.  This is just an example and also compares an older version of TestStand.
    For more specific information about cost, please contact a sales representative at (888) 280-7645.
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • How to achieve (and test) the crossplatformity of an applet?

    I've written an applet which I put in jar. It is successfully being launched on my system both locally and from geocities web site. (WinXP JDK 1.4 Forte4.0)
    A friend of mine could not load the applet from the web site. He has XP as well, but could be he does not have Java plugin yet.
    Suppose my applet is correctly written, how do I know? How do I know that it is his problem, not my bug?
    How do I generally test my applet/jar to be crossplatform? (Win, UNIX, Mac, etc.)
    Is there a way to do it using my own set up only (my own computer/OS)?
    What does one do to be sure that he has written a correct applet that will run on as many platform as possible?
    Or what minmal precautions should be taken when writing such applet?
    Here is the link to the page my applet is located on. Comments are welcome.
    http://www.geocities.com/egor_kobylkin/applet_test.htm
    I would appreciate the links to the resources I should check!

    The JVM from Microsoft, which most users of Internet Explorer are likely to use, still is on the level of JDK 1.1. So check that you don't e.g. use Integer.parseInt() and other stuff added with J2SDK 1.2 or later.
    You probably installed Sun's JRE the way that your IE uses it instead of the MS JVM. I don't know how to disable this, but I think it's possible.
    You can test an applet on your computer if you have different browsers. Look at the home pages of the manufacturers to see whether they use their own JVM or Sun's JVM or whatever JVM they find on the PC. E.g. Opera uses Sun's JVM, so it won't help in testing. But I checked your site with Netscape 4.7 and the applet didn't work. So I guess it uses an older JVM. You can install multiple versions of Netscape on your PC, e.g. 4.7 and 6.2, and then use 4.7 to test your applets for compatibility. (You cannot install more than one version of Internet Explorer.)
    You can also install more than one JRE, and then change the classpath to the old JVM (i.e. 1.1) when checking whether your applet works with it, too.
    Monika.

  • How to compile and run servlets in Eclipse?

    Does somebody known how can I compile and run servlets in Eclipse IDE? I've added and configured Tomcat's plugin. I've created a project with my example servlets source, and I don't know what farther. How do I have compile it without main method? I must add web.xml file from Tomcat's directory into projects in Eclipse and modify it?
    THX Chudzik

    Try googling for "eclipse servlet", surely someone has written instructions.

  • TMS - step-by-step example on how to setup and test TMS

    I have installed ECC6 (AS ABAP) on NW2004s on Oracle, Windows platform. This is a 1-system landscape.
    I would like to work hands-on with Transport Management System(TMS). I have read the theory part.
    I need a document that shows how to setup a test TMS (transport route, package e.t.c.) , create a test transport, export and import the test transport in a 1-system landscape?
    I'm looking for a simple test case that will help me understand TMS.
    Thanks

    Hi,
    For single system landscape..
    Go 000, DDIC ... STMS--> here it will ask for domain controller -- give self domain --->   Domain controller has been assigned .
    Now again  goto STMS> System overview>SAP SYSTEM >Create ->Virtual system- give name V<SID>
    till this point your domain controller is created and virtual system is created .Next our aim is to setup STMS
    again goto STMS>transport routes> change > configuration>statndard configuration ---> select second option (development and productino System ) because here your dev system will your own system and virtual system would be production  system .
    ---> pop up will come -> give DEV - SID and Productino SID- it willl  automatically create the route .
    Save this and exit.
    This way We can set single system landscape.
    Thanks and Regards,
    Arun Rathour

  • How to compile and test SIM card applet

    Dear all
    I have a sample applet:
    package sim.access.sample;
    import sim.access.*;
    public final class helloFile extends Applet implements ToolkitInterface
           private static SIMView  theGsmApplet;
           private static USIMView aUsimApplet;
           private static AID theGSMAppletAID;
           private static AID theUSIMAppletAID;
           private static final byte[]  baGSMAID = {(byte)0xA0,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x09,(byte)0x00,(byte)0x01};
           protected helloFile(){
           public MyApplet () {
                theGSMAppletAID = new AID();
                // get a reference to the GSM interface
                theGsmApplet = SIMSystem.getTheSIMView(theGSMAppletAID);
           public void doSomethingWithAFile(){
                   // returns the SIMView of the currently selected Applet
                   // allows to implement services that are depend on specific
                   // file in GSM or USIM application as well as to implement
                   // technolgie independent applets.
                   SIMView theView = SIMSystem.getTheSIMView();
                   if(theView instanceof SIMView){
                        // do something with a GSM file
                   else if(theView instanceof USIMView) {
                        //do something with a USIM specific file
                   // Or request a View to a specific application
                   USIMView theView = SIMSystem.getTheSIMView(aUSIMAppletAID);
    }I want to compile and test it, how can i do it ???

    I am trying to compile it on eclipse using JCOP:
    package mytest;
    import sim.toolkit.ToolkitException;
    import sim.toolkit.ToolkitInterface;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.ISOException;
    public class Test extends Applet implements ToolkitInterface{
         public static void install(byte[] bArray, short bOffset, byte bLength) {
              // GP-compliant JavaCard applet registration
              new Test().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
         public void process(APDU apdu) {
              // Good practice: Return 9000 on SELECT
              if (selectingApplet()) {
                   return;
              byte[] buf = apdu.getBuffer();
              switch (buf[ISO7816.OFFSET_INS]) {
              case (byte) 0x00:
                   break;
              default:
                   // good practice: If you don't know the INStruction, say so:
                   ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
         public void processToolkit(byte arg0) throws ToolkitException {
              // TODO Auto-generated method stub
    }It is giving following error on package name:
    resolving constant-pool of clazz Lmytest/Test; failed: missing export file for package sim/toolkit

  • How to develop and test web servises with wsit in jdeveloper enviroment

    hi, all. Just want to ask one realy simple quastion.
    I'm new with web servises, so my question may be doesn't fall well into this section , but this community looks friendly for me and i hope to get some usefull links and advises.
    First of all could anybody say me if i'm righ or wrong with the following suggestions:
    1. What is the principal difference between axis 2 and wsit products? Do i understand right that they both extend or support so called jax-ws2 API and represent different approaches in that (are they competitors?), or this products serve for different sakes at all and could be used together? I want to understand without much digging how these products correlate with each other...
    2. If i'm right what is oracle favor? And if oas standard supply doesn't include wsit, how to install and use this product for creating interoperable web servises in jdeveloper enviroment? ...or jax-ws 2.1 wasn't included in oc4j v10 and will be the part of v11 only?
    Thanks in advance. Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

    You have to use any type of Version Control (e.g subversion).
    You can read about Version Control. But I will talk about subversion in brief description:
    1- Setup subversion server.
    2- From subversion server create new Repository and define users (or use users from active directory).
    3- From JDeveloper Main Menu --> View --> Team -- > Versioning Navigator --> Create new connection to your subversion repository.
    4- Create new ADF application in JDeveloper.
    5- In Jdeveloper Main Menu ---> Versioning -- > Version Application -- > select the subversion connection.
    6- Add the application in subversion.
    7- All developer should make a connection to the repository they will see the ADF application.
    8- Right Click on the ADF application --> Check Out.
    9- All developer will take a copy of the ADF application in their local machine.
    10- If developer make changes in the application he can commit changes to repository and all others users can update changes.
    This is a quick and brief description of how to use subversion for team development.

  • How to configure and test workflow for  Creating Leave Request

    Hi,
    When I select <b>leave request</b> iView in portals I get an R/3 screen titled "Create Leave Request".And when I fill in the details for <b>approver</b> and press<b> send</b> I get this error message <b>"You are not one of the possible agents of the task".</b>
    So help required to configure and test the workflow behind <b>Create leave request iView.</b>
    Regards,
    Pavanmeet.

    Pavanmeet,
    you have to set all activities in the workflow to "general task" as well, not only for WS12300111 itself (doubleclick on each symbol with the "triangle").
    check the status of the sent leave request in transaction PTARQ (Display Documents). Here the "next agent" & the "pers. no" of the next agent is of interest.
    logon with the user, that is saved in infotype 0105 of the above mentioned pers.no. there should be the approve request.
    you can check the status of the workitems with SWI1 (i assume your system is prepared for workflows , check SWU3)
    Message was edited by: Achim Hauck

  • How to configure and test workflow for Creating a leave Request?

    Hi,
      When I select <b>leave request</b> iView I get an R/3 screen  titled "Create Leave Request".And when I fill in the details for <b>approver</b> and press <b>send</b> I get this error message <b>"You are not one of the possible agents of the task"</b>.
    So help required to configure and test the workflow behind <b>Create leave request iView</b>.
    Regards,
    Pavanmeet.

    Pavanmeet,
    you have to set all activities in the workflow to "general task" as well, not only for WS12300111 itself (doubleclick on each symbol with the "triangle").
    check the status of the sent leave request in transaction PTARQ (Display Documents). Here the "next agent" & the "pers. no" of the next agent is of interest.
    logon with the user, that is saved in infotype 0105 of the above mentioned pers.no. there should be the approve request.
    you can check the status of the workitems with SWI1 (i assume your system is prepared for workflows , check SWU3)
    Message was edited by: Achim Hauck

  • How to configure and test a workflow in CRM 5.0

    Hi All,
    As I am new to workflows it will be great if any of you shared a guide where I can create and test a workflow in CRM 5.0 tcode PPOMW.
    Thanks for all your help in advance.
    Best regards,
    Divya

    This might help:
    http://help.sap.com/saphelp_crm50/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/cc/d40b37da4de72fe10000009b38f889/content.htm
    Regards,
    Kaushal

  • How to execute package from Servlet

    Hi all...
    I have set of class files in a package called iDen_parser.
    My main class name is jump_calc..
    String[] cmd={"cmd.exe" , "/c" ,"java iden_parser.jump_calc","d:/test.log","d:/test.txt"};
    Runtime runtime = Runtime.getRuntime();
    process = runtime.exec(cmd);
    I am not getting any output...
    I have placed the folder Iden_parser in current working directory itself.
    While I when I am trying out simple program HelloWorldApp, it's working out fine.
    String[] cmd={"cmd.exe" , "/c" ,"java HelloWorldApp};
    Runtime runtime = Runtime.getRuntime();
    process = runtime.exec(cmd);
    So anyone ,pls help me out in executing the pakage from servlets
    Thnk
    VIjay

    Hi...
    I am placing my code here
    String path1 ="cmd /c dir /d";
    String[] cmd={"cmd.exe" , "/c" ,"java
    java HelloWorldApp"};
    String[] path ={"cmd.exe",null, "
    java iden_parser.jump_calc", "d:/test.log","
    d:/mygod.txt"};
    Replace....
    String[] path ={"java iden_parser.jump_calc", "d:/test.log","
    d:/mygod.txt"};
    Runtime runtime = Runtime.getRuntime();
    Process process = null;
    try {
    process = runtime.exec(path);
    Replace....
    process = runtime.exec(path, null, "the dir from where u call the stand alone program on command prompt");
    outHTML.println("PAth" +path);
    BufferedReader in =
    new BufferedReader(new
    er(new InputStreamReader(process.getInputStream()));
    // Read and print the output
    String line = null;
    outHTML.println("Something had happen");
    if((line = in.readLine()) == null)
    outHTML.println("Empty");
    while ((line = in.readLine()) != null) {
    outHTML.println(line);
    catch (Exception e) {
    outHTML.println("Did not execute the command
    command " );
    //out.println("Problem with finger: " +
    // ServletUtils.getStackTraceAsString(e));

  • BOXIR2, How to Build and Test OLTP Connection

    Hi Everybody,
    In BOXIR2. I have added OLTP LIC Keys. I am not sure about how to test the OLTP connection is working or not.
    Please provide steps for below Items:-
    1.     Steps to configure the connection for OLTP
    2.     How to test the OLTP is working or not?
    I would be grateful for for you help
    Thanks,
    Srinivas

    Hi Debraj,
       You should be able to do that in SM59 of the XI Box.
    Create the connection under "HTTP Connections to R/3 System".
    Provide the Target Host IP Address.Service Number and Path Prefix.
    Select the logon procedure as SAP Standard.
    SSL Inactive.
    Provide Logon details.
    Regards,
    Ravi

  • How to compile and Run servlet Program

    Hi,
    pls help me the following doubt
    i am using Tomacat 4.1 server.
    1. Where is save Servlet program?
    2. How to set classpath?
    3. how compile and run?
    bye
    Mathi

    1. Where is save Servlet program?
    2. How to set classpath?
    3. how compile and run?
    http://www.coreservlets.com

Maybe you are looking for

  • How to delete dead links

    Hello I would like to delete dead links in a PDF document. I use Visual C++ to create my code and generate an API plug-in for Acrobat 8. Can you give me a sample code to do it. Thanks David

  • Urgent Help need for ABAP Custom Process Types

    Hi Gurus, I have created a Custom Process Type for ABAP program which returns status (Success or Failure). I followed the below procedure to create a custom ABAP process type. In RSPC, I went to Settings -> Maintain process types I selected the ABAP

  • What is the best way to create a website on a imac g5  (2005)

    After reading a variety of reviews of Life 08 I want to know what the best way to create a website. Should I buy ilife 08 or do something else? There is no iweb on my g5.

  • HOWTO : Computations on total ?

    I've a report with 3 columns two of them are numbers and the third is a computed % of the previous one (I compute the % directly in the query). In my interactive report I define 2 aggregates in order to obtain the sums the first 2 columns. Now I need

  • Abstract class without absract method

    Folks: I know it's legal to create an abstract class with out any abstract method. I have seen some code like that written by somebody else. But I really don't know the purpose of doing it. Can anybody give me a hint? Thanks a lot!