Linux配置Spatial Data Server的WebServer(Weblogic)

24 篇文章 0 订阅
20 篇文章 0 订阅


部署Weblogic

用户可以在Oracle官网上下载相应的weblogic程序,我下载的版本是Oracle WebLogic Server 12.1.1.0,Windows Linux和Mac在一块的

1:首先Linux机器上需要安装JDK,这个版本的weblogic需要安装 JDK 1.6 以上版本的

2:将软件SSH到Linux的Root用户下

[root@localhost wls]# ll
total 84
-rw-r--r-- 1 root root  3830 Mar  6 22:41 configure.cmd
-rw-r--r-- 1 root root  3587 Mar  6 22:41 configure.sh
-rw-r--r-- 1 root root  3189 Mar  6 22:41 configure.xml
-rw-r--r-- 1 root root   133 Mar  6 22:41 domain-registry.xml
drwxr-xr-x 6 root root 40960 Mar  6 22:52 modules
-rw-r--r-- 1 root root  1554 Mar  6 22:41 osarch.xml
drwxr-xr-x 6 root root  4096 Mar  6 22:41 patch_wls1211
-rw-r--r-- 1 root root  6324 Mar  6 22:41 README.txt
-rw-r--r-- 1 root root  1138 Mar  6 22:41 registry.template
drwxr-xr-x 3 root root  4096 Mar  6 22:41 utils
drwxr-xr-x 6 root root  4096 Feb 23 10:35 wlserver
[root@localhost wls]# chmod 777 configure.sh
[root@localhost wls]# ./configure.sh
**************************************************
WebLogic Server 12c (12.1.1.0) Zip Configuration

MW_HOME:   /home/wls
JAVA_HOME:

Note:      MW_HOME not supplied, default used
**************************************************

ERROR: You must set JAVA_HOME and point it to a valid location
       where your JDK has been installed

系统提示需要将MW_HOME设置好,设置了MW_HOME=/home/wls

[root@localhost wls]# pwd
/home/wls
[root@localhost wls]# cd
[root@localhost ~]# vi .bash_profile
[root@localhost ~]# . ./.bash_profile

我们进行软件安装

$ . ./configure.sh 


root@localhost ~]# cd $MW_HOME
[root@localhost wls]# ./configure.sh
**************************************************
WebLogic Server 12c (12.1.1.0) Zip Configuration

MW_HOME:   /home/wls
JAVA_HOME: /home/jdk1.6.0_20
**************************************************

Please wait while 783 jars are unpacked ...
...Unpacking done                                                                            0 

to go


BUILD SUCCESSFUL
Total time: 1 second
CLASSPATH=/home/wls/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/wls/patch_ocp371/profiles
/default/sys_manifest_classpath/weblogic_patch.jar:/home/jdk1.6.0_20/lib/tools.jar:/home/wls/wlserver/server/lib/weblogic_sp.jar:/ho
me/wls/wlserver/server/lib/weblogic.jar:/home/wls/modules/features/weblogic.server.modules_12.1.1.0.jar:/home/wls/wlserver/server
/lib/webservices.jar:/home/wls/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/wls/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:

PATH=/home/wls/wlserver/server/bin:/home/wls/modules/org.apache.ant_1.7.1/bin:/home/jdk1.6.0_20/jre/bin:/home/jdk1.6.0_20/bin:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin

Your environment has been set.
Configuring WLS...

BUILD SUCCESSFUL
Total time: 0 seconds
[root@localhost wls]#


软件安装完毕之后,我们需要设置环境变量 

 $ . $MW_HOME/wlserver/server/bin/setWLSEnv.sh 


[root@localhost bin]# ./setWLSEnv.sh
-bash: ./setWLSEnv.sh: Permission denied
[root@localhost bin]# chmod 775 setWLSEnv.sh
[root@localhost bin]# ./setWLSEnv.sh
CLASSPATH=/home/wls/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/wls/patch_ocp371/profiles
/default/sys_manifest_classpath/weblogic_patch.jar:/home/jdk1.6.0_20/lib/tools.jar:/home/wls/wlserver/server/lib/weblogic_sp.jar:/ho
me/wls/wlserver/server/lib/weblogic.jar:/home/wls/modules/features/weblogic.server.modules_12.1.1.0.jar:/home/wls/wlserver/server
/lib/webservices.jar:/home/wls/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/wls/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:

PATH=/home/wls/wlserver/server/bin:/home/wls/modules/org.apache.ant_1.7.1/bin:/home/jdk1.6.0_20/jre/bin:/home/jdk1.6.0_20/bin:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin

Your environment has been set.


我们创建一个weblogic server的domain,这里有两种方法

1:使用命令来实现

$ mkdir /home/myhome/mydomain
$ cd /home/myhome/mydomain
$ $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=128m weblogic.Server


2:使用界面化向导,在该路径下执行MW_HOME/wlserver/common/bin/config.sh

在这个过程中我们可以一步步的进行配置需要关注的几个步骤

         Specify Domain Name and Location页
Domain name:base_domain
Domain location:/home/wls/user_projects/domains

          Configure Administrator User Name and Password页(密码必须至少8位而且字母和数字都有)
Name:weblogic
User Password:**********
Confirm user password:*************
Description:This user is the default administrator

  如果用户已经有了domain了,需要将DOMAIN_HOME/bin/setDomainEnv.sh文件里面的MW_HOME修改正确即可


启动Weblogic服务即可


[root@localhost bin]# pwd
/home/wls/user_projects/domains/base_domain/bin


[root@localhost bin]# ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=256m
.
WLS Start Mode=Development
.
CLASSPATH=/home/wls/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/wls/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/jdk1.6.0_20/lib/tools.jar:/home/wls/wlserver/server/lib/weblogic_sp.jar:/home/wls/wlserver/server/lib/weblogic.jar:/home/wls/modules/features/weblogic.server.modules_12.1.1.0.jar:/home/wls/wlserver/server/lib/webservices.jar:/home/wls/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/wls/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/wls/wlserver/common/derby/lib/derbyclient.jar:/home/wls/wlserver/server/lib/xqrl.jar:/home/jdk1.6.0_20/lib:
.
PATH=/home/wls/wlserver/server/bin:/home/wls/modules/org.apache.ant_1.7.1/bin:/home/jdk1.6.0_20/jre/bin:/home/jdk1.6.0_20/bin:/home/jdk1.6.0_20/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/root/bin:/root/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
Starting WLS with line:
/home/jdk1.6.0_20/bin/java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/wls/wlserver/server/lib/weblogic.policy  -Xverify:none -Djava.endorsed.dirs=/home/jdk1.6.0_20/jre/lib/endorsed:/home/wls/wlserver/endorsed  -da -Dplatform.home=/home/wls/wlserver -Dwls.home=/home/wls/wlserver/server -Dweblogic.home=/home/wls/wlserver/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/wls/patch_wls1211/profiles/default/sysext_manifest_classpath:/home/wls/patch_ocp371/profiles/default/sysext_manifest_classpath  weblogic.Server
<Jun 9, 2012 5:30:14 AM CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Jun 9, 2012 5:30:14 AM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Jun 9, 2012 5:30:15 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 16.3-b01 from Sun Microsystems Inc..>
<Jun 9, 2012 5:30:15 AM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 >
<Jun 9, 2012 5:30:17 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Jun 9, 2012 5:30:17 AM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<Jun 9, 2012 5:30:17 AM CST> <Notice> <LoggingService> <BEA-320400> <The log file /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
<Jun 9, 2012 5:30:17 AM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log00001. Log messages will continue to be logged in /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log.>
<Jun 9, 2012 5:30:17 AM CST> <Notice> <Log Management> <BEA-170019> <The server log file /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<Jun 9, 2012 5:30:20 AM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Jun 9, 2012 5:30:21 AM CST> <Notice> <LoggingService> <BEA-320400> <The log file /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
<Jun 9, 2012 5:30:21 AM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/access.log00001. Log messages will continue to be logged in /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/access.log.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <LoggingService> <BEA-320400> <The log file /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/base_domain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/base_domain.log00001. Log messages will continue to be logged in /home/wls/user_projects/domains/base_domain/servers/AdminServer/logs/base_domain.log.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.100.203:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:20c:29ff:fee0:f576:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
<Jun 9, 2012 5:30:23 AM CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<Jun 9, 2012 5:30:24 AM CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>

我们可以打开http://localhost:7001/console 进行管理


配置Oracle数据源

这个在Weblogic管理界面进行配置,相关的配置步骤

1:Log in to your WebLogic Server Domain from WebLogic Server Administration Console as the WebLogic administrator.
2:Expand the Services node in the Domain Structure tree and click Data Sources.
3:Click New on the Configuration tab of the Summary of JDBC Data Sources page.
     The Create a New JDBC Data Source page opens.
4:Type a name for your data source in both the Name and JNDI Name text boxes.
      Note:The Name and JNDI Name values must be exactly the same and must begin with jdbc/. For example, jdbc/porcupine_osid_pubu.
5:Choose Oracle from the Database Type drop-down list and click Next.
6:Choose *Oracle's Driver (Thin) for Instance connections; Versions:9.0.1 and later from the Database Driver drop-down list.
7:Click Next.
8:Accept the default values on the Transaction Options page and click Next.
9:Type the name of the Oracle database in the Database Name text box.
10:Type the name of the Oracle server in the Host Name text box.
11:In the Port text box, type the port number used for communication with the Oracle database.
12:In the Database User Name text box, type the name of the database user you want to use for your data source connection.
13:Type the password of this user in both the Password and Confirm Password text boxes, then click Next.
        Information on the Test Database Connection page will be prepopulated based on information you provided in the wizard.
14:Click Test Configuration to be sure the information you provided is correct and the data source connection works.
15:If the configuration is correct, click Next.
16:Check the box next to the server or cluster to which you want to deploy your JDBC provider, then click Finish.
17:Click Activate Changes in the Change Center of the WebLogic Administration Console.

Web应用部署到weblogic

一:更改arcgis.war配置文件

解压缩SDS安装目录里面的arcgis.war文件

[root@localhost java]# jar xvf arcgis.war
  created: META-INF/
 inflated: META-INF/MANIFEST.MF
  created: WEB-INF/
  created: WEB-INF/classes/
  created: WEB-INF/classes/com/
  created: WEB-INF/classes/com/esri/
  created: WEB-INF/classes/com/esri/sds/
  created: WEB-INF/classes/com/esri/sds/rest/
  created: WEB-INF/classes/com/esri/sds/rest/util/
  created: WEB-INF/lib/
  created: WEB-INF/tld/
  created: www/
  created: www/commons/
  created: www/css/
  created: www/decorators/
  created: www/jfs/
 inflated: WEB-INF/classes/com/esri/sds/rest/AdminDatasourcesResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/AdminImageResource$ByteArrayStreami                         ngOutput.class
 inflated: WEB-INF/classes/com/esri/sds/rest/AdminImageResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/AdminResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/AdminServicesResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/Cache.class
 inflated: WEB-INF/classes/com/esri/sds/rest/FeatureServiceResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/FieldManager.class
 inflated: WEB-INF/classes/com/esri/sds/rest/HashMapCache$1.class
 inflated: WEB-INF/classes/com/esri/sds/rest/HashMapCache.class
 inflated: WEB-INF/classes/com/esri/sds/rest/ImageResource$ByteArrayStreamingOut                         put.class
 inflated: WEB-INF/classes/com/esri/sds/rest/ImageResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/Initializer.class
 inflated: WEB-INF/classes/com/esri/sds/rest/JavaSDSException.class
 inflated: WEB-INF/classes/com/esri/sds/rest/LayerManager.class
 inflated: WEB-INF/classes/com/esri/sds/rest/LayerResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/LicenseManager.class
 inflated: WEB-INF/classes/com/esri/sds/rest/NoneCache.class
 inflated: WEB-INF/classes/com/esri/sds/rest/RestResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/RestServicesResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/SDSApplication.class
 inflated: WEB-INF/classes/com/esri/sds/rest/SDSRootResource.class
 inflated: WEB-INF/classes/com/esri/sds/rest/ServiceManager.class
 inflated: WEB-INF/classes/com/esri/sds/rest/SpyCache.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/Base64.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/CreateEmptyServicesRepository.                         class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/EditUtil.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/JSONConverter$1.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/JSONConverter.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/LicensedServer$EsriServerLicen                         seEdition.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/LicensedServer.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/MemoryCounter.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/MemorySizes$1.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/MemorySizes.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/MetadataUtil.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/PropertyFileReader.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/QueryUtil.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/SDSErrorCodes.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/SoftConcurrentHashMap$SoftKey.                         class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/SoftConcurrentHashMap.class
 inflated: WEB-INF/classes/com/esri/sds/rest/util/Util.class
 inflated: WEB-INF/classes/javasds-app-config.properties
 inflated: WEB-INF/classes/messages.properties
 inflated: WEB-INF/classes/messages_ar.properties
 inflated: WEB-INF/classes/messages_de.properties
 inflated: WEB-INF/classes/messages_es.properties
 inflated: WEB-INF/classes/messages_fr.properties
 inflated: WEB-INF/classes/messages_it.properties
 inflated: WEB-INF/classes/messages_ja.properties
 inflated: WEB-INF/classes/messages_pt_BR.properties
 inflated: WEB-INF/classes/messages_ru.properties
 inflated: WEB-INF/classes/messages_zh_CN.properties
 inflated: WEB-INF/decorators.xml
 inflated: WEB-INF/favicon.ico
 inflated: WEB-INF/lib/asm-3.1.jar
 inflated: WEB-INF/lib/Borg-10.1.jar
 inflated: WEB-INF/lib/concurrentlinkedhashmap-lru-1.1.jar
 inflated: WEB-INF/lib/derby-10.7.1.1.jar
 inflated: WEB-INF/lib/derbyclient-10.7.1.1.jar
 inflated: WEB-INF/lib/DialectProvider-10.1.jar
 inflated: WEB-INF/lib/EsriJson-10.1.jar
 inflated: WEB-INF/lib/EsriOracleDialectProvider-10.1.jar
 inflated: WEB-INF/lib/EsriPostgresDialectProvider-10.1.jar
 inflated: WEB-INF/lib/IbmDB2DialectProvider-10.1.jar
 inflated: WEB-INF/lib/jackson-core-lgpl-1.4.2.jar
 inflated: WEB-INF/lib/jackson-mapper-lgpl-1.4.2.jar
 inflated: WEB-INF/lib/jersey-client-1.1.5.jar
 inflated: WEB-INF/lib/jersey-core-1.1.5.jar
 inflated: WEB-INF/lib/jersey-multipart-1.1.5.jar
 inflated: WEB-INF/lib/jersey-server-1.1.5.jar
 inflated: WEB-INF/lib/jpe_sdk-10.1.jar
 inflated: WEB-INF/lib/jpe_sdk_data-10.1.jar
 inflated: WEB-INF/lib/jsde_sdk-10.1.jar
 inflated: WEB-INF/lib/jsr311-api-1.1.1.jar
 inflated: WEB-INF/lib/jstl-1.2.jar
 inflated: WEB-INF/lib/log4j-1.2.16.jar
 inflated: WEB-INF/lib/md_db2-10.1.jar
 inflated: WEB-INF/lib/md_oracle-10.1.jar
 inflated: WEB-INF/lib/md_pg-10.1.jar
 inflated: WEB-INF/lib/memcached-2.5.jar
 inflated: WEB-INF/lib/mimepull-1.4.jar
 inflated: WEB-INF/lib/OracleDialectProvider-10.1.jar
 inflated: WEB-INF/lib/OracleSpatialDialectProvider-10.1.jar
 inflated: WEB-INF/lib/PostGISDialectProvider-10.1.jar
 inflated: WEB-INF/lib/PostgresDialectProvider-10.1.jar
 inflated: WEB-INF/lib/rest-framework-10.1.jar
 inflated: WEB-INF/lib/slf4j-api-1.5.5.jar
 inflated: WEB-INF/lib/slf4j-simple-1.5.5.jar
 inflated: WEB-INF/sitemesh.xml
 inflated: WEB-INF/tld/sitemesh-decorator.tld
 inflated: WEB-INF/web.xml
 inflated: www/commons/error.jsp
 inflated: www/commons/generate-token.jsp
 inflated: www/commons/generic-error.jsp
 inflated: www/commons/login.jsp
 inflated: www/css/esri-rest.css
 inflated: www/decorators/main.jsp
 inflated: www/index.jsp
 inflated: www/jfs/addFeatures.jsp
 inflated: www/jfs/admin.jsp
 inflated: www/jfs/adminServices.jsp
 inflated: www/jfs/applyEdits.jsp
 inflated: www/jfs/authorizeSDS.jsp
 inflated: www/jfs/createDSMapping.jsp
 inflated: www/jfs/createFeatureService.jsp
 inflated: www/jfs/createFeatureServiceFromFile.jsp
 inflated: www/jfs/datasource.jsp
 inflated: www/jfs/datasourceMappings.jsp
 inflated: www/jfs/datasourceMetadata.jsp
 inflated: www/jfs/datasources.jsp
 inflated: www/jfs/deleteDSMapping.jsp
 inflated: www/jfs/deleteFeatures.jsp
 inflated: www/jfs/deleteService.jsp
 inflated: www/jfs/describeDatasourceTable.jsp
 inflated: www/jfs/describeLayer.jsp
 inflated: www/jfs/describeService.jsp
 inflated: www/jfs/editService.jsp
 inflated: www/jfs/feature.jsp
 inflated: www/jfs/featureservice.jsp
 inflated: www/jfs/info.jsp
 inflated: www/jfs/layer.jsp
 inflated: www/jfs/license.jsp
 inflated: www/jfs/query.jsp
 inflated: www/jfs/refresh.jsp
 inflated: www/jfs/refreshLayer.jsp
 inflated: www/jfs/refreshService.jsp
 inflated: www/jfs/restServices.jsp
 inflated: www/jfs/root.jsp
 inflated: www/jfs/serviceApplyEdits.jsp
 inflated: www/jfs/serviceQuery.jsp
 inflated: www/jfs/serviceStatus.jsp
 inflated: www/jfs/startService.jsp
 inflated: www/jfs/stopService.jsp
 inflated: www/jfs/updateFeatures.jsp
 inflated: www/jfs/validateDatasourceMapping.jsp
  created: META-INF/maven/
  created: META-INF/maven/com.esri.sds/
  created: META-INF/maven/com.esri.sds/JavaSDS/
 inflated: META-INF/maven/com.esri.sds/JavaSDS/pom.xml
 inflated: META-INF/maven/com.esri.sds/JavaSDS/pom.properties

然后我们可以看到增加了三个文件夹,其中有一个WEB-INF文件夹,该文件里面我们需要修改web.xml和创建一个weblogic.xml

1:web.xml我们需要添加如下信息,其中<res-ref-name>需要填写,刚才配置oracle数据源的JNDI的名称

<resource-ref>
 <res-ref-name>jdbc/osid_pubu</res-ref-name>
 <res-type>javax.sql.DataSource</res-type>
 <res-auth>Container</res-auth>
 <res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
2:新建一个weblogic.xml添加
<weblogic-web-app>
 <resource-description>
  <res-ref-name>jdbc/osid_pubu</res-ref-name>
  <jndi-name>jdbc/osid_pubu</jndi-name>
 </resource-description>
</weblogic-web-app>

然后我们需要重新打包

[root@localhost java]# jar uvf arcgis.war WEB-INF/web.xml
adding: WEB-INF/web.xml(in = 3135) (out= 815)(deflated 74%)
[root@localhost java]# jar uvf arcgis.war WEB-INF/weblogic.xml
adding: WEB-INF/weblogic.xml(in = 182) (out= 93)(deflated 48%)

二:部署web 应用

这个也是在weblogic控制台进行操作

1:Log in to your WebLogic Server domain from WebLogic Server Administration Console as the WebLogic administrator.
2:Choose Deployments in the Domain Structure tree.
3:Click Install under Deployments.
	The Install Application Assistant opens.
4:Choose the path to the updated arcgis.war file you repackaged in the last section and click Next.
5:Click Install this deployment as an application and click Next.
6:Accept the default optional settings and click Finish.


三  注册Spatial Data Server Lic

参考:http://blog.csdn.net/linghe301/article/details/7859168



-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Blog:               http://blog.csdn.net/linghe301
Weibo:            http://www.weibo.com/linghe301

------------------------------------------------------------------------------------------------------

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值