What if i give -1 as a Servlet instance in pool in web.xml

What if i give -1 as a no of Servlet instance, in pool, in web.xml

Try it and them get back to us and let us know if it works.

Similar Messages

  • Servlet cannot be preloaded given web.xml is defined in Weblogic 10.3...

    My web.xml loads on startup first before getting any request to initialise attributes in servlet by fetching from properties file. In Weblogic 8.1 it works fine but not in Weblogic 10.3 while setting attribute its getting null values and throws error in another jsp page.
    The actual error is like :
    [HTTP:101216]Servlet: "bbbbb" failed to preload on startup in Web application: "aaaaa.war". javax.servlet.ServletException: Error in Log4j File at com.z.y.bbbbb.init(bbbbb.java:49)
    Log4j in 10.3 are by default. I changed the configuration from default to Log4j. The application loads successfully if I do vice versa the application fails. If i delete the line load on startup from web.xml the application starts successfully.
    Any idea to deal with this situation?
    Thanks.
    I guess this is new kind of error which very less have came across but it will be a lesson learnt if someone could throw some light as to why such errors are resulted and how it can be prevented.
    Thanks a bunch!
    Edited by: jennifer123 on Aug 7, 2009 7:38 AM
    Hello, Any idea whats goin on?
    Edited by: jennifer123 on Aug 12, 2009 1:37 PM

    Contact the Weblogic guys. This problem is unrelated to Servlet API.
    All I can do here is to suggest you to get rid of the buggy Weblogic appserver and go for a more robust implementation. For example Tomcat or one of its clones or Glassfish.

  • Calling servlet with out entry in web.xml

    Hi
    I want to know whether can a servlet be invoked with out having an entry in web.xml.Because to my knowledge when ever an entry is made in teh web.xml the <url-pattern> and the class file will be stored as key value combination it is only then when ever a request is made the server gets the class taht is to be invoked from the <url-pattern> that is passed from the client side.
    Is ther any way by whihc we can call the servlet directly with out an entry in web.xml
    Thanks in advance
    Ajithkumar.S

    Interesting that it is possible on Tomcat anyway.
    What's the real benefit of not having a Servlet
    definied in web.xml?
    The only benefit I see is that
    you don't need to understand/read/change XML when
    adding or removing a servlet. That isn't worth that
    imho. What are the other benefits?The only thing I can think of is , to be able to quickly access a Servlet that you've just written, because it takes additional steps to define it in the web.xml.
    I think it would be a security concern (of some sort) , if the Servlet's class is known, that's why it is better to access a Servlet with a mapping from web.xml

  • How to set two different welcome-file to different servlets in web.xml

    Hi friends,
    Can some one help with web.xml file
    I have to different servlets in applications.
    I want to set two different welcome files for my two different
    servlets in web.xml
    Please, can some one give me sample code to achieve this.
    Here web.xml code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>     
         <servlet>
              <servlet-name>reports</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>reports</servlet-name>
              <url-pattern>/reports</url-pattern>
         </servlet-mapping>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>reportsindex.jsp</welcome-file>
         </welcome-file-list>
         <servlet>
              <servlet-name>calldetails</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>calldetails</servlet-name>
              <url-pattern>/calldetails</url-pattern>
         </servlet-mapping>
    <welcome-file-list>
              <welcome-file>calldetailsindex.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    I need this fix immediately. Your help will be really appreciated. Thanks in advance.

    First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
    Your servlet section:
    <servlet>
      <servlet-name>Controller</servlet-name>
      <servlet-class>com.company.ControllerServlet</servlet-class>
    </servlet>Now you would add the following to your welcome file list:
    <welcome-file-list>
      <welcome-file>Controller</welcome-file>
    </welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
    Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
    Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
    HTH.

  • What is web.xml and why it is used?

    hi,
    am new to servlet technology, i tried to find a topic like this in this fourm also in google but didn't get a exact one. can anybody explain me or suggest me some resource about this.
    thanx in advance.
    Max

    hi stevejluke,
    thanx for the correct link.
    nx for the correct link. but what i in doubt with is
    why we should use web.xml? may be my question is very
    silly, may be too basic, forgive me for that...
    Thanx & Regards,
    SaikatAt the most basic level:
    There are several versions of the Servlet specification, You need the web.xml to tell the server which version of the spec your application conforms to so the server knows how to deal with different things.
    If you have a servlet, you also need the web.xml to define what URL signals a request that should be handled by your servlet.
    At this point, you need to sit down and read a book. Do what it says, blindly at first. Just do what it says (but do try to understand the 'what' of it, just don't question the 'why'). After you have a few applications running, go back and ask yourself this question again and try to see what you are using the web.xml for in those applications you have.

  • Processing web.xml -Adding servlet

    Can you please give me an out line how to add servlets/filters/session-configs to web.xml programatically.
    I have writen a program for adding these but In web.xml the order in which elements are placed matters. So right now in the program I specify that I should add this element before another specified element like that .
    How can we make this generic ? I mean how I can maintain the same order as of DTD ?
    please help me.

    Answering your original question. Yes it is possible to have a web.xml without servlet classes, if you are not using servlet classes.
    >
    But I got the following error from Tomcat.
    2007-01-12 18:31:25 ContextConfig[worktigers] Parse
    error in application web.xml
    org.xml.sax.SAXParseException: The processing
    instruction target matching "[xX][mM][lL]" is not
    allowed.
    at
    t
    org.apache.xerces.parsers.AbstractSAXParser.parse(Unkn
    own Source)
    TA
    MalaiIt looks like there may be BOM characters (invisible in regular editors), before the opening angle bracket of the XML prolog: <?xml version="1.0"
    The special characters usually are inserted by some editors such as Notepad.
    You can download a free Hex editor, like Cygnus hex editor and see if you have the 3 special characters (in Hex) appearing before the XML prolog.
    If you see anything before the prolog delete them, save the web.xml file and re-test it.
    Reading from previous answers to your problem from here:
    http://forum.java.sun.com/thread.jspa?threadID=694303&messageID=4033694
    http://mail-archives.apache.org/mod_mbox/xerces-j-users/200201.mbox/%3Cp04330102b8689660dcbc@%5B192.168.254.4%5D%3E

  • Registered servlets in web.xml do not work....WHY????

    Hi i am executing a web application on tomcat 4.1.29 and have the following structure...the jsp pages are executed but when sendinga request to a servlet the servlets are not executed...Can somebody guide me out of this....
    webapps
    {MyApp}->[web-inf][jsp]
    {web-inf}->[classes][lib]
    {classes}->[com][src]
    {src}->[source files]
    when the source files are compiled package structure is followed and the class files are grneated in
    com.MyApp.servlets
    ...etc
    the servlets are registered in the web.xml file as shown below.....few lines of my web.xml file
    <servlet>
    <servlet-name>userServlet</servlet-name>
    <servlet-class>com.MyApp.servlets.UserServlet</servlet-class>
    </servlet>
    even then when accessing a servlet it says the resource not found
    The requested resource (/MyApp/servlet/UserServlet) is not available.
    am i missing something some where...why are the servlets not executed????

        <servlet>
            <servlet-name>UserServlet</servlet-name>
            <servlet-class>com.MyApp.servlets.UserServlet</servlet-class>
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>UserServlet</servlet-name>
            <url-pattern>/User</url-pattern>
        </servlet-mapping>I'd invoke it with this URL:
    http://localhost:8080/MyApp/UserServlet
    hmm something seems to be wrong here ;-)
    URL should be
    http://localhost:8080/MyApp/User (see <url-pattern>)

  • What is Wrong with my filter and filter-mapping in web.xml?

    First, thanks all for your attention.
    I have checked the place where I should place <filter> and <filter-mapping> in web.xm. They should be after the <display-name>, before <servlet> and <servlet-mapping>.
    However, as soon as I insert the <filter> and <filter-mapping> elements in my web.xml, all my struts-bean.tld, struts-html.tld, etc. in the web.xml cannot be found at the runtime.
    Please help in identifying the problem. Thank you.
      <filter>
       <filter-name>trailFilter</filter-name>
       <filter-class>org.osjava.taglib.trail.OriginalRequestFilter</filter-class>
      </filter>
      <filter-mapping>
       <filter-name>trailFilter</filter-name>
       <url-pattern>*.do</url-pattern>
      </filter-mapping>and my web-xml is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
      <display-name>Struts Example Application</display-name>
      <!-- Action Servlet Configuration -->
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <!-- Action Servlet Mapping -->
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      <!-- The Welcome File List -->
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      <!-- The default error page -->
      <error-page>
       <exception-type>java.lang.Exception</exception-type>
       <location>\Error.jsp</location>
      </error-page>
      <!-- Application Tag Library Descriptor -->
      <taglib>
        <taglib-uri>/tags/app</taglib-uri>
        <taglib-location>/WEB-INF/app.tld</taglib-location>
      </taglib>
      <!-- Struts Tag Library Descriptors -->
      <taglib>
        <taglib-uri>/tags/struts-bean</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-html</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-logic</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-nested</taglib-uri>
        <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
      </taglib>
    </web-app>

    Filters were introduced in the servlet 2.3 specification (j2ee 1.3) - http://java.sun.com/products/servlet/Filters.html.
    Your web.xml constraints your web application to adhere to 2.2 standards (according to your DOCTYPE definition in your web.xml). Change it to conform to 2.3 standards
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
            //your definitions
    </web-app>Note : Your container should support the 2.3 spec (Tomcat 4.0 and above does, I guess)
    ram.

  • What are the new features added into servlet 2.5 ??

    Hi,
    i wanted to know that apart from annotation support what are other features are supported by servlet 2.5 ?
    does NIO,Continuations suported by servlet 2.5?
    Thanks,

    Hello,
    This link should give you some more informations.
    http://www.javaworld.com/javaworld/jw-01-2006/jw-0102-servlet.html?page=1
    They talk about NIO on page 6.
    Regards,
    Sebastien Degardin

  • Mac OSX, 10.7.5, LR 5.6  After creating a new folder in the Destination section and importing images, the new folder name appears as 2010, no matter what name I give it.  Why is it doing this?

    Mac OSX, 10.7.5, LR 5.6  After creating a new folder in the Destination section and importing images, the new folder name appears as 2010, no matter what name I give it.  Why is it doing this?

    I am experiencing Mavericks failing to copy subdirectories from usb sticks, I am backing up game saves from a console. Both sticks I use are fine, same permissions of course since the console wrote the files. Sometimes it copies, sometimes it doesn't. It seems to be related to the mounting process.
    Thank God Apple hasn't (yet) broken bash.

  • What modifications are required to make a servlet support SSL data encrypti

    Hi,
    What modifications are required to make a servlet support SSL data encryption?
    --kumar                                                                                                                                                                                                

    Hi,
    What modifications are required to make a servlet
    support SSL data encryption?
    --kumar No modifications are required in servlet. You have to setup servlet container.

  • Whats the difference between servlet-config.xml ang web.xml???

    whats the difference between servlet-config.xml ang web.xml???

    web.xml is the standard configuration for all Java EE web modules.
    servlet-config.xml appears to be pertinent only for Struts apps.
    you don't have to have servlet-config.xml if you don't use Struts, but you've got to have web.xml.
    %

  • What can CS5 give me that Photoshop Elements-9 can't?

         I currently own Photoshop Elements - 9 and was considering getting CS5. My question is What can CS5 give me over PSE-9?

    Try steps mentioned on blog: http://psekb.blogspot.in/2013/04/pse-editor-is-not-launching-windows.html
    Please let me know if that doesn't resolves the issue.
    ~Andromeda

  • I am trying to create a account for my I pad. It's asking for postcode what I shout give. I am from Dubai uae

    I am trying to create a account for my I pad. It's asking for postcode what I shout give. I am from Dubai uae

    I am trying to create a account for my I pad. It's asking for postcode what I shout give. I am from Dubai uae

  • What is the plugin used for jsp/servlet development , deployment in eclipse

    what is the plugin used for jsp/servlet development , deployment in eclipse?
    can some body tell me what are the other plugins to be used in enterprise java developement
    is eclipse would be a best choice j2ee application development?
    thanks

    what is the plugin used for jsp/servlet development ,
    deployment in eclipse?There are several J2EE plugins I think. One is Lomboz.
    can some body tell me what are the other plugins to
    be used in enterprise java developementPfft...
    1) Might depend on what you're doing. J2EE is not just JSP, you know?
    2) Why do you ask about Eclipse IDE at Sun's Java Programming forum?
    3) Do you really want me to list the 5000 plug-ins someone might use for J2EE-related development?
    4) Open fucking Google and search yourself
    is eclipse would be a best choice j2ee application
    development?IMO: no. Simply because you have to look for J2EE plugins. I'm too lazy for that. Though it has other benefits that might outweigh the plug-in-searching issue.

Maybe you are looking for

  • Running ssl client from multiple applications fails in Sap j2ee engine

    There are two applications making ssl connections to third party. At a time only one application is able to make connection while other throws error message <b>"No trusted certificate found".</b> Currently we have  two j2ee applications running in SA

  • How to handle idoc documents by BizTalk without WCF-SAP Adapter?

    Dear All, our company is no customer of SAP. But one partner company of us uses SAP Systems to generate business transactions like "INVOICE". Then they send us such a idoc-file per email. So I can not use the SAP-WCF Adapter by BizTalk (the download

  • Flash animation in catalyst

    Hi, I am new to catalyst and an amateur in web design, anyway, I am trying to have a simple animation play on my page laid out in catalyst (I put together a simple animation in Flash, it is basically a fade in fade out of a sequence of images). My sw

  • How to calculate multiple aggregation in a single query

    how to find firstname ,lastname for max and min salary from employees table group by department in a single query? Edited by: Gnanasekar on Jan 10, 2012 6:36 AM

  • Urgent: Character Set Problem with ResultSet

    When I use normal statement as below the program works well: Class.forName("oracle.jdbc.driver.OracleDriver"); String URL = "jdbc:oracle:thin:@10.1.20.8:1521:ora92"; Properties prop = new Properties(); prop.setProperty("user","unistock"); prop.setPro