How to deploy my servlet on WSAD ?

Hi , I am new to WSAD and writing Web applications.
Can anyone tell me the proper directory structure , you are supposed to have to deploy servlets ?
I have a JSP " LetterRequestInput form " which has the action tag
action="servlet/com.Employees.DispatchLetters"
I have a servlet " DispatchLettes.java " in the package " com.Employees " which is supposed to handle this request .
When I right click on the server and say Run on Server , it shows me a "page not found ".
And the browser URL shows http://localhost:7080/LetterRequestWEB/
Obviously I am doing something wrong but I dont know what it is .
The Directory Structure in my Package Explorer shows something like this
LetterRequestWEB
-JavaSource
-com.Employees
-DispatchLetters.java
-WebContent
+Meta-Inf
+Web-Inf
+Theme
LetterRequestInputForm.jsp
I really appreciate any help on this .I'm doing a class project and I am stuck . WHat should my directory structure be and what should I say in my jsp's form action path to call my servlet LetterRequestInputForm ???
What are the steps I should take to deploy and run this ?
Thanks a bunch,
Kavita Rivera

WSAD will create the standard web application directory structure for you, so that shouldn't be a problem.
A couple of things to check:
* Your JSP refers to servlet/com.Employees.DispatchLetters. Open your web.xml file and in the editor look for a mapping element. This defines a mapping between your servlet and a URL pattern. If your JSP is looking for servlet/com.Employees.DispatchLetters, then this should be in the servlet mapping.
* When you say right-clicked on the server, did you right-click on the JSP file and select "Run on Server"? This should fire up your JSP.
WSAD has a built in application server so unless you have to deploy you web application to an external server, you can do all your development and deployment within WSAD.
It's probably a good idea to work through one of IBM's WSAD Redbooks, like WebSphere Studio Application Developer Programming Guide (http://www.redbooks.ibm.com/abstracts/sg246585.html?Open). It doesn't take long and there are plenty of screen shots to help you.

Similar Messages

  • How to deploy the servlet in  ebs r12?

    Can anybody give me some advices for deploy servlet in ebs r12 application server?

    Hi robbie;
    Please check Note:How to deploy Business Components JSP Application to Oracle Servlet Engine (OSE) [ID 136187.1]
    Upgrading OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12 [ID 437878.1]
    Also check:
    Deploying servlet in  ORACLE R12
    how to deploy a servlet in EBS R11
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=610191
    Regard
    Helios

  • How to deploy a Servlet on OAS??

    I have created a Servlet, which accepts username and password,
    and connects to the Oracle database and executes a particular
    query and displays the results.
    From JDeveloper 2.0 it works fine.
    What is the procedure to deploy it. Can someone help me with it.
    Thanks,
    Sajjad
    null

    Mozein Sajjad (guest) wrote:
    : I have created a Servlet, which accepts username and password,
    : and connects to the Oracle database and executes a particular
    : query and displays the results.
    : From JDeveloper 2.0 it works fine.
    : What is the procedure to deploy it. Can someone help me with
    it.
    : Thanks,
    : Sajjad
    You have a tutorial on the OAS408 documentation.
    It can show you how to deploy the helloworld servlet.
    null

  • 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.

  • 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 deploy a servlet on the internet

    Hi all, Please, i'll like to know if anyone has ever hosted a servlet. I'm not new to java but new to servlets. I already deployed my servlet using j2ee 1.4 and everything works perfectly on lacalhost but i'm stuck trying to upload it online. I have an apache server so where should i put the .ear file and others..
    Thank you in advance.

    I finally got deployed the servlet on my server but still have a little problem.. It works perfectly well on Internet Explorer but on mozilla firefox, it comes out in html code form like dis:
    *<html><head><title>TFSSEC ONLINE ACCOUNT</title><link rel=stylesheet href=style.css type=text/css charset=utf-8 /><style type=text/css><!--.style1 {font-size: 36px;font-weight: bold;font-family: Courier New, Courier, mono;}--></style></head><body bgcolor=#999999><br><br><center><u><font size=4>ACCOUNT INFORMATION FOR PATIENCE YESUFU<br><br></u></font><table align=center border=1 width=80% bgcolor=#003366 cellspacing =5 cellpadding =5><tr>*
    *<TH align=left>EFFDATE</TH>*
    *<TH align=left>ACCOUNTID</TH>*
    *<TH align=left>LEDGERTYPE</TH>*
    *<TH align=left>CREDIT</TH>*
    *<TH align=left>DEBIT</TH>*
    *<TH align=left>DEBCRED</TH>*
    *<TH align=left>DESCRIPTION</TH>*
    *<TH align=left>TRANSTYPE</TH>*
    *</TR>*
    *<TR>*
    *<TD><font color=white><strong>2007-10-02 00:00:00</TD></font></strong>*
    *<TD><font color=white><strong>00001</TD></font></strong>*
    *<TD><font color=white><strong>NGN</TD></font></strong>*
    *<TD><font color=white><strong>26830.349</TD></font></strong>*
    *<TD><font color=white><strong>0</TD></font></strong>*
    *<TD><font color=white><strong>C</TD></font></strong>*
    *<TD><font color=white><strong>STOCK SALE: 1300 PZ @ 21.2</TD></font></strong>*
    *<TD><font color=white><strong>STKBSALE</TD></font></strong>*
    *</TR>*
    please, can anybody help me...

  • How to deploy a servlet in EBS

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

    For R12, It need to modify the web.xml in $COMMON_TOP/webapps/oacore/html/WEB-INF/web.xml.
    add
    <servlet>
    <servlet-name>xxxx</servlet-name>
    <servlet-class>xxxx</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>xxxx</servlet-name>
    <url-pattern>/servlet/xxxx</url-pattern>
    </servlet-mapping>
    But for Ebs11i,I can find such a file.Do anyone know this?
    Thanks,
    Binghao

  • How to deploy a servlet in a cluster

              Hi,
              Could you please tell me what the exact procedure for doing this is?
              It seems to be that you have to restart all the servers in the cluster, including
              the admin server for the new servlet to be taken into account...
              Sometimes, a recompiled servlet that is placed in `\applications\examplesWebApp\WEB-INF\classes\servlet'
              (when using the examples server) is not taken into account (automatic reloading
              doesn't work)...
              Regards,
              Frank Olsen
              Stonesoft
              

              Frank Olsen wrote:
              > "Kumar Allamraju" <[email protected]> wrote:
              > >When you say "new servlet" , do you mean,
              > >
              > >1 )an updated servlet class or
              > >2) altogether a new class that doesn't exists before.
              > >
              > >If 1) You need to make sure webapps' reload Period is set via console.
              > >By
              > >default this value
              > >is set to 1 sec.
              > >
              > >Here's an excerpt from our docs
              > >Servlets are redeployed based on the setting of the Reload Period attribute
              > >that you define in the Administration Console. Set this attribute by
              > >selecting your Web Application and then selecting the Configuration/Files
              > >tab. The attribute defines the time interval at which WebLogic Server
              > >checks
              > >servlet classes to see if they have been modified. If set to 0, servlet
              > >classes are checked on every request.
              > >If set to -1, WebLogic Server does not check to see if the classes have
              > >been
              > >modified.
              > >
              > >If 2) When you add a new servlet to a webapp (i mean configuring a servlet
              > >in web.xml),
              > >you have to re-deploy the webapp. You don't need to re-start the servers.
              > >
              > >If this is not working for you, then it could be a bug.
              > >BTW, did you observed this behaviour with SP1?
              > >
              >
              > It doesn't seem to work, at least when adding a totally new servlet -- I had to
              > restart the servers, including the admin server. For redeployment, I'm pretty
              > sure that I had to restart it as well, but maybe not in all cases (when it works
              > you tend not to notice that much ;-).
              >
              > This was with 6.0SP1 on Windows NT 4.0SP6.
              >
              when you add a new servlet, you have to redeploy your webapp. Don't expect it to get
              re-loaded by
              "reloadCheckSecs" property.
              For redeployment, you don't have to restart the server. You need to re-deploy your
              webapp. See our docs.
              PS: I tested the above scenario with SP1 and it works fine for me.
              Kumar
              >
              > >--
              > >Kumar
              > >
              > >
              > >"Frank Olsen" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Hi,
              > >>
              > >> Could you please tell me what the exact procedure for doing this is?
              > >>
              > >> It seems to be that you have to restart all the servers in the cluster,
              > >including
              > >> the admin server for the new servlet to be taken into account...
              > >>
              > >> Sometimes, a recompiled servlet that is placed in
              > >`\applications\examplesWebApp\WEB-INF\classes\servlet'
              > >> (when using the examples server) is not taken into account (automatic
              > >reloading
              > >> doesn't work)...
              > >>
              > >> Regards,
              > >> Frank Olsen
              > >> Stonesoft
              > >>
              > >
              > >
              

  • How to deploy a servlet in oc4j

    i copied xxxx.class along with it's source (xxxx.java) to
    "j2ee\home\default-web-app\WEB-INF\classes"
    and then,add
    <servlet>
    <servlet-name>xxxx</servlet-name>
    <servlet-class>xxxx</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>xxxx</servlet-name>
    <url-pattern>/servlet/xxxx</url-pattern>
    </servlet-mapping>
    and then, restart oc4j
    well, run http://localhost:8888/xxxx it's not works? why ? what's wrong?

    <servlet-mapping>
    <servlet-name>xxxx</servlet-name>
    <url-pattern>/servlet/xxxx</url-pattern>
    </servlet-mapping>
    and then, restart oc4j
    well, run http://localhost:8888/xxxx it's not works?
    why ? what's wrong?Do you mean "http://localhost:8888/servlet/xxxx"? Does "http://localhost:8888/servlet/HelloWorldExample" work?

  • How to deploy an app with servlet and background processing

    i have a servlet with background processing. it has to run 24 hours a day.
    but i have problem with shutdown (after 1-2 hours without user action). [9iAS 9.0.3.0, windows 2000]
    i created for application seperate OC4J (in the EM) and i deployed it there. first time as war file, later as ear file (because there is possible to re-deploy only ear file).
    but it seems that the servlets are not designated to run as a uninterruptible task.
    the question is: how to deploy such (servlet + uninterruptible background processing) application in the 9iAS?
    a) everything in the OC4J (then how to disable shutdown?)
    b) servlet in the OC4J. where (and how) to install the rest of application?
    b1) servlet in the OC4J + rmi/soap/... + standalone server?
    what is the standard in the oracle world :) ?
    thanks

    Better to post your topic in the iPad in the Enterprise community.
    This is the, "Using Mac App Store" forum and for the most part for troubleshooting the App Store.

  • 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

  • How to deploy findme example which provided by the OCCAS server

    I have X-lite installed on my machine and OCCAS,I have the find me examlple
    How to deploy it on server to register the X-lite client to OCCAS server.
    Also correct me with the findme example location file 'wlcserver_10.3/samples/sipserver/examples/src/genericRegistrar/src/wlss/examples/genericRegistrar' which is provided with its installtion.

    Thanks for the reply..Now I am able to connect X-Lite to my server.I also deployed findmr example it in OEPE enviroment creating Dyanamic project ,preparing the appropriate deployment descriptors.But I want to build the example in Web Service project where I am facing problems .Please provide me the way how to deploy SIP servlets findme exalmple from the Web service project??????
    Please help me with this.

  • How to deploy Servlet Application in Weblogic 8.1

    Hi,
    I am new to BEA Weblogic 8.1 .
    I was trying to create a sample application using InelliJ IDea 5.1 , and IntelliJIdea 10.5 . i configured weblogic with IDE , but now i do not know how to deploy my application in weblogic .
    I am new in IntelliJ also .
    So Can anyone tell me how can i deploy a servlet application in any IDE like i also have eclipse indigo.
    Thanks & Regards
    Komi

    Hi Komi
    Basically you deploy your Servlet as a WAR File. I am not familiar with IntellJ IDE. But it should have a provision to export/create a WAR file that has your Servlet. Also I hope you already have web.xml file with 2 sections like this: First you mention full package of your servlet and give it a name. Then enter a mapping url. You will use this url to run your servlet like http://weblogichost:weblogicport/yourWebappcontextroot/myservlet
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <servlet-class>com.abd.def.MyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>MyServlet</servlet-name>
         <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    Coming to deployment, I hope you already created a Weblogic Domain and have admin username/password. Start your domain. Login into weblogic console like http://host:port/console and use admin username/password. Then from Deployments section, deploy the above WAR file. In Weblogic you can deploy JAR (EJBs, java files), WAR (web jsp, html, webservices, servlets) or EAR (JAR + WAR). In your case its just a WAR file.
    Refer the online docs for more details on Deployments in Weblogic.
    http://docs.oracle.com/cd/E13196_01/platform/docs81/deploy/deploy.html
    Thanks
    Ravi Jegga

  • 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/

  • How can i deploy a servlet with eclispe

    Hello,
    will any one of u give me the steps to deploy a servlet with eclipse on portal server(J2EE Engine),
    in help of eclipse they given as, whole webapplication deployement, but that is also giving me a error, the procedure they given is, once we created a .war file for our servlet project we need to refer this to a .Ear file, and then this Ear can be deployed in to the server. Is it the same and only procedure to deploy a servlet with eclipse, or if there is any other method,please give me the steps also.
    when i am deploying with the .Ear file, it is giving the error as,
    Jun 4, 2005 11:34:31 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !
    but the sdm is working on the server with the same host, and local deployement is also done successfully, but from my system im not able to deploy!
    Thanks&Regards,
    Sireesha.

    Yeah, i am able to see the J2EE engine clusters, there the message server port is given as 3601. becoz scs instance number is 1 here. so it is not the problem,
    the error it is giving as,
    Jun 6, 2005 11:37:28 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : obtdev9
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/sireesha.b/LOCALS1/Temp/temp56446MyServletEAR.ear
    Deployment exception : Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
    Inner exception was :
    Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
    is this may be the problem with port number?
    i am not knowing what is happening here...
    if you know the exact error based on the error messgae please help me,
    thanks to u for helping in this problem,
    Regards,
    sireesha.

Maybe you are looking for

  • Why did firefox and thunderbird both start in safe mode?

    Turned on my computer, ran firefox and thunderbird like I always do, and they both started in safe mode. They both showed a box before opening that said they are running in safe mode. Why would they do this?

  • No longer have access to Dreamweaver in Business Catalyst.

    Hello. I've just noticed I no longer have the option to use Dreamweaver in our Business Catalyst website. We had the website designed for us and now we manage it ie produce Pages, Web Apps, etc. Also, I can only view it in one format where as I could

  • Dual Boot Windows 8 and Linux?

    I have (UEFI System) an ASUS K55A UEFI motherboard laptop that came factory with Windows 8. I would like to install backtrack linux and Windows 8, but before I go screwing up my laptop, I want to see if this would be at all possible. I would use a vi

  • Some keys are not working on macbook pro

    My delete key along with the return key and arrow keys on the left side of the keyboard stopped working.  Any thoughts?

  • Is green screen possible with Mini DV?

    Hi. I have a Canon XL2. I want to use some green screen effects in my next doco to liven up some talking heads I am to record. Is MiniDV even an option for this? I have heard the mini dv compression causes too many artifacts. Please assume I have rea