Weblogic and specification

We have a web application with static content - html files, js files, images, etc.
At the beginning of all html files there is a byte order mark.
These files were created by some tool. Therefore, I cannot modify them.
We are deploying this application on Weblogic.
When I try to access this web application via a direct link to Weblogic, then I have a lot of javascript errors.
But in case I try to access this page through an Apache proxy, then everything will be fine.
But Apache redirects all requests directly to Weblogic.

And I don’t have such errors if the application was deployed to JBoss.
In this case, I can access the application either through a direct link to JBoss or through a proxy.

Does anyone have some suggestions - why can't I access the application through a direct link to Weblogic?

SOLUTION:
Add the following mime mapping to web.xml:

   <mime-mapping>
      <extension>xml</extension>
      <mime-type>text/xml</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>js</extension>
      <mime-type>text/javascript</mime-type>
   </mime-mapping>
+3
source share
1 answer

Add the following mime mapping to web.xml:

   <mime-mapping>
      <extension>xml</extension>
      <mime-type>text/xml</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>js</extension>
      <mime-type>text/javascript</mime-type>
   </mime-mapping>
0
source

Source: https://habr.com/ru/post/1765841/


All Articles