Web.xml configuration for initial servlet load

Hi all,
I have heard of entering some tag into web.xml file (deployement descriptor) if we need some servlets to be loaded wheneve the app server starts or restarts. can some body help me regarding what to write in web.xml.
thanks in advance

I am having some problems with the same issue although specifying the load-on-startup param is not working for.
Here is snipet of the web.xml:
<servlet id="Servlet_1206024889339">
<servlet-name>ContentServer</servlet-name>
<servlet-class>COM.FutureTense.Servlet.SContentServer</servlet-class>
<init-param id="InitParam_1206024988781">
<param-name>inipath</param-name>
<param-value>/data/WebSphere/ContentServer</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
This however doesn't init the contentServer servlet. Is there anythign else i need to check? I am using websphere5-1.
I saw somewhere you might have to specify a loadonstartup=true? Where is this set?
I know the app is reading the right web.xml because i put in a bad value and saw the error being outputted in the startup log.
There are some servlets being initialised on startup but not the ones I want. These servlets don't seem to be in the web.xml.
[10/10/08 11:53:30:265 IST] 1e06de8 WebContainer A SRVE0169I: Loading Web Module: cs.war.
[10/10/08 11:53:33:330 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: JSP 1.2 Processor: init
[10/10/08 11:53:34:098 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: SimpleFileServlet: init
[10/10/08 11:53:34:117 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: DirectoryBrowsingServlet: init

Similar Messages

  • JSF 1.2 web.xml configuration parameters

    Actually, I know these JSF 1.2 web.xml configuration parameters:
    javax.faces.CONFIG_FILES
    javax.faces.DEFAULT_SUFFIX
    javax.faces.LIFECYCLE_ID
    javax.faces.STATE_SAVING_METHOD
    Are there any more available?
    (I have to study its performance implications in conjunction with RichFaces ones).

    The JSF 1.2 specification document would contain the information you're looking for.

  • Automate creation of web.xml file for tomcat 4.1.29

    hi , this is with ref to Tomcat 4.1.29, if i am correct, each Servlet in the application has to be mentioned in the web.xml file for the Tomcat to know about it. Is there any way to automate the creation of web.xml file , depending on the contents of the Servlet folder of the application. Any way to escape from writing each Servlet name in web.xml file.
    rc

    Hello,
    Maybe you should check if you can use Ant tool to do
    that. I am not sure if it can help u.
    Zeph.
    http://ant.apache.org/
    It will, specially if used in conjunction with XDoclets :
    http://xdoclet.sourceforge.net/
    XDoclet has Ant tasks to generate web.xml files.

  • Can i run a servlet without a web.xml file for servlet mapping?

    Hello everyone.
    The code i want to run compiles and everythink looks ok.
    It produces the .class file.
    I run Tomcat 4.1 and i build my Web site with Dreamweaver.
    I have a form in a page and i want to send the data upon form completion to a database i already have build with MySql.
    The database is up and running and the server is set-up ok.
    I have changed the port in Tomcat to run on port 80.
    The directory i have my site is
    Tomcat41\webapps\ROOT\se
    and the directory where i keep the servlet class is
    Tomcat41\webapps\ROOT\se\WEB-INF\servlet
    I have a web.xml file to map the servlet and placed it in
    Tomcat41\webapps\ROOT\se\WEB-INF
    In the Form action i write action:"/servlets/Classes/GroupRegistration"
    and I RECEIVE AN 404 ERROR FROM APACHE.
    Somethink is wrong .
    The following is the code from the GroupRegistration.java file
    and follws the web.xml file.
    Please Help.
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class GroupRegistration extends HttpServlet
    Connection con;
    public void doPost (HttpServletRequest req, HttpServletResponse res)
                             throws ServletException, java.io.IOException
         handleForm(req, res);
    public void init() throws ServletException {
         try{
         /* Loading the driver for the database */
         Class.forName("com.mysql.jdbc.Driver");
         Connection Con = DriverManager.getConnection("jdbc:mysql://localhost/se?user=luser&password=");
         catch (ClassNotFoundException e) {
         throw new UnavailableException("Couldn't load JdbcOdbcDriver");
         catch (SQLException e) {
         throw new UnavailableException("Couldn't get db connection");
         private void handleForm(HttpServletRequest req, HttpServletResponse res)
         throws ServletException {
         //ServletOutputStream out = res.OutputStream();
         //res.setContentType("text/html");
         //Extract the form Data Here
         String group = req.getParameter("GroupNo");
         String Name1 = req.getParameter("Name1");
         String LoginID1 = req.getParameter("LoginID1");
         String Name2 = req.getParameter("Name2");
         String LoginID2 = req.getParameter("LoginID2");
         String Name3 = req.getParameter("Name3");
         String LoginID3 = req.getParameter("LoginID3");
         String Name4 = req.getParameter("Name4");
         String LoginID4 = req.getParameter("LoginID4");
         String URL = req.getParameter("URL");
         String Title2 = req.getParameter("Title2");
         String date = req.getParameter("date");
         String INSERT = "INSERT INTO registration (groupno, name1, loginid1, name2, loginid2, name3, loginid3, name4, loginid4, url, topic, date) VALUES (" + group + "," + Name1 + "," + LoginID2 + "," + Name2 + "," + LoginID2 + "," + Name3 + "," + LoginID3 + "," + Name4 + "," + LoginID4 + "," + URL + "," + Title2 + "," + date + ")";
         PreparedStatement pstmt = null;
         try{
         pstmt = con.prepareStatement(INSERT);
         pstmt.executeUpdate();
         catch (SQLException e) {
         throw new ServletException(e);
         finally {
         try {
         if (pstmt != null)pstmt.close();
         catch (SQLException ignored){
    The web.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com.xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <servlet>
    <servlet-name>GroupRegistration</servlet-name>
    <servlet-class>GroupRegistration</servlet-class>
    </servlet>
    <servlet-maping>
    <servlet-name>GroupRegistration</servlet-name>
    <url-pattern>/myGroupRegistration</url-patern>
    </servlet-mapping>
    </web-app>
    I apreciate your time.
    Thanks for any help.

    and the directory where i keep the servlet class is
    Tomcat41\webapps\ROOT\se\WEB-INF\servletOthers have pointed out that "servlet" should be "classes", but there is another mistake that hasn't been spotted. If you want your servlet to appear in the root context, you should use:
    Tomcat41\webapps\ROOT\WEB-INF\classes
    If you want your servlet to appear under the /se context, then you should use:
    Tomcat41\webapps\se\WEB-INF\classes
    and also, in the latter case, your form action should be /se/myGroupRegistration.

  • Web.Xml Mapping For using Filters in Servlets

    Hi Team
    Can any one help me in getting the correct xml mappiing for using filters
    Currently i am getting 404 error when calling any resource
    using the below mapping
    <web-app>
    <display-name>OM</display-name>
    <welcome-file-list>
    <welcome-file>Hello.html</welcome-file>
    </welcome-file-list>
    <filter>
    <filter-name>Basic Filter</filter-name>
    <filter-class>BasicFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Basic Filter</filter-name>
    <url-pattern>/sample1</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>sample2</servlet-name>
    <servlet-class>com.ustri.xml.FilteredServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>sample2</servlet-name>
    <url-pattern>/sample1</url-pattern>
    </servlet-mapping>
    </web-app>
    Thanks
    santhosh

    As the messages tries to suggest, the elements under <web-app> must appear in a specific order. In particular the <filter> elements, if any, must appear before any <session-config> elements. That isn't the case in what you posted so it fails validation by the DTD.

  • Web.xml configuration

    Hi,
    I want to configure web.xml in such a way that all requests will be handled by a single servlet. I don't have anything common for all requests in the url pattern.
    <servlet>
         <servlet-name>myServlet</servlet-name>
         <servlet-class>com.app.test.MyServlet</servlet-class>
         <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>myServlet</servlet-name>
         <url-pattern>/*</url-pattern>
    </servlet-mapping>
    I tried to configure this way, by making url-pattern as /*. But its running into an infinite loop.
    I also tried giving the context name in the url-pattern, <url-pattern>/mycontext/*</url-pattern>. Unfortunately this also doesn't work for me.
    Solutions/suggestions are welcome. Thank you.
    -Prasanna

    Using "/" or "/*" will make one servlet as the default, so you're on the right track there. However, keep in mind that a more exact match or a longer match will win in case of conflict.
    The infinite loop you talk about is probably because you try to redirect from within your handler servlet and that new request obviously gets intercepted again.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Web.xml setup for web application problem

    WLS v5.1 on Windows 2000---standard installation.
    I am setting up a web app call Kermit with its own web.xml with the
    following:
    <context-param>
    <param-name>weblogic.httpd.servlet.classpath</param-name>
    <param-value>c:/weblogic/Kermit/WEB-INF/classes</param-value>
    </context-param>
    <context-param>
    <param-name>weblogic.httpd.servlet.reloadCheckSecs</param-name>
    <param-value>1</param-value>
    </context-param>
    <context-param>
    <param-name>weblogic.httpd.indexDirectories</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>weblogic.httpd.register.*.jsp</param-name>
    <param-value>weblogic.servlet.JSPServlet</param-value>
    </context-param>
    <context-param>
    <param-name>weblogic.httpd.initArgs.*.jsp</param-name>
    <param-value>compileCommand=c:/jdk1.2.2/bin/javac.exe;workingDir=C:/weblogic
    /Kermit/Compiled</param-value>
    </context-param>
    <context-param>
    <param-name>weblogic.httpd.documentRoot</param-name>
    <param-value>web/</param-value>
    </context-param>
    <welcome-file-list>
    <welcome-file>index.htm</welcome-file>
    </welcome-file-list>
    First off, the servlets do not redeployed properly after compilation. Any
    changes I made to a servlet, I had to down the weblogic server and bring it
    back up. What am I doing wrong with this??
    Second, weblogic.httpd.indexDirectories should not allow directory browse ..
    but it still does for this app. Am I missing something else?
    Third, JSP configuration that specifies where a directory is supposed to be
    compiled is useless cuz' it's always compiled in tmpwar dir, which is
    dynamically created if not already there. Should I add something else to
    this???
    Fourth, weblogic.httpd.documentRoot should allow me to just type in a URL,
    such as http://relyon1:7001/Kermit, and it should redirect to a
    file(specified by welcome-file-list tag) under the directory
    web(/weblogic/Kermit/web). However, it's not doing it.
    From the documentation that I've read, this should have been very siimple
    but it's not working the way the docs have it made it out be.... am I
    missing anything else??
    Please help.

    Currently we only officially support ADF 11g deployment to WebLogic.
    There is at least one report of someone running this on Tomcat here:
    JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6
    Note that this will require you to have an ADF runtime license though.

  • Web.xml  configured correctly(I think),  but still getting '404...resource

    not found error' from tomcat. Here is my web.xml:
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>HelloServlet2</servlet-name>
    <servlet-class>coreservlets.HelloServlet2</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/classes/HelloServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloServlet2</servlet-name>
    <url-pattern>/classes/coreservlets.HelloServlet2</url-pattern>
    </servlet-mapping>
    </web-app>
    when I went to the following urls after I had edited web.xml to the above,
    http://localhost:8080/cucoweb/classes/coreservlets.HelloServlet2
    http://localhost:8080/cucoweb/classes/HelloServlet
    I go the expected results, ie, 'Hello(2)' and 'Hello'. Then I shutdown tomcat and restarted it.
    And when i tried to access those 2 urls again, I got the above error.
    (Actually I had the same web.xml before except that it didnt have the /classes in front in the
    url-pattern. I was able to access it by the same url - without the /classes - and then the next day
    when started tomcat and tried to access it, it didnt work, same error.)
    In this example, cucoweb is the context root, correct ? Shouldn't the url-pattern be relative to the
    context root ? Thats how I have it now, I think.
    Would adding my webapp directory, ie cucoweb/classes, to my CLASSPATH help ?
    I'm in ubuntu, when I do echo $CLASSPATH, I get :
    .:/usr/lib/jvm/java-6-sun-1.6.0.00/lib:/usr/lib/jvm/java-6-sun-1.6.0.00/imq/lib/:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib
    I havent tried this yet because doing this is kind of tricky in ubuntu. (You have etc/environment and
    bash.bashrc, for ex.) But if I try that and it works I will post about it. I suspect its something else,
    though, because it worked once, before restarting tomcat, thats why I'm posting here first.
    Any info, even educated guesses, would be greatly appreciated. Thanks in advance.

    Thanks for the reply. Here is my web structure :
    /usr/local/tomcat/apache-tomcat-6.0.14/webapps/cucoweb/WEB-INF/classes
    From my understanding you are supposed to have your own webapp deployment directory
    under webapps, ie, cucoweb, and not use webapps/ROOT. (I'm not sure what /ROOT is even for)
    My web.xml is in WEB-INF. My /classes directory contains HelloServlet.class and a directory
    called coreservlets which contains HelloServlet2.class.
    I'm not sure what you mean by 'better you to delete under tomcat/work/catalina/localhost folder'.
    Can you please clarify ?
    FYI, my work/catalina/localhost contains the following :
    cucoweb docs examples host-manager manager
    Here cucoweb just contains a SESSIONS.ser file. Are you saying i should delete that ?

  • Web.xml Tomcat 5.0 Servlet problem

    Hey guys....
    The last time I used a servlet was before the new change in security in Tomcat. Ive been looking all over the net for some easy references about how they are to be mapped but no matter what I try nothing seems to work.
    My servlet is located in ROOT\Admin\WEB-INF\classes\colt and is called AddOLO.class
    My web.xml file is located in ROOT\Admin\WEB-INF and contains the following code:
    <servlet>
    <servlet-name>AddOLO</servlet-name>
    <servlet-class>colt.AddOLO</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>AddOLO</servlet-name>
    <url-pattern>/Admin/add</url-pattern>
    </servlet-mapping>
    On the HTML form invoking the Servlet (addOLO.html) Im using the following small piece of code
    <form action="http://Colt/Admin/servlet/AddOLO" method="post" align="centre">
    The server is operating on Port 80.
    All I seem to be getting is a 404 Error Saying The requested resource (/Admin/servlet/AddOLO) is not available. Can anyone see what is wrong here?
    Thanks in advance

    I don't think there's anything to prohibit you from deploying servlets in ROOT, but webapps that have pages and servlets that work together should be in their own context. That's what you did when you created the directory under webapps. I think it's the right way to deploy web apps. Even better, learn how to create and deploy WAR files:
    http://access1.sun.com/techarticles/simple.WAR.html
    Once you have a WAR, which is simply a JAR'd version of the directory you just created under webapps, you can simply pick it up and deploy it by dropping it into the webapps directory of any Tomcat server. Tomcat will unpack it for you. - MOD

  • JSP include through a web.xml configuration

    I have a website that has many JSP pages and I would like to add some logging lines to each jsp file. I would prefer not to have to edit each jsp file though (it would be time consuming). Is there a way through a configuration change in the webapp web.xml file to make each jsp page first "go through" a servlet (to perform some logic) and then have the servlet pass the request and response on to the jsp file. If so, I could add the logging logic to the servlet and effectively have the logic added to each jsp file.
    If anyone has done something like this, please give me some pointers on how to configure it.
    Thanks,

    It sounds like a servlet filter is what you are after.
    http://java.sun.com/products/servlet/Filters.html
    Its pretty much exactly what you had, just using a Filter interface instead of a servlet.
    Should be something along the lines of this (untested)
    In web.xml:
    <filter>
    <filter-name>jsplogger</servlet-name>
    <filter-class>dagger.servlet.JSPLoggerFilter</servlet-class>
    </filter>
    <filter-mapping>
    <filter-name>jsplogger</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>Filter class:
    public class JSPLoggerFilter implements Filter{
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
      String s=request.getRequestURI();
      System.out.println(s+" "+request.getSession().getId());
      // pass it on down the chain
      chain.doFilter(request, response);
    }Cheers,
    evnafets

  • Help with web.xml and deploying a servlet

    Hello,
    I've been tearing me hair out for the last few hours trying to get this to work... I've got a servlet org.fatbaob.servtest.Servtest that I want to deploy with Tomcat 4.0.4. It doesn't seem to mater what I put in the web.xml file I'm always getting 404 errors.
    The servlet is contained in a file c:\development\projects\servtest\WEB_INF\classes\org\fatboab\servtest\Servtest
    which mapped with a <context> tag in the Tomcat conf\server.xml file:
    <!-- Servtest context -->
         <Context path="/servtest" docBase="C:\development\projects\servtest" debug="0" privileged="true" reloadable="true">
         <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_servtest_log." suffix=".txt" timestamp="true"/>
    </Context>
    My web.xml file contains:
    <?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>ServTest</servlet-name>
    <servlet-class>org.fatboab.servtest.Servtest</servlet-class>
    </servlet>
    </web-app>
    Although I have tried putting in <servlet-mapping> tags, but they didn't seem to work either.
    My html file contains:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>Servlet Test</title>
    </head>
    <body>
    <h1>Servlet Test</h1>
    <form action="/servtest/servlet/org.fatboab.servtest.Servtest" method="post">
    <table>
    <tbody>
    <tr>
    <td>Name:</td>
    <td><input type="text" size="77" name="name" /></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td><input type="text" size="77" name="email" /></td>
    </tr>
    <tr>
    <td colspan="2"><input type="submit" value="Submit" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>
    The 404 error I get is:
    description The requested resource (/servtest/servlet/org.fatboab.servtest.Servtest) is not available.
    Help!
    Cheers,
    Bob.

    Hello,
    I've been tearing me hair out for the last few hours
    trying to get this to work... I've got a servlet
    org.fatbaob.servtest.Servtest that I want to deploy
    with Tomcat 4.0.4. It doesn't seem to mater what I put
    in the web.xml file I'm always getting 404 errors.
    The servlet is contained in a file
    c:\development\projects\servtest\WEB_INF\classes\org\fa
    boab\servtest\Servtest
    which mapped with a <context> tag in the Tomcat
    conf\server.xml file:
    <!-- Servtest context -->
    <Context path="/servtest"
    docBase="C:\development\projects\servtest" debug="0"
    privileged="true" reloadable="true">
    <Logger
    er className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_servtest_log." suffix=".txt"
    timestamp="true"/>
    </Context>
    My web.xml file contains:
    <?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>ServTest</servlet-name>
    <servlet-class>org.fatboab.servtest.Servtest</servlet-
    lass>
    </servlet>
    </web-app>
    Although I have tried putting in <servlet-mapping>
    tags, but they didn't seem to work either.
    My html file contains:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xml:lang="en">
    <head>
    <title>Servlet Test</title>
    </head>
    <body>
    <h1>Servlet Test</h1>
    <form
    action="/servtest/servlet/org.fatboab.servtest.Servtest
    method="post">
    <table>
    <tbody>
    <tr>
    <td>Name:</td>
    <td><input type="text" size="77" name="name"
    ="name" /></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td><input type="text" size="77" name="email"
    "email" /></td>
    </tr>
    <tr>
    <td colspan="2"><input type="submit"
    submit" value="Submit" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>
    The 404 error I get is:
    description The requested resource
    (/servtest/servlet/org.fatboab.servtest.Servtest) is
    not available.
    Help!
    Cheers,
    Bob.Bob,
    Here an servlet definition I have defined in my web.xml...just plug in your values.
    <servlet>
    <servlet-name>AutoUpload</servlet-name>
    <servlet-class>com.lendleaserei.webservices.AutoUpload</servlet-class>
    <display-name></display-name>
    <description></description>
    </servlet>
    <servlet-mapping>
    <url-pattern>/webs</url-pattern>
    <servlet-name>com.lendleaserei.webservices.AutoUpload</servlet-name>
    </servlet-mapping>
    Hope this helps,
    Marco

  • XML Question for web.xml file for LiteWebServer

    Hi,
    I have no clue of wut tags are required in the web.xml file.
    Currently the following code is in my web.xml file and i am trying to run servlets that are located under web-inf/*.class
    Pls tell me wuts wrong....
    Do i need those mime-mapping tags, session and welcome tags.......... ?
    Right now i just want those 2 servlets to work
    And wut is this encoding ="UTF-8" in the first line of the xml file. Wut does that do... ? ARe there any others
    Any help would b greatly appreciated
    Thanks
    <?xml version="1.0" encoding="UTF-8" ?>
    <!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 id="WebApp_1">
    <display-name>PDMPortal</display-name>
    <session-config id="SessionConfig_1">
    <session-timeout>60</session-timeout>
    </session-config>
    <mime-mapping id="MimeMapping_1">
    <extension>htc</extension>
    <mime-type>text/x-component</mime-type>
    </mime-mapping>
    <welcome-file-list id="WelcomeFileList_1">
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>HelloWorld</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>HelloWorldExample</servlet-name>
    <servlet-class>HelloWorldExample</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloWorldExample</servlet-name>
    <url-pattern>HelloWorldExample</url-pattern>
    </servlet-mapping>
    </web-app>

    Try putting your servlets in the WEB-INF\classes directory.

  • Virtual-mapping in jrun-web.xml file for CFIDE is not working

    I have put virtual-mapping for my web root into jrun-web.xml
    file. It looks like this:
    <virtual-mapping>
    <resource-path>/*</resource-path>
    <system-path>E:/WebSites/mywebroot</system-path>
    </virtual-mapping>
    So I need give virtual-mapping for my CFIDE too. It looks
    like this:
    <virtual-mapping>
    <resource-path>/CFIDE/*</resource-path>
    <system-path>E:/Apps/JRun4/servers/myserver/cfusion-ear/cfusion-war/CFIDE</system-path>
    </virtual-mapping>
    It is now working for me. When I use following url:
    http://localhost:8002/CFIDE/administrator
    I am getting "HTTP 404 - File not found". I have set it for
    other servers they are working on same server. What I did wrong
    this time?
    Thanks ahead.
    Mikenj

    Hi John,
    i did some some changes in Account dimension in my Planning Dev server. When i was migrating it to QA using LCM in shared services it is howing this error: Import failed for the following reason - Error parsing the deployment xml.
    First i define migration in Dev for export and the migration was successful.Then i went into QA shared services and started migration, i got this error for importing.
    Could you help me out on this?
    Regards,
    Shilpa

  • Best practices for initial data loads to MDM

    Hi,
       We need to load more than 300000 vendors from SAP into MDM production repository. Import server might take days to load that much if no error occurs.
    Are there any best practices for initial loads to MDM available? What considerations must be made while doing the initial loads.
    Harsha

    Hello Harsh
    With SP05 patch1 there is a file aggregation functionality in the import port. Is is supposed to optimize the import performance.
    BTW, give me your mail address and I will send you an idoc packaging paper for MDM.
    Regards,
    Goekhan

  • Read web.xml from a non-servlet class

    Hi all, I need to read the web.xml file fron a standard class in a web project.
    I know how to do it from a servlet or a jsp page, but is it possible to do from a non-servlet class?
    Thank you,
    Gabriele

    It's a XML file. So best approach would be to use some Java-XML API to parse the XML file into useable nodes. E.g. JAXP, DOM4J, JXPath, etc.

Maybe you are looking for

  • Strange characters displaying in FR pdf and excel export

    We are using Financial Reporting on a Planning application. We have a dimension, projects, whose aliases display on the report. Now the strange part. On some projects, not all, during some report runs, but not all, some, but not all, of the spaces in

  • IDVD burn problem

    when i burn my dvd from idvd everything comes out fine, except in one spot the audio drops for a split second. i have deleted the project, reimported my imovie project back in and its the same. the idvd preview plays fine at the same spot where it dr

  • ITunes 11.4 update cause issue with AppleUSBEthernetHost.kext

    Along with many others iMac users, the iTunes 11.4 update cause a window that informs that the system extension "/System/Library/Extensions/AppleUSBEthernetHost.kext" was installed improperly and cannot be used.

  • I have a question about my htc droid dna

    so i have had it for about a month and love it. but i am very confused on the preferred network setting.. I have no clue what it should be set on should it be on the global setting or should it be lte/cdma or gsm/umts . i have no clue what any of tha

  • Lumia 1520 - back arrow button and Windows button ...

    Hi, Can someone please tell me why the back button and the windows button have stopped working (2 of the three buttons at the bottom of the Lumia 1520)? The search function works fine by the way.  It is also causing the 'Listening' function to turn i