title: Why am I getting error 404 when I open the application I deployed on weblogic?
body: <p>I´ve a web application with spring + hibernate + struts2 running in weblogic 12.c
  So when I run it on my local weblogic it runs perfectly, but when I deploy it to my qa server which also has a weblogic 12.c I get error 404 even though the application status says it´s active.
  From the weblogic I open the application options, then the test option and finally the url that it has according to the weblogic, but I still get error 404.
  I´ve try checking my database connections, my context without any success.</p>
  
  <p>Here is my weblogic.xml:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;weblogic-web-app xmlns=&quot;http://xmlns.oracle.com/weblogic/weblogic-web-app&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd&quot;&gt;
      &lt;!-- Usar las librerias del repositorio y no las del weblogic --&gt;
      &lt;container-descriptor&gt;
         &lt;prefer-web-inf-classes&gt;true&lt;/prefer-web-inf-classes&gt;
      &lt;/container-descriptor&gt; 
      &lt;!-- Configuracion del directorio virtual --&gt;
      &lt;virtual-directory-mapping&gt;   
          &lt;local-path&gt;C:\Oracle\Middleware\user_projects\domains\WeegoWeb&lt;/local-path&gt;
          &lt;url-pattern&gt;formatos/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;maletas/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;modems/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;sims/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;contratos/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;qr/*&lt;/url-pattern&gt;
          &lt;url-pattern&gt;*.png&lt;/url-pattern&gt;
          &lt;url-pattern&gt;*.zip&lt;/url-pattern&gt;
          &lt;url-pattern&gt;*.pdf&lt;/url-pattern&gt;
      &lt;/virtual-directory-mapping&gt;     
      &lt;jsp-descriptor&gt;
          &lt;keepgenerated&gt;true&lt;/keepgenerated&gt;
          &lt;debug&gt;true&lt;/debug&gt;
      &lt;/jsp-descriptor&gt;
      &lt;!-- Configuracion del contexto --&gt;
      &lt;context-root&gt;WeegoWeb&lt;/context-root&gt;
      &lt;fast-swap&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
      &lt;/fast-swap&gt;
  &lt;/weblogic-web-app&gt;
  </code></pre>
  <p>and my web.xml:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;web-app xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee 
       http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd&quot;
       version=&quot;3.0&quot;&gt;
      &lt;display-name&gt;WeegoWeb&lt;/display-name&gt;
      
      &lt;jsp-config&gt;
          &lt;jsp-property-group&gt;
              &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;
              &lt;page-encoding&gt;UTF-8&lt;/page-encoding&gt;
          &lt;/jsp-property-group&gt;
      &lt;/jsp-config&gt;
      
      &lt;filter&gt;
          &lt;filter-name&gt;sanitizarFilter&lt;/filter-name&gt;
          &lt;filter-class&gt;com.proximate.generales.interceptors.SanitizarFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
      
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;sanitizarFilter&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;       
      &lt;filter&gt;
          &lt;filter-name&gt;encodingFilter&lt;/filter-name&gt;
          &lt;filter-class&gt;org.springframework.web.filter.CharacterEncodingFilter&lt;/filter-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;encoding&lt;/param-name&gt;
              &lt;param-value&gt;UTF-8&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;forceEncoding&lt;/param-name&gt;
              &lt;param-value&gt;true&lt;/param-value&gt;
          &lt;/init-param&gt;
      &lt;/filter&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;encodingFilter&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
      &lt;filter&gt;
          &lt;filter-name&gt;struts&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.FilterDispatcher&lt;/filter-class&gt;
      &lt;/filter&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;struts&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  
      &lt;filter-mapping&gt;
        &lt;filter-name&gt;CharacterEncodingFilter&lt;/filter-name&gt;
        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
      
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/conf/spring/context.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;tilesDefinitions&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/tiles.xml&lt;/param-value&gt;
      &lt;/context-param&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.apache.struts2.tiles.StrutsTilesListener&lt;/listener-class&gt;
      &lt;/listener&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;com.proximate.generales.interceptors.LoginInterceptor&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;jsp/index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
      &lt;session-config&gt;
          &lt;session-timeout&gt;30&lt;/session-timeout&gt;
      &lt;/session-config&gt;
      &lt;error-page&gt;
          &lt;error-code&gt;404&lt;/error-code&gt;
          &lt;location&gt;/jsp/404.jsp&lt;/location&gt;
      &lt;/error-page&gt;   
  &lt;!--    &lt;error-page&gt;
          Missing login
          &lt;error-code&gt;401&lt;/error-code&gt;
          &lt;location&gt;/jsp/error/error2.jsp&lt;/location&gt;
      &lt;/error-page&gt;
      &lt;error-page&gt;
          Forbidden directory listing
          &lt;error-code&gt;403&lt;/error-code&gt;
          &lt;location&gt;/jsp/error/error2.jsp&lt;/location&gt;
      &lt;/error-page&gt;
      &lt;error-page&gt;
          Uncaught exception
          &lt;error-code&gt;500&lt;/error-code&gt;
          &lt;location&gt;/jsp/error/error2.jsp&lt;/location&gt;
      &lt;/error-page&gt;
      &lt;error-page&gt;
          Unsupported servlet method
          &lt;error-code&gt;503&lt;/error-code&gt;
          &lt;location&gt;/jsp/error/error2.jsp&lt;/location&gt;
      &lt;/error-page&gt; --&gt;   
  &lt;/web-app&gt;
  </code></pre>
  <p>What could it be happening thay only on my local environment is working and in my qa server is showing error 404?</p>