title: Tomcat started but application is not running
body: <p>I created a spring application and deployed it in tomcat server (Tomcat v5.5 Server). I checked in tomcat manager and found my application is listed.But while i try to run my application,i am getting a page showing </p>
  
  <p>**This program cannot display the webpage </p>
  
  <p>Most likely causes:
  You are not connected to the Internet. 
  The website is encountering problems. 
  There might be a typing error in the address. </p>
  
  <p>What you can try: 
       Check your Internet connection. Try visiting another website to make sure you are connected.  </p>
  
  <p>Retype the address.** </p>
  
  <p>I don't know where i am missing out.Please help me in sorting out this issue.</p>
  
  <p>My web.xml file as follows</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;web-app version="2.4" 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"&gt;
       &lt;context-param&gt;
      &lt;description&gt;Log4j configuration file used by spring to initialize logging&lt;/description&gt;
      &lt;param-name&gt;log4jConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;classpath:pricingLog4j.properties&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;description&gt;By default myfaces serializes the current view and saves it in session after view is rendered.
          In Pricing UI, values on the Page tags are bound to UIComponents on backing bean using "binding" attribute. Most of the components are created
          in the backing bean. When myfces serializes, it serializes the wrapped object under UIComponents, i.e HtmlDataTabl's value attribute, which are in Pricing UI case
          business objects which have a big graphs attached to it and you start getting "serialization" error
  
          Keep this pram-value to false to avoid serialization.&lt;/description&gt;
    &lt;param-name&gt;org.apache.myfaces.SERIALIZE_STATE_IN_SESSION&lt;/param-name&gt;
    &lt;param-value&gt;false&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;description&gt;Comma separated list of URIs of (additional) faces config
              files. (e.g. /WEB-INF/my-config.xml) See JSF 1.0 PRD2,
              10.3.2. 
              DONOT ADD DEFAULT faces-config.xml HERE. IT IS AUTOMATICALLY LOADED BY FACES. IF GIVEN HERE, IT WILL BE LOADED TWICE&lt;/description&gt;
    &lt;param-name&gt;javax.faces.CONFIG_FILES&lt;/param-name&gt;
    &lt;param-value&gt;/WEB-INF/faces-navigation.xml&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;facelets.LIBRARIES&lt;/param-name&gt;
    &lt;param-value&gt;
              /WEB-INF/taglib/tomahawk-taglib.xml;
              /WEB-INF/taglib/tomahawk-sandbox-taglib.xml;
              /WEB-INF/taglib/jcp-pricing-ui-taglib.xml;
              /WEB-INF/taglib/acegijsf-taglib.xml
    &lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;
    &lt;param-value&gt;.xhtml&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;
              classpath:/config/pricingEngineContext-caching.xml
              classpath:/config/pricingEngineContext-messaging.xml
              classpath:/config/pricingEngineContext-service.xml
              classpath:/config/pricingEngineContext.xml
              classpath:/config/pricingWebApplicationContext.xml
              classpath:/config/securityContext.xml&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;description&gt;State saving method: "client" or "server" (= default) See
              JSF Specification 2.5.2&lt;/description&gt;
    &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
    &lt;param-value&gt;server&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;description&gt;This parameter tells MyFaces if javascript code should be
              allowed in the rendered HTML output. If javascript is
              allowed, command_link anchors will have javascript code that
              submits the corresponding form. If javascript is not
              allowed, the state saving info and nested parameters will be
              added as url parameters. Default: "true"&lt;/description&gt;
    &lt;param-name&gt;org.apache.myfaces.ALLOW_JAVASCRIPT&lt;/param-name&gt;
    &lt;param-value&gt;true&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;description&gt;If true, rendered HTML code will be formatted, so that it is
              "human readable". i.e. additional line separators and
              whitespace will be written, that do not influence the HTML
              code. Default: "true"&lt;/description&gt;
    &lt;param-name&gt;org.apache.myfaces.PRETTY_HTML&lt;/param-name&gt;
    &lt;param-value&gt;true&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;org.apache.myfaces.DETECT_JAVASCRIPT&lt;/param-name&gt;
    &lt;param-value&gt;false&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;description&gt;If true, a javascript function will be rendered that is able
              to restore the former vertical scroll on every request.
              Convenient feature if you have pages with long lists and you
              do not want the browser page to always jump to the top if
              you trigger a link or button action that stays on the same
              page. Default: "false"&lt;/description&gt;
    &lt;param-name&gt;org.apache.myfaces.AUTO_SCROLL&lt;/param-name&gt;
    &lt;param-value&gt;true&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;!-- Special Debug Output for Development --&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;facelets.DEVELOPMENT&lt;/param-name&gt;
    &lt;param-value&gt;true&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;facelets.REFRESH_PERIOD&lt;/param-name&gt;
    &lt;param-value&gt;2&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;context-param&gt; 
    &lt;param-name&gt;org.ajax4jsf.SKIN&lt;/param-name&gt; 
    &lt;param-value&gt;DEFAULT&lt;/param-value&gt; 
   &lt;/context-param&gt; 
   &lt;filter&gt;
    &lt;filter-name&gt;Acegi Channel Processing Filter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;targetClass&lt;/param-name&gt;
     &lt;param-value&gt;org.acegisecurity.securechannel.ChannelProcessingFilter&lt;/param-value&gt;
    &lt;/init-param&gt;
   &lt;/filter&gt;
  
   &lt;filter&gt;
    &lt;filter-name&gt;Acegi Filter Chain Proxy&lt;/filter-name&gt;
    &lt;filter-class&gt;org.acegisecurity.util.FilterToBeanProxy&lt;/filter-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;targetClass&lt;/param-name&gt;
     &lt;param-value&gt;org.acegisecurity.util.FilterChainProxy&lt;/param-value&gt;
    &lt;/init-param&gt;
   &lt;/filter&gt;
   &lt;!-- Spring Open Session In View Pattern filter --&gt;
   &lt;filter&gt;
    &lt;filter-name&gt;hibernateFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.springframework.orm.hibernate3.support.OpenSessionInViewFilter&lt;/filter-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;sessionFactoryBeanName&lt;/param-name&gt;
     &lt;param-value&gt;sessionFactory&lt;/param-value&gt;
    &lt;/init-param&gt;
   &lt;/filter&gt;
   &lt;!-- Extensions Filter --&gt;
   &lt;filter&gt;
    &lt;description&gt;Set the size limit for uploaded files. Format: 10 - 10 bytes
              10k - 10 KB 10m - 10 MB 1g - 1 GB&lt;/description&gt;
    &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.apache.myfaces.webapp.filter.ExtensionsFilter&lt;/filter-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;uploadMaxFileSize&lt;/param-name&gt;
     &lt;param-value&gt;100m&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
     &lt;description&gt;Set the threshold size - files below this limit are
                  stored in memory, files above this limit are stored on
                  disk.
  
                  Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB&lt;/description&gt;
     &lt;param-name&gt;uploadThresholdSize&lt;/param-name&gt;
     &lt;param-value&gt;100k&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
     &lt;description&gt;Set the path where the intermediary files will be
                  stored.&lt;/description&gt;
     &lt;param-name&gt;uploadRepositoryPath&lt;/param-name&gt;
     &lt;param-value&gt;/tmp&lt;/param-value&gt;
    &lt;/init-param&gt;
   &lt;/filter&gt;
   &lt;filter&gt;
    &lt;filter-name&gt;orchestraFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.apache.myfaces.orchestra.conversation.jsf.filter.OrchestraServletFilter&lt;/filter-class&gt;
   &lt;/filter&gt;
   &lt;filter&gt;
    &lt;filter-name&gt;promotionFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;com.jcpenney.web.servlet.PromotionFilter&lt;/filter-class&gt;
   &lt;/filter&gt;
   &lt;filter&gt; 
    &lt;display-name&gt;Ajax4jsf Filter&lt;/display-name&gt; 
    &lt;filter-name&gt;ajax4jsf&lt;/filter-name&gt; 
    &lt;filter-class&gt;org.ajax4jsf.Filter&lt;/filter-class&gt; 
   &lt;/filter&gt; 
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;Acegi Channel Processing Filter&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;Acegi Filter Chain Proxy&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
    &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
   &lt;/filter-mapping&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;orchestraFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;!-- Spring/Hibernate filter mappings --&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;hibernateFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;hibernateFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;*.remoting&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;!-- Filter Mappings necessary to run myfaces --&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;extensionsFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;promotionFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
   &lt;filter-mapping&gt;
    &lt;filter-name&gt;ajax4jsf&lt;/filter-name&gt; 
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
    &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
    &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;
   &lt;/filter-mapping&gt;
   &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.util.Log4jConfigListener&lt;/listener-class&gt;
   &lt;/listener&gt;
  &lt;!-- Myfaces JSF Listener, that does all the startup work (configuration, init). --&gt;
   &lt;listener&gt;
    &lt;listener-class&gt;org.apache.myfaces.webapp.StartupServletContextListener&lt;/listener-class&gt;
   &lt;/listener&gt;
   &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
   &lt;/listener&gt;
   &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
   &lt;/listener&gt;
   &lt;listener&gt;
    &lt;listener-class&gt;org.apache.myfaces.orchestra.conversation.servlet.ConversationManagerSessionListener&lt;/listener-class&gt;
   &lt;/listener&gt;
   &lt;listener&gt;
    &lt;listener-class&gt;com.jcpenney.pricing.web.listeners.SessionLoggingListener&lt;/listener-class&gt;
   &lt;/listener&gt;
  
   &lt;listener&gt;
    &lt;listener-class&gt;com.jcpenney.pricing.audit.LogoutLogger&lt;/listener-class&gt;
   &lt;/listener&gt;
  
   &lt;servlet&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
   &lt;/servlet&gt;
   &lt;!-- This servlet is needed to workaround a websphere bug (http://issues.apache.org/jira/browse/TOMAHAWK-663)
      Another workaround is on Websphere set com.ibm.ws.webcontainer.invokefilterscompatibility=true as container 
      property, but that is one more step for server configuration team
   --&gt;
   &lt;servlet&gt;
    &lt;servlet-name&gt;Tomahawk-663 Websphere Workaround Servlet&lt;/servlet-name&gt;
    &lt;servlet-class&gt;com.jcpenney.web.Tomahawk663Servlet&lt;/servlet-class&gt;
   &lt;/servlet&gt; 
   &lt;servlet&gt;
    &lt;servlet-name&gt;dwr-invoker&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.directwebremoting.servlet.DwrServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
       &lt;param-name&gt;debug&lt;/param-name&gt;
       &lt;param-value&gt;false&lt;/param-value&gt;
    &lt;/init-param&gt;
   &lt;/servlet&gt; 
   &lt;!-- Mapping for MyFaces components --&gt;
   &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
   &lt;!-- This mapping is needed to back the MyFaces Extention Filter to workaround a websphere bug --&gt;
   &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;Tomahawk-663 Websphere Workaround Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
   &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;dwr-invoker&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/dwr/*&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
  
      &lt;!-- pricingUi Monitoring Simple Spring Servlet--&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;pricingUi-monitoring&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.context.support.HttpRequestHandlerServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;3&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;pricingUi-monitoring&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/ping&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;pricingUi-monitoring&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/services/ping&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt; 
  
  
      &lt;!-- Spring Message Dispatcher Servlet for WebServices Call --&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;pricingEngine&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.ws.transport.http.MessageDispatcherServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;transformWsdlLocations&lt;/param-name&gt;
              &lt;param-value&gt;true&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;classpath:config/pricingEngineContext-webservice.xml&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;sale-price-upload&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.context.support.HttpRequestHandlerServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;sale-price-upload&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/services/salePriceFileUpload&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;pricingEngine&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/services/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt; 
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;pricingEngine&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.wsdl&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
   &lt;!-- Session Configuration --&gt;
   &lt;session-config&gt;
    &lt;!-- the time until the session expires in min (60min)--&gt;
    &lt;session-timeout&gt;60&lt;/session-timeout&gt;
   &lt;/session-config&gt;
   &lt;!-- Welcome files --&gt;
   &lt;welcome-file-list&gt;
    &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
   &lt;login-config&gt;
    &lt;auth-method&gt;BASIC&lt;/auth-method&gt;
   &lt;/login-config&gt;
  
  &lt;/web-app&gt;
  </code></pre>