juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcunn...@apache.org
Subject svn commit: r687594 - in /webservices/juddi/trunk/juddi-tomcat: ./ build.xml juddi.xml package.properties pom.xml
Date Thu, 21 Aug 2008 07:11:13 GMT
Author: tcunning
Date: Thu Aug 21 00:11:13 2008
New Revision: 687594

URL: http://svn.apache.org/viewvc?rev=687594&view=rev
Log:
bug:JUDDI-130
Add tomcat bundler for JUDDI.     Uses derby as a store.

Added:
    webservices/juddi/trunk/juddi-tomcat/
    webservices/juddi/trunk/juddi-tomcat/build.xml
    webservices/juddi/trunk/juddi-tomcat/juddi.xml
    webservices/juddi/trunk/juddi-tomcat/package.properties
    webservices/juddi/trunk/juddi-tomcat/pom.xml

Added: webservices/juddi/trunk/juddi-tomcat/build.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-tomcat/build.xml?rev=687594&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-tomcat/build.xml (added)
+++ webservices/juddi/trunk/juddi-tomcat/build.xml Thu Aug 21 00:11:13 2008
@@ -0,0 +1,42 @@
+<project name="juddi-tomcat" default="package-tomcat" basedir=".">
+	<property file="package.properties"/>
+	<property name="common.lib.dir" value="${basedir}/target/tomcat/apache-tomcat-${apache.tomcat.version}/common/lib"/>
+	<property name="webapps.dir" value="${basedir}/target/tomcat/apache-tomcat-${apache.tomcat.version}/webapps"/>
+
+	<target name="unzip-tomcat">
+		<mkdir dir="${basedir}/target/tomcat"/>
+
+		<unzip dest="${basedir}/target/tomcat" src="${dependency.tomcat.zip}"/>
+		<copy file="${dependency.juddi.war}" tofile="${webapps.dir}/juddi.war"/>
+		<unzip dest="${webapps.dir}/juddi" src="${dependency.juddi.war}"/>
+		<copy file="${dependency.soap-console.war}" tofile="${webapps.dir}/juddi-console.war"/>
+	</target>
+	
+	<target name="copy-resources" depends="unzip-tomcat">
+	
+		<copy file="juddi.xml" todir="${basedir}/target/tomcat/apache-tomcat-${apache.tomcat.version}/conf/Catalina/localhost"/>
+		<copy file="${dependency.derby.jar}" todir="${common.lib.dir}"/>
+		<copy file="${dependency.axis.jar}" todir="${common.lib.dir}"/>
+		<copy file="${dependency.axis-saaj.jar}" todir="${common.lib.dir}"/>
+		<copy file="${dependency.axis-jaxrpc.jar}" todir="${common.lib.dir}"/>
+		<copy file="${dependency.commons-discovery.jar}" todir="${common.lib.dir}"/>
+		<replace file="${webapps.dir}/juddi/WEB-INF/juddi.properties">
+			<replacetoken>juddi-sql/mysql</replacetoken>
+			<replacevalue>juddi-sql/derby</replacevalue>
+		</replace>
+		<replace file="${webapps.dir}/juddi/WEB-INF/juddi.properties">
+			<replacetoken>#juddi.jdbcUrl=jdbc:mysql://localhost/juddi</replacetoken>
+			<replacevalue>juddi.jdbcUrl=jdbc:derby:juddi-derby-test-db;create=true</replacevalue>
+		</replace>
+	        <replace file="${webapps.dir}/juddi/WEB-INF/juddi.properties">
+                        <replacetoken>#juddi.jdbcDriver=com.mysql.jdbc.Driver</replacetoken>
+                        <replacevalue>juddi.jdbcDriver=org.apache.derby.jdbc.EmbeddedDriver</replacevalue>
+                </replace>	
+	</target>
+	
+	<target name="package-tomcat" depends="copy-resources">
+		<zip destfile="target/juddi-tomcat-bundle.zip" 
+			basedir="target/tomcat"/>
+			
+	</target>
+</project>

Added: webservices/juddi/trunk/juddi-tomcat/juddi.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-tomcat/juddi.xml?rev=687594&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-tomcat/juddi.xml (added)
+++ webservices/juddi/trunk/juddi-tomcat/juddi.xml Thu Aug 21 00:11:13 2008
@@ -0,0 +1,18 @@
+<?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"> 
+<Context path="/juddi" docBase="juddi" debug="5" reloadable="true" 
+crossContext="true"> 
+<Logger className="org.apache.catalina.logger.FileLogger" 
+prefix="localhost_juddiDB_log" suffix=".txt" timestamp="true"/> 
+<!-- the Resource element will probably work better for you on Tomcat 5+ if you 
+simply use a Resource only tag with xml attributes as opposed to the nested 
+ResourceParams and parameter 
+elements --> 
+<Resource name="jdbc/juddiDB" auth="Container" type="javax.sql.DataSource" 
+maxActive="100" maxIdle="30" maxWait="10000" username="juddi" password="123456" 
+driverClassName="org.apache.derby.jdbc.EmbeddedDriver" 
+url="jdbc:derby:juddi-derby-test-db;create=true">
+</Resource>
+</Context> 
+

Added: webservices/juddi/trunk/juddi-tomcat/package.properties
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-tomcat/package.properties?rev=687594&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-tomcat/package.properties (added)
+++ webservices/juddi/trunk/juddi-tomcat/package.properties Thu Aug 21 00:11:13 2008
@@ -0,0 +1 @@
+apache.tomcat.version=5.5.23

Added: webservices/juddi/trunk/juddi-tomcat/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-tomcat/pom.xml?rev=687594&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-tomcat/pom.xml (added)
+++ webservices/juddi/trunk/juddi-tomcat/pom.xml Thu Aug 21 00:11:13 2008
@@ -0,0 +1,100 @@
+<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>SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.juddi</groupId>
+  <artifactId>juddi-tomcat</artifactId>
+  <version>SNAPSHOT</version>
+  <name>juddi-tomcat Maven Packaging</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>commons-discovery</groupId>
+      <artifactId>commons-discovery</artifactId>
+      <version>0.2</version>
+    </dependency>
+    <dependency>
+      <groupId>axis</groupId>
+      <artifactId>axis-saaj</artifactId>
+      <version>1.4</version>
+    </dependency>
+    <dependency>
+      <groupId>axis</groupId>
+      <artifactId>axis-jaxrpc</artifactId>
+      <version>1.4</version>
+    </dependency>
+    <dependency>
+      <groupId>axis</groupId>
+      <artifactId>axis</artifactId>
+      <version>1.4</version>
+    </dependency>
+    <dependency>
+      <artifactId>apache-tomcat</artifactId>
+      <groupId>tomcat</groupId>
+      <version>5.5.23</version> 
+      <type>zip</type>
+    </dependency>
+    <dependency>
+     <artifactId>juddi-web</artifactId>
+     <groupId>org.apache.juddi</groupId>
+     <version>SNAPSHOT</version> 
+     <type>war</type>
+    </dependency>
+    <dependency>
+     <artifactId>juddi</artifactId>
+     <groupId>org.apache.juddi</groupId>
+     <version>SNAPSHOT</version>
+     <type>jar</type>
+    </dependency>
+    <dependency>
+     <artifactId>juddi-soapconsole</artifactId>
+     <groupId>org.apache.juddi</groupId>
+     <version>SNAPSHOT</version>
+     <type>war</type>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.derby</groupId>
+      <artifactId>derby</artifactId>
+      <version>10.1.2.1</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+<plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>compile</id>
+            <phase>compile</phase>
+            <configuration>
+              <tasks>
+		<property name="dependency.soap-console.war" value="${maven.dependency.org.apache.juddi.juddi-soapconsole.war.path}"/>
+		<property name="dependency.axis.jar" value="${maven.dependency.axis.axis.jar.path}"/>
+		<property name="dependency.axis-saaj.jar" value="${maven.dependency.axis.axis-saaj.jar.path}"/>
+		<property name="dependency.axis-jaxrpc.jar" value="${maven.dependency.axis.axis-jaxrpc.jar.path}"/>
+		<property name="dependency.commons-discovery.jar" value="${maven.dependency.commons-discovery.commons-discovery.jar.path}"/>
+		<property name="dependency.derby.jar" value="${maven.dependency.org.apache.derby.derby.jar.path}"/>
+		<property name="dependency.tomcat.zip" value="${maven.dependency.tomcat.apache-tomcat.zip.path}"/>
+		<echo>${dependency.tomcat.zip}"</echo>
+		<property name="dependency.juddi.war" value="${maven.dependency.org.apache.juddi.juddi-web.war.path}"/>
+		<property name="dependency.juddi.jar" value="${maven.dependency.org.apache.juddi.juddi.jar.path}"/>
+
+		<ant antfile="${basedir}/build.xml">
+                  <target name="package-tomcat"/>
+                </ant>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>



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


Mime
View raw message