2014-05-21 3 views

답변

1

두 가지를 변경해야합니다.

1

)는 WAR 파일/웹 응용 프로그램에서의 index.jsp 파일에서 다음 코드를 제거

<li><a href="axis2-web/HappyAxis.jsp">Validate</a> 
    <br/> 
    Check the system to see whether all the required libraries are in place 
    and view the system information. </li> 

폴더 ->의 WebContent의 \의 축 2 - 웹 \ index.jsp를/Warfile \ 축 2 - 웹 \ index.jsp를

index.jsp를 수정 코드

<%@ page contentType="text/html;charset=UTF-8" language="java" %> 
    <html> 
     <head> 
     <jsp:include page="include/httpbase.jsp"/> 
     <title>Axis 2 - Home</title> 
     <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/> 
     </head> 

     <body> 
     <jsp:include page="include/header.inc" /> 
     <br/> 

     <h1>Welcome!</h1> 
     Welcome to the new generation of Axis. If you can see this page you have 
     successfully deployed the Axis2 Web Application. However, to ensure that Axis2 
     is properly working, we encourage you to click on the validate link. 
     <br/> 
     <ul> 
      <li><a href="services/listServices">Services</a> 
      <br/> 
      View the list of all the available services deployed in this server. 
      </li> 

      <%--<li><a href="interop.jsp">Do an interop test</a> 
      <br/> 
      You can run Interoperability tests here 
      </li>--%> 
      <li><a href="axis2-admin/">Administration</a> 
      <br/> 
      Console for administering this Axis2 installation. 
      </li> 
     </ul> 
     <jsp:include page="include/footer.inc"/> 
     </body> 
    </html> 

2

) 새로운 이름 (예를 들어 ServerDetails.jsp에 HappyAxis.jsp 이름 바꾸기) 및 제 수정 e LeftFrame.jsp를 사용하여 새로 작성된 ServerDetails.jsp를 표시하십시오. 이 방법으로 만 로그인 할 때 HappyAxis.jsp/ServerDetails.jsp 링크를 볼 수 있습니다. 그들이 경로를 알고있는 경우 LeftFrame.jsp

또한 새로운 JSP ServerDetails.jsp는 사용자가 액세스 할 수 을
       <%-- 
       ~ Licensed to the Apache Software Foundation (ASF) under one 
       ~ or more contributor license agreements. See the NOTICE file 
       ~ distributed with this work for additional information 
       ~ regarding copyright ownership. The ASF licenses this file 
       ~ to you 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. 
       --%> 

      <%@ page import="org.apache.axis2.Constants" %> 
      <%@ page import="org.apache.axis2.context.ConfigurationContext" %> 
      <%@ page import="org.apache.axis2.context.ServiceContext" %> 
      <%@ page import="org.apache.axis2.context.ServiceGroupContext" %> 
      <%@ page import="org.apache.axis2.deployment.util.PhasesInfo" %> 
      <%@ page import="org.apache.axis2.description.AxisModule" %> 
      <%@ page import="org.apache.axis2.description.AxisOperation" %> 
      <%@ page import="org.apache.axis2.description.AxisService" %> 
      <%@ page import="org.apache.axis2.description.AxisServiceGroup" %> 
      <%@ page import="org.apache.axis2.description.Parameter" %> 
      <%@ page import="org.apache.axis2.engine.AxisConfiguration" %> 
      <%@ page import="org.apache.axis2.engine.Handler" %> 
      <%@ page import="org.apache.axis2.engine.Phase" %> 
      <%@ page import="org.apache.axis2.util.JavaUtils" %> 
      <%@ page import="java.util.ArrayList" %> 
      <%@ page import="java.util.Collection" %> 
      <%@ page import="java.util.Enumeration" %> 
      <%@ page import="java.util.HashMap" %> 
      <%@ page import="java.util.Hashtable" %> 
      <%@ page import="java.util.Iterator" %> 
      <%@ page contentType="text/html;charset=UTF-8" language="java" %> 
      <table width="100%" style="border-right:1px solid #CCCCCC;"> 
       <tr> 
       <td colspan="2" > 
        <b>Tools </b> 
       </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/upload">Upload Service</a> 
        </td> 
       </tr> 
      <tr> 
       <td colspan="2" > 
        <b><nobr>System Components&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</nobr></b> 
       </td> 
       </tr> 
       <tr> 
       <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
       </td> 
       <td > 
        <a href="axis2-admin/listService">Available Services</a> 
       </td> 
      </tr> 
      <tr> 
       <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
       </td> 
       <td > 
        <a href="axis2-admin/listServiceGroups">Available Service Groups</a> 
       </td> 
      </tr> 
      <tr> 
       <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
       </td> 
       <td > 
        <a href="axis2-admin/listModules">Available Modules</a> 
       </td> 
      </tr> 
      <tr> 
       <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
       </td> 
       <td> 
        <a href="axis2-admin/globalModules">Globally Engaged Modules</a> 
       </td> 
      </tr> 
      <tr> 
       <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
       </td> 
       <td > 
        <a href="axis2-admin/listPhases">Available Phases</a> 
       </td> 
      </tr> 
       <tr> 
       <td colspan="2" > 
        <b>Execution Chains</b> 
       </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/viewGlobalHandlers">Global Chains</a> 
        </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/selectService">Operation Specific Chains</a> 
        </td> 
       </tr> 
       <tr> 
       <td colspan="2" > 
        <b>Engage Module</b> 
       </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/engagingglobally">For all Services</a> 
        </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
         <a href="axis2-admin/engageToServiceGroup">For a Service Group</a> 
        </td> 
       </tr> 


       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/engageToService">For a Service</a> 
        </td> 
       </tr> 

       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/listOperation">For an Operation</a> 
        </td> 
       </tr> 

       <tr> 
       <td colspan="2" > 
        <b>Services</b> 
       </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/deactivateService">Deactivate Service</a> 
        </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/activateService">Activate Service</a> 
        </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/selectServiceParaEdit">Edit Parameters</a> 
        </td> 
       </tr> 
       <tr> 
       <td colspan="2" > 
        <b>Contexts</b> 
       </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-admin/listContexts">View Hierarchy</a> 
        </td> 
       </tr> 
       <tr> 
       <td colspan="2" > 
        <b>Happy Axis</b> 
       </td> 
       </tr> 
       <tr> 
        <td> 
        &nbsp;&nbsp;&nbsp;&nbsp; 
        </td> 
        <td> 
        <a href="axis2-web/ServerDetails.jsp">Validate</a> 
        </td> 
       </tr> 
      </table> 

수정 완료

<tr> 
         <td colspan="2" > 
          <b>Happy Axis</b> 
         </td> 
         </tr> 
         <tr> 
          <td> 
          &nbsp;&nbsp;&nbsp;&nbsp; 
          </td> 
          <td> 
          <a href="axis2-web/ServerDetails.jsp">Validate</a> 
          </td> 
         </tr> 

. 보안 축이 더 필요하다면 해피 축 JSP를 삭제하고 index.jsp에서 참조를 제거하거나 AdminServlet을 수정하여이 JSP에 대한 보안 유효성 검사를 추가하십시오. org.apache.axis2.transport.http.AxisAdminServlet