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?

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 an application in OC4J standalone?

    I'm trying to deploy Jspell 2004 in a standalone OC4J 10g. All my attempts have failed thus far, as I admit, I don't really know what I am doing.
    I've found several articles, including those from Jspell, and they all start with 'deploy the war file' but how?
    I don't know where I should deploy the WAR file or exaclty which config files I need to modify. I've tried under OH/j2ee/home/applications, OH/j2ee/DevSuite/application-deployments and always get the 'Error instantiating web-application' no application found on server.'
    I'm using the OC4J strictly for forms/reports running on port 8889 and that all works fine. When I start the OC4J, it is referencing the server.xml file in the DevSuite/config folder.
    Any ideas?

    Please look at the OC4J FAQ
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j_deploy
    Yes. If you wish to deploy only a Web module then you can utilize the default application OC4J is configured with. This is a two step task:
    First, tell the container about the WAR file to be deployed. Open the <J2EE_HOME>/config/application.xml file in an editor. Add a new <web-module> tag and specify the attributes for your WAR file.
    <web-module id="HRWebModule" path="<PATH-TO-WAR-FILE>"/>
    Secondly, tell the OC4J HTTP server about the new WAR file and provide a URL to access it. Open the <J2EE_HOME>/config/http-web-site.xml file in an editor. Add a new <web-app> tag and specify the attributes for your new Web module. It's important to note that the application attribute must specified as "default" since you have deployed your Web module to the default application. The name attribute should match the ID attribute you specified for the Web module.
    <web-app application="default" name="HRWebModule" root="/hrweb" />
    The WAR file will now be deployed by OC4J and accessible using a URL of /hrweb.
    -Debu
    http://debupanda.com

  • 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 deploying web-applicaion in oc4j 10.1.3

    Hi,
    i working on Jdeveloper10.1.3. i crated one webapplication. now my thing is i need to deploy and run Oracle application server . please tell me procedure.
    thanks,
    elisha.

    Elisha,
    Simplest way to launch OC4J stand-alone is via the following command:
    java -jar oc4j.jar(from the directory where the "oc4j.jar" file is located, of-course)
    Please refer to the documentation for more details. The documentation can be accessed from here:
    http://www.oracle.com/technology/tech/java/oc4j/index.html
    If you want to run the OC4J that is embedded in JDeveloper, then you should probably ask in the JDeveloper forum.
    Good Luck,
    Avi.

  • How to deploy jar file into oc4j

    Hi,
    I am new to jdeveloper.
    I deployed a application as .ear file by creating new coneection from the Connection navigator which is having web, ejbs amd client progrms. I dont have any problem with that.
    But for my feature modification on my ejbs or client programs, i want to deploy only its related jar file in the existing application in the server. But when i try to do the same, the client module or ejb module is deploying as new .ear file in to the server insterd of .jar file.
    How to overcome this in jdeveloper?
    Thanfully,
    Satish KC.

    I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
    However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

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

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

Maybe you are looking for

  • Bridge cs6 Raw files

    can not open my raw files from my Canon 5D mark 111 in Bridge CS6?

  • Tools Palette question

    This is driving me absolutely batty. Somehow someone changed a setting on my computer so that every time i click on a tool in my palette, all of the tool options pop open forcing me to choose which tool I would like to use.   It is as if, by default,

  • Column A shows up on everypage of a large spreadsheet

    The first column of my spreadsheet is gray and shows up on every page of a large spreadsheet. If I delete it from any page, it gets deleted from all. Any help would be appreciated.

  • How to set user name, password and other proxy settings?

    I use a Proxy connection: I have to set server and port, and user and password. With the browser: when I run firefox/safari I type user and password (server and port are given in internet option control panel) With skype (for example): I can type eve

  • VL10G Delivery Creation from Sales Order

    I am facing a problem where if I go to create delivery from VL10G, all the line items from the sales orders are transported to the delivery document EVEN when no stock is available? Can anyone help me out Thanks