1. weblogic902 is installed by default. WebLogic domain is configured through the Weblogic Configuration Wizard. 3. Start the Weblogic-user_projects/domains/base_domain/bin directory and run startweblogic. 4.1.4. Deploy OA project a) package OA Project B) copy to the automatic release directory c) the OA Project is a hibernate-based project, which has some problems when integrating hibernate with weblogic, that is, when hql is interpreted, an exception similar to the following occurs: classnotfoundexception: Org. hibernate. hql. ast. hqltoken [From Com. XXXXX. oa. model. user where username =?] D) solution: I. copy the antlr-2.7.6.jar package to wl_home/Server/lib under II. open setdomainenv in the user_projects/domains/base_domain/bin directory. CMD script III. find the row: Set pre_classpath = IV. change to: Set pre_classpath = % wl_home %/Server/lib/antlr-2.7.6.jare) Disable WebLogic (CTRL + C) f) Restart weblogicg) re-Access: http: // localhost: 7001/OA/can be 5, configure WebLogic data source a) copy the database driver, such as mysql-connector-java-3.1.13-bin.jar, to wl_home/Server/lib B) open setdomainenv in the user_projects/domains/base_domain/bin directory. CMD script c) find this line: Set pre_classpath = D) with the configuration just now, this line should be modified to: Set pre_classpath = % wl_home %/Server/lib/antlr-2.7.6.jar; % wl_home %/Server/lib/mysql-connector-java-3.1.13-bin.jare) Disable WebLogic (CTRL + C) f) Restart weblogicg) Configure WebLogic data source I. access http: // localhost: 7001/console. This is the Weblogic console. You can configure various applications in the console program. Now we can configure the data source II through the Weblogic console. enter the user name and password set during installation and log on to the console III. click the lock & edit button so that the console can run in the modify mode before we can modify its configuration. click data source connection to create a new data source v. when MySQL is selected as our database, the JNDI name is critical. When we call the data source in a program, we need to use this name (assuming that the configuration of the JNDI name is mysqlds) vi. note Connection Properties Configuration Attribute VII. we can choose to test whether the connection configuration is correct: Test Configuration VIII. deploy the data source configuration to a target server: 1. click the data source name to go to the detailed configuration page of the data source 2. click the targets tab, select the checkbox before adminserver, and click Save. 3. activate data source configuration: Click the activate Changes button 6. Use the Weblogic data source in hibernate a) cancel the original database connection configuration in hibernate B) add the hibernate data source configuration: <property name = "hibernate. connection. datasource "> mysqlds </property> C) re-package the OA project D) re-deploy the OA project, which means that the newly packaged war file can directly overwrite the original file.