Steps for migrating mapviewer to WebLogic Server

Source: Internet
Author: User

Copyright Disclaimer: You can reprint the document at will. During reprinting, you must mark the original source and author information of the article as hyperlinks and this statement.

Author: nizhigang

Original article link: http://blog.csdn.net/nizhigang2000/archive/2006/05/12/725694.aspx

Keywords: GIS mapviewer Oracle WebLogic Server JSF jstl ADF

Map viewer can be transplanted to WebLogic Server 8.1, 9.x, JBoss, and other servers. Because map viewer requires support from components such as jstl, JSF, and Oracle ADF, porting to WebLogic Server 8.1 only displays the old management interface, you can move the value to wls9.x to display the New and Old interfaces.
I. configuration and deployment:
1. Configure the WLS 9. x domain
2. Add the jmxri. jar and xmlparserv2.jar jar packages to the classpath that starts weblogic. These two files can be found in Oracle Application Server.
3. Download The mapviewer application package mapviewer. Ear before deployment. This package cannot be directly deployed on WLS. If the package is directly deployed, components cannot be initialized and need to be uninitialized. The Web. War file also needs to be unlocked as a directory. Then, delete the Web. War package from the mapviewer directory.

 
After the application is unbound as a directory, change the web module information in the mapviewer/META-INF/application. xml file:
<Web>
<Web-Uri>./Web </Web-Uri>
<Context-root>/mapviewer </context-root>
</Web>
Adjust the login information in mapviewer/web/WEB-INF/Web. XML, change realm-name to default, or modify it based on the realm name in WebLogic Server.
<Login-config>
<Auth-method> form </auth-method>
<Realm-Name> default </realm-Name>
<Form-login-config>
<Form-login-page>/mvlogon. jsp </form-login-page>
<Form-error-page>/logon_failed.html </form-error-page>
</Form-login-config>
</Login-config>

4. After unlocking the directory, you can configure the map viewer data source information before deployment, or configure the required data source information on the management interface after deployment.
If you configure before deployment, you can modify mapviewer/web/WEB-INF/confmapviewerconfig. xml
Remove the following annotations and make changes based on the data source information.
<Map_data_source name = "mvdemo"
Jdbc_host = "10.134.0.102"
Jdbc_sid = "testdb"
Jdbc_port = "1521"
Jdbc_user = "mvdemo"
Jdbc_password = "! Mvdemo "(Note: if the password is written in plain text, you must add it !)
Jdbc_mode = "thin"
Number_of_mappers = "10"
/>
5. Start the server of WLS 9. x according to the permissions in the mapviewer/web/WEB-INF/Web. xml file
<Security-constraint>
<Web-resource-collection>
<Web-resource-Name> secureadmin </Web-resource-Name>
<Description> mapviewer admin pages </description>
<URL-pattern>/admin/* </url-pattern>
<URL-pattern>/faces/admin/* </url-pattern>
<URL-pattern>/mapadmin </url-pattern>
<URL-pattern>/mcsadmin </url-pattern>
</Web-resource-collection>
<Auth-constraint>
<Role-Name> map_admin_role </role-Name>
</Auth-constraint>
</Security-constraint>
Add the global role map_admin_role to the Weblogic server console and bind it with the Weblogic user name or corresponding user group.

6. mapviewer is deployed on wls9.x as an application.
Note: When selecting a permission option in the deployment wizard, you cannot use the default permission mode. It is best to select the option as shown in the following figure:
 
7. The deployment is complete. If the corresponding data source is not configured in step 1, you can configure it in the Management Console of mapviewer.
 
8. The configuration and deployment are complete.
Ii. Database Configuration required for running the demo
1. Download mvdemo_11ea1.zip
2. According to the information in mvdemo_11ea1, if it is Oracle 9, perform the following steps:
(1) log on to SQL plus as an administrator and execute:
SQL> grant connect, resource to mvdemo identified by mvdemo;
(2) Exit SQL plus and run the following command on the command line:
IMP mvdemo/mvdemo file = mvdemo. dmp full = y ignore = y
3. For the Oracle 10gdata database, see the configuration information in new_demos.txt.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.