You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by tc...@apache.org on 2008/11/12 06:06:17 UTC

svn commit: r713265 - in /webservices/juddi/branches/v3_trunk/juddi-web: ./ src/ src/main/ src/main/resources/ src/main/webapp/ src/main/webapp/WEB-INF/ src/main/webapp/WEB-INF/lib/

Author: tcunning
Date: Tue Nov 11 21:06:15 2008
New Revision: 713265

URL: http://svn.apache.org/viewvc?rev=713265&view=rev
Log:
JUDDI-157
Add sample juddi-web, taken from juddi-2.0.  Needs work.

Added:
    webservices/juddi/branches/v3_trunk/juddi-web/
    webservices/juddi/branches/v3_trunk/juddi-web/pom.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/resources/
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jboss-web.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jonas-web.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi-users.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi.properties
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-discovery-LICENSE.txt
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-logging-LICENSE.txt
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/wsdl4j-LICENSE.txt
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/resin-web.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/server-config.wsdd
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/web.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/weblogic.xml
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/happyjuddi.jsp
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/index.html
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/juddi.css
    webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/uddiget.jsp

Added: webservices/juddi/branches/v3_trunk/juddi-web/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/pom.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/pom.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/pom.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,45 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.juddi</groupId>
+    <artifactId>juddi-parent</artifactId>
+    <version>3.0.0.SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.juddi</groupId>
+  <artifactId>juddi-web</artifactId>
+  <packaging>war</packaging>
+  <version>3.0.0.SNAPSHOT</version>
+  <name>juddi-web Maven Webapp</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <artifactId>juddi-core</artifactId>
+      <groupId>org.apache.juddi</groupId>
+      <version>3.0.0.SNAPSHOT</version> 
+        <exclusions>
+          <exclusion>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+          </exclusion>
+        </exclusions>
+    </dependency>
+    
+<!--    <dependency>
+      <artifactId>juddi-ws</artifactId>
+      <groupId>org.apache.juddi</groupId>
+      <version></version> 
+        <exclusions>
+          <exclusion>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+          </exclusion>
+        </exclusions>
+    </dependency>
+--> 
+  </dependencies>
+
+  <build>
+    <finalName>juddi</finalName>
+  </build>
+</project>

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jboss-web.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jboss-web.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jboss-web.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jboss-web.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE jboss-web PUBLIC 
+	"-//JBoss//DTD Web Application 2.3V2//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
+
+<jboss-web>
+
+    <resource-ref>
+        <res-ref-name>jdbc/juddiDB</res-ref-name>
+        <jndi-name>java:/juddiDB</jndi-name>
+    </resource-ref>
+
+</jboss-web>

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jonas-web.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jonas-web.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jonas-web.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/jonas-web.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE jonas-web-app PUBLIC 
+    "-//ObjectWeb//DTD JOnAS Web App 3.1//EN"
+    "http://jonas.objectweb.org/dtds/jonas-web-app_3_1.dtd">
+
+<jonas-web-app>
+
+    <jonas-resource>
+        <res-ref-name>jdbc/juddiDB</res-ref-name>
+        <jndi-name>jdbc/juddiDB</jndi-name>
+    </jonas-resource>
+
+</jonas-web-app>
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi-users.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi-users.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi-users.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi-users.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<juddi-users>
+  <user userid="sviens" password="password" />
+  <user userid="juddi" password="password" />
+</juddi-users>

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi.properties
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi.properties?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi.properties (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/juddi.properties Tue Nov 11 21:06:15 2008
@@ -0,0 +1,74 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin@juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any 
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# jUDDI DataSource to use
+juddi.isUseDataSource=true
+juddi.dataSource=java:comp/env/jdbc/juddiDB
+
+# straight JDBC
+#juddi.jdbcDriver=com.mysql.jdbc.Driver
+#juddi.jdbcUrl=jdbc:mysql://localhost/juddi
+#juddi.jdbcUsername=juddi
+#juddi.jdbcPassword=juddi
+
+# jUDDI database creation
+juddi.isCreateDatabase=true
+#juddi.tablePrefix=JUDDI_
+juddi.databaseExistsSql=select * from ${prefix}BUSINESS_ENTITY
+juddi.sqlFiles=juddi-sql/mysql/create_database.sql,juddi-sql/insert_publishers.sql
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+ 
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.registry.proxy.Axis2Transport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+#java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+#java.naming.provider.url=jnp://localhost:1099
+#java.naming.factory.url.pkgs=org.jboss.naming

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-discovery-LICENSE.txt
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-discovery-LICENSE.txt?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-discovery-LICENSE.txt (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-discovery-LICENSE.txt Tue Nov 11 21:06:15 2008
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-logging-LICENSE.txt
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-logging-LICENSE.txt?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-logging-LICENSE.txt (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/commons-logging-LICENSE.txt Tue Nov 11 21:06:15 2008
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.
+

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/wsdl4j-LICENSE.txt
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/wsdl4j-LICENSE.txt?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/wsdl4j-LICENSE.txt (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/lib/wsdl4j-LICENSE.txt Tue Nov 11 21:06:15 2008
@@ -0,0 +1,202 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.
+

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/resin-web.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/resin-web.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/resin-web.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/resin-web.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<web-app xmlns="http://caucho.com/ns/resin">
+
+<!--  See http://wiki.caucho.com/Resin-web.xml for info about this file.  The
+      [type> element value specified below is for a MySQL database.  If you're 
+      not using MySQL you'll need to determine the correct value for your DBMS. -->
+
+  <database>
+    <jndi-name>jdbc/juddiDB</jndi-name>
+    <driver>
+      <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
+      <url>jdbc:mysql://{host:port}/{database}</url>
+      <user>{db_user_id}</user>
+      <password>{db_password}</password>
+    </driver>
+  </database>
+
+</web-app> 
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/server-config.wsdd
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/server-config.wsdd?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/server-config.wsdd (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/server-config.wsdd Tue Nov 11 21:06:15 2008
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+  <service name="urn:uddi-org:api_v3" provider="Handler">
+    <parameter name="handlerClass" value="org.apache.juddi.transport.axis.AxisHandler"/>
+  </service>
+  
+  <service name="urn:uddi-org:api_v2" provider="Handler">
+    <parameter name="handlerClass" value="org.apache.juddi.transport.axis.AxisHandler"/>
+  </service>  
+  
+  <service name="urn:uddi-org:api" provider="Handler">
+    <parameter name="handlerClass" value="org.apache.juddi.transport.axis.AxisHandler"/>
+  </service>
+  
+  <service name="urn:juddi-org:api_v1" provider="Handler">
+    <parameter name="handlerClass" value="org.apache.juddi.transport.axis.AxisHandler"/>
+  </service>
+
+</deployment>

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/web.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/web.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/web.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+/*
+ * Copyright 2001-2004 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.
+ */
+ -->
+<!DOCTYPE web-app PUBLIC 
+	"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
+	"http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+  <display-name>jUDDI</display-name>
+  <description>
+    jUDDI is Java-based implmementation of a UDDI version 2.0 registry.
+  </description>
+
+  <!--
+    This Servlet is used to create, initialize and cleanup 
+    resources used by jUDDI. It ABSOLUTELY MUST be loaded first.
+   -->
+  <servlet>
+    <servlet-name>jUDDIRegistryServlet</servlet-name>
+    <display-name>jUDDI Registry Servlet</display-name>
+    <servlet-class>org.apache.juddi.registry.RegistryServlet</servlet-class>
+    <init-param>
+      <param-name>juddi.propertiesFile</param-name>
+      <param-value>/WEB-INF/juddi.properties</param-value>
+    </init-param>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+
+  <servlet>
+    <servlet-name>jUDDIAdminService</servlet-name>
+    <display-name>jUDDI Admin Service</display-name>
+    <servlet-class>org.apache.juddi.registry.service.AdminService</servlet-class>
+  </servlet>
+  
+  <servlet>
+    <servlet-name>UDDIV2InquiryService</servlet-name>
+    <display-name>UDDI Version 2.0 Inquiry Service</display-name>
+    <servlet-class>org.apache.juddi.registry.service.InquiryService</servlet-class>
+  </servlet>
+  
+  <servlet>
+    <servlet-name>UDDIV2PublishService</servlet-name>
+    <display-name>UDDI Version 2.0 Publish Service</display-name>
+    <servlet-class>org.apache.juddi.registry.service.PublishService</servlet-class>
+  </servlet>
+  
+  <!--  uncomment if you want to enable making calls in juddi with rmi 
+  <servlet>
+  	<servlet-name>RegisterServicesWithJNDI</servlet-name>
+  	<servlet-class>org.apache.juddi.registry.rmi.RegistrationService</servlet-class>
+  	<load-on-startup>1</load-on-startup>
+  </servlet> 
+  -->
+ 
+  <servlet-mapping>
+    <servlet-name>jUDDIAdminService</servlet-name>
+    <url-pattern>/admin</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>UDDIV2InquiryService</servlet-name>
+    <url-pattern>/inquiry</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>UDDIV2PublishService</servlet-name>
+    <url-pattern>/publish</url-pattern>
+  </servlet-mapping>
+
+  <welcome-file-list id="WelcomeFileList">
+    <welcome-file>index.jsp</welcome-file>
+    <welcome-file>index.html</welcome-file>
+  </welcome-file-list>
+  
+  <resource-ref>
+    <description>jUDDI DataSource</description>
+    <res-ref-name>jdbc/juddiDB</res-ref-name>
+    <res-type>javax.sql.DataSource</res-type>
+    <res-auth>Container</res-auth>
+    <res-sharing-scope>Shareable</res-sharing-scope>
+  </resource-ref>
+  
+</web-app>

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/weblogic.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/weblogic.xml?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/weblogic.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/WEB-INF/weblogic.xml Tue Nov 11 21:06:15 2008
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE weblogic-web-app PUBLIC 
+	"-//BEA Systems, Inc.//DTD Web Application 6.0//EN" 
+	"http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd">
+
+<weblogic-web-app>
+
+    <reference-descriptor>
+        <resource-description>
+            <res-ref-name>jdbc/juddiDB</res-ref-name>
+            <jndi-name>juddiDB</jndi-name>
+        </resource-description>
+    </reference-descriptor>
+    
+</weblogic-web-app>

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/happyjuddi.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/happyjuddi.jsp?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/happyjuddi.jsp (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/happyjuddi.jsp Tue Nov 11 21:06:15 2008
@@ -0,0 +1,353 @@
+<%@ page session="false"
+         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,
+                 org.apache.juddi.registry.RegistryServlet,
+                 org.apache.juddi.registry.RegistryEngine"
+%>
+<%
+/*
+ * Copyright 2002,2004 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.
+ */
+%>
+<%!
+
+    /**
+     * 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://ws.apache.org/juddi/">jUDDI@Apache</a></font></div>
+<h1>jUDDI</h1>
+
+<div class="announcement">
+<p>
+<h3>Happy jUDDI!</h3>
+
+<h4>jUDDI Version Information</h4>
+<pre>
+<b>jUDDI Version:</b> <%= org.apache.juddi.util.Release.getRegistryVersion() %>
+<b>UDDI Version:</b>  <%= org.apache.juddi.util.Release.getUDDIVersion() %>
+</pre>
+        
+<h4>jUDDI Dependencies: Class Files &amp; Libraries</h4>
+<pre>
+<%
+    //creates the schema if not there
+    RegistryEngine registry = RegistryServlet.getRegistry();
+    registry.init();
+    
+    String[] classArray = {
+      "org.apache.juddi.IRegistry",
+      "org.apache.axis.transport.http.AxisServlet",
+      "org.apache.commons.discovery.Resource",
+      "org.apache.commons.logging.Log",
+      "org.apache.log4j.Layout",
+      "javax.xml.soap.SOAPMessage",
+      "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 &amp; Properties Files</h4>
+<pre>
+<%
+    String[] resourceArray = {
+      //"log4j.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";
+    
+    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>
+
+<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>
+
+</div>
+</body>
+</html>
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/index.html?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/index.html (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/index.html Tue Nov 11 21:06:15 2008
@@ -0,0 +1,25 @@
+<?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 Web Services Registry</title>
+<link rel="stylesheet" href="juddi.css"/>
+</head>
+<body>
+<div class="header" align="right"><a href="http://ws.apache.org/juddi/" target="_top">jUDDI@Apache</a></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="http://ws.apache.org/juddi/">Visit</a> the Apache-jUDDI Home Page</li>
+</ul>
+<hr/>
+<div class="nav" align="right">If the jUDDI validation page returns some kind of error, it is invariably a configuration issue.</div>
+<table width="100%" border="0">
+<tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">&nbsp;</div></td></tr>
+</table>
+
+</body>
+</html>
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/juddi.css
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/juddi.css?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/juddi.css (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/juddi.css Tue Nov 11 21:06:15 2008
@@ -0,0 +1,149 @@
+body {
+  margin:      0px 10px 10px 10px;
+  font-family: "Trebuchet MS", sans-serif;
+  font-size:   10pt;
+  background:  #FFF;
+  color:       #000;
+}
+
+h1 {
+	font-family: "Trebuchet MS", sans-serif;
+	background: #00005A;
+	font-weight: normal;
+	color: White;
+	padding: 5px 10px;
+	margin: 0px -10px 10px -10px;
+}
+
+h2 {
+	font-family: "Trebuchet MS", sans-serif;
+	color: #00005A;
+}
+
+h3 {
+	font-family: "Trebuchet MS", sans-serif;
+	color: #00005A;
+}
+
+h4 {
+	font-family: "Trebuchet MS", sans-serif;
+	color: #00005A;
+}
+
+.sidebar {
+	border: 1px solid #00005A;
+	background: #EEE;
+	padding: 5px;
+} 
+
+pre.code_sample {
+  background: #EEE;
+  padding: 5px;
+}
+
+dt {
+  font-weight: bold;
+}
+
+dl {
+  margin-left: 3em;
+}
+
+td {
+  font-size:   10pt;
+}
+
+DIV.announcement dl {
+  margin-left: 0px;
+}
+
+div.LINK {
+  margin: 0px -10px;
+  padding: 2px 10px;
+  color: #000;
+  font-size: 10pt;
+}
+
+div.LINK A {
+  color: #6d0000;
+  text-decoration: none;
+}
+
+div.LINK A:hover {
+  color: #006200;
+  text-decoration: underline;
+}
+
+div.NAV {
+  background: #000;
+  margin: 0px -10px;
+  padding: 2px 10px;
+  color: #CCC;
+  font-size: 12pt;
+  font-weight: bold;
+}
+
+div.NAV A {
+  color: #CCC;
+  text-decoration: none;
+}
+
+div.NAV A:hover {
+  color: #FFF;
+}
+
+.msgs {
+	background-color: #FFD;
+	color: #005500;
+}
+
+.ednote {
+  color: #999;
+  font-style: italic;
+}
+
+.cvs_id {
+  color: #999;
+  font-size: 8pt;
+  border-top: solid 1px #999;
+}
+
+.author {
+  font-size: 14pt;
+  font-style: italic;
+}
+
+var {
+  font-style: italic;
+  color: #900;
+}
+
+div.footer { 
+  color: #666699; margin: 0px -10px; padding: 2px 10px; font-size: 8pt; font-weight: normal; 
+}
+
+div.footer a {
+  color: #666699; text-decoration: none; 
+}
+
+div.footer a:hover { 
+  color: #666699; text-decoration: underline; 
+}
+
+div.header { 
+  background: #000;
+  margin: 0px -10px;
+  padding: 2px 10px;
+  color: #CCC;
+  font-size: 8pt;
+  font-weight: bold;
+}
+
+div.header a {
+  color: #CCC;
+  text-decoration: none;
+}
+
+div.header a:hover { 
+  color: #FFF;
+}
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/uddiget.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/uddiget.jsp?rev=713265&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/uddiget.jsp (added)
+++ webservices/juddi/branches/v3_trunk/juddi-web/src/main/webapp/uddiget.jsp Tue Nov 11 21:06:15 2008
@@ -0,0 +1,162 @@
+<%@ page contentType="text/xml;charset=utf-8"
+         session="false"
+         import="org.w3c.dom.Element,
+                 org.apache.juddi.util.xml.XMLUtils,
+                 org.apache.juddi.handler.HandlerMaker,
+                 org.apache.juddi.handler.IHandler,
+                 org.apache.juddi.datatype.RegistryObject,
+                 org.apache.juddi.datatype.business.BusinessEntity,
+                 org.apache.juddi.datatype.response.BusinessDetail,
+                 org.apache.juddi.datatype.service.BusinessService,
+                 org.apache.juddi.datatype.response.ServiceDetail,
+                 org.apache.juddi.datatype.tmodel.TModel,
+                 org.apache.juddi.datatype.response.TModelDetail,
+                 org.apache.juddi.datatype.binding.BindingTemplate,
+                 org.apache.juddi.datatype.response.BindingDetail,
+                 org.apache.juddi.registry.RegistryServlet,
+                 org.apache.juddi.registry.RegistryEngine,
+                 org.apache.juddi.error.RegistryException"               
+%>
+<%!
+    
+    BusinessEntity getBusinessEntity(String key)
+    	throws RegistryException
+    {
+      BusinessEntity business = null;
+      
+      RegistryEngine registry = RegistryServlet.getRegistry();
+      BusinessDetail detail = registry.getBusinessDetail(key);
+      if (detail != null)
+      {
+    		java.util.Vector collection = detail.getBusinessEntityVector();
+    		if ((collection != null) && (collection.size() > 0))
+    			business = (BusinessEntity)collection.elementAt(0);
+      }
+    	
+      return business;
+    }
+    
+    BusinessService getBusinessService(String key)
+    	throws RegistryException
+    {
+      BusinessService service = null;
+      
+    	RegistryEngine registry = RegistryServlet.getRegistry();
+    	ServiceDetail detail = registry.getServiceDetail(key);
+    	if (detail != null)
+    	{
+    		java.util.Vector collection = detail.getBusinessServiceVector();
+    		if ((collection != null) && (collection.size() > 0))
+    			service = (BusinessService)collection.elementAt(0);
+    	}
+    	
+    	return service;
+    }
+
+    BindingTemplate getBindingTemplate(String key)
+    	throws RegistryException
+    {
+      BindingTemplate binding = null;
+      
+    	RegistryEngine registry = RegistryServlet.getRegistry();
+    	BindingDetail detail = registry.getBindingDetail(key);
+    	if (detail != null)
+    	{
+    		java.util.Vector collection = detail.getBindingTemplateVector();
+    		if ((collection != null) && (collection.size() > 0))
+    			binding = (BindingTemplate)collection.elementAt(0);
+    	}
+    	
+    	return binding;
+    }
+
+    TModel getTModel(String key)
+    	throws RegistryException
+    {
+      TModel tModel = null;
+      
+    	RegistryEngine registry = RegistryServlet.getRegistry();
+    	TModelDetail detail = registry.getTModelDetail(key);
+    	if (detail != null)
+    	{
+    		java.util.Vector collection = detail.getTModelVector();
+    		if ((collection != null) && (collection.size() > 0))
+    			tModel = (TModel)collection.elementAt(0);
+    	}
+    	
+    	return tModel;
+    }
+    
+    Element getElement(RegistryObject object)
+    {
+      Element element = XMLUtils.newRootElement();
+      
+      HandlerMaker maker = HandlerMaker.getInstance();
+      IHandler handler = maker.lookup(object.getClass().getName().toLowerCase());
+      handler.marshal(object,element);
+
+      return (Element)element.getFirstChild();
+    }
+      
+%>
+<%
+
+    try
+    {
+	    String businessKey = request.getParameter("businesskey");
+	    if (businessKey != null)
+	    {
+	      BusinessEntity object = getBusinessEntity(businessKey);
+	      if (object == null)
+	      	throw new RegistryException("The Business Key specified " +
+	      		"did not match with any known Business Entities.");
+	
+	      Element element = getElement(object);
+	      out.print(XMLUtils.toString(element));
+	    }
+	    	
+	    String serviceKey = request.getParameter("servicekey");
+	    if (serviceKey != null)
+	    {
+	      BusinessService object = getBusinessService(serviceKey);
+	      if (object == null)
+	      	throw new RegistryException("The Service Key specified " +
+	      		"did not match with any known Business Services.");
+	      	
+	      Element element = getElement(object);
+	      out.print(XMLUtils.toString(element));
+	    }
+	
+	    String bindingKey = request.getParameter("bindingkey");
+	    if (bindingKey != null)
+	    {
+	      BindingTemplate object = getBindingTemplate(bindingKey);
+	      if (object == null)
+	      	throw new RegistryException("The Binding Template Key " +
+	      		"specified did not match with any known Binding Templates.");
+	
+	      Element element = getElement(object);
+	      out.print(XMLUtils.toString(element));
+	    }
+		
+	    String tModelKey = request.getParameter("tmodelkey");
+	    if (tModelKey != null)
+	    {
+	      TModel object = getTModel(tModelKey);
+	      if (object == null)
+	      	throw new RegistryException("The TModel Key specified " +
+	      		"did not match with any known TModels.");
+	
+	      Element element = getElement(object);
+	      out.print(XMLUtils.toString(element));
+	    }
+		}
+		catch(RegistryException regex)
+		{
+			//out.println();	
+		}
+		catch(Exception regex)
+		{
+			//out.println();	
+		}
+%>



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org