title: Weblogic Error 403--Forbidden
body: <p>I am trying to run a Java EE application on weblogic. The application works fine on Tomcat. I have customized the war file to include weblogic.xml. This file includes the following code:-</p>
  
  <pre><code>&lt;container-descriptor&gt;
      &lt;show-archived-real-path-enabled&gt;true&lt;/show-archived-real-path-enabled&gt;
  &lt;/container-descriptor&gt;
  </code></pre>
  
  <p>I have also changed the configuration in properties file of the application to reflect the port on which container is listening.
  server.port=7001
  server.modjk.enabled=false</p>
  
  <p>My web.xml file includes the following code:-</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;olatservlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.olat.core.servlets.OLATServlet&lt;/servlet-class&gt;
  
      &lt;!-- Set the load order --&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;olatservlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;olatservlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>When I was initially running the war file on weblogic 11g, I was getting a nullpointer exception. However, I could deploy the file when I removed XerceImpl.jar from the lib folder. Now I am able to deploy the application successfully. I name the context root in the weblogic as the name of the war file. When I try to open the link generated by weblogic in its testing tab, I get the following error:-</p>
  
  <p>Error 403--Forbidden</p>
  
  <p>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:</p>
  
  <p>10.4.4 403 Forbidden</p>
  
  <p>The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.</p>
  
  <p>I was wondering if someone could tell me how to resolve this issue.</p>