摘要:

Flex API的程序访问ArcGIS Server时,经常遇到安全沙箱的问题。crossdomain.xml配置文件可以解决这个问题,在tomcat服务器只需要把这个文件放到webapps根目录下。WebLogic的配置要稍微麻烦一些。

内容:

1、新建一个ROOT文件夹,把crossdomain拷贝到这个文件夹下。
2、在ROOT文件夹下新建一个weblogic.xml文件,文件的内容如下:

<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1
//EN" "
http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
  <container-descriptor>
    <index-directory-enabled>true</index-directory-enabled>
    <default-mime-type>text/x-cross-domain-policy</default-mime-type>
  </container-descriptor>
  <context-root>/</context-root>
</weblogic-web-app>

3、在WEB-INF目录下新建一个web.xml文件,内容如下:

<?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 >访问了

相关文章:

  • 2021-07-07
  • 2021-09-22
  • 2022-01-01
  • 2022-01-01
  • 2022-01-01
  • 2022-01-01
猜你喜欢
  • 2021-05-26
  • 2022-01-01
  • 2021-10-17
  • 2021-10-10
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案