How to install a servlet on weblogic ??

Hi : (I have Weblogic Server 6.0 on Redhat 6.2)
               I have a simple servlet from bea tutorials :
          import javax.servlet.*;
          import javax.servlet.http.*;
          import java.io.*;
          public class HelloWorldServlet extends HttpServlet {
          public void service(HttpServletRequest req,
          HttpServletResponse res)
          throws IOException
          // Must set the content type first
          res.setContentType("text/html");
          // Now obtain a PrintWriter to insert HTML into
          PrintWriter out = res.getWriter();
          out.println("<html><head><title>" +
          "Hello World!</title></head>");
          out.println("<body><h1>Hello World!</h1></body></html>");
          where i put the compiled class ¿?¿?
          can i do this on live ¿?¿?
          how can i do to "execute" my simple servlet ¿?¿?¿?
          i'm very new to WL .
          A simple HelloWorld does not work ¿?¿?
          I'm impressed for the difficulty of WL , i am looking for
          change all to Tomcat or JRUN or so ...
          Thanks
          

This is a very basic servlet and deploying it to WL is actually pretty
          straightforward. Before you abandon WL, go to:
          http://e-docs.bea.com/wls/docs61/servlet/introprog.html#134557
          This example will take you step-by-step through the process...
          email me directly if I can help!
          Rob
          "Victor" <[email protected]> wrote in message
          news:[email protected]...
          > Hi : (I have Weblogic Server 6.0 on Redhat 6.2)
          > I have a simple servlet from bea tutorials :
          >
          > import javax.servlet.*;
          > import javax.servlet.http.*;
          > import java.io.*;
          >
          > public class HelloWorldServlet extends HttpServlet {
          > public void service(HttpServletRequest req,
          > HttpServletResponse res)
          > throws IOException
          > {
          > // Must set the content type first
          > res.setContentType("text/html");
          > // Now obtain a PrintWriter to insert HTML into
          > PrintWriter out = res.getWriter();
          >
          > out.println("<html><head><title>" +
          > "Hello World!</title></head>");
          > out.println("<body><h1>Hello World!</h1></body></html>");
          > }
          > }
          >
          >
          > where i put the compiled class ¿?¿?
          > can i do this on live ¿?¿?
          > how can i do to "execute" my simple servlet ¿?¿?¿?
          > i'm very new to WL .
          > A simple HelloWorld does not work ¿?¿?
          >
          > I'm impressed for the difficulty of WL , i am looking for
          > change all to Tomcat or JRUN or so ...
          >
          > Thanks
          

Similar Messages

  • How to install BPM Enterprise for weblogic

    I need to install BPM Enterprise for Weblogic 10.3. However, the weblogic is installed in another machine. BPM and weblogic are installed in different machines.
    When I configure the BPM, how to set the weblogic home and workspace folder?

    Hi Ruben Vidaurre,
    Thanks for your reply.
    During the configuration of BPM after installation, I should key in the Weblogic Home address and select a folder for it. I can configure it and know where the weblogic home address is if weblogic server and BPM enterprise for weblogic are installed in the same machine.
    How to key in the weblogic home address if the weblogic is installed in another machine (BPM Enterprise for weblogic and weblogic are install in different machine) ?

  • How to Install Cocoon 2 into Weblogic 6.0

    My department has worked out the following steps to install C2 into Weblogic
    6.0.
    1. Start a DOS window.
    2. Go to the top directory of the disk where BEA is mounted.
    cd \
    3. Log in to CVS:
    cvs -d :pserver:[email protected]:/home/cvspublic login
    4. Checkout Cocoon 2 from CVS:
    cvs -d :pserver:[email protected]:/home/cvspublic -z3 checkout
    xml-cocoon2
    Wait for several minutes for the source files to download.
    5. Go into resulting directory:
    cd \xml-cocoon2
    6. Build Cocoon 2 by doing 6a or 6b.
    6a. If you are running Windows, run:
    build.bat
    On my machine, this took 15 seconds; your mileage may vary.
    6b. If you are running unix, run:
    build.sh
    7. If you haven't done so already, build a domain and a server. In this
    discussion, the name of the domain is 'mydomain' and the name of the server
    is 'myserver'.
    These are the BEA default names.
    8. In Windows Explorer, drag COPY (i.e. hold the ctrl key down) the
    directory
    C:\xml-cocoon2\webapp
    to
    c:\bea\wlserver6.0sp1\config\mydomain\applications
    (if in Unix, do the Unix equivalent.)
    9. Rename the newly created folder
    c:\bea\wlserver6.0sp1\config\mydomain\applications\webapp
    to
    c:\bea\wlserver6.0sp1\config\mydomain\applications\cocoon
    10. Edit the following file
    C:\bea\wlserver6.0sp1\config\mydomain\startWebLogic.cmd
    to modify the classpath with the following lines:
    set COCOON_ROOT=c:\xml-cocoon2
    set
    COCOONCLASSPATH="%COCOON_ROOT%\lib\xerces_1_3_1.jar;%COCOON_ROOT%\lib\xalan-
    2.0.1.jar;%JA
    VA_HOME%\lib\tools.jar;%COCOON_ROOT%\build\cocoon\cocoon.jar;%COCOON_ROOT%\l
    ib\logkit.jar
    ;%COCOON_ROOT%\lib\w3c.jar;%COCOON_ROOT%\lib\fop-0_18_1.jar;%COCOON_ROOT%\li
    b\avalon-fram
    ework.jar;%COCOON_ROOT%\lib\avalon-excalibur.jar;%COCOON_ROOT%\lib\bsf.jar;%
    COCOON_ROOT%\
    lib\batik-all.jar;%COCOON_ROOT%\lib\hsqldb.jar;%COCOON_ROOT%\lib\jakarta-reg
    exp-1.2.jar;%
    COCOON_ROOT%\lib\javac.jar;%COCOON_ROOT%\lib\jimi-1.0.jar;%COCOON_ROOT%\lib\
    jstyle.jar;%C
    OCOON_ROOT%\lib\xt.jar;%COCOON_ROOT%\lib\maybeupload.jar;%COCOON_ROOT%\lib\r
    hino.jar;%COC
    OON_ROOT%\lib\Tidy.jar;%COCOON_ROOT%\lib\velocity-1.0.1-rc1.jar"
    set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
    set CLASSPATH=%COCOONCLASSPATH%;%CLASSPATH%
    11. Continue to edit the same file by inserting the following system
    property into the java run command for Weblogic:
    -Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.component
    s.parser.XercesPa rser
    In other words, after you modify the java run command, it should look
    something like this:
    "%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m -classpath
    %CLASSPATH% -Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.c
    omponents.parser.XercesPa
    rser -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver "-Dbea.home=C:\bea"
    "-Djava.security.policy=C:\bea\wlserver6.0sp1/lib/weblogic.policy" -Dweblogi
    c.management.password=%WLS_PW% weblogic.Server
    12. Save the startWebLogic.cmd file.
    13. Run the startWebLogic.cmd file.
    14. Using a browser, link to your web site's cocoon page:
    http://<your machine name>:<port number>/cocoon/
    (Don't forget the final / in the link)
    15. You should see the Cocoon welcome page.
    Hope this helps,
    Scott

    Hi Dipendra,
                         For running the Adobe application You need to configure some thing in both Java as well as in ABAP stack for that abobe form application to work. You need to do some configuration in the Visual administrator for Java & also in the ABAP stack sidi using your SAP user id line creating ADSUSER , ADS_AGENT    user id creation and roles assignment and RFC destination creation etc..          
    Just refer these documents for the installation and post-configuration of Adobe Document Service on NW2004s.
    https://websmp105.sap-ag.de/~sapdownload/011000358700003982082006E/InstallADSNW2004s_Jun06.pdf
    https://websmp105.sap-ag.de/~sapdownload/011000358700005526362005E/ADS_NW2004s_SPS12.pdf
    https://websmp105.sap-ag.de/~sapdownload/011000358700005299622006E/ADS_SizingNW2004sV2_1.pdf
    You can start by read the note 736902 to get the credentials for the ADS.
    Hope this answers your question.
    Thanks,
    Greetson

  • How to install Portal Examples in Weblogic Portal 10.3.5

    I downloaded installation file portal103_win32.exe from Oracle site which is for Weblogic Portal 10.3.5. During the installation process I could not find anywhere I can choose to install Portal Examples.
    Did I miss anything when I did the installation or Portal Examples have just been removed from the installation file for Weblogic Portal 10.3.5?

    Thank you Emmanuel.
    Is it because the features in Portal Examples were not supported anymore since 10.3.4?

  • 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 shall i run servlets in weblogic 8.1 sp2

              can any one assist me for running servlets in weblogic8.1 sp2.
              thanking you,
              chandra sekhar
              

              -Copy servlet to the DefaultWebApp/classes directory.
              -Modify the web.xml
              <servlet>
              <servlet-name>
              myServlet
              </servlet-name>
              <servlet-class>
              package.name.myServlet
              </servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>
              myServlet
              </servlet-name>
              <url-pattern>
              quickStartServlet
              </url-pattern>
              </servlet-mapping>
              -Call your servlet from a Web browser with the following URL:
              http://localhost:port/quickStartServlet
              "Chandrasekhar" <[email protected]> wrote:
              >
              >can any one assist me for running servlets in weblogic8.1 sp2.
              >
              >thanking you,
              >chandra sekhar
              

  • How to configure XSQL-Servlet with Weblogic 6.0

    Hi,
              what are the steps to configure the xsql-servlet? I downloaded ora xdk 9.2 and getting the following error when requesting demo via url= http://localhost:7001/xsql/home.xsql:
              Oracle XDK Java 9.2.0.6.0 Production
              XSQL-001: Cannot locate requested XSQL file. Check the name.
              In general, I can't run either demo that came with XDK... please help!
              

    Vipul,
    Can you try adding them as the first entry in the classpath in the
    startWebLogic.smd file.
    Raj Alagumalai

  • How To Install XSQL Servlet

    I am an ORACLE DBA for Schlumberger/GeoQuest. I am trying to evaluate the the use of XML with ORACLE functionality for our department.
    When installing the product following the instruction, it fails, which is understandable. Because the xsql-wtg.bat file has the following two params hardcoded:
    set JAVA=J:\java1.2\jre\bin\java.exe
    set XSQL_HOME=C:\xsql
    I know that I do not have such path on my machine at all. The document claims that the Web-to-go is bundled with software download. I assume that the file "java.exe" is some where under the downloaded area. Or do I miss something? What should I do to get it going? Do I have to install a web server like OAS or Apache or Web-to-go? Or do I have to install Jre1.2 somewhere?
    Thanks for your help,
    Yue Wang
    null

    The xsql-wtg.bat file has the comments:
    REM ----------------------------------------------
    REM Set the 'JAVA' variable equal to the full path
    REM of your Java executable.
    REM ----------------------------------------------
    So you'll need to set the 'JAVA' variable
    equal to the full path of your Java executable.
    you'll need a Java JDK 1.1.8 or 1.2.2
    installed to run it.

  • How to run servlet in weblogic 8.1

    hi!
    i m new to weblogic.how to run servlet in weblogic8.1.i get lot of errors when i compile it in command prompt.but when i do the same thing in tomcat,i dont get errors & it runs successfully.help me out.how to compile servlets in weblogic 8.1.some say i have to create .jar file.pls tell me the procedure.i m new to j2ee.i have installed jdk1.5 .
    pls its urgent

    a lot of error....
    mmmm no sorry, i don't see
    it remembers me when i was dating sarah,it was very difficult... but now i'm dating anne it's really easier... any idea on what was going wrong with sarah?
    ok sorry for this allegory, just tired to ask always the same thing:
    WHAT ERRORS???

  • How to install  weblogic server in linux fedora 7  ...?

    hi.. Experts
    i am new to linux os .i am using fedora 7 version of linux. please tell me,,how to install weblogic server on fedora 7 os. i have to run my servlets , jsp pages. on weblogic server.
    plzz i m not able to do practice ...so please suggest me..
    please Reply...
    thanks a lot to all...

    Yes, they can. They installed in different directories and you have to use different ports.
    AFAIK for HTTP for APEX is either part of the installation (eg. in the Oracle Express Edition) or part of the Oracle Installation CDs. For more information see the Oracle Installation Documentation.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to install TopLink_CMP_2_0 for Weblogic 10.3.4 (11g Release 1)

    Hi
    I am trying to migrate EJB2.x code from JBoss to Weblogic 10.3.4.
    The entity bean description in my weblogic-ejb.jar looks like below.
    <weblogic-enterprise-bean>
    <ejb-name>UserProfile</ejb-name>
    <entity-descriptor>
    <persistence>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>7.0</type-version>
    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-use>
    </persistence>
    </entity-descriptor>
    <local-jndi-name>ejb/LocalUserProfile</local-jndi-name>
    </weblogic-enterprise-bean>
    I get error Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml' when deploying to server as I posted in another thread at Error in deploying entity beans - migration from JBoss to Weblogic 10.3.4
    The information on the page http://download.oracle.com/docs/cd/B25221_05/web.1013/b13593/depcr008.htm tells that the supported persistent type for EJB2.0 is TopLink_CMP_2_0.
    When I modify above entity description accordingly, the deployment throws exception that "*TopLink_CMP_2_0*" is not installed.
    Can someone suggest me how to install the persistent type? Also please let me know if my approach to migration is correct.

    See if these help:
    http://java2go.blogspot.com/2008/01/jaxb-10-vs-20-in-jdeveloper-10g.html
    http://biemond.blogspot.com/2008/02/jaxb-20-in-jdeveloper-10g-and-11g.html

  • How to install ODSI 10.3 in Oracle Weblogic 10.3.5.0?

    Hi,
    Please any one guide us, how to install Oracle Data Service Integrator 10gr3 in latest Weblogic 11g(10.3.5.0) version?
    Getting "The product maintenance level of current installer(Weblogic Server 10.3.0.0) in not compatible with the maintenance level of the product installed on your system(Weblogic Server 10.3.5.0)" error message when we try to install ODSI 10.3 in Oracle Weblogic 10.3.5.0
    Thanks in advance.
    Regards,
    Ven.

    Hi Mike,
    Thanks for your reply. Please can you tell me the compatiable version of ODSI for Oracle Weblogic 10.3.5.0?
    Regards,
    Ven.

  • How to install servlet-2_3-fcs-classfiles.zip???

    Hi!
    I am using jdk1.3.1_02 and I try to compile a servlet source code. But I got error message
    C:\tomcat\webapps\examples\WEB-INF\classes\HelloWorldExample.java:8: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    I already unzip the contents of servlet-2_3-fcs-classfiles.zip in my jdk1.3.1_02 directory, but still it doesn't work. Anyone any ideas how to install it properly?

    When you unzip the servlet, there should be a folder named javax, you can either move that folder to C:\jdk1.3.1_02 and compile the program normally (assuming that you have already defined a ckasspath that contains C:\jdk1.3.1_02). Or, you can add the path to your javax folder to the CLASSPATH environment variable.
    V.V.

  • How to install Workshop for WebLogic and WebLogic Portal?

    Hi All,
    I am new to Weblogic Portal. I would like to start learning Oracle Weblogic Portals..
    Can anyone please guide me, how to install Workshop for WebLogic and WebLogic Portal?
    As per the ""Tutorials – Getting Started with WebLogic Portal"" (http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/setup_dev_env.html)
    we need to install the Workshop for WebLogic and WebLogic Portal.
    Please suggest me where should i get the required environments/IDE?
    Thanks,
    Harish.

    Hi Harish
    1. If this is your first time with Weblogic Portal, I would recommend to download the latest Weblogic Portal Software Rel 10.3.2 from this bottom link. Check Accept Radio button, for windows download windows installer. Its about 1 GB file. This software includes Eclipse IDE, Weblogic Server and Weblogic Portal.
    http://www.oracle.com/technology/software/products/wlp/index.html
    2. During the installation process, make sure at one point you select Custom mode (NOT default Typical mode). In next following screens you will see all bundles checked EXCEPT for Samples. So make sure you check Samples Check box both under Weblogic Server and Weblogic Portal. Then proceed. This will install full Weblogic Workshop (Eclipse IDE), Weblogic Server and Weblogic Portal. This is the good installation package. Also it will install samples for Portal and Server. If you select all default typical mode, it will NOT install samples. You can install samples later on also, but its good at installation time itself you select custom and check Samples also.
    3. WLP 10.3.2 uses Eclipse IDE. If you are familiar with Eclipse IDE this should be helpful. Otherwise also, its ok.
    4. For learning WLP, in Eclipse IDE, you need to create Portal EAR Project, then Portal Web Project. Inside portal web project create simple jsp hello world portlets and a simple portal.
    5. For Deploying and Testing Portal application you need to create Portal Domain using config wizard. You can see this from Start -> Programs -> Oracle Weblogic Portal shortcut -> Weblogic Server -> Tools -> Configuration Wizard.
    6. You can start Workshop IDE from Start -> Program Files -> Oracle Weblogic Portal ...-> Eclipse For Weblogic 10.3.2
    Here are the links for quick start guide for portal development. Please do refer them.
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/index.html
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/quickstart/newproject.html
    HTH
    Ravi Jegga

  • How to Install WebLogic Server 9.2 MP3 ?

    Hi,
    How to Install WebLogic Server 9.2 MP3 on Linux?
    and as which user we have to install WebLogic server. Whether we have to install as root user or we have to create different user to install weblogic server?
    Please provide me the document to do the installation.
    Thanks

    Just read through the installation guide: [http://e-docs.bea.com/common/docs92/install/index.html] . Look upward in that tree for all relevant WebLogic documentation.

Maybe you are looking for

  • ITunes won't play certain songs...help!

    Ok so these songs it wont play have always played before and now all of a sudden they don't want to play also it shows the album artwork as not modifiable all of a sudden..i thought i could delete them then open them up again onto itunes but now they

  • HP P1006 printer prints WAY too light.

    My HP P1006 printer prints WAY too light.  I installed Win 7  (32-bit), then reinstalled the driver, but there has been no improvement. Changing the print density does nothing!

  • Spry throws JS error in IE8

    See http://webbymgc.com/tomato/ It works fine in latest Safari, Chrome, Firefox on Mac/Windows, even in IE9 on Windows 7 but fails in IE8 both on XP and 7. Gives me a cryptic error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0;

  • LMS3.2 log rotation (syslog_info)

    Hi, What should I do to get my syslog_info file rotated whenver the file grows to 512 megabytes in size? I've set up the log rotation in Common Services->Server->Admin but it doesn't seem to work, the file grew to 1.9 gigabytes. Is there any process

  • Hp probook 5310m unicast issue

    Hi Folks, we have just received a batch of HP probook 5310m and have encountered a strange imaging problem. They can only seem to unicast one machine at a time. If you start unicasting another it will boot, load the imaging tool and begin to image, t