开发时快速把web项目部署到weblogic上

%weblogic_home%\user_projects\domains\你的域名\config\config.xml文件如下:

 

<?xml version="1.0" encoding="GBK"?>
<domain xsi:schemaLocation="http://www.bea.com/ns/weblogic/920/domain
http://www.bea.com/ns/weblogic/920/domain.xsd" xmlns="http://www.bea.com/ns/weblogic/920/domain" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <name>mydomain</name>
  <domain-version>9.2.0.0</domain-version>
  <security-configuration xmlns:xacml="http://www.bea.com/ns/weblogic/90/security/xacml">
    <name>mydomain</name>
    <realm>
      <sec:authentication-provider xsi:type="wls:default-authenticatorType"/>
      <sec:authentication-provider xsi:type="wls:default-identity-asserterType">
        <sec:active-type>AuthenticatedUser</sec:active-type>
      </sec:authentication-provider>
      <sec:role-mapper xsi:type="xacml:xacml-role-mapperType"/>
      <sec:authorizer xsi:type="xacml:xacml-authorizerType"/>
      <sec:adjudicator xsi:type="wls:default-adjudicatorType"/>
      <sec:credential-mapper xsi:type="wls:default-credential-mapperType"/>
      <sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"/>
      <sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
      <sec:name>myrealm</sec:name>
    </realm>
    <default-realm>myrealm</default-realm>
    <credential-encrypted>{3DES}P3gQxm0WbBB60V5z09yjcznzCjai79bRGyp7ZDmptchauWY8AFvMMZWcJhy4C674d4j2Xo92tFgJK91IU4Hh3+chS+pVAfds</credential-encrypted>
    <node-manager-username>weblogic</node-manager-username>
    <node-manager-password-encrypted>{3DES}xorY6W6ZYkKzSotQSy1u0g==</node-manager-password-encrypted>
  </security-configuration>
  <server>
    <name>AdminServer</name>

    <!--修改默认7001端口-->
   <listen-port>7002</listen-port>     

    <listen-address/>
  </server>
  <embedded-ldap>
    <name>mydomain</name>
    <credential-encrypted>{3DES}nZPf3hfbJ1gyulflBORuEZwkWYzUF6jU6K/jTFthTJY=</credential-encrypted>
  </embedded-ldap>
  <configuration-version>9.2.0.0</configuration-version>
  
<!--部署应用程序 begin-->
  <app-deployment>
    <name>temp</name>
    <target>AdminServer</target>
    <module-type>war</module-type>
    <source-path>F:\workspace\eclipse3.3.2+myeclipse6.0\bookManager2\WebRoot</source-path>
    <security-dd-model>DDOnly</security-dd-model>
  </app-deployment>
  <!--部署应用程序 end-->

  <admin-server-name>AdminServer</admin-server-name>
</domain>

 重启weblogic,访问http://localhost:7002/WebRoot

你可能感兴趣的:(Web,xml,weblogic,Security,F#)