Added: juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodeledit.js URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodeledit.js?rev=1488448&view=auto ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodeledit.js (added) +++ juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodeledit.js Sat Jun 1 02:07:29 2013 @@ -0,0 +1,157 @@ +/* + * Copyright 2001-2013 The Apache Software Foundation. + * + * 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. + * + */ + + +function AddOverviewDocument() +{ + currentOverviewDocs++; + var i = currentOverviewDocs; + $("<div id=\"overviewDoc" + i + "\" style=\"border-width:1px; border-style:solid\" >" + +"<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('overviewDoc" + i + +"');\"><i class=\"icon-trash\"></i></a></div>" + +"<div style=\"float:left\">" + i18n_value + ": </div>" + +"<div class=\"edit\" id=\"overviewDoc" + i + "Value\"></div>" + +"<div style=\"float:left\">" + i18n_type + ": </div>" + +"<div class=\"edit\" id=\"overviewDoc" + i + "Type\"></div>" + //descriptions + +"<a href=\"javascript:AddDescriptionSpecific('overviewDoc" + i + "Description');\">" + +"<i class=\"icon-plus-sign\"></i></a> " + i18n_descriptionAdd + + ("<div id=\"overviewDoc" + i + "Description\" style=\"border-width:1px; border-style:dotted\"></div>") + + +"</div>").prependTo("#overviewDoc"); + Reedit(); +} + + +function AddDescriptionOverviewSpecific(div) +{ + //javascript:Remove('bindingTemplate0Description0'); + currentDescriptionSpecific++; + var i = currentDescriptionSpecific; + $("<div id=\""+ div + i + "\" style=\"border-width:1px; border-style:solid\" >" + +"<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + div + i + +"');\"><i class=\"icon-trash\"></i></a></div>" + +"<div style=\"float:left\">" + i18n_value + ": </div>" + +"<div class=\"edit\" id=\"" + div + "Description" + i + "Value\"></div>" + +"<div style=\"float:left\">" + i18n_lang + ": </div>" + +"<div class=\"edit\" id=\"" + div + "Description" + i + "Lang\"></div>" + +"</div>").appendTo("#" + div); + Reedit(); +} + + +function savetModel() +{ + var url='ajax/savetmodel.jsp'; + var postbackdata = new Array(); + $("div.edit").each(function() + { + //TODO filter out (click to edit) values + var id=$(this).attr("id"); + var value=$(this).text(); + postbackdata.push({ + name: id, + value: value + }); + }); + + $("#isDeleted") + if ($('#isDeleted').is(':checked')) { + postbackdata.push({ + name: "isDeleted", + value: "checked" + }); + } else { + + } + postbackdata.push({ + name:"nonce", + value: $("#nonce").val() + }); + $("div.noedit").each(function() + { + var id=$(this).attr("id"); + var value=$(this).text(); + postbackdata.push({ + name: id, + value: value + }); + }); + + + var request= $.ajax({ + url: url, + type:"POST", + // data" + i18n_type + ": "html", + cache: false, + // processData: false,f + data: postbackdata + }); + + + request.done(function(msg) { + window.console && console.log('postback done ' + url); + + $("#resultBar").html('<a class="close" data-dismiss="alert" href="javascript:hideAlert();">×' + '</a>' + msg); + $("#resultBar").show(); + + }); + + request.fail(function(jqXHR, textStatus) { + window.console && console.log('postback failed ' + url); + $("#resultBar").html('<a class="close" data-dismiss="alert" href="javascript:hideAlert();">×' + '</a>' +jqXHR.responseText + textStatus ); + //$(".alert").alert(); + $("#resultBar").show(); + + }); +} + +function deletetModel() +{ + //businessKey + var bizid=$("#serviceKey").text(); + var url='ajax/deletetmodel.jsp?id=' + bizid; + var postbackdata = new Array(); + postbackdata.push({ + name:"nonce", + value: $("#nonce").val() + }); + var request= $.ajax({ + url: url, + type:"POST", + // data" + i18n_type + ": "html", + cache: false, + // processData: false,f + data: postbackdata + }); + + request.done(function(msg) { + window.console && console.log('postback done ' + url); + + $("#resultBar").html('<a class="close" data-dismiss="alert" href="javascript:hideAlert();">×' + '</a>' + msg); + $("#resultBar").show(); + + }); + + request.fail(function(jqXHR, textStatus) { + window.console && console.log('postback failed ' + url); + $("#resultBar").html('<a class="close" data-dismiss="alert" href="javascript:hideAlert();">×' + '</a>' + jqXHR.responseText + textStatus); + //$(".alert").alert(); + $("#resultBar").show(); + + }); +} \ No newline at end of file
Added: juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodelsearch.js URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodelsearch.js?rev=1488448&view=auto ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodelsearch.js (added) +++ juddi/trunk/juddiv3-war/src/main/webapp/admin/js/tmodelsearch.js Sat Jun 1 02:07:29 2013 @@ -0,0 +1,116 @@ + +var offset=0; //start at the begining +var maxrecords=10; //record 20 at a time +var lang="en"; //langauge english +var totalrecords=0; + +RenderTmodelListBySearch('%', offset, maxrecords); + +function pagedownChooserTmodel() +{ + offset = $("#offset").text(); + //alert(offset); + var newoffset = offset - maxrecords; + if (newoffset < 0) + return; + //alert(newoffset); + if (newoffset != offset) + RenderTmodelListBySearch('%', newoffset, maxrecords, true); +} +function pageupChooserTmodel() +{ + offset = $("#offset").text(); + //alert(offset); + var fetch = maxrecords; + if ((parseInt(offset) + parseInt(maxrecords)) > totalrecords) + //fetch = maxrecords - offset; + return; + else + fetch = (parseInt(offset) + parseInt(maxrecords)); + //alert(fetch); + offset = fetch; + RenderTmodelListBySearch('%', fetch, maxrecords, true); +} + + +function pagedown() +{ + offset = $("#offset").text(); + //alert(offset); + var newoffset = offset - maxrecords; + if (newoffset < 0) + return; + //alert(newoffset); + if (newoffset != offset) + RenderTmodelListBySearch('%', newoffset, maxrecords, false); +} +function pageup() +{ + offset = $("#offset").text(); + //alert(offset); + var fetch = maxrecords; + if ((parseInt(offset) + parseInt(maxrecords)) > totalrecords) + //fetch = maxrecords - offset; + return; + else + fetch = (parseInt(offset) + parseInt(maxrecords)); + //alert(fetch); + offset = fetch; + RenderTmodelListBySearch('%', fetch, maxrecords, false); +} +var selectedItem=null; + +//offset, maxrecords, keyword +function RenderTmodelListBySearch(keyword1, offset1, maxrecords1, isForChooser) +{ + var lang = $("#lang").text(); + $("#tmodellist").html("<img src=\"img/bigrollergreen.gif\" title=\"Loading\"/>"); + var request= $.ajax({ + url: 'ajax/tmodelsearch.jsp?keyword=' + keyword1 + "&offset=" + offset1 + "&maxrecords=" + maxrecords1 + "&lang=" + lang + "&chooser=" + isForChooser, + type:"GET", + cache: false + }); + + request.done(function(msg) { + window.console && console.log('postback done '); + $("#tmodellist").html(msg); + $('.modalable').click(function(){ + selectedItem =$(this).attr("id"); + }); + //refresh(); + }); + + request.fail(function(jqXHR, textStatus) { + window.console && console.log('postback failed '); + $("#tmodellist").html("An error occured! " + jqXHR.responseText + textStatus); + //refresh(); + }); +/* + $.get('ajax/businesssearch.jsp?keyword=' + keyword1 + "&offset=" + offset1 + "&maxrecords=" + maxrecords1 + "&lang=" + lang, function(data) { + $("#businesslist").html(data); + refresh(); + });*/ +} + +function refresh() +{ + var displayrecords = $("#displayrecords").text(); + if (displayrecords == totalrecords) + { + $("#pageup").addClass("disabled"); + $("#pagedown").addClass("disabled"); + } + else if (offset + maxrecords > totalrecords) + { + $("#pageup").addClass("disabled"); + } + else if (offset ==0) + { + $("#pagedown").removeClass("disabled"); + } + else + { + $("#pagedown").removeClass("disabled"); + $("#pageup").removeClass("disabled"); + } +} \ No newline at end of file Added: juddi/trunk/juddiv3-war/src/main/webapp/admin/login.jsp URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/admin/login.jsp?rev=1488448&view=auto ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/admin/login.jsp (added) +++ juddi/trunk/juddiv3-war/src/main/webapp/admin/login.jsp Sat Jun 1 02:07:29 2013 @@ -0,0 +1,59 @@ +<%-- + Document : login + Created on : Feb 24, 2013, 9:08:02 AM + Author : Alex O'Ree +--%> + +<%@page import="org.apache.juddi.webconsole.resources.ResourceLoader"%> +<%@page import="org.apache.commons.lang.StringEscapeUtils"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + +<div class="navbar-form pull-right"> + + <% + if (session.getAttribute("username") != null && session.getAttribute("password") != null + && ((String) session.getAttribute("username")).length() > 0 && ((String) session.getAttribute("password")).length() > 0) { + //we're probably logged in + + %> + <script type="text/javascript"> + loggedin = true; + </script> + <a class="btn" title="<%=ResourceLoader.GetResource(session, "navbar.login.logout")%>" href="javascript:logout();"> + <% + if (!request.isSecure()) { + %> + <i class="icon-warning-sign" title="<%=ResourceLoader.GetResource(session, "warning.ssl")%>"></i> + <% + } + %> + + <i class="icon-user"></i> + <% + out.write(ResourceLoader.GetResource(session, "items.welcome") + " " + StringEscapeUtils.escapeHtml((String) session.getAttribute("username")) + "</a>"); + + } else { + %> + + <script type="text/javascript"> + loggedin = false; + </script> + + <input class="span2" type="text" placeholder="<%=ResourceLoader.GetResource(session, "navbar.login.username")%>" name="username" id="username"> + <input class="span2" type="password" placeholder="<%=ResourceLoader.GetResource(session, "navbar.login.password")%>" name="password" id="password"> + <button type="button" onclick="javascript:Login();" class="btn" id="loginbutton"> + <% + if (!request.isSecure()) { + %> + <i class="icon-warning-sign" title="<%=ResourceLoader.GetResource(session, "warning.ssl")%>"></i> + <% + } + %> + <%=ResourceLoader.GetResource(session, "navbar.login.button")%> + </button> + <% + } + %> + + +</div> Added: juddi/trunk/juddiv3-war/src/main/webapp/admin/logout.jsp URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/admin/logout.jsp?rev=1488448&view=auto ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/admin/logout.jsp (added) +++ juddi/trunk/juddiv3-war/src/main/webapp/admin/logout.jsp Sat Jun 1 02:07:29 2013 @@ -0,0 +1,18 @@ +<%-- + Document : logout page + Created on : Feb 25, 2013, 10:25:48 PM + Author : Alex O'Ree +--%> + +<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<% + UddiHub hub = UddiHub.getInstance(application, session); + UddiHub.reset(session); + hub.die(); + session.removeAttribute("username"); + session.removeAttribute("password"); + // session.invalidate(); + // response.sendRedirect("index.jsp"); +//do not invalidate the session, this will cause the form nonce to clear until the browser url changes +%> \ No newline at end of file Added: juddi/trunk/juddiv3-war/src/main/webapp/admin/mbeans.jsp URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/admin/mbeans.jsp?rev=1488448&view=auto ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/admin/mbeans.jsp (added) +++ juddi/trunk/juddiv3-war/src/main/webapp/admin/mbeans.jsp Sat Jun 1 02:07:29 2013 @@ -0,0 +1,72 @@ +<%-- + Document : mbeans + Created on : May 6, 2013, 9:07:43 PM + Author : Alex O'Ree +--%><%@page import="java.util.TreeMap"%><%@page import="java.util.Map"%><%@page import="javax.management.AttributeList"%><%@page import="java.util.Map.Entry"%><%@page import="java.util.Hashtable"%><%@page import="java.util.Iterator"%><%@page import="javax.management.ObjectName"%><%@page import="java.util.Set"%><%@page import="javax.management.MBeanServerFactory"%><%@page import="java.util.ArrayList"%><%@page import="javax.management.MBeanServer"%><%@page import="java.lang.management.MemoryPoolMXBean"%><%@page import="java.lang.management.ManagementFactory"%><%@page import="java.util.List"%><%@page contentType="application/json" pageEncoding="UTF-8"%><% + + TreeMap data = new TreeMap<String, String>(); + data.put("timestamp", Long.toString(System.currentTimeMillis())); + MBeanServer mbserver = null; + + ArrayList mbservers = MBeanServerFactory.findMBeanServer(null); + + if (mbservers.size() > 0) { + mbserver = (MBeanServer) mbservers.get(0); + } + if (mbserver != null) { + } else { + mbserver = MBeanServerFactory.createMBeanServer(); + } + if (mbserver == null) { + out.write("null ref<br>"); + } else { + long totalsuccess = 0; + long totalfailures = 0; + String[] domains = mbserver.getDomains(); + for (int i = 0; i < domains.length; i++) { + // out.write(domains[i] + "<br>"); + } + ObjectName juddi = new ObjectName("apache.juddi:counter=*"); + juddi.setMBeanServer(mbserver); + Set<ObjectName> beans = mbserver.queryNames(juddi, null); + Iterator<ObjectName> it = beans.iterator(); + while (it.hasNext()) { + ObjectName n = it.next(); + // out.write(n.getCanonicalName() + " "); + // out.write(n.getKeyPropertyListString() + "<Br>"); + Hashtable<String, String> props = n.getKeyPropertyList(); + Iterator<Entry<String, String>> it2 = props.entrySet().iterator(); + while (it2.hasNext()) { + Entry<String, String> e = it2.next(); +// out.write("key = " + e.getKey() + "<br>"); + // out.write("value = " + e.getValue() + "<br>"); + } + AttributeList j = (AttributeList) mbserver.getAttributes(n, new String[]{"counter"}); + for (int k = 0; k < j.size(); k++) { + String attr = j.get(k).toString(); + String[] kv = attr.split("="); + //out.write("attr = " + kv[0] + " value = " + kv[1] + "<br>"); + data.put(kv[0], kv[1]); + if (kv[0].toLowerCase().contains("success")) { + totalsuccess+= Long.parseLong(kv[1].trim()); + } + if (kv[0].toLowerCase().contains("fail")) { + totalfailures+= Long.parseLong(kv[1].trim()); + } + } + + // out.write(j.getClass().getCanonicalName() + "<br>"); + } + data.put("totalsuccess", totalsuccess); + data.put("totalfailures", totalfailures); + } + // out.write("<br>"); + // out.write("<br>"); + // out.write("<br>"); + // List<MemoryPoolMXBean> memPoolBeans = ManagementFactory.getMemoryPoolMXBeans(); + // for (MemoryPoolMXBean mpb : memPoolBeans) { + // out.write("Memory Pool: " + mpb.getName() + "<br>"); + //} + + out.write(new org.json.JSONObject(data).toString()); +%> \ No newline at end of file Added: juddi/trunk/juddiv3-war/src/main/webapp/admin/stats.jsp URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/admin/stats.jsp?rev=1488448&view=auto ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/admin/stats.jsp (added) +++ juddi/trunk/juddiv3-war/src/main/webapp/admin/stats.jsp Sat Jun 1 02:07:29 2013 @@ -0,0 +1,405 @@ +<%-- + Document : index + Created on : Feb 23, 2013, 2:05:35 PM + Author : Alex O'Ree +--%> + + +<%@page import="org.apache.commons.lang.StringEscapeUtils"%> +<%@page import="org.apache.juddi.servlets.RegistryServlet"%> +<%@page import="java.util.SortedSet"%> +<%@page import="java.util.Properties"%> +<%@ page import="java.io.File, + java.io.IOException, + java.net.URL, + java.net.JarURLConnection, + java.sql.Connection, + java.sql.ResultSet, + java.sql.Statement, + java.util.Properties, + java.util.Iterator, + java.util.SortedSet, + java.util.TreeSet, + javax.naming.Context, + javax.naming.InitialContext, + javax.sql.DataSource" + + + %> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@include file="header-top.jsp"%> + +<%! + + /** + * Look for the named class in the classpath + * + * @param name of the class to lookup + * @return the location of the named class + * @throws IOException + */ + String lookupClass(String className) + throws IOException + { + // load the class (if it exists) + Class clazz = null; + try { + clazz = Class.forName(className); + if (clazz == null) + return null; + } + catch (ClassNotFoundException e) { + return null; + } + + // class was found, now get it's URL + URL url = null; + try { + url = clazz.getProtectionDomain().getCodeSource().getLocation(); + if (url == null) + return ""; + } + catch(Throwable t) { + return ""; + } + + // got the classes URL, now determine it's location + String location = getLocation(url); + if (location == null) + return ""; + else + return location; + } + + /** + * Look for the named resource or properties file. + * + * @param resourceName + * @return true if the file was found + */ + String lookupResource(String resourceName) + { + URL url = null; + ClassLoader classLoader = null; + + classLoader = this.getClass().getClassLoader(); + if (classLoader != null) + { + url = classLoader.getResource(resourceName); + if (url != null) { + return getLocation(url); + } + } + else + { + classLoader = System.class.getClassLoader(); + if (classLoader != null) + { + url = classLoader.getResource(resourceName); + if (url != null) { + return getLocation(url); + } + } + else + { + //try to the thread context loader + } + } + + return null; + } + + /** + * Determine the location of the Java class. + * + * @param clazz + * @return the file path to the jar file or class + * file where the class was located. + */ + String getLocation(URL url) + { + try + { + String location = url.toString(); + if (location.startsWith("jar:file:/")) + { + File file = new File(url.getFile()); + return file.getPath().substring(6); + } + else if (location.startsWith("jar")) + { + url = ((JarURLConnection)url.openConnection()).getJarFileURL(); + return url.toString(); + } + else if (location.startsWith("file")) + { + File file = new File(url.getFile()); + return file.getAbsolutePath(); + } + else + { + return url.toString(); + } + } + catch (Throwable t) { + return null; + } + } +%> + +<div class="container"> + + <!-- Main hero unit for a primary marketing message or call to action --> + <div class="well"> + <h1>Status and Statistics</h1> + + </div> + + <!-- Example row of columns --> + <div class="row"> + + + <div class="span12"> + <script type="text/javascript"> + jQuery(document).ready(function ($) { + $('#myTab').tab(); + }); + + </script> + + + + <ul class="nav nav-tabs" id="myTab" data-tabs="tabs"> + <li class="active"><a href="#status" data-toggle="tab">Status</a></li> + <li><a href="#stats" data-toggle="tab">Statistics</a></li> + + </ul> + + <div class="tab-content"> + <div class="tab-pane active" id="status"> + + <h3>Happy jUDDI!</h3> + + <h4>jUDDI Version Information</h4> + + <b>jUDDI Version:</b> <%= org.apache.juddi.config.Release.getRegistryVersion() %><br> + <b>UDDI Version:</b> <%= org.apache.juddi.config.Release.getUDDIVersion() %><br> + + + <h4>jUDDI Dependencies: Class Files & Libraries</h4> + <pre><% + //creates the schema if not there + // RegistryEngine registry = RegistryServlet.getRegistry(); + // registry.init(); + + String[] classArray = { + "org.apache.juddi.servlets.RegistryServlet", + "org.apache.juddi.servlets.NotifyServlet", + "org.apache.axis.transport.http.AxisServlet", + "org.springframework.web.context.ContextLoaderListener", + "org.apache.cxf.transport.servlet.CXFServlet", + "org.apache.commons.discovery.Resource", + "org.apache.commons.logging.Log", + "org.apache.log4j.Layout", + "javax.xml.soap.SOAPMessage", + //not used anymore "javax.xml.rpc.Service", + "com.ibm.wsdl.factory.WSDLFactoryImpl", + "javax.xml.parsers.SAXParserFactory" + }; + + for (int i=0; i<classArray.length; i++) + { + out.write("<b>Looking for</b>: "+classArray[i]+"<br>"); + + String result = lookupClass(classArray[i]); + if (result == null) + { + out.write("<font color=\"red\">-Not Found</font><br>"); + } + else if (result.length() == 0) + { + out.write("<font color=\"blue\">+Found in an unknown location</font><br>"); + } + else + { + out.write("<font color=\"green\">+Found in: "+ result +"</font><br>"); + } + } + %></pre> + + <h4>jUDDI Dependencies: Resource & Properties Files</h4> + <pre><% + String[] resourceArray = { + "log4j.xml", + "juddiv3.properties", + "context.xml", + "beans.xml", + "persistence.xml" + }; + + for (int i=0; i<resourceArray.length; i++) + { + out.write("<b>Looking for</b>: "+resourceArray[i]+"<br>"); + + String result = lookupResource(resourceArray[i]); + if (result == null) + { + out.write("<font color=\"red\">-Not Found</font><br>"); + } + else if (result.length() == 0) + { + out.write("<font color=\"blue\">+Found in an unknown location</font><br>"); + } + else + { + out.write("<font color=\"green\">+Found in: "+ result +"</font><br>"); + } + } + %></pre> + + <h4>jUDDI DataSource Validation</h4> + <pre><% + String dsname = null; + Context ctx = null; + DataSource ds = null; + Connection conn = null; + String sql = "SELECT COUNT(*) FROM PUBLISHER"; + + try + { + dsname = request.getParameter("dsname"); + if ((dsname == null) || (dsname.trim().length() == 0)) { + dsname = "java:comp/env/jdbc/juddiDB"; + } else { + dsname = StringEscapeUtils.escapeXml(dsname); + } + + ctx = new InitialContext(); + if (ctx == null ) + throw new Exception("No Context"); + + out.print("<font color=\"green\">"); + out.print("+ Got a JNDI Context!"); + out.println("</font>"); + } + catch(Exception ex) + { + out.print("<font color=\"red\">"); + out.print("- No JNDI Context ("+ex.getMessage()+")"); + out.println("</font>"); + } + + try + { + ds = (DataSource)ctx.lookup(dsname); + if (ds == null) + throw new Exception("No Context"); + + out.print("<font color=\"green\">"); + out.print("+ Got a JDBC DataSource (dsname="+dsname+")"); + out.println("</font>"); + } + catch(Exception ex) + { + out.print("<font color=\"red\">"); + out.print("- No '"+dsname+"' DataSource Located("+ex.getMessage()+")"); + out.println("</font>"); + } + + try + { + conn = ds.getConnection(); + if (conn == null) + throw new Exception("No Connection (conn=null)"); + + out.print("<font color=\"green\">"); + out.print("+ Got a JDBC Connection!"); + out.println("</font>"); + } + catch(Exception ex) + { + out.print("<font color=\"red\">"); + out.print("- DB connection was not acquired. ("+ex.getMessage()+")"); + out.println("</font>"); + } + + try + { + Statement stmt = conn.createStatement(); + ResultSet rs = stmt.executeQuery(sql); + + out.print("<font color=\"green\">"); + out.print("+ "+sql+" = "); + if (rs.next()) + out.print(rs.getString(1)); + out.println("</font>"); + + conn.close(); + } + catch (Exception ex) + { + out.print("<font color=\"red\">"); + out.print("- "+sql+" failed ("+ex.getMessage()+")"); + out.println("</font>"); + } + %></pre> + + + <h4>System Properties</h4> + <pre><% + try + { + Properties sysProps = System.getProperties(); + SortedSet sortedProperties = new TreeSet(sysProps.keySet()); + for (Iterator keys = sortedProperties.iterator(); keys.hasNext();) + { + String key = (String)keys.next(); + out.println("<b>"+key + "</b>: " + sysProps.getProperty(key)); + } + } + catch(Exception e) + { + e.printStackTrace(); + } + %></pre> + + <h4> + Platform</h4> + <pre><%= getServletConfig().getServletContext().getServerInfo() %></pre> + + </div> + <div class="tab-pane" id="stats"><img src="img/bigrollergreen.gif"></div> + + </div> + + + + + + + + + + <script type="text/javascript"> + $.getJSON('mbeans.jsp', function(data) { + var items = []; + + + + items.push("<table class=\"table table-hover\">"); + $.each(data, function(key, val) { + + + + items.push('<tr><td>' +key +"</td><td>"+ val+ '</</td></tr>'); + + + }); + items.push("</table>"); + $("#stats").html(items.join(' ')); + }); + </script> + </div> + + </div> + <%@include file="header-bottom.jsp"%> \ No newline at end of file Modified: juddi/trunk/juddiv3-war/src/main/webapp/index.jsp URL: http://svn.apache.org/viewvc/juddi/trunk/juddiv3-war/src/main/webapp/index.jsp?rev=1488448&r1=1488447&r2=1488448&view=diff ============================================================================== --- juddi/trunk/juddiv3-war/src/main/webapp/index.jsp (original) +++ juddi/trunk/juddiv3-war/src/main/webapp/index.jsp Sat Jun 1 02:07:29 2013 @@ -23,24 +23,29 @@ <h1>Apache jUDDI version <%= Release.getRegistryVersion()%></h1> - <h3><em>Welcome</em> to Apache jUDDI!</h3> + <h2><em>Welcome</em> to Apache jUDDI!</h2> + jUDDI is an open source implementation of <a href="http://oasis-open.org">OASIS</a>'s <a href="http://oasis-open.org/committees/uddi-spec/doc/tcspecs.htm#uddiv3">Universal Discovery Description and Integration (UDDI)</a>. + You've reached the deployment page for jUDDI's web services.<br> + + <h4><a href="/juddi-gui">View the jUDDI User Interface (fully featured end user web app)</a></h4> + <h4><a href="/pluto/portal/jUDDI">View the jUDDI Portal (older with limited features)</a></h4> + <h4><a href="admin">View the jUDDI Administration Interface (authentication required)</a></h4> + Here's some useful links to learn more about the UDDI and jUDDI. <ul> - <li><a href="/pluto/portal/jUDDI">jUDDI Portal</a></li> - <li><a href="happy.jsp">jUDDI Status</a></li> - <li><a href="services">View</a> service listing</li> + <li><a href="services">View the service listing on this UDDI node</a></li> <li><a href="http://juddi.apache.org/">Visit</a> the Apache-jUDDI Home Page</li> - <li><a href="http://juddi.apache.org/docs/3.x/userguide/html/index.html">Users Guide</a></li> - <li><a href="http://juddi.apache.org/docs/3.x/devguide/html/index.html" >Developers Guide</a></li> - <li><a href="http://juddi.apache.org/docs.html" >API Documentation</a></li> + <li><a href="http://juddi.apache.org/docs/3.x/userguide/html/index.html">jUDDI Users Guide</a></li> + <li><a href="http://juddi.apache.org/docs/3.x/devguide/html/index.html" >jUDDI Developers Guide</a></li> + <li><a href="http://juddi.apache.org/docs.html" >jUDDI API Documentation</a></li> <li><a href="http://wiki.apache.org/juddi" >jUDDI Wiki</a></li> - <li><a href="http://juddi.apache.org/issue-tracking.html" >Report a bug</a></li> - <li><a href="http://svn.apache.org/viewvc/juddi/" >jUDDI Source Code</a></li> - <li><a href="http://www.nabble.com/jUDDI-f218.html">Mailing list</a></li> + <li><a href="http://juddi.apache.org/issue-tracking.html" >jUDDI's Issue Tracker (report a bug)</a></li> + <li><a href="http://svn.apache.org/viewvc/juddi/" >jUDDI's Source Code</a></li> + <li><a href="http://www.nabble.com/jUDDI-f218.html">jUDDI's Mailing lists</a></li> </ul> <div class="install"> - <h4>jUDDI Installation</h4> + <h4>jUDDI Installation Status</h4> <div class="content"> <% // This will tirgger the install process... @@ -68,7 +73,7 @@ %> <div>jUDDI has been successfully installed!</div> <p /> - <h3>Node Information</h3> + <h4>Node Information</h4> <table> <tr> <td><b>Root Partition:</b></td> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
