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
          

Similar Messages

  • How Can I Run Servlet in tomcat

    Hi My Friends
    Please can any one tell me how can I Run Servlet in tomcat using my own Virtual Directory � my ask about , what is the structure it must be make it in the hierarchy of the sub folder of Virtual Directory , and in watch folder it must be put the servlet files and there is any change it must be make it in any file of the tomcat files and so on
    Please give my full details about this thing
    And thanks

    What version of Tomcat are u using?

  • How to run servlets in weblogic

    hi,
    i've weblogic 7 & jdk1.2.2.i've configured my wls and i could test my jsp programs.
    now to run a servlet, what should i do? where should i put my class file and html file?
    how shall i call my servlet?
    imm help much appreciated..
    thanks.

    you need create and deploy a web application as an archive with a war
    extention or and directory.
    web application has a defined directory structure.
    More details can found at Assembling and Configuring Web Applications:
    http://edocs.bea.com/wls/docs70/webapp/basics.html#100365

  • 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 I can run servlets in Apache 1.3.2.7

    hi i am using JSP as Interface..and Servlets as controller...
    also Using Apache Httpd server,verion is 1.3.2.7
    plz tell me how i can use apache to run my servlets.
    Rahul.

    To run servlets in Apache you need the mod_jk module. But as the previous post, it is better to use Tomcat and putting both, Apache and Tomcat, working together. Tomcat will serve all the java related things, and the Apache, the html, php, etc.

  • How to run Servlet in weblogic server ?

    Hi ,
    I am new to J2ee Tech.
    how to run a simple servlet program in weblogic server?
    mainly i want know how to give the address in ID.
    Now i am using htt:\\localhost :7001\Sample\HelloServlet
    but it is not working
    Please give me the steps
    Thanks
    Merlin Rosina

    Hi ,
    I am new to J2ee Tech.
    how to run a simple servlet program in weblogic server?
    mainly i want know how to give the address in ID.
    Now i am using htt:
    localhost :7001\Sample\HelloServlet
    but it is not working
    Please give me the steps

  • How to Compile/Run servlet in Tomcat 4.1

    Hi All,
    iam trying to compile my servlet program in tomcat4.1.. but its showing an error
    in the import statement..
    UN SOLVABLE SYMBOL... but the import ststement is correct...
    can any one help ... is there i have to set any path for compiling/running the servlet...
    Thanks in Advice

    hi thanks for your reply
    i have loaded tomcat4.1 exe -- for windows i am starting the tomcat server by clicking from the start menu..
    i dint set any env variable .. tell me how to set...
    regards
    ijay

  • 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
              

  • How can i running servlet in tomcat 4.1

    sir,
    i want to know ,what are the settings?i have to do before running a servlet
    i installed tomcat4.1 in C:\Program Files\Apache Group\Tomcat 4.1.
    but i reffered a lot of tutorial ,i couldnt understand that.
    and also i set jsdk path;

    u need to set the path and classpath in command prompt.
    Create a directory on c drive say "c:\job_todler" and enter ----->
    set the path =c:\jdk1.3\bin;%path%
    set classpath = c:\Apache Group\Tomcat\Common\lib\servlet.jar
    Now come to,
    c:\Apache Group\Tomcat\bin>set JAVA_HOME=C:\JDK1.3
    c:\Apache Group\Tomcat\bin>set CATALINA_HOME=C:\ApacheGroup\Tomcat
    c:\Apache Group\Tomcat\bin>startup
    bye

  • 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 can i run servlet in netbeans

    i am new to jsp & servlet. i am using netbeans 6.5 and tocat. i can not understand wehere to save the jsp & servlet
    files.please help me.

    Create a new Project
    > Enter ur project Name
    > By selecting finish u can create a new project only with Servlets & JSP
         > If you want to include Enterprise framework select on you requirement.
    Create a new file
         >Choose the type of file as Servlet
         >then input your servlet name
         >Here you can change Servlet Name and URL-Pattern for your servlet
         >Default is considered as ur servlet file name
    Do stuff in servlet
         >Compile and Run
    Hope these steps are helpful for you

  • How i can run servlets on Apache 1.3 ?

    hi,
    i want to run my servlets on apache 1.3, could any one help me regarding it?
    thx in adcance

    use jserve module.

  • 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 run servlet with tomcat

    I have a probrom that how can I run servlet with tomcat?
    I have new a folder classes in webapps\root\WEB-INF\,and put the .class
    programme in it ,but http://localhost:8080/servlet/HelloWorldExample
    can't run ,it give me a error than http:404 not found.
    could you tell me how i can solve the problem.
    Thank u very much.

    Hi,
    Make sure the class is in classpath or in WEB-INF/classes folder and make an entry for servlet tag in web.xml in WEB-INF folder.
    Regards

  • How to run servlets in IIS Server

    Hi Techies,
    I had read in one book , in IIS server we can run servlets n jsp.
    Can u guys tell how can we run servlets n jsp in IIS server. Does we need to include some 3rd party software in IIS
    regards,
    KRish

    Well if you were to use apache you would use the
    mod_jk_apache2
    However, im really not sure if that is around for win32 systems. However, as i said above im not 100% on windows systems.
    If you really want to test portability set aside a 5gb partition and install linux which most standard distros already have apache2/tomcat installed.(Fedora)
    Also i have to agree this seems less and less java based and more and more system based.
    If you plan on taking the route mentioned above start a post at places like linuxquestions.org since they have more tech junkies then you could imagine.

Maybe you are looking for