You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2006/05/04 15:29:47 UTC

svn commit: r399699 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/description/ core/src/org/apache/axis2/transport/http/ webapp/

Author: deepal
Date: Thu May  4 06:29:44 2006
New Revision: 399699

URL: http://svn.apache.org/viewcvs?rev=399699&view=rev
Log:
- fixing web admin problem

Added:
    webservices/axis2/trunk/java/modules/webapp/listFaultyService.jsp
Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
    webservices/axis2/trunk/java/modules/webapp/ActivateService.jsp
    webservices/axis2/trunk/java/modules/webapp/HappyAxis.jsp
    webservices/axis2/trunk/java/modules/webapp/ListServiceGroup.jsp
    webservices/axis2/trunk/java/modules/webapp/listServices.jsp
    webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java Thu May  4 06:29:44 2006
@@ -209,8 +209,8 @@
         }
         Iterator engagedModuleItr = engagedModules.iterator();
         while (engagedModuleItr.hasNext()) {
-            AxisModule axisModule = (AxisModule) engagedModuleItr.next();
-            if (axisModule.getName().getLocalPart().equals(module.getName().getLocalPart())) {
+            QName axisModule = (QName) engagedModuleItr.next();
+            if (axisModule.getLocalPart().equals(module.getName().getLocalPart())) {
                 return true;
             }
         }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java Thu May  4 06:29:44 2006
@@ -36,493 +36,506 @@
 import java.io.File;
 import java.io.IOException;
 import java.io.PrintWriter;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
+import java.util.*;
 
 /**
  * Provides methods to process axis2 admin requests.
  */
 public class AdminAgent extends AbstractAgent {
 
-  /**
-   * Field LIST_MULTIPLE_SERVICE_JSP_NAME
-   */
-  private static final String LIST_SERVICE_GROUP_JSP = "ListServiceGroup.jsp";
-  private static final String LIST_SERVICES_JSP_NAME = "listService.jsp";
-  private static final String SELECT_SERVICE_JSP_NAME = "SelectService.jsp";
-  private static final String IN_ACTIVATE_SERVICE_JSP_NAME = "InActivateService.jsp";
-  private static final String ACTIVATE_SERVICE_JSP_NAME = "ActivateService.jsp";
-
-  /**
-   * Field LIST_SINGLE_SERVICE_JSP_NAME
-   */
-  private static final String LIST_PHASES_JSP_NAME = "viewphases.jsp";
-  private static final String LIST_GLOABLLY_ENGAGED_MODULES_JSP_NAME = "globalModules.jsp";
-  private static final String LIST_AVAILABLE_MODULES_JSP_NAME = "listModules.jsp";
-  private static final String ENGAGING_MODULE_TO_SERVICE_JSP_NAME = "engagingtoaservice.jsp";
-  private static final String ENGAGING_MODULE_TO_SERVICE_GROUP_JSP_NAME = "EngageToServiceGroup.jsp";
-  private static final String ENGAGING_MODULE_GLOBALLY_JSP_NAME = "engagingglobally.jsp";
-  public static final String ADMIN_JSP_NAME = "admin.jsp";
-  private static final String VIEW_GLOBAL_HANDLERS_JSP_NAME = "ViewGlobalHandlers.jsp";
-  private static final String VIEW_SERVICE_HANDLERS_JSP_NAME = "ViewServiceHandlers.jsp";
-  private static final String SERVICE_PARA_EDIT_JSP_NAME = "ServiceParaEdit.jsp";
-  private static final String ENGAGE_TO_OPERATION_JSP_NAME = "engagingtoanoperation.jsp";
-  private static final String LOGIN_JSP_NAME = "Login.jsp";
-
-  private File serviceDir;
-
-  public AdminAgent(ConfigurationContext aConfigContext) {
-    super(aConfigContext);
-    File repoDir = new File(configContext.getAxisConfiguration().getRepository().getFile());
-    serviceDir = new File(repoDir, "services");
-
-    if (!serviceDir.exists()) {
-      serviceDir.mkdirs();
-    }
-  }
-
-  public void handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
-    throws IOException, ServletException {
-
-    // We forward to login page if axis2 security is enabled
-    // and the user is not authorized
-    // TODO Fix workaround for login test
-    if (axisSecurityEnabled() && authorizationRequired(httpServletRequest)) {
-      renderView(LOGIN_JSP_NAME, httpServletRequest, httpServletResponse);
-    } else {
-      super.handle(httpServletRequest, httpServletResponse);
-    }
-  }
-
-  protected void processIndex(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    renderView(ADMIN_JSP_NAME, req, res);
-  }
-
-  // supported web operations
-
-  protected void processUpload(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-
-    boolean isMultipart = FileUpload.isMultipartContent(req);
-    if (isMultipart) {
-
-      try {
-        // Create a new file upload handler
-        DiskFileUpload upload = new DiskFileUpload();
-
-        List items = upload.parseRequest(req);
-
-        // Process the uploaded items
-        Iterator iter = items.iterator();
-        while (iter.hasNext()) {
-          FileItem item = (FileItem) iter.next();
-
-          if (!item.isFormField()) {
-
-            String fileName = item.getName();
-            String fileExtesion = fileName;
-            fileExtesion = fileExtesion.toLowerCase();
-            if (!(fileExtesion.endsWith(".jar") || fileExtesion.endsWith(".aar"))) {
-              req.setAttribute("status", "failure");
-              req.setAttribute("cause", "Unsupported file type " + fileExtesion);
-            } else {
-
-              String fileNameOnly = "";
-              if (fileName.indexOf("\\") < 0) {
-                fileNameOnly = fileName.substring(fileName.lastIndexOf("/") + 1, fileName.length());
-              } else {
-                fileNameOnly = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length());
-              }
-
-
-              File uploadedFile = new File(serviceDir, fileNameOnly);
-              item.write(uploadedFile);
-              req.setAttribute("status", "success");
-              req.setAttribute("filename", fileNameOnly);
-            }
-          }
-        }
-      } catch (Exception e) {
-        req.setAttribute("status", "failure");
-        req.setAttribute("cause", e.getMessage());
+    /**
+     * Field LIST_MULTIPLE_SERVICE_JSP_NAME
+     */
+    private static final String LIST_SERVICE_GROUP_JSP = "ListServiceGroup.jsp";
+    private static final String LIST_SERVICES_JSP_NAME = "listService.jsp";
+    private static final String LIST_SINGLE_SERVICES_JSP_NAME = "listSingleService.jsp";
+    private static final String SELECT_SERVICE_JSP_NAME = "SelectService.jsp";
+    private static final String IN_ACTIVATE_SERVICE_JSP_NAME = "InActivateService.jsp";
+    private static final String ACTIVATE_SERVICE_JSP_NAME = "ActivateService.jsp";
+
+    /**
+     * Field LIST_SINGLE_SERVICE_JSP_NAME
+     */
+    private static final String LIST_PHASES_JSP_NAME = "viewphases.jsp";
+    private static final String LIST_GLOABLLY_ENGAGED_MODULES_JSP_NAME = "globalModules.jsp";
+    private static final String LIST_AVAILABLE_MODULES_JSP_NAME = "listModules.jsp";
+    private static final String ENGAGING_MODULE_TO_SERVICE_JSP_NAME = "engagingtoaservice.jsp";
+    private static final String ENGAGING_MODULE_TO_SERVICE_GROUP_JSP_NAME = "EngageToServiceGroup.jsp";
+    private static final String ENGAGING_MODULE_GLOBALLY_JSP_NAME = "engagingglobally.jsp";
+    public static final String ADMIN_JSP_NAME = "admin.jsp";
+    private static final String VIEW_GLOBAL_HANDLERS_JSP_NAME = "ViewGlobalHandlers.jsp";
+    private static final String VIEW_SERVICE_HANDLERS_JSP_NAME = "ViewServiceHandlers.jsp";
+    private static final String SERVICE_PARA_EDIT_JSP_NAME = "ServiceParaEdit.jsp";
+    private static final String ENGAGE_TO_OPERATION_JSP_NAME = "engagingtoanoperation.jsp";
+    private static final String LOGIN_JSP_NAME = "Login.jsp";
+
+    private File serviceDir;
+
+    public AdminAgent(ConfigurationContext aConfigContext) {
+        super(aConfigContext);
+        File repoDir = new File(configContext.getAxisConfiguration().getRepository().getFile());
+        serviceDir = new File(repoDir, "services");
 
-      }
+        if (!serviceDir.exists()) {
+            serviceDir.mkdirs();
+        }
     }
 
-    renderView("upload.jsp", req, res);
-  }
-
+    public void handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
+            throws IOException, ServletException {
 
-  protected void processLogin(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    String username = req.getParameter("userName");
-    String password = req.getParameter("password");
-
-    if ((username == null) || (password == null) || username.trim().equals("")
-      || password.trim().equals("")) {
-      req.setAttribute("errorMessage", "Invalid auth credentials!");
-      renderView(LOGIN_JSP_NAME, req, res);
-      return;
+        // We forward to login page if axis2 security is enabled
+        // and the user is not authorized
+        // TODO Fix workaround for login test
+        if (axisSecurityEnabled() && authorizationRequired(httpServletRequest)) {
+            renderView(LOGIN_JSP_NAME, httpServletRequest, httpServletResponse);
+        } else {
+            super.handle(httpServletRequest, httpServletResponse);
+        }
     }
 
-    String adminUserName = (String) configContext.getAxisConfiguration().getParameter(
-      Constants.USER_NAME).getValue();
-    String adminPassword = (String) configContext.getAxisConfiguration().getParameter(
-      Constants.PASSWORD).getValue();
-
-    if (username.equals(adminUserName) && password.equals(adminPassword)) {
-      req.getSession().setAttribute(Constants.LOGGED, "Yes");
-      renderView(ADMIN_JSP_NAME, req, res);
-    } else {
-      req.setAttribute("errorMessage", "Invalid auth credentials!");
-      renderView(LOGIN_JSP_NAME, req, res);
+    protected void processIndex(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        renderView(ADMIN_JSP_NAME, req, res);
     }
-  }
 
-  protected void processEditServicePara(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    if (req.getParameter("editServicepara") != null) {
-      String serviceName = req.getParameter("axisService");
-      AxisService service = configContext.getAxisConfiguration().getService(serviceName);
+    // supported web operations
 
-      if (service != null) {
-        ArrayList service_para = service.getParameters();
+    protected void processUpload(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
 
-        for (int i = 0; i < service_para.size(); i++) {
-          Parameter parameter = (Parameter) service_para.get(i);
-          String para = req.getParameter(serviceName + "_" + parameter.getName());
+        boolean isMultipart = FileUpload.isMultipartContent(req);
+        if (isMultipart) {
+
+            try {
+                // Create a new file upload handler
+                DiskFileUpload upload = new DiskFileUpload();
+
+                List items = upload.parseRequest(req);
+
+                // Process the uploaded items
+                Iterator iter = items.iterator();
+                while (iter.hasNext()) {
+                    FileItem item = (FileItem) iter.next();
+
+                    if (!item.isFormField()) {
+
+                        String fileName = item.getName();
+                        String fileExtesion = fileName;
+                        fileExtesion = fileExtesion.toLowerCase();
+                        if (!(fileExtesion.endsWith(".jar") || fileExtesion.endsWith(".aar"))) {
+                            req.setAttribute("status", "failure");
+                            req.setAttribute("cause", "Unsupported file type " + fileExtesion);
+                        } else {
+
+                            String fileNameOnly = "";
+                            if (fileName.indexOf("\\") < 0) {
+                                fileNameOnly = fileName.substring(fileName.lastIndexOf("/") + 1, fileName.length());
+                            } else {
+                                fileNameOnly = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length());
+                            }
+
+
+                            File uploadedFile = new File(serviceDir, fileNameOnly);
+                            item.write(uploadedFile);
+                            req.setAttribute("status", "success");
+                            req.setAttribute("filename", fileNameOnly);
+                        }
+                    }
+                }
+            } catch (Exception e) {
+                req.setAttribute("status", "failure");
+                req.setAttribute("cause", e.getMessage());
 
-          service.addParameter(new Parameter(parameter.getName(), para));
+            }
         }
 
-        for (Iterator iterator = service.getOperations(); iterator.hasNext();) {
-          AxisOperation axisOperation = (AxisOperation) iterator.next();
-          String op_name = axisOperation.getName().getLocalPart();
-          ArrayList operation_para = axisOperation.getParameters();
-
-          for (int i = 0; i < operation_para.size(); i++) {
-            Parameter parameter = (Parameter) operation_para.get(i);
-            String para = req.getParameter(op_name + "_" + parameter.getName());
+        renderView("upload.jsp", req, res);
+    }
 
-            axisOperation.addParameter(new Parameter(parameter.getName(), para));
-          }
-        }
-      }
 
-      res.setContentType("text/css");
+    protected void processLogin(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        String username = req.getParameter("userName");
+        String password = req.getParameter("password");
 
-      PrintWriter out_writer = new PrintWriter(res.getOutputStream());
+        if ((username == null) || (password == null) || username.trim().equals("")
+                || password.trim().equals("")) {
+            req.setAttribute("errorMessage", "Invalid auth credentials!");
+            renderView(LOGIN_JSP_NAME, req, res);
+            return;
+        }
 
-      out_writer.println("Parameters  changed Successfully");
-      out_writer.flush();
-      out_writer.close();
-      req.getSession().removeAttribute(Constants.SERVICE);
+        String adminUserName = (String) configContext.getAxisConfiguration().getParameter(
+                Constants.USER_NAME).getValue();
+        String adminPassword = (String) configContext.getAxisConfiguration().getParameter(
+                Constants.PASSWORD).getValue();
+
+        if (username.equals(adminUserName) && password.equals(adminPassword)) {
+            req.getSession().setAttribute(Constants.LOGGED, "Yes");
+            renderView(ADMIN_JSP_NAME, req, res);
+        } else {
+            req.setAttribute("errorMessage", "Invalid auth credentials!");
+            renderView(LOGIN_JSP_NAME, req, res);
+        }
+    }
 
-      return;
-    } else {
-      String service = req.getParameter("axisService");
+    protected void processEditServicePara(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        if (req.getParameter("editServicepara") != null) {
+            String serviceName = req.getParameter("axisService");
+            AxisService service = configContext.getAxisConfiguration().getService(serviceName);
+
+            if (service != null) {
+                ArrayList service_para = service.getParameters();
+
+                for (int i = 0; i < service_para.size(); i++) {
+                    Parameter parameter = (Parameter) service_para.get(i);
+                    String para = req.getParameter(serviceName + "_" + parameter.getName());
+
+                    service.addParameter(new Parameter(parameter.getName(), para));
+                }
+
+                for (Iterator iterator = service.getOperations(); iterator.hasNext();) {
+                    AxisOperation axisOperation = (AxisOperation) iterator.next();
+                    String op_name = axisOperation.getName().getLocalPart();
+                    ArrayList operation_para = axisOperation.getParameters();
+
+                    for (int i = 0; i < operation_para.size(); i++) {
+                        Parameter parameter = (Parameter) operation_para.get(i);
+                        String para = req.getParameter(op_name + "_" + parameter.getName());
+
+                        axisOperation.addParameter(new Parameter(parameter.getName(), para));
+                    }
+                }
+            }
 
-      if (service != null) {
-        req.getSession().setAttribute(
-          Constants.SERVICE, configContext.getAxisConfiguration().getService(service));
-      }
-    }
+            res.setContentType("text/css");
 
-    renderView(SERVICE_PARA_EDIT_JSP_NAME, req, res);
-  }
+            PrintWriter out_writer = new PrintWriter(res.getOutputStream());
 
+            out_writer.println("Parameters  changed Successfully");
+            out_writer.flush();
+            out_writer.close();
+            req.getSession().removeAttribute(Constants.SERVICE);
+
+            return;
+        } else {
+            String service = req.getParameter("axisService");
+
+            if (service != null) {
+                req.getSession().setAttribute(
+                        Constants.SERVICE, configContext.getAxisConfiguration().getService(service));
+            }
+        }
 
-  protected void processEngagingGlobally(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    HashMap modules = configContext.getAxisConfiguration().getModules();
+        renderView(SERVICE_PARA_EDIT_JSP_NAME, req, res);
+    }
 
-    req.getSession().setAttribute(Constants.MODULE_MAP, modules);
 
-    String moduleName = req.getParameter("modules");
+    protected void processEngagingGlobally(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        HashMap modules = configContext.getAxisConfiguration().getModules();
 
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        req.getSession().setAttribute(Constants.MODULE_MAP, modules);
 
-    if (moduleName != null) {
-      try {
-        configContext.getAxisConfiguration().engageModule(new QName(moduleName));
-        req.getSession().setAttribute(Constants.ENGAGE_STATUS,
-          moduleName + " module engaged globally Successfully");
-      } catch (AxisFault axisFault) {
-        req.getSession().setAttribute(Constants.ENGAGE_STATUS, axisFault.getMessage());
-      }
-    }
+        String moduleName = req.getParameter("modules");
 
-    req.getSession().setAttribute("modules", null);
-    renderView(ENGAGING_MODULE_GLOBALLY_JSP_NAME, req, res);
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
 
-  }
+        if (moduleName != null) {
+            try {
+                configContext.getAxisConfiguration().engageModule(new QName(moduleName));
+                req.getSession().setAttribute(Constants.ENGAGE_STATUS,
+                        moduleName + " module engaged globally Successfully");
+            } catch (AxisFault axisFault) {
+                req.getSession().setAttribute(Constants.ENGAGE_STATUS, axisFault.getMessage());
+            }
+        }
 
-  protected void processListOperations(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    HashMap modules = configContext.getAxisConfiguration().getModules();
+        req.getSession().setAttribute("modules", null);
+        renderView(ENGAGING_MODULE_GLOBALLY_JSP_NAME, req, res);
 
-    req.getSession().setAttribute(Constants.MODULE_MAP, modules);
+    }
 
-    String moduleName = req.getParameter("modules");
+    protected void processListOperations(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        HashMap modules = configContext.getAxisConfiguration().getModules();
 
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
-    req.getSession().setAttribute("modules", null);
+        req.getSession().setAttribute(Constants.MODULE_MAP, modules);
 
-    String serviceName = req.getParameter("axisService");
+        String moduleName = req.getParameter("modules");
 
-    if (serviceName != null) {
-      req.getSession().setAttribute("service", serviceName);
-    } else {
-      serviceName = (String) req.getSession().getAttribute("service");
-    }
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        req.getSession().setAttribute("modules", null);
 
-    req.getSession().setAttribute(
-      Constants.OPERATION_MAP,
-      configContext.getAxisConfiguration().getService(serviceName).getOperations());
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        String serviceName = req.getParameter("axisService");
 
-    String operationName = req.getParameter("axisOperation");
+        if (serviceName != null) {
+            req.getSession().setAttribute("service", serviceName);
+        } else {
+            serviceName = (String) req.getSession().getAttribute("service");
+        }
 
-    if ((serviceName != null) && (moduleName != null) && (operationName != null)) {
-      try {
-        AxisOperation od = configContext.getAxisConfiguration().getService(
-          serviceName).getOperation(new QName(operationName));
+        req.getSession().setAttribute(
+                Constants.OPERATION_MAP,
+                configContext.getAxisConfiguration().getService(serviceName).getOperations());
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+
+        String operationName = req.getParameter("axisOperation");
+
+        if ((serviceName != null) && (moduleName != null) && (operationName != null)) {
+            try {
+                AxisOperation od = configContext.getAxisConfiguration().getService(
+                        serviceName).getOperation(new QName(operationName));
+
+                od.engageModule(
+                        configContext.getAxisConfiguration().getModule(new QName(moduleName)),
+                        configContext.getAxisConfiguration());
+                req.getSession().setAttribute(Constants.ENGAGE_STATUS,
+                        moduleName
+                                + " module engaged to the operation Successfully");
+            } catch (AxisFault axisFault) {
+                req.getSession().setAttribute(Constants.ENGAGE_STATUS, axisFault.getMessage());
+            }
+        }
 
-        od.engageModule(
-          configContext.getAxisConfiguration().getModule(new QName(moduleName)),
-          configContext.getAxisConfiguration());
-        req.getSession().setAttribute(Constants.ENGAGE_STATUS,
-          moduleName
-            + " module engaged to the operation Successfully");
-      } catch (AxisFault axisFault) {
-        req.getSession().setAttribute(Constants.ENGAGE_STATUS, axisFault.getMessage());
-      }
+        req.getSession().setAttribute("operation", null);
+        renderView(ENGAGE_TO_OPERATION_JSP_NAME, req, res);
     }
 
-    req.getSession().setAttribute("operation", null);
-    renderView(ENGAGE_TO_OPERATION_JSP_NAME, req, res);
-  }
+    protected void processEngageToService(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        HashMap modules = configContext.getAxisConfiguration().getModules();
 
-  protected void processEngageToService(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    HashMap modules = configContext.getAxisConfiguration().getModules();
+        req.getSession().setAttribute(Constants.MODULE_MAP, modules);
 
-    req.getSession().setAttribute(Constants.MODULE_MAP, modules);
+        HashMap services = configContext.getAxisConfiguration().getServices();
 
-    HashMap services = configContext.getAxisConfiguration().getServices();
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
 
-    req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        String moduleName = req.getParameter("modules");
 
-    String moduleName = req.getParameter("modules");
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        req.getSession().setAttribute("modules", null);
 
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
-    req.getSession().setAttribute("modules", null);
+        String serviceName = req.getParameter("axisService");
 
-    String serviceName = req.getParameter("axisService");
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
 
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        if ((serviceName != null) && (moduleName != null)) {
+            try {
+                configContext.getAxisConfiguration().getService(serviceName).engageModule(
+                        configContext.getAxisConfiguration().getModule(new QName(moduleName)),
+                        configContext.getAxisConfiguration());
+                req.getSession().setAttribute(Constants.ENGAGE_STATUS,
+                        moduleName
+                                + " module engaged to the service Successfully");
+            } catch (AxisFault axisFault) {
+                req.getSession().setAttribute(Constants.ENGAGE_STATUS, axisFault.getMessage());
+            }
+        }
 
-    if ((serviceName != null) && (moduleName != null)) {
-      try {
-        configContext.getAxisConfiguration().getService(serviceName).engageModule(
-          configContext.getAxisConfiguration().getModule(new QName(moduleName)),
-          configContext.getAxisConfiguration());
-        req.getSession().setAttribute(Constants.ENGAGE_STATUS,
-          moduleName
-            + " module engaged to the service Successfully");
-      } catch (AxisFault axisFault) {
-        req.getSession().setAttribute(Constants.ENGAGE_STATUS, axisFault.getMessage());
-      }
+        req.getSession().setAttribute("axisService", null);
+        renderView(ENGAGING_MODULE_TO_SERVICE_JSP_NAME, req, res);
     }
 
-    req.getSession().setAttribute("axisService", null);
-    renderView(ENGAGING_MODULE_TO_SERVICE_JSP_NAME, req, res);
-  }
+    protected void processEngageToServiceGroup(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        HashMap modules = configContext.getAxisConfiguration().getModules();
 
-  protected void processEngageToServiceGroup(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    HashMap modules = configContext.getAxisConfiguration().getModules();
+        req.getSession().setAttribute(Constants.MODULE_MAP, modules);
 
-    req.getSession().setAttribute(Constants.MODULE_MAP, modules);
+        Iterator services = configContext.getAxisConfiguration().getServiceGroups();
 
-    Iterator services = configContext.getAxisConfiguration().getServiceGroups();
+        req.getSession().setAttribute(Constants.SERVICE_GROUP_MAP, services);
 
-    req.getSession().setAttribute(Constants.SERVICE_GROUP_MAP, services);
+        String moduleName = req.getParameter("modules");
 
-    String moduleName = req.getParameter("modules");
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        req.getSession().setAttribute("modules", null);
 
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
-    req.getSession().setAttribute("modules", null);
+        String serviceName = req.getParameter("axisService");
 
-    String serviceName = req.getParameter("axisService");
+        req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
 
-    req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+        if ((serviceName != null) && (moduleName != null)) {
+            configContext.getAxisConfiguration().getServiceGroup(serviceName).engageModule(
+                    configContext.getAxisConfiguration().getModule(new QName(moduleName)));
+            req.getSession().setAttribute(Constants.ENGAGE_STATUS,
+                    moduleName
+                            + " module engaged to the serviceGroup Successfully");
+        }
 
-    if ((serviceName != null) && (moduleName != null)) {
-      configContext.getAxisConfiguration().getServiceGroup(serviceName).engageModule(
-        configContext.getAxisConfiguration().getModule(new QName(moduleName)));
-      req.getSession().setAttribute(Constants.ENGAGE_STATUS,
-        moduleName
-          + " module engaged to the serviceGroup Successfully");
+        req.getSession().setAttribute("axisService", null);
+        renderView(ENGAGING_MODULE_TO_SERVICE_GROUP_JSP_NAME, req, res);
     }
 
-    req.getSession().setAttribute("axisService", null);
-    renderView(ENGAGING_MODULE_TO_SERVICE_GROUP_JSP_NAME, req, res);
-  }
 
+    protected void processLogout(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        req.getSession().invalidate();
+        renderView("index.jsp", req, res);
+    }
 
-  protected void processLogout(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    req.getSession().invalidate();
-    renderView("index.jsp", req, res);
-  }
-
-  protected void processSelectServiceParaEdit(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    HashMap services = configContext.getAxisConfiguration().getServices();
+    protected void processSelectServiceParaEdit(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        HashMap services = configContext.getAxisConfiguration().getServices();
 
-    req.getSession().setAttribute(Constants.SERVICE_MAP, services);
-    req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "SERVICE_PARAMETER");
-    renderView(SELECT_SERVICE_JSP_NAME, req, res);
-  }
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "SERVICE_PARAMETER");
+        renderView(SELECT_SERVICE_JSP_NAME, req, res);
+    }
 
-  protected void processListOperation(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    HashMap services = configContext.getAxisConfiguration().getServices();
+    protected void processListOperation(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        HashMap services = configContext.getAxisConfiguration().getServices();
 
-    req.getSession().setAttribute(Constants.SERVICE_MAP, services);
-    req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "MODULE");
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "MODULE");
 
-    renderView(SELECT_SERVICE_JSP_NAME, req, res);
-  }
+        renderView(SELECT_SERVICE_JSP_NAME, req, res);
+    }
 
-  protected void processActivateService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    if (req.getParameter("submit") != null) {
-      String serviceName = req.getParameter("axisService");
-      String turnon = req.getParameter("turnon");
-      if (serviceName != null) {
-        if (turnon != null) {
-          AxisService service = configContext.getAxisConfiguration().getServiceForActivation(serviceName);
-          service.setActive(true);
+    protected void processActivateService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        if (req.getParameter("submit") != null) {
+            String serviceName = req.getParameter("axisService");
+            String turnon = req.getParameter("turnon");
+            if (serviceName != null) {
+                if (turnon != null) {
+                    AxisService service = configContext.getAxisConfiguration().getServiceForActivation(serviceName);
+                    service.setActive(true);
+                }
+            }
+            HashMap services = configContext.getAxisConfiguration().getServices();
+            req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        } else {
+            HashMap services = configContext.getAxisConfiguration().getServices();
+            req.getSession().setAttribute(Constants.SERVICE_MAP, services);
         }
-      }
-    } else {
-      HashMap services = configContext.getAxisConfiguration().getServices();
-      req.getSession().setAttribute(Constants.SERVICE_MAP, services);
-    }
 
-    renderView(ACTIVATE_SERVICE_JSP_NAME, req, res);
-  }
+        renderView(ACTIVATE_SERVICE_JSP_NAME, req, res);
+    }
 
-  protected void processDeactivateService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    if (req.getParameter("submit") != null) {
-      String serviceName = req.getParameter("axisService");
-      String turnoff = req.getParameter("turnoff");
-      if (serviceName != null) {
-        if (turnoff != null) {
-          AxisService service = configContext.getAxisConfiguration().getService(serviceName);
-          service.setActive(false);
+    protected void processDeactivateService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        if (req.getParameter("submit") != null) {
+            String serviceName = req.getParameter("axisService");
+            String turnoff = req.getParameter("turnoff");
+            if (serviceName != null) {
+                if (turnoff != null) {
+                    AxisService service = configContext.getAxisConfiguration().getService(serviceName);
+                    service.setActive(false);
+                }
+                HashMap services = configContext.getAxisConfiguration().getServices();
+                req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+            }
+        } else {
+            HashMap services = configContext.getAxisConfiguration().getServices();
+            req.getSession().setAttribute(Constants.SERVICE_MAP, services);
         }
-      }
-    } else {
-      HashMap services = configContext.getAxisConfiguration().getServices();
-      req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+
+        renderView(IN_ACTIVATE_SERVICE_JSP_NAME, req, res);
     }
 
-    renderView(IN_ACTIVATE_SERVICE_JSP_NAME, req, res);
-  }
 
+    protected void processViewGlobalHandlers(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        req.getSession().setAttribute(Constants.GLOBAL_HANDLERS,
+                configContext.getAxisConfiguration());
+
+        renderView(VIEW_GLOBAL_HANDLERS_JSP_NAME, req, res);
+    }
+
+    protected void processViewServiceHandlers(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        String service = req.getParameter("axisService");
 
-  protected void processViewGlobalHandlers(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    req.getSession().setAttribute(Constants.GLOBAL_HANDLERS,
-      configContext.getAxisConfiguration());
+        if (service != null) {
+            req.getSession().setAttribute(Constants.SERVICE_HANDLERS,
+                    configContext.getAxisConfiguration().getService(service));
+        }
 
-    renderView(VIEW_GLOBAL_HANDLERS_JSP_NAME, req, res);
-  }
+        renderView(VIEW_SERVICE_HANDLERS_JSP_NAME, req, res);
+    }
 
-  protected void processViewServiceHandlers(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    String service = req.getParameter("axisService");
 
-    if (service != null) {
-      req.getSession().setAttribute(Constants.SERVICE_HANDLERS,
-        configContext.getAxisConfiguration().getService(service));
+    protected void processListPhases(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        PhasesInfo info = configContext.getAxisConfiguration().getPhasesInfo();
+        req.getSession().setAttribute(Constants.PHASE_LIST, info);
+        renderView(LIST_PHASES_JSP_NAME, req, res);
     }
 
-    renderView(VIEW_SERVICE_HANDLERS_JSP_NAME, req, res);
-  }
+    protected void processListServiceGroups(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        Iterator serviceGroups = configContext.getAxisConfiguration().getServiceGroups();
+        HashMap services = configContext.getAxisConfiguration().getServices();
 
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        req.getSession().setAttribute(Constants.SERVICE_GROUP_MAP, serviceGroups);
 
-  protected void processListPhases(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    PhasesInfo info = configContext.getAxisConfiguration().getPhasesInfo();
-    req.getSession().setAttribute(Constants.PHASE_LIST, info);
-    renderView(LIST_PHASES_JSP_NAME, req, res);
-  }
+        renderView(LIST_SERVICE_GROUP_JSP, req, res);
+    }
 
-  protected void processListServiceGroups(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    Iterator serviceGroups = configContext.getAxisConfiguration().getServiceGroups();
-    HashMap services = configContext.getAxisConfiguration().getServices();
+    protected void processListService(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        HashMap services = configContext.getAxisConfiguration().getServices();
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        req.getSession().setAttribute(Constants.ERROR_SERVICE_MAP,
+                configContext.getAxisConfiguration().getFaultyServices());
 
-    req.getSession().setAttribute(Constants.SERVICE_MAP, services);
-    req.getSession().setAttribute(Constants.SERVICE_GROUP_MAP, serviceGroups);
+        renderView(LIST_SERVICES_JSP_NAME, req, res);
+    }
 
-    renderView(LIST_SERVICE_GROUP_JSP, req, res);
-  }
+    protected void processListSingleService(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        String serviceName = req.getParameter("serviceName");
+        if (serviceName != null) {
+            AxisService service = configContext.getAxisConfiguration().getService(serviceName);
+            req.getSession().setAttribute(Constants.SINGLE_SERVICE, service);
+        }
+        renderView(LIST_SINGLE_SERVICES_JSP_NAME, req, res);
+    }
 
-  protected void processListService(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    HashMap services = configContext.getAxisConfiguration().getServices();
 
-    req.getSession().setAttribute(Constants.SERVICE_MAP, services);
-    req.getSession().setAttribute(Constants.ERROR_SERVICE_MAP,
-      configContext.getAxisConfiguration().getFaultyServices());
 
-    renderView(LIST_SERVICES_JSP_NAME, req, res);
-  }
 
-  protected void processListContexts(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    req.getSession().setAttribute(Constants.CONFIG_CONTEXT, configContext);
-    renderView("ViewContexts.jsp", req, res);
-  }
+    protected void processListContexts(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        req.getSession().setAttribute(Constants.CONFIG_CONTEXT, configContext);
+        renderView("ViewContexts.jsp", req, res);
+    }
 
-  protected void processglobalModules(HttpServletRequest req, HttpServletResponse res)
-    throws IOException, ServletException {
-    Collection modules = configContext.getAxisConfiguration().getEngagedModules();
+    protected void processglobalModules(HttpServletRequest req, HttpServletResponse res)
+            throws IOException, ServletException {
+        Collection modules = configContext.getAxisConfiguration().getEngagedModules();
 
-    req.getSession().setAttribute(Constants.MODULE_MAP, modules);
+        req.getSession().setAttribute(Constants.MODULE_MAP, modules);
 
-    renderView(LIST_GLOABLLY_ENGAGED_MODULES_JSP_NAME, req, res);
-  }
+        renderView(LIST_GLOABLLY_ENGAGED_MODULES_JSP_NAME, req, res);
+    }
 
-  protected void processListModules(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    HashMap modules = configContext.getAxisConfiguration().getModules();
+    protected void processListModules(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        HashMap modules = configContext.getAxisConfiguration().getModules();
 
-    req.getSession().setAttribute(Constants.MODULE_MAP, modules);
-    req.getSession().setAttribute(Constants.ERROR_MODULE_MAP,
-      configContext.getAxisConfiguration().getFaultyModules());
+        req.getSession().setAttribute(Constants.MODULE_MAP, modules);
+        req.getSession().setAttribute(Constants.ERROR_MODULE_MAP,
+                configContext.getAxisConfiguration().getFaultyModules());
 
-    renderView(LIST_AVAILABLE_MODULES_JSP_NAME, req, res);
-  }
+        renderView(LIST_AVAILABLE_MODULES_JSP_NAME, req, res);
+    }
 
-  protected void processSelectService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
-    HashMap services = configContext.getAxisConfiguration().getServices();
+    protected void processSelectService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+        HashMap services = configContext.getAxisConfiguration().getServices();
 
-    req.getSession().setAttribute(Constants.SERVICE_MAP, services);
-    req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "VIEW");
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "VIEW");
 
-    renderView(SELECT_SERVICE_JSP_NAME, req, res);
-  }
+        renderView(SELECT_SERVICE_JSP_NAME, req, res);
+    }
 
 
-  private boolean authorizationRequired(HttpServletRequest httpServletRequest) {
-    return httpServletRequest.getSession().getAttribute(Constants.LOGGED) == null &&
-      !httpServletRequest.getRequestURI().endsWith("login");
-  }
+    private boolean authorizationRequired(HttpServletRequest httpServletRequest) {
+        return httpServletRequest.getSession().getAttribute(Constants.LOGGED) == null &&
+                !httpServletRequest.getRequestURI().endsWith("login");
+    }
 
-  private boolean axisSecurityEnabled() {
-    Parameter parameter = configContext.getAxisConfiguration().getParameter(Constants.ADMIN_SECURITY_DISABLED);
-    return parameter == null || !"true".equals(parameter.getValue());
-  }
+    private boolean axisSecurityEnabled() {
+        Parameter parameter = configContext.getAxisConfiguration().getParameter(Constants.ADMIN_SECURITY_DISABLED);
+        return parameter == null || !"true".equals(parameter.getValue());
+    }
 
 }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java Thu May  4 06:29:44 2006
@@ -42,6 +42,7 @@
             "listServices.jsp";
     private static final String LIST_SINGLE_SERVICE_JSP_NAME =
             "listSingleService.jsp";
+    private static final String LIST_FAULTY_SERVICES_JSP_NAME = "listFaultyService.jsp";
 
     public static final String RUNNING_PORT = "RUNNING_PORT";
 
@@ -90,6 +91,17 @@
             super.handle(httpServletRequest, httpServletResponse);
         }
     }
+
+    protected void processListFaultyServices(HttpServletRequest req, HttpServletResponse res)
+                throws IOException, ServletException {
+            String serviceName = req.getParameter("serviceName");
+            if (serviceName != null) {
+                AxisService service = configContext.getAxisConfiguration().getService(serviceName);
+                req.getSession().setAttribute(Constants.SINGLE_SERVICE, service);
+            }
+            renderView(LIST_FAULTY_SERVICES_JSP_NAME, req, res);
+        }
+
 
 
     protected void processIndex(HttpServletRequest httpServletRequest,

Modified: webservices/axis2/trunk/java/modules/webapp/ActivateService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/ActivateService.jsp?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/ActivateService.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/ActivateService.jsp Thu May  4 06:29:44 2006
@@ -29,7 +29,7 @@
                                %> <option value="<%=axisServices.getName()%>">
                            <%=axisServices.getName()%></option> <%
                            }
-                       }
+                        }
                        request.getSession().setAttribute(Constants.SERVICE_MAP,null);
                            %>
                   </td>

Modified: webservices/axis2/trunk/java/modules/webapp/HappyAxis.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/HappyAxis.jsp?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/HappyAxis.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/HappyAxis.jsp Thu May  4 06:29:44 2006
@@ -444,16 +444,14 @@
     web axisService will work, because there are many configuration options that we do
     not check for. These tests are <i>necessary</i> but not <i>sufficient</i>
 
-<h2>Examining Version axisService</h2>
+<h2>Examining Version Service</h2>
 <%
     boolean serviceStatus = inVokeTheService();
     if (serviceStatus) {
 %>
 <p>
     <font color="blue">
-        Found the Axis2 default Version service and Axis2 is working properly.Now you can drop a
-        web axisService in
-        axis2/WEB-INF/services and refresh this page.
+        Found the Axis2 default Version service and Axis2 is working properly.Now you can drop a service archive in axis2/WEB-INF/services.
 
         Following output was produced while invoking the version axisService:
         <br>

Modified: webservices/axis2/trunk/java/modules/webapp/ListServiceGroup.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/ListServiceGroup.jsp?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/ListServiceGroup.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/ListServiceGroup.jsp Thu May  4 06:29:44 2006
@@ -23,7 +23,7 @@
             AxisService axisService = (AxisService) axisServiceIter.next();
             String serviceName = axisService.getName();
     %>
-    <li><font color="blue"><a href="axis2-admin/listService?serviceName=<%=serviceName%>">
+    <li><font color="blue"><a href="axis2-admin/ListSingleService?serviceName=<%=serviceName%>">
         <%=serviceName%></a></font></li>
     <%
         }

Added: webservices/axis2/trunk/java/modules/webapp/listFaultyService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listFaultyService.jsp?rev=399699&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listFaultyService.jsp (added)
+++ webservices/axis2/trunk/java/modules/webapp/listFaultyService.jsp Thu May  4 06:29:44 2006
@@ -0,0 +1,69 @@
+<%@ page import="org.apache.axis2.Constants,
+                 org.apache.axis2.description.AxisOperation"%>
+<%@ page import="org.apache.axis2.description.AxisService"%>
+<%@ page import="java.util.Hashtable"%>
+<%@ page import="java.util.Iterator"%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head>
+    <jsp:include page="include/httpbase.jsp"/>
+    <title>List Single service</title>
+    <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
+  </head>
+  <body>
+  <jsp:include page="include/header.inc"></jsp:include>
+    <jsp:include page="include/link-footer.jsp"></jsp:include>
+  <%
+        String prifix = request.getAttribute("frontendHostUrl") + "services/";
+        String restprefix = request.getAttribute("frontendHostUrl") + "rest/";
+    %>
+        <%
+            String isFault = (String)request.getSession().getAttribute(Constants.IS_FAULTY);
+            String servicName = request.getParameter("serviceName");
+            if(Constants.IS_FAULTY.equals(isFault)){
+                Hashtable errornessservices =(Hashtable)request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
+                %>
+                    <h3>This Web axisService has deployment faults</h3><%
+                     %><font color="red" ><%=(String)errornessservices.get(servicName) %></font>
+                <%
+
+                    }else {
+
+                    AxisService axisService =
+                            (AxisService) request.getSession().getAttribute(Constants.SINGLE_SERVICE);
+                    if(axisService!=null){
+           Iterator opItr = axisService.getOperations();
+            //operationsList = operations.values();
+          String  serviceName = axisService.getName();
+            %><h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
+           <font color="blue">Service EPR : </font><font color="black"><%=prifix + axisService.getName()%></font><br>
+               <font color="blue">Service REST epr :</font><font color="black"><%=restprefix + axisService.getName()%></font>
+           <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
+           <i><font color="blue">Service Status : <%=axisService.isActive()?"Active":"InActive"%></font></i><br>
+           <%
+            if (opItr.hasNext()) {
+                %><i>Available operations</i><%
+            } else {
+                %><i> There are no Operations specified</i><%
+            }
+               opItr = axisService.getOperations();
+           %><ul><%
+            while (opItr.hasNext()) {
+                AxisOperation axisOperation = (AxisOperation) opItr.next();
+                %><li><%=axisOperation.getName().getLocalPart()%></li>
+<%--                <br>Operation EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
+                <%
+            }
+           %></ul>
+           <%
+                    } else{
+                           %>
+                <h3><font color="red" >No service found in this location</font></h3>
+ <%
+                    }
+
+            }
+        %>
+<jsp:include page="include/footer.inc"></jsp:include>
+        </body>
+</html>

Modified: webservices/axis2/trunk/java/modules/webapp/listServices.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listServices.jsp?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listServices.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/listServices.jsp Thu May  4 06:29:44 2006
@@ -85,7 +85,7 @@
                 Enumeration faultyservices = errornessservice.keys();
                 while (faultyservices.hasMoreElements()) {
                     String faultyserviceName = (String) faultyservices.nextElement();
-                    %><h3><font color="blue"><a href="listSingleService.jsp?serviceName=<%=faultyserviceName%>">
+                    %><h3><font color="blue"><a href="services/ListFaultyServices?serviceName=<%=faultyserviceName%>">
                     <%=faultyserviceName%></a></font></h3>
                     <%
                 }

Modified: webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp?rev=399699&r1=399698&r2=399699&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/listSingleService.jsp Thu May  4 06:29:44 2006
@@ -4,15 +4,8 @@
 <%@ page import="java.util.Hashtable"%>
 <%@ page import="java.util.Iterator"%>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<html>
-  <head>
-    <jsp:include page="include/httpbase.jsp"/>
-    <title>List Single service</title>
-    <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
-  </head>
-  <body>
-  <jsp:include page="include/header.inc"></jsp:include>
-    <jsp:include page="include/link-footer.jsp"></jsp:include>
+<jsp:include page="include/adminheader.jsp"/>
+<h1>List Single service</h1>
   <%
         String prifix = request.getAttribute("frontendHostUrl") + "services/";
         String restprefix = request.getAttribute("frontendHostUrl") + "rest/";
@@ -64,6 +57,4 @@
 
             }
         %>
-<jsp:include page="include/footer.inc"></jsp:include>
-        </body>
-</html>
+<jsp:include page="include/adminfooter.jsp"/>