<%
// This will tirgger the install process...
String rootPartition = AppConfig.getConfiguration().getString(Property.JUDDI_ROOT_PARTITION);
String nodeId = AppConfig.getConfiguration().getString(Property.JUDDI_NODE_ID);
String rootBusiness = AppConfig.getConfiguration().getString(Property.JUDDI_NODE_ROOT_BUSINESS);
String nodeName = "";
String nodeDescription = "";
BusinessEntity be = null;
boolean ok = true;
String error = "";
try {
be = Install.getNodeBusinessEntity(rootBusiness);
Name n = be.getName().get(0);
if (n != null) {
nodeName = n.getValue();
}
List descList = be.getDescription();
if (descList != null && descList.size() > 0) {
Description d = (Description) descList.get(0);
if (d != null) {
nodeDescription = d.getValue();
}
}
} catch (Exception ex) {
ok = false;
error = ex.getMessage();
}
if (ok) {
%>
jUDDI has been successfully installed!
Node Information
Root Partition: |
<%= StringEscapeUtils.escapeHtml(rootPartition)%> |
Node Id: |
<%=StringEscapeUtils.escapeHtml(nodeId)%> |
Root Business Key: |
<%= StringEscapeUtils.escapeHtml(rootBusiness)%> |
Root Business Name: |
<%= StringEscapeUtils.escapeHtml(nodeName)%> |
Root Business Description: |
<%=StringEscapeUtils.escapeHtml(nodeDescription)%> |
<%
} else {
%>
jUDDI has NOT installed correctly!
Error Information
<%=StringEscapeUtils.escapeHtml(error)%>
Suggestion: Check the juddiv3.xml config file for the following settings (in Xpath notation) and ensure that they either match the defaults, or the install data.
- config/juddi/nodeId, default = uddi:juddi.apache.org:node1
- config/juddi/rootBusinessId, default = uddi:juddi.apache.org:businesses-asf
<% }
%>