Deploying Java Servlets

After developing applications in JDeveloper, I would like to
deploy them into the portal. What is the best way to do it?
Thanks

Well, I at least figured out how to start Tomcat. Here is the article which tells you how to enable it in Server Admin 10.5:
http://docs.info.apple.com/article.html?path=ServerAdmin/10.5/en/c2ws4.html
The problem I'm having now is how to access my jervlets and apps. All the tomcat documentation is for running stuff on localhost:8080 but I don't want to run it there. I want to run it on my Mac Server 10.5. Just using http://mymacserver.net/mywebbapp/page.html doesn't seem to work. I've put my files in the Library/Tomcat/webapps directory (as per the documentation) but it can't find them.
The help files say that you can verify Tomcat is running by entering the URL for your site followed by :9006 but that isn't working. I've started and stopped the web container so Tomcat should be running but I can't even get the default page to show up.

Similar Messages

  • How to embed URL of deployed java servlet into Android code

    I have deployed my servlet code on cloud which access the database cloud , but when i try to access the URL of deployed application , it asks for my credentials (username and password)....
    Now that i want to embedd my servlet link on cloud to my android app code , how to escape the credentials , or is their any way so that i can add my username and password in my servlet code itself. This is my servlet code and it is working fine..
    Context ctx = null;
            Hashtable ht = new Hashtable();
            ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            Connection conn = null;
            Statement stmt = null;
            ResultSet rs = null;
            // out.print("system");
            try {
                ctx = new InitialContext(ht);
                javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("javatrial5196db");
              //  out.print(ds.toString());
                conn = ds.getConnection();
                stmt = conn.createStatement();
                rs = stmt.executeQuery("select * from test");
                while (rs.next()) {
                    out.println(rs.getString("id") + "   " + rs.getString("password") + "<br>");
                conn.close();
                stmt.close();
            } catch (Exception e) {
                out.print(e);

    What is the intended behavior here, how will the user be authenticated if credentials are not obtained from the user ? By default the JCS applications will be secured and the system will prompt for login, you can disable the login by adding "<login-config/>". You can also configure the authentication to use BASIC / FORM authentication instead. Hard coding credentials to servlet / DB table does not sound like a good solution to me though.. For details on security refer to this document.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Problem when deploy my servlet

    I have developed a simple servlet.
    There are some code to do file operation in
    my program. When I use JDeveloper to develop
    and test, it works well. This is just because
    the file it need just locates in the current
    directory.
    But after I deploying it, it can't access
    that file any more. Now I just
    wonder how could I tell it where to get
    the file, just write the absolute file path,
    or could I set some envirenment variables.
    Platform: win2k server
    Thanks
    null

    It could be that you haven't set the classpath correctly in the runtime environment, or it could be that you didn't package all of the files you needed when you deployed your servlet.
    The online documentation explains how to deploy a servlet. In JDev 3.1, you'll find this information under:
    User Guides
    -> Developing Applications
    -> Developing Web Applications
    -> Developing Java Servlets
    -> Deploying Java Servlets
    Blaise

  • AccessDenied Error deploying Java JSP app using Eclipse to Azure

    Hi,
    Following the the tutorial for deploying java servlet app on Azure using Eclipse on windows.
    Getting AccessDenied error while trying to upload, sample works locally.
    Thanks
    Raj

    Hi Raj,
    Which tutorial do you follow? Please have a look at below article, it gives details steps about how to deploy application to azure use Eclipse, please try again step by step, hope this helps.
    #http://msdn.microsoft.com/en-us/library/azure/hh690944.aspx
    Best Regards,
    Jambor
    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.

  • Location of java servlet (not jsp) deployed on Java Stack

    Hello,
    Why this forum? this post is related to the way of calling a java servlet deployed on the java stack, so it's related to the structure of the stack than to real java programming.
    Usually, I develop JSP servlets which are easily called either with a mapping or not. I have deployed now a java servlet and added a mapping to it by modifying the xml source itselft in its descriptor, but after deployement I am not able to reach the resource.
    In the windows explorer of the java stack I find in j2ee>cluster>server>apps my application as follows:
    app_ear>servlet_jsp>app>root>WEB-INF>classes>my class files
    app_ear>servlet_jsp>app>root>app.jsp
    This time it's not a jsp that I want to call: app/app.jsp but my java servlet which lies in the classes subdir.
    Could someone help my to achieve this or is it the wrong way, we can only request jsp applications?
    Kind regards,
    Tanguy Mezzano

    Hi Vladimir,
    here's my web.xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>WEB APP</display-name>
         <description>WEB APP description</description>
         <servlet>
              <servlet-name>SSORedirect3.jsp</servlet-name>
              <jsp-file>/SSORedirect3.jsp</jsp-file>
         </servlet>
         <servlet-mapping>
              <servlet-name>AuthenticatorServlet</servlet-name>
              <url-pattern>/SSOredirect3</url-pattern>
         </servlet-mapping>
         <security-constraint>
              <display-name>SecurityConstraint</display-name>
              <web-resource-collection>
                   <web-resource-name>WebResource</web-resource-name>
                   <url-pattern>/*</url-pattern>
                   <http-method>GET</http-method>
                   <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>DefaultSecurityRole</role-name>
              </auth-constraint>
         </security-constraint>
         <security-role>
              <role-name>DefaultSecurityRole</role-name>
         </security-role>
    </web-app>
    And in my jsp file, I have a form with this kind of code:
    <form name="xyz" method="GET" action="http://j2eeserver:50000/SSOredirect3/SSOredirect3">
    I get this error in my logs:
    com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Requested resource [SSOredirect3/servlet/AuthenticatorServlet] not found.
    Exception id: [000C299F469E00650001D8E900000CCC000458E27823275B]#
    Best regards,
    Tanguy Mezzano

  • How to deploy a servlet on WebLogic 6.1

              I have tried to deploy a servlet using WL6.1 following the instructions at this URL
              : http://edocs.beasys.com/wls/docs61/quickstart/quick_start.html
              but whenever I try to access the servlet from the web browser I get a HTTP 404 -
              Not Found message. The only step I omitted was step 2, as my servlet does not have
              package.
              Could anyone please advise ? Thanks.
              

              The inner classes are located in the same directory as the servlet itself, so isn't
              that part of the classpath by default. (i.e. java classes in the same package
              in the same folder find each other just fine).
              "Deepak Vohra" <[email protected]> wrote:
              >
              >Add the directory containing the inner classes to the Classpath.
              >
              >thanks,
              >
              >Deepak
              >
              >"Brian Schneider" <[email protected]> wrote:
              >>
              >>Yeah I've done that many times and redployed the war file. I even stopped
              >>and
              >>started the server each time still to no avail. Very frustrating.
              >>
              >>"Deepak Vohra" <[email protected]> wrote:
              >>>
              >>>Redeploy web application after servlet has been modified.
              >>>
              >>>http://edocs.bea.com/wls/docs70/webapp/
              >>>
              >>>
              >>>thanks,
              >>>
              >>>Deepak
              >>>
              >>>
              >>>
              >>>"Brian Schneider" <[email protected]> wrote:
              >>>>
              >>>>Makes sense. I made those public and for some reason it still is
              >doing
              >>>>the same
              >>>>thing:( Thanks again. Anything else would be great.
              >>>>
              >>>>"Deepak Vohra" <[email protected]> wrote:
              >>>>>
              >>>>>If a servlet as inner classes, the inner classes are loaded by a
              >different
              >>>>>classloader
              >>>>>than the Servlet class. For the servlet class to acces the inner
              >classes
              >>>>>make
              >>>>>the inner classes public.
              >>>>>
              >>>>>
              >>>>>"Brian Schneider" <[email protected]> wrote:
              >>>>>>
              >>>>>>Does it matter if the ExcelExport has inner classes (i.e. when compiled,
              >>>>>>3 class
              >>>>>>files exist)? The JspView is only one class.
              >>>>>>
              >>>>>>"Brian Schneider" <[email protected]> wrote:
              >>>>>>>
              >>>>>>>Yes... the compiled class is in the WEB-INF\classes\export (just
              >>>as
              >>>>>>the
              >>>>>>>JspView
              >>>>>>>is in the WEB-INF\classes\view folder).
              >>>>>>>
              >>>>>>>
              >>>>>>>"Deepak Vohra" <[email protected]> wrote:
              >>>>>>>>
              >>>>>>>>Is the ExportExcel servlet in the DefaultWebApp/WEB-INF/classes/export
              >>>>>>>>directory?
              >>>>>>>>
              >>>>>>>>
              >>>>>>>>
              >>>>>>>>Brian Schneider <[email protected]> wrote:
              >>>>>>>>>I am getting the same problem... but with my package defined.
              >>
              >>>The
              >>>>>>>weird
              >>>>>>>>>thing is the JspView works fine but the ExcelExport does not,
              >>even
              >>>>>>>though
              >>>>>>>>>(to me) they are configured the same. Here's the details of
              >my
              >>>>web.xml.
              >>>>>>>>>
              >>>>>>>>> <servlet>
              >>>>>>>>> <servlet-name>JspView</servlet-name>
              >>>>>>>>> <servlet-class>view.JspView</servlet-class>
              >>>>>>>>> </servlet>
              >>>>>>>>> <servlet>
              >>>>>>>>> <servlet-name>ExportExcel</servlet-name>
              >>>>>>>>> <servlet-class>export.ExportExcel</servlet-class>
              >>>>>>>>> </servlet>
              >>>>>>>>> <servlet-mapping>
              >>>>>>>>> <servlet-name>JspView</servlet-name>
              >>>>>>>>> <url-pattern>/servlet/view.JspView</url-pattern>
              >>>>>>>>> </servlet-mapping>
              >>>>>>>>> <servlet-mapping>
              >>>>>>>>> <servlet-name>ExportExcel</servlet-name>
              >>>>>>>>> <url-pattern>/servlet/export.ExportExcel</url-pattern>
              >>>>>>>>> </servlet-mapping>
              >>>>>>>>
              >>>>>>>
              >>>>>>
              >>>>>
              >>>>
              >>>
              >>
              >
              

  • How to convert old Java Servlets to OSGi "Servlet" Bundles

    Hello I'm looking for some help/insight on the best way to convert some of our old Java Servlet code into new OSGi Bundles that can be accessed as servlets.  I'd like to be able to install the new bundles then access them on one of our CQ instance using something like "/servlet/servlet_name".
    So far I've been able to create a new bundle, and install it into CQ but I haven't been able to access the bundle at the servlet mapping URL that I would expect.  So far what I've found online has lead me to believe that I need to use the Felix Annotations to describe my servlet.
    @Component(immediate = true, metatype = true, label = "Servlet Name")
    @Service
    @Properties({
        @Property(name = Constants.SERVICE_DESCRIPTION, value = "Servlet Name"),
        @Property(name = "sling.servlet.methods", value={"GET"}),
        @Property(name = "sling.servlet.paths", value = "/servlet/my_servlet_mapping"),
        @Property(name = Constants.SERVICE_VENDOR, value = "VendorName")
    public class TellAFriend extends HttpServlet {...
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
    Once I have this installed, and running without an error in the logs for CQ I tried to go on my local instance to http://localhost:4502/servlet/my_servlet_mapping but I only get 404 Resource Not Found errors.  I've even gone to the Sling Resource Resolver and it doesn't resolve to anything either.
    Is there more than the Servlet Information need into the Annotations to convert "old" code into a new OSGi Servlet Mapped Bundle?

    I must be missing something else configuration wise since I created a new Servlet basically using the code you provided above.  I deployed it as part of the bundle that I'm trying to create.
    The bundle installs and stars fine but I still can't access the servlet.  Are there CRXDE based configurations that are requried too to configure Servlets. 
    Here's my test servlet file.  I tried going to http://localhost:4502/servlet/TestCQServlet and just get the same 404 error I'm getting for the other 2 Servlets Java classes in my Bundle.
    import java.io.IOException;
    import javax.servlet.ServletException;
    import org.apache.felix.scr.annotations.sling.SlingServlet;
    import org.apache.sling.api.SlingHttpServletRequest;
    import org.apache.sling.api.SlingHttpServletResponse;
    import org.apache.sling.api.servlets.SlingSafeMethodsServlet;
    @SlingServlet(paths = "/servlet/TestCQServlet", methods = "GET")
    public class TestCQServlet extends SlingSafeMethodsServlet {
        // @Reference
        // private Repository repository;
        private static final long serialVersionUID = 6239754936223276983L;
        @Override
        protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {
            response.setHeader("Content-Type", "application/json");
            response.getWriter().print("whatever");

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Deploying Java-based Web application in Linux Red Hat

    Dear All:
    I would like to deploy my Java Servlets and JSPs in a Linux Web Server Machine that also will run MySQL.
    I would like to know about the complete softwares that require to run the web application.
    Here I am mentioning few of them and would like to know whether they are correct and/or I need more.
    1. Java
    2. Linux OS
    3. Apache Web Server
    4. Tomcat
    5. MySQL
    6. JDBC
    Looking forward to receiving you kind and prompt help.
    Sincerely,

    If you really want to use the Apache HTTP Server next to Apache Tomcat Server, then look for the mod_jk. Otherwise just leave that Apache HTTP Server away.
    To the point: just learn about each of those components. Just Googling "something tutorial" is enough to find a tutorial about something. As you've posted this in the JDBC forum, I guess the core problem is the JDBC API. [Google it|http://google.com/search?q=jdbc+tutorial].

  • Deploying a Servlet in Web Logic Server 6.0

              Hi,
              I am trying to deploy a simple servlet in WebLogic Server.
              I have done the following steps.
              1) Compiled the MyWorld.Java Servlet Successfully in c:test\ Directory..
              2) Created WEB-INF/Classes Directory in the home Directory of WebApplication Directory..
              C:\bea\wlserver6.0\config\mydomain\applications\
              3) Copied the Class file into the WebApplication Directory i.e
              C:\bea\wlserver6.0\config\mydomain\applications\WEB-INF/Classes
              4) Executed in the Browser using following URL:
              http://127.0.0.1:7001/MyWorld
              But, I am getting this error:
              Error 404--Not Found
              Please let me know if the above procedure is wrong, then what are the exact steps
              involved in Deploying a servlet in WebLogic Server.
              Thanks,
              Ram.
              

    My installation has a DefaultWebApp directory under mydomain/applications,
              try moving everything down there. (I'm on 6.1 but I think 6.0 is the same)
              Eliot Stock
              eliot [ at ] carbonfive [ dot ] com
              http://carbonfive.com
              "Ram" <[email protected]> wrote in message
              news:3bc71641$[email protected]..
              >
              > Hi,
              >
              > I am trying to deploy a simple servlet in WebLogic Server.
              > I have done the following steps.
              >
              > 1) Compiled the MyWorld.Java Servlet Successfully in c:test\ Directory..
              >
              > 2) Created WEB-INF/Classes Directory in the home Directory of
              WebApplication Directory..
              > C:\bea\wlserver6.0\config\mydomain\applications\
              > 3) Copied the Class file into the WebApplication Directory i.e
              >
              > C:\bea\wlserver6.0\config\mydomain\applications\WEB-INF/Classes
              >
              > 4) Executed in the Browser using following URL:
              > http://127.0.0.1:7001/MyWorld
              >
              > But, I am getting this error:
              >
              > Error 404--Not Found
              >
              > Please let me know if the above procedure is wrong, then what are the
              exact steps
              > involved in Deploying a servlet in WebLogic Server.
              >
              > Thanks,
              > Ram.
              >
              

  • Package java.servlet does not exists

    I am getting this error:
    c:Program Files\Java\jdk1.6.0_10\bin>javac -Xlint HelloServlet.java
    HelloServlet.java:2:package java.servlet does not exists
    import java.servlet.;
    ^
    HelloServlet.java:4; cannot find symbol
    symbol: class GenericServlet
    public class HelloServlet extends GenericServlet
    ^
    5 errors
    i am using jdk1.6.0_10. i tried to locate the servlet.jar file in the \lib directory, but the jar file was not there. how can i download one and include it in \lib?
    import java.io.*;
    import java.servlet.*;
    public class HelloServlet extends GenericServlet {
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter pw=response.getWriter();
    pw.println("<B>Hello!");
    pw.close();
    }

    jatilau wrote:
    forgive my ignorance.That's ok, we're all here to learn; but while (most) people on the forums are smart, they're (unfortunately) not all-knowing. They can't possibly know something about you or your environment unless you tell them.
    it is because i have no one to look up at for help with java, except for the book (The Complete Reference, Java 2, 3rd Edition, Naughton & Schildt) and, of course, some times this forum.There's the whole Internet available to you. Remember, Google is your friend.
    please, will anyone tell me how to find out what server type and version does JDK 1.6.0_10 provide? It doesn't. Java comes in three 'editions':
    Micro (JME, earlier J2ME which is meant for mobiles and other similar platforms)
    Standard (JSE, earlier J2SE which is what you're using, it's meant for core Java applications, like the sort you might use on your desktop.)
    Enterprise (JEE, earlier J2EE which is for server side code. This includes JSPs, Servlets, EJBs etc)
    i did not find any information about this in the book.Probably because it's a Java 'Standard' Edition (JSE or J2SE) book
    What you need, to learn about servlets, is a JEE book. I'd suggest Head First Servlets and JSP from O'Reilly. Otherwise, follow the link I gave earlier to find tutorials.
    To get started, you'll need a JDK, which you say you already have and a server. I'd suggest you get Tomcat. You will also find the servlet-api.jar after you setup Tomcat. This is an implementation of the JEE specification for servlets. This contains the javax.servlet.* packages you'll need to compile. Beyond this, the scope of what servlets are and how to deploy etc is rather large and best left to one of the afore-mentioned tutorials.

  • How to deploy a servlet in EBS R11

    I need to deploy a personal servlet in EBS R11, and I have no idea about where or how to do that.
    Please can some one help me?
    thinks a lot

    Brahim,
    There is are some testing servlets used in 11i,
    For testing purpose you can deploy your servlet in the following directory,
    $COMMON_TOP/java/oracle/apps/fnd/test
    The standard testing servlet can be accessed from
    http://host:port/oa_servlets/oracle.apps.fnd.test.HelloWorldServlet
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • OAS with java servlets

    Hi All,
    I have a application which is developed in Java servlets using JDeveloper tool.
    I have a OAS (version 10.2) installed in sun solaris platform.
    My question is, How can I deploy my application (developed in java servlets) in Oracle application server ?
    Thanks in advance.

    Greetings,
    Could you please provide more details about the servlets (type, function etc.) and your environment per:
    http://forums.oracle.com/forums/ann.jspa?annID=818THX
    -Mike

  • To Deploy a Servlet using Tomcat

    I am trying to deploy an example servlet in tomcat.
    my example servlet code is
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    public class HitServlet extends HttpServlet {
    private int mCount;
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    String message = "Hits: " + ++mCount;
    response.setContentType("text/plain");
    response.setContentLength(message.length());
    PrintWriter out = response.getWriter();
    out.println(message); } }
    i 've placed my servlet in the directory
    webapps/midp/WEB-INF/classes/HitServlet.java
    i've successfully compiled the code. Then started the tomcat server & thro' IE tried to open the url to http://localhost:8080/midp/hits.
    but i 'm receiving the error the servlet bob is missing. i've placed the web.xml & server.xml in the folders specified in the tutorial. in server.xml i've added the code
    <Context path="/midp" docBase="midp" debug="0" reloadable="true" privileged="true"/>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>bob</servlet-name> <servlet-class>HitServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>bob</servlet-name> <url-pattern>/hits</url-pattern> </servlet-mapping> </web-app>
    If u can guide me to deploy the servlet it'll be very helpfull.
    With Best Regards
    Ramkumar

    one idea that I have is the CATALINA_HOME and CATALINA_BASE.
    We use CATALINA_BASE to install our stuff in another directory than that of the tomcat installation.
    in the tomcat-engine.log you should se sth similar to:
    2003-06-18 09:19:04 StandardHost[localhost]: Installing web application at context path /hits from URL file:<xxx/webapps/midp>
    2003-06-18 09:19:04 WebappLoader[/gtfn]: Deploying class repositories to work directory $CATALINA_BASE/work/Apache/localhost/gtfn
    ...

  • Deploy a servlet in Tomcat

    Hi,
    I am trying to deploy a servlet in Tom cat.
    I could not access the servlet after deployment. Plz help me.
    Here is my servlet code.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ProcessData extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException, NumberFormatException
         res.setContentType("text/html");
         PrintWriter out = res.getWriter();
         out.println("I am in Servlet");
    I compiled it and copied the class file into the
    Tomcat classes (WEB-INF directory) folder.
    and made an entry in web.xml as,
    <servlet>
    <servlet-name>SendData</servlet-name>
    <servlet-class>SendData</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>SendData</servlet-name>
    <url-pattern>servlet/SendData</url-pattern>
    </servlet-mapping>
    WEB_INF is present here,
    D:\tomcat\tomcat-jwsdp-1.4\webapps\servlets-examples\WEB-INF
    I am trying to access the servlet by using,
    http://localhost:8888/servlets-examples/servlet/SendData

    Hi,
    I am getting this error....
    HTTP Status 404 - /servlets-examples/servlet/SendData
    type Status report
    message /servlets-examples/servlet/SendData
    description The requested resource (/servlets-examples/servlet/SendData) is not available.
    Thx,
    Babloo

Maybe you are looking for