aboutsummaryrefslogtreecommitdiffstats
path: root/portal-package
diff options
context:
space:
mode:
author“shentao” <shentao@chinamobile.com>2017-01-26 16:19:00 +0800
committer“shentao” <shentao@chinamobile.com>2017-01-26 16:21:54 +0800
commit6f01a8756fe38c0d6565c369005142adda4b9b57 (patch)
tree5f360e44ac9bb70f83781af1303d3915bb45cd3f /portal-package
parent3f47ae6567e95e118c4a477e24cdc509dd0dce89 (diff)
rebuild GUI structure(only changed modules' name)
Issue-id : CLIENT-14 Change-Id: Ie4fa30f1a51393576fbdc68e12d810565cbf06eb Signed-off-by: “shentao” <shentao@chinamobile.com>
Diffstat (limited to 'portal-package')
-rw-r--r--portal-package/pom.xml219
-rw-r--r--portal-package/src/main/java/org/openo/portal/bean/MsbRegisterBean.java80
-rw-r--r--portal-package/src/main/java/org/openo/portal/bean/ServiceNodeBean.java48
-rw-r--r--portal-package/src/main/java/org/openo/portal/system/CommonUtil.java27
-rw-r--r--portal-package/src/main/java/org/openo/portal/system/Constants.java20
-rw-r--r--portal-package/src/main/java/org/openo/portal/system/RegisterService.java146
-rw-r--r--portal-package/src/main/java/org/openo/portal/system/SystemListener.java39
-rw-r--r--portal-package/src/main/resources/logback.xml102
-rw-r--r--portal-package/src/main/resources/portalConfig/msb_register.xml115
-rw-r--r--portal-package/src/main/webapp/WEB-INF/web.xml25
10 files changed, 0 insertions, 821 deletions
diff --git a/portal-package/pom.xml b/portal-package/pom.xml
deleted file mode 100644
index 3e82bb61..00000000
--- a/portal-package/pom.xml
+++ /dev/null
@@ -1,219 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2016-2017, CMCC Technologies Co., Ltd.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>openo-portal</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>portal-package</artifactId>
- <packaging>war</packaging>
-
- <properties>
- <packagename>openoui</packagename>
- <version.logback>1.1.2</version.logback>
- <version.slf4j>1.7.6</version.slf4j>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-core</artifactId>
- <version>${version.logback}</version>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>${version.logback}</version>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-access</artifactId>
- <version>${version.logback}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${version.slf4j}</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <scope>provided</scope>
- <version>2.5</version>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-common</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-resmgr</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-extsys</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-catalog</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-auth</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-lifecyclemgr</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-performance</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-monitor</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- </dependency>
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- <version>2.1</version>
- <classifier>jdk15</classifier>
- </dependency>
- <dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <version>3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <version>4.3.5</version>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>openoui</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
- <overlays>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-common</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-resmgr</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-extsys</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-catalog</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-auth</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-lifecyclemgr</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-performance</artifactId>
- </overlay>
- <overlay>
- <groupId>org.openo.gso.gui</groupId>
- <artifactId>portal-monitor</artifactId>
- </overlay>
- </overlays>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>zip</id>
- <phase>package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks name="${project.artifactId}">
- <zip destfile="target/${packagename}-${project.version}.zip" update="true">
- <zipfileset dir="target/openoui" includes="**"/>
- </zip>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>target/${packagename}-${project.version}.zip</file>
- <type>zip</type>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-<name>gso-gui/openo-portal/portal-package</name></project>
diff --git a/portal-package/src/main/java/org/openo/portal/bean/MsbRegisterBean.java b/portal-package/src/main/java/org/openo/portal/bean/MsbRegisterBean.java
deleted file mode 100644
index 8dd9ef3b..00000000
--- a/portal-package/src/main/java/org/openo/portal/bean/MsbRegisterBean.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright 2016-2017, CMCC Technologies Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.portal.bean;
-
-import java.util.List;
-
-public class MsbRegisterBean {
- private String serviceName = "";
-
- private String lb_policy = "";
-
- private String url = "";
-
- private String protocol = "";
-
- private String visualRange = "";
-
- private List<ServiceNodeBean> nodes;
-
- public String getServiceName() {
- return serviceName;
- }
-
- public void setServiceName(String serviceName) {
- this.serviceName = serviceName;
- }
-
- public String getLb_policy() {
- return lb_policy;
- }
-
- public void setLb_policy(String lb_policy) {
- this.lb_policy = lb_policy;
- }
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public String getProtocol() {
- return protocol;
- }
-
- public void setProtocol(String protocol) {
- this.protocol = protocol;
- }
-
- public String getVisualRange() {
- return visualRange;
- }
-
- public void setVisualRange(String visualRange) {
- this.visualRange = visualRange;
- }
-
- public List<ServiceNodeBean> getNodes() {
- return nodes;
- }
-
- public void setNodes(List<ServiceNodeBean> nodes) {
- this.nodes = nodes;
- }
-}
diff --git a/portal-package/src/main/java/org/openo/portal/bean/ServiceNodeBean.java b/portal-package/src/main/java/org/openo/portal/bean/ServiceNodeBean.java
deleted file mode 100644
index d0ae6fa1..00000000
--- a/portal-package/src/main/java/org/openo/portal/bean/ServiceNodeBean.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2016-2017, CMCC Technologies Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.portal.bean;
-
-public class ServiceNodeBean {
- private String ip = "";
-
- private String port = "";
-
- private int ttl = 0;
-
- public String getIp() {
- return ip;
- }
-
- public void setIp(String ip) {
- this.ip = ip;
- }
-
- public String getPort() {
- return port;
- }
-
- public void setPort(String port) {
- this.port = port;
- }
-
- public int getTtl() {
- return ttl;
- }
-
- public void setTtl(int ttl) {
- this.ttl = ttl;
- }
-}
diff --git a/portal-package/src/main/java/org/openo/portal/system/CommonUtil.java b/portal-package/src/main/java/org/openo/portal/system/CommonUtil.java
deleted file mode 100644
index e07388d4..00000000
--- a/portal-package/src/main/java/org/openo/portal/system/CommonUtil.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2016-2017, CMCC Technologies Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.portal.system;
-
-public class CommonUtil {
-
- public static boolean isEmpty(String str) {
- if (null == str || "".equals(str.trim())) {
- return true;
- } else {
- return false;
- }
- }
-}
diff --git a/portal-package/src/main/java/org/openo/portal/system/Constants.java b/portal-package/src/main/java/org/openo/portal/system/Constants.java
deleted file mode 100644
index ff31de5b..00000000
--- a/portal-package/src/main/java/org/openo/portal/system/Constants.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2016-2017, CMCC Technologies Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.portal.system;
-
-public class Constants {
- public final static String MARK_COLON = ":";
-}
diff --git a/portal-package/src/main/java/org/openo/portal/system/RegisterService.java b/portal-package/src/main/java/org/openo/portal/system/RegisterService.java
deleted file mode 100644
index ec6c9ce4..00000000
--- a/portal-package/src/main/java/org/openo/portal/system/RegisterService.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * Copyright 2016-2017, CMCC Technologies Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.portal.system;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-
-import net.sf.json.JSONObject;
-
-import org.apache.http.HttpResponse;
-import org.apache.http.client.methods.HttpPost;
-import org.apache.http.entity.StringEntity;
-import org.apache.http.impl.client.DefaultHttpClient;
-import org.apache.http.util.EntityUtils;
-import org.apache.commons.httpclient.HttpStatus;
-import org.dom4j.Document;
-import org.dom4j.Element;
-import org.dom4j.io.SAXReader;
-import org.openo.portal.bean.MsbRegisterBean;
-import org.openo.portal.bean.ServiceNodeBean;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class RegisterService {
-
- private final static Logger logger = LoggerFactory.getLogger(RegisterService.class);
-
- public static HashMap<String, String> msbHostMap = new HashMap<String, String>();
- public static List<HashMap<String, String>> registerList = new ArrayList<HashMap<String, String>>();
-
- public static void registerMsb(String configPath) {
- File inputXml = new File(configPath);
- SAXReader saxReader = new SAXReader();
-
- try {
- Document document = saxReader.read(inputXml);
- Element rootNode = document.getRootElement();
- getMsbHostInfo(rootNode);
- getRegisterList(rootNode);
-
- String url = msbHostMap.get("hostIp") + Constants.MARK_COLON + msbHostMap.get("hostPort") + msbHostMap.get("msbApiRootDomain");
- for (int i = 0; i < registerList.size(); i++) {
- HashMap<String, String> registerInfo = registerList.get(i);
-
- ServiceNodeBean serviceNode = new ServiceNodeBean();
- serviceNode.setIp(registerInfo.get("ip"));
- serviceNode.setPort(registerInfo.get("port"));
- serviceNode.setTtl(Integer.valueOf(registerInfo.get("ttl")));
- List<ServiceNodeBean> nodeList = new ArrayList<ServiceNodeBean>();
- nodeList.add(serviceNode);
-
- MsbRegisterBean registerBean = new MsbRegisterBean();
- registerBean.setNodes(nodeList);
- registerBean.setServiceName(registerInfo.get("serviceName"));
- registerBean.setUrl(registerInfo.get("url"));
- registerBean.setProtocol(registerInfo.get("protocol"));
- registerBean.setVisualRange(registerInfo.get("visualRange"));
- registerBean.setLb_policy(registerInfo.get("lb_policy"));
-
- JSONObject registerObj = JSONObject.fromObject(registerBean);
- String registerResponse = registerPortalService(registerBean.getServiceName(), url, registerObj, "");
- }
- logger.info("open-o portal register task succeeded.");
- } catch (Exception e){
- logger.error("open-o portal register task failed.");
- logger.error(e.getMessage());
- }
- }
-
- private static void getMsbHostInfo(Element rootNode) {
- Element msbHostNode = rootNode.element("msbHost");
- Iterator iter = msbHostNode.elementIterator();
-
- while (iter.hasNext()) {
- Element element = (Element) iter.next();
- msbHostMap.put(element.getName(), element.getText());
- }
- }
-
- private static void getRegisterList(Element rootNode) {
- Element registerListNode = rootNode.element("registerList");
- Iterator iRegisterList = registerListNode.elementIterator();
-
- while (iRegisterList.hasNext()) {
- HashMap<String, String> registerMap = new HashMap<String, String>();
- Element registerInfo = (Element) iRegisterList.next();
- Iterator iRegisterInfo = registerInfo.elementIterator();
-
- while (iRegisterInfo.hasNext()) {
- Element element = (Element) iRegisterInfo.next();
- registerMap.put(element.getName(), element.getText());
- }
- registerList.add(registerMap);
- }
- }
-
- private static String registerPortalService(String serviceName, String url, JSONObject json, String token) {
- DefaultHttpClient client = new DefaultHttpClient();
- HttpPost post = new HttpPost(url);
- String response = null;
-
- try {
- if (null != json) {
- StringEntity s = new StringEntity(json.toString());
- s.setContentEncoding("UTF-8");
- s.setContentType("application/json");
- post.setEntity(s);
- }
- if (!CommonUtil.isEmpty(token)) {
- post.addHeader("X-Auth-Token", token);
- }
- HttpResponse res = client.execute(post);
- if (res.getStatusLine().getStatusCode() == HttpStatus.SC_OK
- || res.getStatusLine().getStatusCode() == HttpStatus.SC_CREATED) {
- String result = EntityUtils.toString(res.getEntity());
- if (!CommonUtil.isEmpty(result)) {
- response = result;
- } else {
- response = null;
- }
- }
- logger.info("register task [" + serviceName + "] completed successfully.");
- } catch (Exception e) {
- logger.error("register task [" + serviceName + "] failed because of errors.");
- logger.error(e.getMessage());
- }
-
- return response;
- }
-}
diff --git a/portal-package/src/main/java/org/openo/portal/system/SystemListener.java b/portal-package/src/main/java/org/openo/portal/system/SystemListener.java
deleted file mode 100644
index a896c82f..00000000
--- a/portal-package/src/main/java/org/openo/portal/system/SystemListener.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2016-2017, CMCC Technologies Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.portal.system;
-
-import java.io.File;
-
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SystemListener implements ServletContextListener {
-
- private final Logger logger = LoggerFactory.getLogger(this.getClass());
-
- public void contextDestroyed(ServletContextEvent sce) {
- }
-
- public void contextInitialized(ServletContextEvent servletContextEvent) {
- logger.info("open-o portal register task begin.");
- String registerFilePath = SystemListener.class.getClassLoader().getResource("").getPath() + "portalConfig" + File.separator + "msb_register.xml";
- RegisterService.registerMsb(registerFilePath);
- logger.info("open-o portal register task ended.");
- }
-}
diff --git a/portal-package/src/main/resources/logback.xml b/portal-package/src/main/resources/logback.xml
deleted file mode 100644
index bf07d3b2..00000000
--- a/portal-package/src/main/resources/logback.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<configuration debug="false" scan="true" scanPeriod="30 seconds">
- <property name="projectName" value="openoui"/>
- <property name="logDir" value="../webapps/openoui/openoui_log"/>
- <property name="maxHistory" value="30"/>
- <timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
-
- <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <pattern>
- %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
- </pattern>
- </encoder>
- </appender>
-
- <appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <filter class="ch.qos.logback.classic.filter.LevelFilter">
- <level>ERROR</level>
- <onMatch>ACCEPT</onMatch>
- <onMismatch>DENY</onMismatch>
- </filter>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <fileNamePattern>${logDir}/error/error.%d{yyyy-MM}.log</fileNamePattern>
- <maxHistory>${maxHistory}</maxHistory>
- </rollingPolicy>
- <encoder>
- <pattern>
- %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
- </pattern>
- </encoder>
- </appender>
-
- <appender name="warnAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <filter class="ch.qos.logback.classic.filter.LevelFilter">
- <level>WARN</level>
- <onMatch>ACCEPT</onMatch>
- <onMismatch>DENY</onMismatch>
- </filter>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <fileNamePattern>${logDir}/warn/warn.%d{yyyy-MM}.log</fileNamePattern>
- <maxHistory>${maxHistory}</maxHistory>
- </rollingPolicy>
- <encoder>
- <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
- </encoder>
- </appender>
-
- <appender name="infoAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <filter class="ch.qos.logback.classic.filter.LevelFilter">
- <level>INFO</level>
- <onMatch>ACCEPT</onMatch>
- <onMismatch>DENY</onMismatch>
- </filter>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <fileNamePattern>${logDir}/info/info.%d{yyyy-MM}.log</fileNamePattern>
- <maxHistory>${maxHistory}</maxHistory>
- </rollingPolicy>
- <encoder>
- <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
- </encoder>
- </appender>
-
- <appender name="debugAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <filter class="ch.qos.logback.classic.filter.LevelFilter">
- <level>DEBUG</level>
- <onMatch>ACCEPT</onMatch>
- <onMismatch>DENY</onMismatch>
- </filter>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <fileNamePattern>${logDir}/debug/debug.%d{yyyy-MM}.log</fileNamePattern>
- <maxHistory>${maxHistory}</maxHistory>
- </rollingPolicy>
- <encoder>
- <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
- </encoder>
- </appender>
-
- <appender name="traceAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <filter class="ch.qos.logback.classic.filter.LevelFilter">
- <level>TRACE</level>
- <onMatch>ACCEPT</onMatch>
- <onMismatch>DENY</onMismatch>
- </filter>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <fileNamePattern>${logDir}/trace/trace.%d{yyyy-MM}.log</fileNamePattern>
- <maxHistory>${maxHistory}</maxHistory>
- </rollingPolicy>
- <encoder>
- <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
- </encoder>
- </appender>
-
- <root>
- <level value="info"/>
- <appender-ref ref="consoleAppender"/>
- <appender-ref ref="errorAppender"/>
- <appender-ref ref="warnAppender"/>
- <appender-ref ref="infoAppender"/>
- <appender-ref ref="debugAppender"/>
- <appender-ref ref="traceAppender"/>
- </root>
-</configuration>
diff --git a/portal-package/src/main/resources/portalConfig/msb_register.xml b/portal-package/src/main/resources/portalConfig/msb_register.xml
deleted file mode 100644
index 37374197..00000000
--- a/portal-package/src/main/resources/portalConfig/msb_register.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2016-2017, CMCC Technologies Co., Ltd.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<msbRegister>
- <msbHost>
- <hostIp>http://192.168.233.226</hostIp>
- <hostPort>80</hostPort>
- <msbApiRootDomain>/openoapi/microservices/v1/services</msbApiRootDomain>
- </msbHost>
- <registerList>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/common</url>
- <serviceName>common</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/catalog</url>
- <serviceName>catalog</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/extsys</url>
- <serviceName>extsys</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/performance</url>
- <serviceName>performance</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/monitor</url>
- <serviceName>monitor</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/lifecyclemgr</url>
- <serviceName>lifecyclemgr</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/resmgr-nfv</url>
- <serviceName>resmgr-nfv</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/resmgr-sdn</url>
- <serviceName>resmgr-sdn</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- <registerInfo>
- <ip>127.0.0.1</ip>
- <port>8300</port>
- <url>/openoui/user</url>
- <serviceName>user</serviceName>
- <protocol>UI</protocol>
- <visualRange>1</visualRange>
- <lb_policy>hash</lb_policy>
- <ttl>0</ttl>
- </registerInfo>
- </registerList>
-</msbRegister>
diff --git a/portal-package/src/main/webapp/WEB-INF/web.xml b/portal-package/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 6a75cd63..00000000
--- a/portal-package/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2016-2017, CMCC Technologies Co., Ltd.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<web-app>
- <display-name>OPEN-O Web Application</display-name>
- <welcome-file-list>
- <welcome-file>common/login.html</welcome-file>
- </welcome-file-list>
- <listener>
- <listener-class>org.openo.portal.system.SystemListener</listener-class>
- </listener>
-</web-app>