Setting up a servlet in iis

Hello all
I am new to servlets and my particular questions deals with setup. I have xp pro (iis 5.o) and I was wondering can I just install jre and put the servlet class on the server. I guess if someone can give a thought on that then I would be real appreciative

I think IIS is a webserver only. You need to have some App Server or some servlet engine to be coupled with IIS. Try to get JRun/ Servlet Exec.

Similar Messages

  • How do I set the initial servlet pool size in WL 5.1

              In WL 4.5, I can set the initial servlet pool size using the
              weblogic.httpd.servlet.SingleThreadedModelPoolSize. I tried to set this property in WL 5.1, and get an "Found undeclared property..." message when booting WL. Is this feature still supported in WL 5.1? If so, how do I set it?
              Thankx
              

    It appears that pool size of 5 is hardcoded somewhere - no matter where you specify
              weblogic.httpd.servlet.SingleThreadedModelPoolSize, the following test servlet:
              import javax.servlet.*;
              import javax.servlet.http.*;
              public class SingleT extends HttpServlet implements SingleThreadModel {
              static int instanceCount = 0;
              public SingleT() {
              super();
              System.out.println("Instance " + (++instanceCount) + " created");
              always produces:
              Instance 1 created
              Wed Nov 01 11:15:36 PST 2000:<I> <ServletContext-General> SingleT: init
              Instance 2 created
              Wed Nov 01 11:15:36 PST 2000:<I> <ServletContext-General> SingleT: init
              Instance 3 created
              Wed Nov 01 11:15:36 PST 2000:<I> <ServletContext-General> SingleT: init
              Instance 4 created
              Wed Nov 01 11:15:36 PST 2000:<I> <ServletContext-General> SingleT: init
              Instance 5 created
              Wed Nov 01 11:15:36 PST 2000:<I> <ServletContext-General> SingleT: init
              Joe Trung <[email protected]> wrote:
              > Hi Huy,
              > There are lot of 'undeclared' stuffes if you move from 451 to 51.
              > However, if you run WLS with
              > '-Dweblogic.httpd.servlet.SingleThreadedModelPoolSize=10'
              > You will get what you want. I think BEA has moved this option to the <System props>, no more in its <config>
              > Joe
              > "Huy Pham" <[email protected]> wrote:
              >>
              >>In WL 4.5, I can set the initial servlet pool size using the
              >>weblogic.httpd.servlet.SingleThreadedModelPoolSize. I tried to set this property in WL 5.1, and get an "Found undeclared property..." message when booting WL. Is this feature still supported in WL 5.1? If so, how do I set it?
              >>
              >>Thankx
              Dimitri
              

  • Setting Up IIS 5.1 for ColdFusion 9 and Setting Up ColdFusion 9 for IIS 5.1

    Can someone point me in the direction of instructions for setting up IIS 5.1 for ColdFusion 9 and setting up ColdFusion 9 for IIS 5.1

    I Googled "coldfusion 9 iis 5" and the first result is a detailed set of instructions on how to do it.

  • Can i deploy servlet to iis server..?

    Can i deploy servlet to iis server..?
    if yes.. how..?

    to deploy servlets into IIS you need to use some connector which connects IIS to tomcat. Still you have to use servlet contrainer from tomcat only (as IIS serves you only web server functionality but not servlet contrainer ). use JK Connector for this bride.

  • Set a new servlet to form.action in a Javascript method

    Hi!
    I have a JSP page with a form where I set a servlet to call on submit in the action attribute. This servlet is supposed to be called when pressing the submit button at the end of the page.
    In JSP:
    <form action="<c:url value="/commitment"/>" method="POST" name="CommitmentAdd">
    My problem is that I have a select box inside my form where I use 'onchange' to call a Javascript method, and in that method I want to set another servlet to the forms action (using the servlet-mapping url-pattern name in my web.xml file).
    (I want the JSP page to change due to what you choose in the select box and I'd like to have that code in a separate servlet.)
    In Javascript:
    document.CommitmentAdd.action="/commitmentAddReload";
    document.CommitmentAdd.submit();
    When the Javascript method is called I get the error:
    "The requested resource (/commitmentAddReload) is not available."
    How can I set a new servlet to be found and called on submit?
    Thanks,
    Asa

    Try putting the whole URL in.

  • How do I set up the servlet listener in IIS 4.0?

    I'm installing Reports Server 6i (part of Forms 6i) on a Windows NT 4 (SP6) box with IIS 4.0 and JRun 2.3.3 as a servlet engine.
    I want to install the Servlet listener, but Oracle Installer does not list this option. I have found the Java files that I appear to need under my Oracle_Home/java dir, but I'm not sure where to put them or how to configure IIS to know that I want to use them.
    The configuration steps at the end of Oracle Installer assume I want to set up a CGI listener under IIS instead. I assume I need to set up a virtual web directory of some sort (I've already done so for the HTML file).
    Any help in would be greatly appreciated.
    null

    Hey johncali,
    All you have to do is click on the RSS button for the feed or go to the link directly. Firefox will figure out that it's an RSS feed and ask you if you want to subscribe. Nice and easy!

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

  • Weblogic Servlet to IIS/ASP

    Hello,
              Big picture: We have a 3rd party IIS server with ASP behind our firewall.
              We need our WebLogic server to "forward" request to it.
              I implemented this with a Servlet under WL that uses HttpURLConnection to
              open a connection pass on POSTed parameters, set up the cookies, read the
              html back from the IIS server and then send it back to the browser.
              Problem is, the IIS machine is requesting "Connection" "Keep-alive" in the
              header and has timing problems with its session since HttpURLConnection
              doesn't support Keep-alive.
              It looks like the package weblogic.net.http provides the functionality I
              need but where is a tutorial or sample code? Please help by either
              suggesting another entire approach or telling me how to use
              weblogic.net.http package.
              Thanks!!
              MWW
              

    I think you are already using weblogic.net.* implementation
              because weblogic sets 'java.protocol.handler.pkgs' system property,
              which includes weblogic.net package, which contains http.Handler,
              so when you create new URL and open connection it will automatically
              use weblogic.net.http.HttpURLConnection.
              Mark Walter <[email protected]> wrote:
              > Hello,
              > Big picture: We have a 3rd party IIS server with ASP behind our firewall.
              > We need our WebLogic server to "forward" request to it.
              > I implemented this with a Servlet under WL that uses HttpURLConnection to
              > open a connection pass on POSTed parameters, set up the cookies, read the
              > html back from the IIS server and then send it back to the browser.
              > Problem is, the IIS machine is requesting "Connection" "Keep-alive" in the
              > header and has timing problems with its session since HttpURLConnection
              > doesn't support Keep-alive.
              > It looks like the package weblogic.net.http provides the functionality I
              > need but where is a tutorial or sample code? Please help by either
              > suggesting another entire approach or telling me how to use
              > weblogic.net.http package.
              > Thanks!!
              > MWW
              Dimitri
              http://dima.dhs.org
              

  • Set Roles in servlet filter

    How can I set the user's role in the request object in a servlet filter
    so that in my action class, i can query the role using
    request.isUserInRole() and request.getUserPrinciple() methods.
    Any ideas...
    Thanks,

    How can I set the user's role in the request object
    in a servlet filter
    so that in my action class, i can query the role
    using
    request.isUserInRole() and request.getUserPrinciple()
    methods.You may want to check out JAAS in the Creator tutorial:
    http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/reference/sampleapps/

  • Using the servlets with IIS

    hi,
    In a portal project using ASP and IIS server, i need to develop an application which connect to the web and retrieve documents from it.
    I choose a servlet technology to do this.
    I have two question :
    1) If the portal uses IIS can i use Servlets within ASP pages?
    is it necessary to use the package server.jar with IIS, or we can only use IIS ?
    2)Can we connect to an URL page and retrieve it with servlets
    like we do with this portion of code :
    target = new URL(requete);
    HttpURLConnection fetch = (HttpURLConnection)target.openConnection( );
    BufferedReader in = new BufferedReader(new InputStreamReader(fetch.getInputStream( )));
    If yes how ?
    thank you

    Umm, IIS runs ASP pages, which can be written either in VBScript or JScript. Servlets cannot be embedded in or called from within ASP pages. I guess they could be invoked via an HTTP redirect or by creating under-the-hood HTTP connection to the servlet, but that's nasty and circuitous. I'd really recommend finding a way to do what you want in ASP.
    Servlets/JSP's require a Java-based container to run in. There are Servlet containers that work with IIS - check out Tomcat @ jakarta.apache.org
    As for the second question, any Java code can be run from within a Servlet - what's stopping you from using that exact code snippet to do what you want to do?

  • Problem setting up startup servlets in iWS 4.x

    I have configured iPlanet Web Server(iWS) 4.1 SP9 to use a startup servlet. However, the error log does not show that the servlet has been initialized. Instead, it shows only the following entries:
    Loading Simple Session Manager by default. Specify MMapSessionManager in servlets.properties to load persistent session manager
    I found in the Knowledgebase that we need to copy the the configuration entry that was created in context.properties file into the servlets.properties file
    My question that ...do we need to copy all the contents of the context.properties file or some portion of that file to servlets.properties .
    Please suggest asap, I cant take a risk as this is a live server.
    Thanks.

    Hi,
    You need not to copy entry file. In your servlets.properties file at the end of the file you can see the parameters settings of servlet which you have been configured as a servlet.
    For example the below setting are for "HelloWorldServlet" servlet configuration. You need to copy that line only.
    servlet.HelloWorldServlet.classpath=/export/home/41sp9/docs/servlet
    servlet.HelloWorldServlet.code=HelloWorldServlet.class
    Note: Make sure that before changing(copying)any changes in file take backup of the old file(present).
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • Once i set classpath to servlet-api.jar, it doesnt Instantiate DbBean.

    I am using notepad editor. I am trying to instantiate a DbBean class inside the servlet's init() method.
    once i set (C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar) this path to compile the Controller servlet.
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes>set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes>javac Controller.java
    Controller.java:5: package bean does not exist
    import bean.DbBean;
    ^
    Controller.java:14: cannot find symbol
    symbol : class DbBean
    location: class Controller
    DbBean dbbean = new DbBean();
    ^
    Controller.java:14: cannot find symbol
    symbol : class DbBean
    location: class Controller
    DbBean dbbean = new DbBean();
    ^
    3 errors
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes>
    this is my servlet
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import bean.DbBean;
    public class Controller extends HttpServlet
    public void init(ServletConfig config)throws ServletException
    ServletContext context = config.getServletContext();
    context.setAttribute("base_url",config.getInitParameter("base_url"));
    {color:#ff0000}DbBean dbbean = new DbBean();{color} {color:#0000ff}error showing in this line
    {color}dbbean.setDburl(config.getInitParameter("dburl"));
    dbbean.setUserName(config.getInitParameter("username"));
    dbbean.setPassward(config.getInitParameter("pwd"));
    /// database bean can be access from jsp page
    context.setAttribute("dbbean",dbbean);
    /// Load the data base driver
    try{
    Class.forName(config.getInitParameter("jdbcDriver"));
    catch(ClassNotFoundException e)
    System.out.println(e.toString());
    super.init(config);
    public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
    doPost(req,res);
    public void doPost(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
    String base = "/onlinetest1/";
    String url = base + "login.jsp";
    String action = req.getParameter("action");
    if(action!=null)
    if(action.equals("successlogin.jsp"));
    url = base + "successlogin.jsp";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
    dispatcher.forward(req,res);
    public void destroy()
    System.out.println("Servlet stopped");
    This below class can be put inside bean folder( (ie)sub dir of controller servlet)
    package bean;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    public class DbBean
    String dburl="";
    String dbuser="";
    String dbpass="";
    public void setDburl(String url)
    dburl = url;
    public void setUserName(String uname)
    dbuser = uname;
    public void setPassward(String pwd)
    dbpass = pwd;
    What to do to rectify this, please help me why this error coming,

    hi,
    Actually i did my ordinary package compilation example below, its run correctly, but after set classpath to %tomcat-home%\common\lib\servlet-api.jar(for same programs its not working) this kinds of error coming.
    F:\shyam\test>javac first.java
    F:\shyam\test>java first
    main class
    DB Set Correctly
    F:\shyam\test>set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar
    F:\shyam\test>javac first.java
    first.java:1: package bean does not exist
    import bean.DbBean;
    ^
    first.java:10: cannot find symbol
    symbol : class DbBean
    location: class first
    DbBean dbbean = new DbBean();
    ^
    first.java:10: cannot find symbol
    symbol : class DbBean
    location: class first
    DbBean dbbean = new DbBean();
    ^
    3 errors
    F:\shyam\test>
    In compilation it wont take DbBean class, please help me.
    thanks in advance,
    S.Shyam

  • Using an attribute set in a servlet as a bean in a JSP

    Say, I have saved an attribute in any scope in a servlet or its helper class using setAttribute("xyz", someObject).
    * Would I be able to access this attribute in a subsequent JSP using <jsp:getProperty name="xyz" property"someProperty" /> *
    The reverse works true ie. setting the attribute first as a bean in a jsp and den accessing it using getAttribut

    Lakshminarayanan,
    Actually, there are 2 ways to share data between WD components:
    1. Context mapping
    2. Combo of parameters to methods / parameters in events.
    Say, you want to synchronize your 2 toolbars. You may declare some method(s) to alter state in "toolbar" component interface and some event(s) about state update. Now main component has to subscribe to this event from every component usage and invoke method in other component usage to synchronize state.
    With context mapping you may achieve state synchronization automatically. Also method/event pair will look plain ugly if you have a lot of parameters or complex structures.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Servlet under IIS?

    hi all
    i'm a question:
    i have a simple servlet (hi.class) that outputs "hi sandro!!!"
    is it possible to make it work under Microsoft Internet Information Services without any added module?
    i'm quite sure it's not possible, but i need some advice
    thanx in advance
    sandro

    does IIS+Tomcat has really low performance? i've just installed this and tested it with examples. now i'm going to write own servlets and i want to get good performance from iis. tell me pls what should i use: iis+tomcat, standalone tomcat or some other solutions?

  • How to Set Classpath in servlet

    Hi Friends,
    I want to call class with using reflection in my "servlet" , since class which I am calling is stand alone java program and it is not in web application. It is stored else where on server in Offline process. So how can I call the method of this class from my Servlet.
    Reply is appreciated

    any server when it starts up, loads the classes and lib from specifed paths in a config file.
    e.g., jrun has a jvm.config file where you can give the classpath entries for third party classes/jars.
    also for the specific classpath entry for particular war-file, u can specify it in the manifest-file of the war.

Maybe you are looking for