You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by sv...@apache.org on 2003/11/22 05:25:37 UTC

cvs commit: ws-juddi/webapps/juddi index.html search.jsp happyjuddi.jsp

sviens      2003/11/21 20:25:37

  Modified:    webapps/juddi index.html search.jsp happyjuddi.jsp
  Log:
  Removed copyright from footer.
  
  Revision  Changes    Path
  1.2       +30 -30    ws-juddi/webapps/juddi/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/ws-juddi/webapps/juddi/index.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.html	11 Nov 2003 14:05:33 -0000	1.1
  +++ index.html	22 Nov 2003 04:25:37 -0000	1.2
  @@ -1,31 +1,31 @@
  -<?xml version="1.0" encoding="utf-8"?>
  -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  -    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  -<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  -<head>
  -<link rel="stylesheet" href="juddi.css"/>
  -</head>
  -<body>
  -<div class="nav" align="right"><font size="-2"><a href="http://www.juddi.org/" target="_top">jUDDI.org</a></font></div>
  -<h1>jUDDI</h1>
  -
  -<h3><em>Welcome</em> to jUDDI!</h3>
  -<ul>
  -  <li><a href="happyjuddi.jsp">Validate</a> the local installation's configuration</li>
  -  <li><a href="search">Browse</a> around the jUDDI Registry [not yet implemented]</li>
  -  <li><a href="manage">Manage</a> your Web Services [not yet implemented]</li>
  -  <li><a href="admin">Administer</a> jUDDI [not yet implemented]</li>
  -  <li><a href="http://www.juddi.org">Visit</a> jUDDI.org</li>
  -</ul>
  -To enable the disabled features, uncomment the appropriate declarations in WEB-INF/web.xml
  -in the webapplication and restart it.
  -<hr>
  -If the "happyjuddi" validation page returns some kind of
  -error, it is invariably a configuration issue.
  -
  -<table width="100%" border="0">
  -<tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">Copyright &copy; 2003, <a href="mailto:steve@viens.net" target="_top">Steve Viens</a> and contributors, All rights reserved</div></td></tr>
  -</table>
  -
  -</body>
  +<?xml version="1.0" encoding="utf-8"?>
  +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  +<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  +<head>
  +<link rel="stylesheet" href="juddi.css"/>
  +</head>
  +<body>
  +<div class="nav" align="right"><font size="-2"><a href="http://www.juddi.org/" target="_top">jUDDI.org</a></font></div>
  +<h1>jUDDI</h1>
  +
  +<h3><em>Welcome</em> to jUDDI!</h3>
  +<ul>
  +  <li><a href="happyjuddi.jsp">Validate</a> the local installation's configuration</li>
  +  <li><a href="search">Browse</a> around the jUDDI Registry [not yet implemented]</li>
  +  <li><a href="manage">Manage</a> your Web Services [not yet implemented]</li>
  +  <li><a href="admin">Administer</a> jUDDI [not yet implemented]</li>
  +  <li><a href="http://www.juddi.org">Visit</a> jUDDI.org</li>
  +</ul>
  +To enable the disabled features, uncomment the appropriate declarations in WEB-INF/web.xml
  +in the webapplication and restart it.
  +<hr>
  +If the "happyjuddi" validation page returns some kind of
  +error, it is invariably a configuration issue.
  +
  +<table width="100%" border="0">
  +<tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">&nbsp;</div></td></tr>
  +</table>
  +
  +</body>
   </html>
  
  
  
  1.2       +42 -42    ws-juddi/webapps/juddi/search.jsp
  
  Index: search.jsp
  ===================================================================
  RCS file: /home/cvs/ws-juddi/webapps/juddi/search.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- search.jsp	11 Nov 2003 14:05:33 -0000	1.1
  +++ search.jsp	22 Nov 2003 04:25:37 -0000	1.2
  @@ -1,43 +1,43 @@
  -<?xml version="1.0" encoding="utf-8"?>
  -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  -<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  -<head>
  -<title>jUDDI</title>
  -<link rel="stylesheet" href="juddi.css"/>
  -<script>function setFocus() { document.sform.qstring.focus(); }</script>
  -</head>
  -<body onLoad=setFocus()>
  -<div class="nav" align="right"><font size="-2"><a href="http://www.juddi.org/" target="_top">jUDDI.org</a></font></div>
  -
  -<p>
  -<center>
  -<form name="sform">
  -<table cellspacing="5" cellpadding="5" border="0">
  -<tr><td align="center" colspan="2"><img border="0" height="60" width="180" src="images/search_logo.gif"></td></tr>
  -<tr>
  -<td align="center" colspan="2">
  -<input type="hidden" name="lang" value="en">
  -<input maxLength="256" size="35" name="qstring" value="">&nbsp;
  -<input type="submit" value="Search" name="search"></td>
  -</tr>
  -<tr>
  -<td nowrap>
  -<font size="-2">Search for:</font><br>
  -&nbsp;<input type="checkbox" title="Business Entity"  name="business" value="true" checked>Business Entities<br>
  -&nbsp;<input type="checkbox" title="Business Service" name="service" value="true" checked>Business Services<br>
  -&nbsp;<input type="checkbox" title="Service Type (TModel)" name="tmodel" value="true" checked>Service Types (TModels)</td>
  -        <td valign="top" nowrap> <font size="-2"> &nbsp;&#8226;&nbsp;<a href=advanced>Advanced&nbsp;Search</a><br>
  -          &nbsp;&#8226;&nbsp;<a href=manage>Manage Your Services</a><br>
  -          &nbsp;&#8226;&nbsp;<a href=admin>jUDDI Administration</a> </font></td>
  -</tr>
  -</table>
  -</form>
  -</center>
  -</p>
  -
  -<table width="100%" border="0">
  -<tr><td height="25" align="center" valign="bottom" nowrap><div class="footer">Copyright &copy; 2003, <a href="mailto:steve@viens.net" target="_top">Steve Viens</a> and contributors, All rights reserved</div></td></tr>
  -</table>
  -
  -</body>
  +<?xml version="1.0" encoding="utf-8"?>
  +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  +<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  +<head>
  +<title>jUDDI</title>
  +<link rel="stylesheet" href="juddi.css"/>
  +<script>function setFocus() { document.sform.qstring.focus(); }</script>
  +</head>
  +<body onLoad=setFocus()>
  +<div class="nav" align="right"><font size="-2"><a href="http://www.juddi.org/" target="_top">jUDDI.org</a></font></div>
  +
  +<p>
  +<center>
  +<form name="sform">
  +<table cellspacing="5" cellpadding="5" border="0">
  +<tr><td align="center" colspan="2"><img border="0" height="60" width="180" src="images/search_logo.gif"></td></tr>
  +<tr>
  +<td align="center" colspan="2">
  +<input type="hidden" name="lang" value="en">
  +<input maxLength="256" size="35" name="qstring" value="">&nbsp;
  +<input type="submit" value="Search" name="search"></td>
  +</tr>
  +<tr>
  +<td nowrap>
  +<font size="-2">Search for:</font><br>
  +&nbsp;<input type="checkbox" title="Business Entity"  name="business" value="true" checked>Business Entities<br>
  +&nbsp;<input type="checkbox" title="Business Service" name="service" value="true" checked>Business Services<br>
  +&nbsp;<input type="checkbox" title="Service Type (TModel)" name="tmodel" value="true" checked>Service Types (TModels)</td>
  +        <td valign="top" nowrap> <font size="-2"> &nbsp;&#8226;&nbsp;<a href=advanced>Advanced&nbsp;Search</a><br>
  +          &nbsp;&#8226;&nbsp;<a href=manage>Manage Your Services</a><br>
  +          &nbsp;&#8226;&nbsp;<a href=admin>jUDDI Administration</a> </font></td>
  +</tr>
  +</table>
  +</form>
  +</center>
  +</p>
  +
  +<table width="100%" border="0">
  +<tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">&nbsp;</div></td></tr>
  +</table>
  +
  +</body>
   </html>
  
  
  
  1.2       +348 -348  ws-juddi/webapps/juddi/happyjuddi.jsp
  
  Index: happyjuddi.jsp
  ===================================================================
  RCS file: /home/cvs/ws-juddi/webapps/juddi/happyjuddi.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- happyjuddi.jsp	11 Nov 2003 14:05:33 -0000	1.1
  +++ happyjuddi.jsp	22 Nov 2003 04:25:37 -0000	1.2
  @@ -1,349 +1,349 @@
  -<%@ page import="java.io.*" %>
  -<%@ page import="java.net.*" %>
  -<%@ page import="java.sql.*" %>
  -<%@ page import="java.util.*" %>
  -<%@ page import="javax.naming.*" %>
  -<%@ page import="javax.servlet.*" %>
  -<%@ page import="javax.servlet.http.*" %>
  -<%@ page import="javax.sql.*" %>
  -<%!
  -
  -    /**
  -     * 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);
  -          }
  -        }
  -      }
  -
  -      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;
  -      }
  -    }
  -%>
  -<html>
  -<head>
  -<title>jUDDI Happiness Page</title>
  -<link rel="stylesheet" href="juddi.css">
  -</head>
  -<body>
  -
  -<div class="nav" align="right"><font size="-2"><a href="http://www.juddi.org/">jUDDI.org</a></font></div>
  -<h1>jUDDI</h1>
  -
  -<div class="announcement">
  -<p>
  -<h3>Happy jUDDI!</h3>
  -
  -<h4>jUDDI Dependencies: Class Files &amp; Libraries</h4>
  -<pre>
  -<%
  -    String[] classArray = {
  -      "org.apache.juddi.registry.Registry",
  -      "javax.xml.soap.SOAPMessage",
  -      "javax.xml.rpc.Service",
  -      "org.apache.axis.transport.http.AxisServlet",
  -      "org.apache.commons.collections.BeanMap",
  -      "org.apache.commons.dbcp.PoolingDataSource",
  -      "org.apache.commons.discovery.Resource",
  -      "org.apache.commons.logging.Log",
  -      "org.apache.commons.pool.impl.GenericObjectPool",
  -      "org.apache.log4j.Layout",
  -      "com.ibm.wsdl.factory.WSDLFactoryImpl",
  -      "javax.xml.parsers.SAXParserFactory",
  -      "javax.activation.DataHandler"
  -    };
  -    
  -    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 &amp; Properties Files</h4>
  -<pre>
  -<%
  -    String[] resourceArray = {
  -      "log4j.properties",
  -      "juddi.properties"
  -    };
  -    
  -    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 Check</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";
  -    
  -    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 aquired. ("+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>jUDDI Properties</h4>
  -<pre>
  -<%
  -  try
  -  {
  -    Properties juddiProps = org.apache.juddi.util.Config.getProperties();
  -    if (juddiProps != null)
  -    {
  -      SortedSet sortedProperties = new TreeSet(juddiProps.keySet()); 
  -      for (Iterator keys = sortedProperties.iterator(); keys.hasNext();)
  -      {
  -        String key = (String)keys.next();
  -        out.println(key + ": " + juddiProps.getProperty(key));
  -      }
  -    }
  -    else
  -    {
  -      out.println("No jUDDI Properties (juddiPropEnum=null)");
  -    }
  -  }
  -  catch(Exception e)
  -  {
  -    e.printStackTrace();
  -  }
  -%>
  -</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(key + ": " + sysProps.getProperty(key));
  -    }
  -  }
  -  catch(Exception e)
  -  {
  -    e.printStackTrace();
  -  }
  -%>
  -</pre>
  -
  -<hr>
  -Platform: <%= getServletConfig().getServletContext().getServerInfo() %>
  -
  -<table width="100%" border="0">
  -<tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">Copyright &copy; 2003, <a href="mailto:steve@viens.net" target="_top">Steve Viens</a> and contributors, All rights reserved</div></td></tr>
  -</table>
  -
  -</body>
  -</div>
  +<%@ page import="java.io.*" %>
  +<%@ page import="java.net.*" %>
  +<%@ page import="java.sql.*" %>
  +<%@ page import="java.util.*" %>
  +<%@ page import="javax.naming.*" %>
  +<%@ page import="javax.servlet.*" %>
  +<%@ page import="javax.servlet.http.*" %>
  +<%@ page import="javax.sql.*" %>
  +<%!
  +
  +    /**
  +     * 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);
  +          }
  +        }
  +      }
  +
  +      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;
  +      }
  +    }
  +%>
  +<html>
  +<head>
  +<title>jUDDI Happiness Page</title>
  +<link rel="stylesheet" href="juddi.css">
  +</head>
  +<body>
  +
  +<div class="nav" align="right"><font size="-2"><a href="http://www.juddi.org/">jUDDI.org</a></font></div>
  +<h1>jUDDI</h1>
  +
  +<div class="announcement">
  +<p>
  +<h3>Happy jUDDI!</h3>
  +
  +<h4>jUDDI Dependencies: Class Files &amp; Libraries</h4>
  +<pre>
  +<%
  +    String[] classArray = {
  +      "org.apache.juddi.registry.Registry",
  +      "javax.xml.soap.SOAPMessage",
  +      "javax.xml.rpc.Service",
  +      "org.apache.axis.transport.http.AxisServlet",
  +      "org.apache.commons.collections.BeanMap",
  +      "org.apache.commons.dbcp.PoolingDataSource",
  +      "org.apache.commons.discovery.Resource",
  +      "org.apache.commons.logging.Log",
  +      "org.apache.commons.pool.impl.GenericObjectPool",
  +      "org.apache.log4j.Layout",
  +      "com.ibm.wsdl.factory.WSDLFactoryImpl",
  +      "javax.xml.parsers.SAXParserFactory",
  +      "javax.activation.DataHandler"
  +    };
  +    
  +    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 &amp; Properties Files</h4>
  +<pre>
  +<%
  +    String[] resourceArray = {
  +      "log4j.properties",
  +      "juddi.properties"
  +    };
  +    
  +    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 Check</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";
  +    
  +    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 aquired. ("+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>jUDDI Properties</h4>
  +<pre>
  +<%
  +  try
  +  {
  +    Properties juddiProps = org.apache.juddi.util.Config.getProperties();
  +    if (juddiProps != null)
  +    {
  +      SortedSet sortedProperties = new TreeSet(juddiProps.keySet()); 
  +      for (Iterator keys = sortedProperties.iterator(); keys.hasNext();)
  +      {
  +        String key = (String)keys.next();
  +        out.println(key + ": " + juddiProps.getProperty(key));
  +      }
  +    }
  +    else
  +    {
  +      out.println("No jUDDI Properties (juddiPropEnum=null)");
  +    }
  +  }
  +  catch(Exception e)
  +  {
  +    e.printStackTrace();
  +  }
  +%>
  +</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(key + ": " + sysProps.getProperty(key));
  +    }
  +  }
  +  catch(Exception e)
  +  {
  +    e.printStackTrace();
  +  }
  +%>
  +</pre>
  +
  +<hr>
  +Platform: <%= getServletConfig().getServletContext().getServerInfo() %>
  +
  +<table width="100%" border="0">
  +<tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">&nbsp;</div></td></tr>
  +</table>
  +
  +</body>
  +</div>
   </html>