Want to run servlets, jsp and ejb

Hi there, I have just installed Oracle9iAS on my PC and want to check how to use OAS with servlets, JSPs and ejbs, so can any one tell me where can I find some worked examples and step by step deployment process, any help would be appreciated, regards, Shabbier

If you have installed Oracle9iAS, you should be able to get to the welcome page at
http://<machine_name>:7778/
You can see J2EE demos off that page.
Also, you can find info about oracle9iAS and documentation
at http://otn.oracle.com/products/ias/content.html
OC4J info can be found at
http://otn.oracle.com/tech/java/oc4j
-Prasad

Similar Messages

  • Where should the support classes of servlets, JSPs and EJBs be placed

              Hi
              Could you please tell me where the support classes (simple
              java classes) used by servlets, JSPs and EJBs should be placed.
              I find that my application does not work if I place all the
              support classes of a servlet under $MYSERVER/clientclasses. I need to place some in $MYSERVER/clientclasses and some in
              $MYSERVER/servletclasses. But I figured this out my trial and error and I could not find any logical explanation why some of them should go into $MYSERVER/clientclasses and others into
              $MYSERVER/servletclasses.
              Thanks
              Regards
              Pratima
              

    you can put 'em in weblogic classpath
              Kumar
              Pratima Nambiar wrote:
              > Hi
              > Could you please tell me where the support classes (simple
              > java classes) used by servlets, JSPs and EJBs should be placed.
              > I find that my application does not work if I place all the
              > support classes of a servlet under $MYSERVER/clientclasses. I need to place some in $MYSERVER/clientclasses and some in
              > $MYSERVER/servletclasses. But I figured this out my trial and error and I could not find any logical explanation why some of them should go into $MYSERVER/clientclasses and others into
              > $MYSERVER/servletclasses.
              >
              > Thanks
              > Regards
              > Pratima
              

  • How to run servlet,jsp in eclipse software

    can any one tell me how to run servlet ,jsp in eclipse
    and how to start tomcat server in eclipse
    reply me
    regards
    saravana

    Can anybody help me as I wanted to know how to run servlet,jsp in eclipse software...
    If somebody can forward me the screenshots than it would be of great help....
    Thanks

  • Problems with JNDI between JSP and EJB

    Good morning:
    I've got a problem related to EJB and JNDI.
    I want to run methods of an EJB that is in Weblogic, from a JSP that runs IPlanet. When I try to execute getInitialContext() I catch a NamingException. The error description is :Cannot instantiate class: weblogic.jndi.T3InitialContextFactory
    I have this code in the JSP:
    Context initialCtx;
    initialCtx = getInitialContext();
    private InitialContext getInitialContext() throws NamingException
    Properties p = new Properties();
    (Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.T3InitialContextFactory");
    (Context.PROVIDER_URL,"t3://atlas:7001");
    InitialContext ctx = null;
    ctx = new InitialContext(p);
    return ctx;
    Configuration:
    JSP runs in IPlanet 4.1 SP7
    EJB runs in a Weblogic 5.1. Atlas it's the server name
    IPlanet and Weblogic runs on differents machines.
    Can anybody help me?
    Thanks in advance
    David

    I have two weblogic jars (weblogicaux.jar and one service pack of weblogic) in the iplanet classpath.
    I don't know if I have to configure Weblogic with any special parameter (RMI/IIOP) or something similar in IPlanet.
    Can anybody help me?
    Thanks.

  • Online materials for learning Javascript, JSP and EJB

    I am a core java programmer, not aware of J2EE stuffs. Please let me know the best online resources for learning Javascript, JSP and EJB
    Thanks,
    Gautam

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts3.html
    http://otn.oracle.com/sample_code/tech/java/codesnippet/j2ee/ejbbestpractices/ejb-best.html#pattern
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSPIntro.html
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    http://home.cogeco.ca/~ve3ll/jstutor5.htm
    http://www.pageresource.com/jscript/j_a_02.htm
    I think will do

  • We want to deploy Servlet/JSP in JServ and call the EJB's deployed in iPlanet App Server 6.0 SP2. How do we make the getInitialContext Call be able to access the EJB's.

    Additionally what configurations do we need to make sure we have on JServ (Third party Servlet container) to make sure that the iPlanet EJB's can be accessed.

    Let me preface my instructions with the comment that this isn't a good idea. Although the J2EE specification allows you seperate your web container from your EJB container, in practical deployments it is a bad idea. The overhead of doing RMI/IIOP calls to an external container as opposed to making inter-JVM calls means that you can expect roughly an order of magnitude less performance than if you colocate your web and EJB containers. (This is why all EJB containers are also web containers, or at least have the provision to install themselves in the same JVM as a web container.)
    That said, if you do not have the option to move the servlets to iAS, you can access EJB's in iAS from JServ the same way that you would from any remote client. Take a look at the following information for more detail:
    Chapter 9 of the developer's guide ( this shows you what changes you need to make to the remote JVM (at JServ) and in the EJB's that you are exposing).
    The RMI/IIOP sample application. This gives you an example of how to access EJB's from outside the container.
    (To answer your direct question, the following code will get the initial context. But if you don't take all of the other configuration steps, this code won't work:
    env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://" + host + ":"+port);
    Context initial = new InitialContext(env);
    I'd also suggest that you approach the task with the following approach. (Assuming that I haven't managed to convince you that this is a really bad idea.)
    1. Get your EJB's working on iAS. Test them with servlet harnesses running on iAS.
    2. Get your servlets working on JServ, if they aren't already.
    3. Create a simple standalone Java application as a test harness for EJB's. Follow the RMI/IIOP instructions until you get this test harness working.
    4. Create a simple servlet test harness in JServ to access your EJb's. Follow the JVM setup instrucitons until you get this working.
    5. Actually integrate the EJB's with your production application.
    I say this because there are about five trillion things that can go wrong in this process. Although the troubleshooting steps in the docs are helpful, I find that it helps to get one thing working at a time. It's very frustrating to spend a day trying to resolve JNDI issues only to find out that you have your CXS configured improperly.

  • How to run servlet,jsp in eclipseand to start tomcat in eclipse

    hi
    i want to know how to run servlet and jsp in eclipse 3.0
    and to start tomcat server in same.
    please reply me the steps involved indetail.
    regards
    saravanakumar

    Find Lomboz J2EE plugin and a tutorial of how to use it :)

  • JSP AND EJB

    how to deploy EJB with JSP?
    can any body tell me how to connect JSP with EJB while deploying?
    I am using J2EE system application PE server8.0
    Thanks in advance

    ejb will be deployed in ejb container & jsp will be deployed in servlet container. i guess, your question is specific to as how to do it using deployment scripts. Or are you trying to deploy using Administration control of PE server. I have worked on IBM Websphere 5.0. My explanation is more from Websphere point of view, please check if it makes sense to you.
    ejb .jar file (which contains ejb classes) is considered as a ejb module by app server & web .war file (which contains servlets, jsps) is considered as a web module by app server. A seperate class-loader for each module can be set using administration console (it can also be done in deployment scripts, but i dont know how part of it). Dependent classes for ejb module are specified in manifest.mf of ejb project. and dependent ejb jar files for web project have to copied in "Web Content\Web INF\lib" folder of web project. Then JSPs can find the ejb classes.
    Thanks.
    Madhav

  • HANDLING CHECKBOXES USING JSP AND EJB

    HI SDN MEMBERS,I AM LEARNING HOW TO CODE IN J2EE.I DISPLAY A FORM WITH CHECKBOXES AND SOME ITEMS BY THE SIDES.NOW THESE ITEMS CAME FROM THE DATABASE BUT ON DISPLAY THE USER SHLD CHECK HIS CHOICE CHECKBOXES THEN SUBMIT.PLS HOW DO I GO ABOUT THIS?

    You need to put the checkboxes and submit button in a <form> tag.
    However, I suggest you read a book on JSP (or read a free comprehensive on-line tutorial) since there is a lot to learn that having a few questions answered in these forums can't begin to cover.
    Also, why are you using EJB? That's an advanced topic and I suggest you use something simpler such as JSP and servlets.

  • If I want to run OSX Server and also want to run Windows 8 on Boot Camp, will server still run when I boot into windows?

    I want to set up OSX Server on my iMAC running Mavericks and also install Windows 8 on Boot Camp.  If I do this and boot into Windows, will that prevent server from running while I'm in Windows?

    No.  Bootcamp, as you've described, requires rebooting into your chosen operating system.  If you want to run both OS X and Windows at the same time from your hardware, look at virtualization tools like Parrallels or VMWare.
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • Security & Servlet engine and ejb container on different servers

              When you have the servlet container and the ejb container on different physical servers,
              how is the rmi connection meant to to be done while still maintaining the seucrity
              propagation from servlet to ejb tier?
              Assume that my user is already authenticated (forms) on the servlet tier. Do we then
              create a dedicated connection (InitialContext + url/username/password properties)
              to the ejb tier and store this connection in the HttpSession? (basically authenticating
              a 2nd time)
              OR,
              can the servlet container make a generic connection to the ejb container, and pass
              the users security context to the ejb tier transparantly?
              -Sam
              

    Nick Minutello <[email protected]> wrote:
              > Assuming that web container security is being employed, I guess the fundamental question
              > is: Is it necessary to create a "connection" (ie. an InitialConext) per user, or
              > can a "global" initial context be shared (in the end, the TCP connection is shared
              > anyway)?
              It doesn't create a 'connection' per user - when you use JNDI authentication (specifying
              principal and credentials when constructing InitialContext) it associates security info
              with the current thread for the duration of the request. If you cache InitialContext and
              use it later on some other thread it will not do anything.
              > Does it really matter?
              No ;-)
              > Thanks,
              > Nick
              > "Dimitri I. Rakitine" <[email protected]> wrote:
              >>Nick Minutello <[email protected]> wrote:
              >>
              >>
              >>> OK, so when I create the InitialContext, I just specify the URL (to call
              >>the remote
              >>> EJB container). The user ID and credentials are mapped automatically.
              >>
              >>> I obviously also need to cache the initialContext variable in my HTTPSession
              >>object?
              >>
              >>> What would happen if I had one InitialContext for the whole servlet engine
              >>- and
              >>> each thread used that. Would the thread (security) context still get passed
              >>- or
              >>> would the credentials for the original connection get used?
              >>
              >>If you use web-app security, container will associate security info with
              >>the current
              >>thread before invoking your servlet. If you do not use it and cache InitialContext,
              >>
              >>then the current user will always be 'guest' (except for the very first
              >>time when
              >>application calls 'new InitialContext()' with username/password.
              >>
              >>
              >>> Thankyou.
              >>> -Sam
              >>
              >>
              >>> "Vinod Mehra" <[email protected]> wrote:
              >>>>
              >>>>"Sam the bad cat" <[email protected]> wrote in message
              >>>>news:[email protected]...
              >>>>>
              >>>>>
              >>>>> When you have the servlet container and the ejb container on different
              >>>>physical servers,
              >>>>> how is the rmi connection meant to to be done while still maintaining
              >>>>the
              >>>>seucrity
              >>>>> propagation from servlet to ejb tier?
              >>>>>
              >>>>> Assume that my user is already authenticated (forms) on the servlet
              >>tier.
              >>>>Do we then
              >>>>> create a dedicated connection (InitialContext + url/username/password
              >>>>properties)
              >>>>> to the ejb tier and store this connection in the HttpSession? (basically
              >>>>authenticating
              >>>>> a 2nd time)
              >>>>>
              >>>>> OR,
              >>>>> can the servlet container make a generic connection to the ejb container,
              >>>>and pass
              >>>>> the users security context to the ejb tier transparantly?
              >>>>
              >>>>If the user has logged in already, ie the authenticated user is already
              >>>>in
              >>>>the execute
              >>>>thread, the identity should be propgated to the ejb tier transparantly,
              >>>>when
              >>>>you create the
              >>>>new initial context.
              >>>>
              >>>>--Vinod.
              >>>>
              >>>>
              >>>>>
              >>>>> -Sam
              >>>>>
              >>>>>
              >>>>
              >>>>
              >>
              >>--
              >>Dimitri
              >>
              Dimitri
              

  • How to run servlet in and out JDev.

    Hi,
    I have developed a simple servlet through wizards.Since i'm new to the servlet in JDev. i'm facing problem to run the servlet in and out of JDeveloper.
    Even i run as per the help documentation,
    i'm getting this error
    java.io.IOException: CreateProcess: cmd.exe /C start "" "C:\JDEVELOPER3.0\public_html\WebAppRunner.html" error=0
    I would be gratefull if anyone assists me.
    null

    I am also not able to take a simple tutorial application from Jdev 3.0 and deploy it on Oracle App Server 4.0.8.1.
    I ran the tutorial which creates a Jservlet accessing one database table. It runs fine on Jdev 3.0.
    I used the deploy wizard to create a Jar file. I sent the Jar file to the OAS.
    Updated the OAS class path to point to the
    Jar file. Invoking the url
    host:\vitual\mypkg.myclass gets an error msg
    application error has occurred.
    A snip from WRB.LOG
    `JAVAWEB` 772 0 0x400fff `Exception happend in executing racle.OAS.servlet.servletrunner.main(String[])
    Any detailed steps on how to do this is appreciated.
    Thanks
    Mike

  • Want to run an audio and visual capture file together

    I have two files one is to capture an image using a video camera and another is a sine generated sound wave. I want to be able to run them successfully and wanted to know if there was a function or control that i can use to make it easy. if not what steps should i take.

    Video files, such as .avi, typically run at 30 frames/second.  Sound files (.wav) are often output at multiple kHz.  This makes it difficult to "combine" them.  However, there's nothing stopping you from, in parallel, playing an .avi file while simultaneously playing a .wav file -- they would each run at their own speed, independently and in parallel.
    BS

  • How to run servlets, jsp, ejb..?

    dear friends,
    i will be happy if anyone suggest how to run jsp, servlets, ejb. and also do give the proper server to run these. it will be helpful if u give the URL's . An early reply is helpful. thanx and bye for now. my email id is [email protected]

    this is the site where i learn jsp from :
    http://www.jsptut.com/

  • Help newbie: in running sample CORBA and EJB

    HI,
    I am trying to run the samples that come along with the http
    server for 8.1.7, all the examples work except for these two,
    for the CORBA,I am able to load and publish, and works
    perferctly from the client (used runit.bat) but when i try to
    run from the web, it gives me a "class hell.Hello not found in
    import",
    and in EJB,
    while i run makeit.bat it gives me an ora error which tells that
    i am trying to insert a value too long for oracle, this comes
    when trying to use loadjava.
    can anybody help me out, any help is appreciated.
    Thanks,
    dharma

    Hi,
    If you are building & running EJB applications, please
    use Oracle9iAS - OC4J, Oracle Containers for J2EE. It is a
    robust, fast and a suggested environment for developing J2EE
    based applications. Oracle database JVM should be used only for
    deploying Java Stored Procedures. OC4J can be downloaded from OTN
    , small footprint, easy to download and install and much easy to
    configure. You will know it yourself once you download it.
    Cheers
    --Rajesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Looking for help on how to start mixing ?

    I have a two songs done and Iam starting to get how to record but thats all I know . I need help moving a head on mixing and putting it on CD Thanks

  • CS3 activation - "no connection", no support

    I get "no connection" when trying to activate Adobe Photoshop CS3 (firewall, antivirus is off). Also I called provided number and I didn't get activation code and was told to contact support. Chat support didn't help. What can I do to actiavate CS3 o

  • Leading and non leading ledger balances do not match in FAGLB03

    Hi, Balance for period 5 as per FAGLB03 for leading ledger (0L) is say $104. The same balance as per nonleading ledger is $176. I checked in FAGLF03 and no difference exists there. The issue is only with period 5, the other periods display the balanc

  • SWF/Flash help required

    I've been trying to edit a .swf document to change the logo from a website navigation bar but not having any luck. The file can be found at http://steevo.bravehost.com/navbar.swf. I'm trying to swap the current green/yellow logos to this and would li

  • OVS 2.2.1 install on HP ProLiant BL465c G7 Blade

    I'm installing OVS on a HP ProLiant DL465c G7 Blade. The installation bombs at the beginning because it doesn't recognize the storage adapter. It prompts me for a driver disk but I need advise on how to do this. The server uses a HP SmartArray P410i