[wsas-java-dev] svn commit r11834 - in trunk/wsas/java/modules/samples: . MTOM MTOM/conf MTOM/src/org/wso2/wsas/sample/mtom/client MTOM/src/org/wso2/wsas/sample/mtom/services MTOM/wsdl

svn at wso2.org svn at wso2.org
Fri Jan 4 00:15:04 PST 2008


Author: saminda
Date: Fri Jan  4 00:14:33 2008
New Revision: 11834

Log:

Fixed MTOM sample 


Added:
   trunk/wsas/java/modules/samples/MTOM/conf/services.xml
   trunk/wsas/java/modules/samples/MTOM/run-client.sh
Modified:
   trunk/wsas/java/modules/samples/MTOM/build.xml
   trunk/wsas/java/modules/samples/MTOM/conf/codegen.xml
   trunk/wsas/java/modules/samples/MTOM/pom.xml
   trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/client/Client.java
   trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/services/MTOMService.java
   trunk/wsas/java/modules/samples/MTOM/wsdl/MTOMSample.wsdl
   trunk/wsas/java/modules/samples/MTOM/wso2wsas-samples-mtom.iml
   trunk/wsas/java/modules/samples/pom.xml

Modified: trunk/wsas/java/modules/samples/MTOM/build.xml
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/build.xml	(original)
+++ trunk/wsas/java/modules/samples/MTOM/build.xml	Fri Jan  4 00:14:33 2008
@@ -1,114 +1,89 @@
 <!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements. See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership. The ASF licenses this file
-  ~ to you 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
+  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ 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.
+  ~ 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.
   -->
-<project name="mtom" basedir="." default="build-all">
 
-    <property environment="env"/>
-    <property name="build.dir" value="target"/>
-    <property name="client.dir" value="${build.dir}/client"/>
-    <property name="service.dir" value="${build.dir}/service"/>
+<project default="build-all">
 
     <property name="wso2wsas.home" value="../../"/>
     <property name="lib" value="${wso2wsas.home}/lib"/>
     <property name="repo.location" value="${wso2wsas.home}/repository"/>
-    <property name="classes" value="target/classes"/>
+    <property name="temp.dir" value="temp"/>
+    <property name="classes" value="${temp.dir}/classes"/>
     <property name="src" value="src"/>
     <property name="gen.src" value="target/generated/src"/>
+    <property name="services" value="services"/>
 
-    <!-- USE AXIS2_HOME FOR THIS -->
-    <property name="lib.dir" value="../lib"/>
-
-    <path id="class.path">
-        <fileset dir="../../lib">
-            <include name="**/*.jar"/>
+    <path id="axis2.class.path">
+        <pathelement path="${java.class.path}"/>
+        <fileset dir="${wso2wsas.home}">
+            <include name="lib/*.jar"/>
         </fileset>
     </path>
 
     <target name="init" depends="clean">
+
+        <mkdir dir="${temp.dir}"/>
         <mkdir dir="${classes}"/>
-        <mkdir dir="${service.dir}"/>
+        <mkdir dir="${services}"/>
         <mkdir dir="${gen.src}"/>
     </target>
 
+    <target name="clean">
+        <delete dir="${temp.dir}"/>
+        <delete dir="${gen.src}"/>
+    </target>
+
     <target name="generate-source" depends="init">
         <java classname="org.wso2.utils.codegen.CodegenHelper" fork="true">
             <arg value="./conf/codegen.xml"/>
-            <classpath refid="class.path"/>
-        </java>
-    </target>
-
-    <target name="check-parameters">
-		<condition property="parameters.set">
-			<and>
-				<isset property="dest" />
-				<isset property="file" />
-			</and>
-		</condition>
-		<!-- This is a hack to get an if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
-		<antcall target="print-usage" />
-	</target>
-
-	<target name="print-usage" unless="parameters.set">
-		<echo message="ant run.client -Dfile &lt;file to be transferred&gt;  -Ddest &lt;name of the destination file&gt;" />
-	</target>
-    
-    <!-- Run Client -->
-    <target name="run.client" depends="check-parameters,build-all" if="parameters.set">
-        <!-- Accept two arguments from the command line, Also use the class.path set earlier -->
-        <java classname="org.wso2.wsas.sample.mtom.client.Client" fork="true">
-            <arg value="-file"/>
-            <arg value="${file}"/>
-            <arg value="-dest"/>
-            <arg value="${dest}"/>
-            <classpath>
-                <fileset dir="${wso2wsas.home}/lib">
-                    <include name="**/*.jar"/>
-                </fileset>
-                <dirset dir="${classes}"/>
-            </classpath>
+            <classpath refid="axis2.class.path"/>
         </java>
     </target>
 
-    <target name="build-all" depends="generate-source">
-        <mkdir dir="${service.dir}/classes"/>
+    <target name="compile-all" depends="generate-source">
         <javac debug="on" destdir="${classes}">
             <src path="${src}"/>
             <src path="${gen.src}"/>
-            <classpath refid="class.path"/>
+            <classpath refid="axis2.class.path"/>
         </javac>
+    </target>
 
-        <copy toDir="${service.dir}/classes/META-INF" failonerror="false">
-            <fileset dir="${gen.src}/../resources">
-                <include name="*.xml"/>
-                <include name="*.wsdl"/>
-                <include name="*.xsd"/>
+    <target name="build-service" depends="compile-all">
+        <property name="mtom.dir" value="${temp.dir}/mtom"/>
+        <mkdir dir="${mtom.dir}"/>
+
+        <mkdir dir="${mtom.dir}/META-INF"/>
+        <copy file="conf/services.xml" tofile="${mtom.dir}/META-INF/services.xml"/>
+        <copy file="wsdl/MTOMSample.wsdl" tofile="${mtom.dir}/META-INF/MTOMSample.wsdl"/>
+        <copy file="wsdl/xmime.xsd" tofile="${mtom.dir}/META-INF/xmime.xsd"/>
+        <copy toDir="${mtom.dir}">
+            <fileset dir="${classes}">
+                <include name="**/*.class"/>
             </fileset>
         </copy>
-        <copy toDir="${service.dir}/classes/">
-            <fileset dir="${classes}"/>
-        </copy>
-        <jar destfile="${service.dir}/sample-mtom.aar">
-            <fileset excludes="**/Test.class" dir="${service.dir}/classes"/>
+
+        <jar destfile="${services}/MTOMService.aar">
+            <fileset dir="${mtom.dir}"/>
         </jar>
+    </target>
+
 
+    <target name="build-all" depends="build-service">
         <echo message="Copying the created aar files in to the repository"/>
         <copy toDir="${repo.location}/services">
-            <fileset dir="${service.dir}">
+            <fileset dir="${services}">
                 <include name="**/*.aar"/>
             </fileset>
         </copy>
@@ -124,11 +99,4 @@
             </fileset>
         </copy>
     </target>
-
-    <target name="clean">
-        <delete dir="${build.dir}"/>
-        <delete dir="${gen.src}"/>
-        <delete dir="target"/>
-        <delete dir="repository"/>
-    </target>
-</project>
+</project>
\ No newline at end of file

Modified: trunk/wsas/java/modules/samples/MTOM/conf/codegen.xml
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/conf/codegen.xml	(original)
+++ trunk/wsas/java/modules/samples/MTOM/conf/codegen.xml	Fri Jan  4 00:14:33 2008
@@ -21,21 +21,21 @@
         <o>./target/generated</o>
         <p>org.wso2.wsas.sample.mtom.client</p>
         <d>adb</d>
-        <ap/>
+        <u/>
+        <uw/>
         <ns2p>http://www.wso2.org/types=org.wso2.www.types.client</ns2p>
         <Emp>org.wso2.wsas.sample.mtom.mapper.client</Emp>
     </set>
 
-    <!--<set>
+    <set>
         <uri>./wsdl/MTOMSample.wsdl</uri>
         <o>./target/generated</o>
         <p>org.wso2.wsas.sample.mtom.services</p>
         <d>adb</d>
         <ss/>
-        <sd/>
         <ssi/>
-        <ap/>
+        <uw/>
         <ns2p>http://www.wso2.org/types=org.wso2.www.types.services</ns2p>
         <Emp>org.wso2.wsas.sample.mtom.mapper.services</Emp>
-    </set>-->
+    </set>
 </config>
\ No newline at end of file

Added: trunk/wsas/java/modules/samples/MTOM/conf/services.xml
==============================================================================
--- (empty file)
+++ trunk/wsas/java/modules/samples/MTOM/conf/services.xml	Fri Jan  4 00:14:33 2008
@@ -0,0 +1,11 @@
+<serviceGroup>
+    <service name="MTOMSample">
+        <parameter name="useOriginalwsdl">true</parameter>
+        <messageReceivers>
+            <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"
+                             class="org.wso2.wsas.sample.mtom.services.MTOMSampleMessageReceiverInOut"/>
+        </messageReceivers>
+        <parameter locked="false" name="ServiceClass">org.wso2.wsas.sample.mtom.services.MTOMService</parameter>
+        <!--All public methods of the service class are exposed by default-->
+    </service>
+</serviceGroup>
\ No newline at end of file

Modified: trunk/wsas/java/modules/samples/MTOM/pom.xml
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/pom.xml	(original)
+++ trunk/wsas/java/modules/samples/MTOM/pom.xml	Fri Jan  4 00:14:33 2008
@@ -27,7 +27,7 @@
     <modelVersion>4.0.0</modelVersion>
     <artifactId>wso2wsas-samples-mtom</artifactId>
     <packaging>jar</packaging>
-    <name>Sample/Chad</name>
+    <name>Sample/MTOM</name>
     <description>This is the MTOM sample</description>
 
     <build>
@@ -53,8 +53,6 @@
                         <phase>generate-sources</phase>
                         <configuration>
                             <tasks>
-                                <property name="keys.dir" value="${basedir}/target/keys"/>
-                                <delete dir="${keys.dir}"/>
                                 <java classname="org.wso2.utils.codegen.CodegenHelper"
                                       fork="true">
                                     <arg value="./conf/codegen.xml"/>
@@ -62,49 +60,6 @@
                                     <classpath refid="maven.compile.classpath"/>
                                     <classpath refid="maven.runtime.classpath"/>
                                 </java>
-                                <!-- Generate keys for the samples -->
-                                <mkdir dir="${keys.dir}"/>
-                                <genkey alias="client" storepass="testing" keyalg="RSA"
-                                        keystore="${keys.dir}/client.jks"
-                                        validity="99999">
-                                    <dname>
-                                        <param name="CN" value="WSO2WSAS"/>
-                                        <param name="OU" value="SAMPLE"/>
-                                        <param name="O" value="WSO2"/>
-                                        <param name="C" value="LK"/>
-                                    </dname>
-                                </genkey>
-                                <genkey alias="service" storepass="testing" keyalg="RSA"
-                                        keystore="${keys.dir}/service.jks"
-                                        validity="99999">
-                                    <dname>
-                                        <param name="CN" value="WSO2WSAS"/>
-                                        <param name="OU" value="SAMPLE"/>
-                                        <param name="O" value="WSO2"/>
-                                        <param name="C" value="LK"/>
-                                    </dname>
-                                </genkey>
-                                <echo message="############## Importing Certificates ###################"/>
-                                <java classname="org.wso2.utils.security.KeyImporter">
-                                    <arg value="${keys.dir}/service.jks"/>
-                                    <arg value="testing"/>
-                                    <arg value="service"/>
-                                    <arg value="${keys.dir}/client.jks"/>
-                                    <arg value="testing"/>
-                                    <classpath refid="maven.dependency.classpath"/>
-                                    <classpath refid="maven.compile.classpath"/>
-                                    <classpath refid="maven.runtime.classpath"/>
-                                </java>
-                                <java classname="org.wso2.utils.security.KeyImporter">
-                                    <arg value="${keys.dir}/client.jks"/>
-                                    <arg value="testing"/>
-                                    <arg value="client"/>
-                                    <arg value="${keys.dir}/service.jks"/>
-                                    <arg value="testing"/>
-                                    <classpath refid="maven.dependency.classpath"/>
-                                    <classpath refid="maven.compile.classpath"/>
-                                    <classpath refid="maven.runtime.classpath"/>
-                                </java>
                             </tasks>
                         </configuration>
                         <goals>

Added: trunk/wsas/java/modules/samples/MTOM/run-client.sh
==============================================================================
--- (empty file)
+++ trunk/wsas/java/modules/samples/MTOM/run-client.sh	Fri Jan  4 00:14:33 2008
@@ -0,0 +1,90 @@
+#!/bin/sh
+# -----------------------------------------------------------------------------
+#
+# Environment Variable Prequisites
+#
+#   WSO2WSAS_HOME   Home of WSO2 WSAS installation. If not set I will  try
+#                   to figure it out.
+#
+#   JAVA_HOME       Must point at your Java Development Kit installation.
+#
+# NOTE: Borrowed generously from Apache Tomcat startup scripts.
+
+# if JAVA_HOME is not set we're not happy
+if [ -z "$JAVA_HOME" ]; then
+  echo "You must set the JAVA_HOME variable before running WSO2 WSAS."
+  exit 1
+fi
+
+# OS specific support.  $var _must_ be set to either true or false.
+cygwin=false
+os400=false
+case "`uname`" in
+CYGWIN*) cygwin=true;;
+OS400*) os400=true;;
+esac
+
+# resolve links - $0 may be a softlink
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+  ls=`ls -ld "$PRG"`
+  link=`expr "$ls" : '.*-> \(.*\)$'`
+  if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+  else
+    PRG=`dirname "$PRG"`/"$link"
+  fi
+done
+
+# Get standard environment variables
+PRGDIR=`dirname "$PRG"`
+
+# Only set WSO2WSAS_HOME if not already set
+[ -z "$WSO2WSAS_HOME" ] && WSO2WSAS_HOME=`cd "$PRGDIR/../.." ; pwd`
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$WSO2WSAS_HOME" ] && WSO2WSAS_HOME=`cygpath --unix "$WSO2WSAS_HOME"`
+  [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For OS400
+if $os400; then
+  # Set job priority to standard for interactive (interactive - 6) by using
+  # the interactive priority - 6, the helper threads that respond to requests
+  # will be running at the same priority as interactive jobs.
+  COMMAND='chgjob job('$JOBNAME') runpty(6)'
+  system $COMMAND
+
+  # Enable multi threading
+  QIBM_MULTI_THREADED=Y
+  export QIBM_MULTI_THREADED
+fi
+
+# update classpath
+CLIENT_CLASSPATH=""
+for f in "$WSO2WSAS_HOME"/lib/*.jar
+do
+  CLIENT_CLASSPATH=$CLIENT_CLASSPATH:$f
+done
+CLIENT_CLASSPATH=$CLIENT_CLASSPATH:$CLASSPATH
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
+  WSO2WSAS_HOME=`cygpath --absolute --windows "$WSO2WSAS_HOME"`
+  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
+fi
+
+echo Using WSO2WSAS_HOME: $WSO2WSAS_HOME
+echo Using JAVA_HOME    : $JAVA_HOME
+
+CLIENT_CLASSPATH="$WSO2WSAS_HOME/samples/MTOM/temp/classes":\
+"$WSO2WSAS_HOME/samples/MTOM/conf":$CLIENT_CLASSPATH
+
+$JAVA_HOME/bin/java -Dwso2wsas.home="$WSO2WSAS_HOME" -classpath "$CLIENT_CLASSPATH" \
+-Djava.endorsed.dirs="$WSO2WSAS_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed" \
+org.wso2.wsas.sample.mtom.client.Client $*

Modified: trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/client/Client.java
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/client/Client.java	(original)
+++ trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/client/Client.java	Fri Jan  4 00:14:33 2008
@@ -19,28 +19,27 @@
 
 package org.wso2.wsas.sample.mtom.client;
 
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.rmi.RemoteException;
-import java.util.List;
-import java.util.Map;
-
-import javax.activation.DataHandler;
-import javax.activation.FileDataSource;
-
 import org.apache.axis2.Constants;
 import org.apache.axis2.util.CommandLineOption;
 import org.apache.axis2.util.CommandLineOptionParser;
 import org.apache.axis2.util.OptionsValidator;
-import org.wso2.wsas.sample.mtom.client.MTOMSampleMTOMSampleSOAP11Port_httpStub;
+import org.w3.www._2005._05.xmlmime.Base64Binary;
+import org.wso2.utils.NetworkUtils;
+
+import javax.activation.DataHandler;
+import javax.activation.FileDataSource;
+import java.io.File;
+import java.net.SocketException;
+import java.rmi.RemoteException;
+import java.util.List;
+import java.util.Map;
 
 
 public class Client {
 
-    /**
-     * @param args
-     * @throws Exception
-     */
+    private static String OPTION_FILE_NAME = "fileName";
+    private static String OPTION_FILE = "file";
+
     public static void main(String[] args) throws Exception {
         CommandLineOptionParser optionsParser = new CommandLineOptionParser(
                 args);
@@ -48,83 +47,51 @@
                 .getInvalidOptions(new OptionsValidator() {
                     public boolean isInvalid(CommandLineOption option) {
                         String optionType = option.getOptionType();
-                        return !("dest".equalsIgnoreCase(optionType) || "file"
-                                .equalsIgnoreCase(optionType));
+                        return !(OPTION_FILE_NAME.equalsIgnoreCase(optionType) ||
+                                 OPTION_FILE.equalsIgnoreCase(optionType));
                     }
                 });
-
         if ((invalidOptionsList.size() > 0) || (args.length != 4)) {
             // printUsage();
             System.out.println("Invalid Parameters.");
             return;
         }
-
         Map optionsMap = optionsParser.getAllOptions();
-
         CommandLineOption fileOption = (CommandLineOption) optionsMap
-                .get("file");
+                .get(OPTION_FILE_NAME);
         CommandLineOption destinationOption = (CommandLineOption) optionsMap
-                .get("dest");
-        File file = new File(fileOption.getOptionValue());
-        if (file.exists()) {
-            transferFile(file, destinationOption.getOptionValue());
+                .get(OPTION_FILE);
+        File dstFile = new File(destinationOption.getOptionValue());
+        if (dstFile.exists() && dstFile.isFile()) {
+            transferFile(fileOption.getOptionValue(), dstFile);
         } else {
-            throw new FileNotFoundException();
+            System.out.println(
+                    OPTION_FILE + " option contains an invalid file or file does not exist");
+            System.exit(0);
         }
+
     }
 
-    public static void transferFile(File file, String destination)
-            throws RemoteException {
+    public static void transferFile(String fileName, File file)
+            throws RemoteException, SocketException {
         // uncomment the following if you need to capture the messages from
         // TCPMON. Please look at http://ws.apache.org/commons/tcpmon/tcpmontutorial.html
         // to learn how to setup tcpmon
-        MTOMSampleMTOMSampleSOAP11Port_httpStub serviceStub = new MTOMSampleMTOMSampleSOAP11Port_httpStub(
-                //"http://localhost:8081/axis2/rest/MTOMSample"
-        );
+        MTOMSampleStub stub = new MTOMSampleStub(
+                "http://" + NetworkUtils.getLocalHostname() + ":9762/services/MTOMSample");
 
         // Enable MTOM in the client side
-        serviceStub._getServiceClient().getOptions().setProperty(
-                Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
+        stub._getServiceClient().getOptions()
+                .setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
         //Increase the time out when sending large attachments
-        serviceStub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10000);
-
-        // Uncomment and fill the following if you want to have client side file
-        // caching switched ON.
-        /*
-           * serviceStub._getServiceClient().getOptions().setProperty(
-           * Constants.Configuration.CACHE_ATTACHMENTS, Constants.VALUE_TRUE);
-           * serviceStub._getServiceClient().getOptions().setProperty(
-           * Constants.Configuration.ATTACHMENT_TEMP_DIR, "your temp dir");
-           * serviceStub._getServiceClient().getOptions().setProperty(
-           * Constants.Configuration.FILE_SIZE_THRESHOLD, "4000");
-           */
-
-        // Populating the code generated beans
-        MTOMSampleMTOMSampleSOAP11Port_httpStub.AttachmentRequest attachmentRequest =
-                new MTOMSampleMTOMSampleSOAP11Port_httpStub.AttachmentRequest();
-        MTOMSampleMTOMSampleSOAP11Port_httpStub.AttachmentType attachmentType =
-                new MTOMSampleMTOMSampleSOAP11Port_httpStub.AttachmentType();
-        MTOMSampleMTOMSampleSOAP11Port_httpStub.Base64Binary base64Binary =
-                new MTOMSampleMTOMSampleSOAP11Port_httpStub.Base64Binary();
-
-        // Creating a javax.activation.FileDataSource from the input file.
+        stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(10000);
+        Base64Binary base64Binary = new Base64Binary();
         FileDataSource fileDataSource = new FileDataSource(file);
-
-        // Create a dataHandler using the fileDataSource. Any implementation of
-        // javax.activation.DataSource interface can fit here.
         DataHandler dataHandler = new DataHandler(fileDataSource);
         base64Binary.setBase64Binary(dataHandler);
-        MTOMSampleMTOMSampleSOAP11Port_httpStub.ContentType_type0 param =
-                new MTOMSampleMTOMSampleSOAP11Port_httpStub.ContentType_type0();
-        param.setContentType_type0(dataHandler.getContentType());
-        base64Binary.setContentType(param);
-        attachmentType.setBinaryData(base64Binary);
-        attachmentType.setFileName(destination);
-        attachmentRequest.setAttachmentRequest(attachmentType);
-
-        MTOMSampleMTOMSampleSOAP11Port_httpStub.AttachmentResponse response =
-                serviceStub.attachment(attachmentRequest);
-        System.out.println(response.getAttachmentResponse());
+        String staus = stub.attachment(fileName, base64Binary);
+        System.out.println("====== Response Status =========");
+        System.out.println(staus);
     }
 
 }

Modified: trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/services/MTOMService.java
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/services/MTOMService.java	(original)
+++ trunk/wsas/java/modules/samples/MTOM/src/org/wso2/wsas/sample/mtom/services/MTOMService.java	Fri Jan  4 00:14:33 2008
@@ -18,42 +18,71 @@
  */
 package org.wso2.wsas.sample.mtom.services;
 
-import java.io.File;
-import java.io.FileOutputStream;
-
-import javax.activation.DataHandler;
-
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.ws.axis2.mtomsample.AttachmentResponse;
 import org.apache.ws.axis2.mtomsample.AttachmentType;
 import org.w3.www._2005._05.xmlmime.Base64Binary;
+import org.wso2.wsas.ServerConstants;
+
+import javax.activation.DataHandler;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
 
 /**
  * MTOMServiceSkeleton java skeleton for the axisService
  */
-public class MTOMService {
+public class MTOMService implements MTOMSampleSkeletonInterface {
 
-	/**
-	 * 
-	 * @param param0
-	 * @throws Exception 
-	 * 
-	 */
-	public org.apache.ws.axis2.mtomsample.AttachmentResponse attachment(
-			org.apache.ws.axis2.mtomsample.AttachmentRequest param0)
-			throws Exception {
-		AttachmentType attachmentRequest = param0.getAttachmentRequest();
-		Base64Binary binaryData = attachmentRequest.getBinaryData();
-		DataHandler dataHandler = binaryData.getBase64Binary();
-		File file = new File(
-				attachmentRequest.getFileName());
-		FileOutputStream fileOutputStream = new FileOutputStream(file);
-		dataHandler.writeTo(fileOutputStream);
-		fileOutputStream.flush();
-		fileOutputStream.close();
-		
-		AttachmentResponse response = new AttachmentResponse();
-		response.setAttachmentResponse("File saved succesfully.");
-		return response;
-	}
+    private static Log log = LogFactory.getLog(MTOMService.class);
 
+    /**
+     * Binary data is saved in server {$wso2wsas.home/tmp/mtom} appending the fileName
+     *
+     * @param fileName   file name
+     * @param binaryData DataHandler object wrapper
+     * @return String : status; Success of Fail
+     */
+    public String attachment(String fileName, Base64Binary binaryData) {
+        String mtomWriteDirString =
+                System.getProperty(ServerConstants.WSO2WSAS_HOME) + File.separator +
+                "tmp" + File.separator + "mtom" + File.separator;
+        File mtomWriteDir = new File(mtomWriteDirString);
+        mtomWriteDir.mkdirs();
+        File fileToWrite = new File(mtomWriteDir, fileName);
+        if (!fileToWrite.exists()) {
+            try {
+                fileToWrite.createNewFile();
+                writeFile(fileToWrite, binaryData);
+                String msg = " File " + fileName + " has been successfully saved";
+                log.debug(msg);
+                return msg;
+            } catch (IOException e) {
+                String msg = "Permission is denied to write the file";
+                log.error(msg, e);
+                return msg;
+            }
+        } else {
+            try {
+                writeFile(fileToWrite, binaryData);
+                String msg = " File " + fileName + " has been successfully saved";
+                log.debug(msg);
+                return msg;
+            } catch (IOException e) {
+                String msg = "Permission is denied to write the file";
+                log.error(msg, e);
+                return msg;
+            }
+        }
+    }
+
+    private void writeFile(File fileToWrite, Base64Binary binaryData) throws IOException {
+        OutputStream outStream = new FileOutputStream(fileToWrite);
+        DataHandler dataHandler = binaryData.getBase64Binary();
+        dataHandler.writeTo(outStream);
+        outStream.flush();
+        outStream.close();
+    }
 }

Modified: trunk/wsas/java/modules/samples/MTOM/wsdl/MTOMSample.wsdl
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/wsdl/MTOMSample.wsdl	(original)
+++ trunk/wsas/java/modules/samples/MTOM/wsdl/MTOMSample.wsdl	Fri Jan  4 00:14:33 2008
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <!--
   ~ Licensed to the Apache Software Foundation (ASF) under one
   ~ or more contributor license agreements. See the NOTICE file
@@ -32,7 +33,7 @@
 			attributeFormDefault="qualified" elementFormDefault="qualified"
 			targetNamespace="http://ws.apache.org/axis2/mtomsample/">
 			<xsd:import namespace="http://www.w3.org/2005/05/xmlmime"
-				schemaLocation="../wsdl/xmime.xsd" />
+				schemaLocation="xmime.xsd" />
 			<xsd:complexType name="AttachmentType">
 				<xsd:sequence>
 					<xsd:element minOccurs="0" name="fileName"
@@ -88,12 +89,12 @@
 		</wsdl:operation>
 	</wsdl:binding>
 	<wsdl:service name="MTOMSample">
-		<wsdl:port name="MTOMSampleSOAP11port_http"
+		<wsdl:port name="MTOMSampleSOAP11Port"
 			binding="tns:MTOMServiceSOAP11Binding">
 			<soap:address
 				location="http://127.0.0.1:9762/services/MTOMSample" />
 		</wsdl:port>
-		<wsdl:port name="MTOMSampleSOAP12port_http"
+		<wsdl:port name="MTOMSampleSOAP12Port"
 			binding="tns:MTOMServiceSOAP12Binding">
 			<soap12:address
 				location="http://127.0.0.1:9762/services/MTOMSample" />

Modified: trunk/wsas/java/modules/samples/MTOM/wso2wsas-samples-mtom.iml
==============================================================================
--- trunk/wsas/java/modules/samples/MTOM/wso2wsas-samples-mtom.iml	(original)
+++ trunk/wsas/java/modules/samples/MTOM/wso2wsas-samples-mtom.iml	Fri Jan  4 00:14:33 2008
@@ -6,14 +6,19 @@
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
     <content url="file://$MODULE_DIR$">
       <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
-      <excludeFolder url="file://$MODULE_DIR$/target" />
+      <sourceFolder url="file://$MODULE_DIR$/target/generated/src" isTestSource="false" />
+      <excludeFolder url="file://$MODULE_DIR$/target/classes" />
+      <excludeFolder url="file://$MODULE_DIR$/target/generated/resources" />
+      <excludeFolder url="file://$MODULE_DIR$/target/keys" />
+      <excludeFolder url="file://$MODULE_DIR$/target/test-classes" />
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="wso2wsas-core" />
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/springframework/spring-web/1.2.8/spring-web-1.2.8.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/utils/wso2utils/SNAPSHOT/wso2utils-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -22,7 +27,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/utils/wso2utils/SNAPSHOT/wso2utils-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/springframework/spring-web/1.2.8/spring-web-1.2.8.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -31,7 +36,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/catalina/5.5.15/catalina-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/catalina/5.5.15/catalina-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -40,7 +45,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/sandesha2/sandesha2-core/1.3/sandesha2-core-1.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -49,7 +54,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ws/commons/axiom/axiom-api/SNAPSHOT/axiom-api-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/slf4j/slf4j-log4j12/1.0.1/slf4j-log4j12-1.0.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -58,7 +63,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/sandesha2/sandesha2-core/1.3/sandesha2-core-1.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -67,7 +72,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2/SNAPSHOT/axis2-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -76,7 +81,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/bcel/bcel/5.2/bcel-5.2.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -85,7 +90,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/slf4j/slf4j-log4j12/1.0.1/slf4j-log4j12-1.0.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/woden/woden-impl-dom/1.0-incubating-SNAPSHOT/woden-impl-dom-1.0-incubating-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -94,7 +99,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/opensaml/opensaml/1.1.406/opensaml-1.1.406.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -103,7 +108,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/mx4j/mx4j-jmx/3.0.1/mx4j-jmx-3.0.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-saaj-api/SNAPSHOT/axis2-saaj-api-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -112,7 +117,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/opensaml/opensaml/1.1.406/opensaml-1.1.406.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -121,7 +126,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-saaj-api/SNAPSHOT/axis2-saaj-api-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/com/sun/xml/bind/jaxb-impl/2.0.5/jaxb-impl-2.0.5.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -130,7 +135,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/tomcat-http/5.5.15/tomcat-http-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -139,7 +144,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/com/sun/xml/bind/jaxb-impl/2.0.5/jaxb-impl-2.0.5.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/mex/wso2mex/SNAPSHOT/wso2mex-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -148,7 +153,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/tomcat-http/5.5.15/tomcat-http-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xerces/xml-apis/2.8.0/xml-apis-2.8.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -157,7 +162,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0-M1/geronimo-activation_1.1_spec-1.0-M1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xalan/xalan/2.7.0/xalan-2.7.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -166,7 +171,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xerces/xml-apis/2.8.0/xml-apis-2.8.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/adminui/wso2adminui/SNAPSHOT/wso2adminui-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -175,7 +180,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xalan/xalan/2.7.0/xalan-2.7.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -184,7 +189,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -193,7 +198,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/mex/wso2mex/SNAPSHOT/wso2mex-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/neethi/neethi/SNAPSHOT/neethi-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -202,7 +207,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/poi/poi/3.0-FINAL/poi-3.0-FINAL.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -211,7 +216,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/xfer/wso2xfer/SNAPSHOT/wso2xfer-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -220,7 +225,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/neethi/neethi/SNAPSHOT/neethi-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/wrapper/wrapper/3.2.3/wrapper-3.2.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -229,7 +234,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/wrapper/wrapper/3.2.3/wrapper-3.2.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -238,7 +243,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/rampart/rampart-trust/SNAPSHOT/rampart-trust-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -247,7 +252,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/naming-factory/5.5.15/naming-factory-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -256,7 +261,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/rampart/rampart-trust/SNAPSHOT/rampart-trust-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -265,7 +270,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/woden/woden-impl-dom/1.0-incubating-SNAPSHOT/woden-impl-dom-1.0-incubating-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -274,7 +279,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/naming-factory/5.5.15/naming-factory-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/tracer/wso2tracer/SNAPSHOT/wso2tracer-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -283,7 +288,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-digester/commons-digester/1.2/commons-digester-1.2.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -292,7 +297,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/woden/woden-api/1.0-incubating-SNAPSHOT/woden-api-1.0-incubating-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/geronimo-spec/geronimo-spec-jms/1.1-rc4/geronimo-spec-jms-1.1-rc4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -301,7 +306,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-digester/commons-digester/1.2/commons-digester-1.2.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -310,7 +315,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-mtompolicy/SNAPSHOT/axis2-mtompolicy-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/tomcat-util/5.5.15/tomcat-util-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -319,7 +324,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ws/commons/axiom/axiom-impl/SNAPSHOT/axiom-impl-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ws/commons/axiom/axiom-api/SNAPSHOT/axiom-api-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -328,7 +333,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/bouncycastle/bcprov-jdk15/132/bcprov-jdk15-132.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -337,7 +342,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/geronimo-spec/geronimo-spec-jms/1.1-rc4/geronimo-spec-jms-1.1-rc4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/dataservice/wso2data-service/SNAPSHOT/wso2data-service-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -346,7 +351,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-jaxws-api/SNAPSHOT/axis2-jaxws-api-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -355,7 +360,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/tomcat-util/5.5.15/tomcat-util-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-metadata/SNAPSHOT/axis2-metadata-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -364,7 +369,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/bouncycastle/bcprov-jdk15/132/bcprov-jdk15-132.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/jibx/jibx-run/1.1.5/jibx-run-1.1.5.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -373,7 +378,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/dynamiccodegen/wso2dynamic-codegen/SNAPSHOT/wso2dynamic-codegen-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -382,7 +387,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/naming-factory-dbcp/5.5.15/naming-factory-dbcp-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -391,7 +396,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-clustering/SNAPSHOT/axis2-clustering-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/tomcat/tribes/6.0.10/tribes-6.0.10.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -400,7 +405,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/throttle/wso2throttle-core/SNAPSHOT/wso2throttle-core-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/woden/woden-api/1.0-incubating-SNAPSHOT/woden-api-1.0-incubating-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -409,7 +414,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/naming-factory-dbcp/5.5.15/naming-factory-dbcp-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xerces/xmlParserAPIs/2.6.0/xmlParserAPIs-2.6.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -418,7 +423,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/tomcat/tribes/6.0.10/tribes-6.0.10.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/dom4j/dom4j/1.6/dom4j-1.6.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -427,7 +432,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xerces/xmlParserAPIs/2.6.0/xmlParserAPIs-2.6.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis/axis-saaj/1.4/axis-saaj-1.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -436,7 +441,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/dom4j/dom4j/1.6/dom4j-1.6.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/xkms/xkms/SNAPSHOT/xkms-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -445,7 +450,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis/axis-saaj/1.4/axis-saaj-1.4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/ehcache/ehcache/1.1/ehcache-1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -454,7 +459,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/ehcache/ehcache/1.1/ehcache-1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/httpcomponents/httpcore/4.0-alpha6/httpcore-4.0-alpha6.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -463,7 +468,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-jws-api/SNAPSHOT/axis2-jws-api-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -472,7 +477,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-kernel/SNAPSHOT/axis2-kernel-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/sandesha2/sandesha2-client-constants/1.3/sandesha2-client-constants-1.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -481,7 +486,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/springframework/spring-context/1.2.8/spring-context-1.2.8.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -490,7 +495,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/sandesha2/sandesha2-client-constants/1.3/sandesha2-client-constants-1.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/mx4j/mx4j-jmx/2.1.1/mx4j-jmx-2.1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -499,7 +504,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/springframework/spring-context/1.2.8/spring-context-1.2.8.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/jibx/jibx-bind/1.1.5/jibx-bind-1.1.5.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -508,7 +513,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/adminui/wso2adminui/SNAPSHOT/wso2adminui-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -517,7 +522,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -526,7 +531,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/rampart/rampart-policy/SNAPSHOT/rampart-policy-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -535,7 +540,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/rampart/rampart-policy/SNAPSHOT/rampart-policy-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis/axis/1.4/axis-1.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -544,7 +549,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-spring/SNAPSHOT/axis2-spring-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -553,7 +558,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis/axis/1.4/axis-1.4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/jasper-compiler/5.5.15/jasper-compiler-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -562,17 +567,70 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar:///home/saminda/.m2/repository/annogen/annogen/0.1.0/annogen-0.1.0.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ws/commons/axiom/axiom-impl/SNAPSHOT/axiom-impl-SNAPSHOT.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar:///home/saminda/.m2/repository/org/springframework/spring-aop/1.2.8/spring-aop-1.2.8.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar:///home/saminda/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar:///home/saminda/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar:///home/saminda/.m2/repository/org/apache/derby/derby/10.1.1.0/derby-10.1.1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module" module-name="wso2wsas-core" />
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/jasper-compiler/5.5.15/jasper-compiler-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -581,7 +639,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/codegen/wso2codegen/SNAPSHOT/wso2codegen-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -590,7 +648,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/annogen/annogen/0.1.0/annogen-0.1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -599,7 +657,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/springframework/spring-aop/1.2.8/spring-aop-1.2.8.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xerces/resolver/2.8.0/resolver-2.8.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -608,7 +666,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xmlbeans/xbean/2.1.0/xbean-2.1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -617,7 +675,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/hibernate/hibernate/3.1.3/hibernate-3.1.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -626,7 +684,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/derby/derby/10.1.1.0/derby-10.1.1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/au/com/bytecode/opencsv/opencsv/1.8/opencsv-1.8.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -635,7 +693,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.0-alpha6/httpcore-nio-4.0-alpha6.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -644,7 +702,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/codegen/wso2codegen/SNAPSHOT/wso2codegen-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -653,7 +711,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/naming-resources/5.5.15/naming-resources-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -662,7 +720,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xmlbeans/xbean/2.1.0/xbean-2.1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/xmlunit/xmlunit/1.0/xmlunit-1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -671,7 +729,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xerces/resolver/2.8.0/resolver-2.8.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -680,7 +738,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/hibernate/hibernate/3.1.3/hibernate-3.1.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/rampart/rampart-core/SNAPSHOT/rampart-core-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -689,7 +747,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-clustering/SNAPSHOT/axis2-clustering-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -698,7 +756,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0/geronimo-stax-api_1.0_spec-1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -707,7 +765,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/XmlSchema-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -716,7 +774,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/naming-resources/5.5.15/naming-resources-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/dynamiccodegen/wso2dynamic-codegen/SNAPSHOT/wso2dynamic-codegen-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -725,7 +783,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/xmlunit/xmlunit/1.0/xmlunit-1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -734,7 +792,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -743,7 +801,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/httpcomponents/httpcore/4.0-alpha5/httpcore-4.0-alpha5.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/jasper-runtime/5.5.15/jasper-runtime-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -752,7 +810,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/rampart/rampart-core/SNAPSHOT/rampart-core-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/servlets-default/5.5.15/servlets-default-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -761,7 +819,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0/geronimo-stax-api_1.0_spec-1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/catalina-optional/5.5.15/catalina-optional-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -770,7 +828,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.0.5/jaxb-xjc-2.0.5.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -779,7 +837,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/jasper-runtime/5.5.15/jasper-runtime-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/tomcat-coyote/5.5.15/tomcat-coyote-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -788,7 +846,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/sandesha2/sandesha2-policy/1.3/sandesha2-policy-1.3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -797,7 +855,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/a1deployer/wso2a1deployer/SNAPSHOT/wso2a1deployer-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/ws-commons/tcpmon/1.0/tcpmon-1.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -806,7 +864,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/servlets-default/5.5.15/servlets-default-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -815,7 +873,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/catalina-optional/5.5.15/catalina-optional-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -824,7 +882,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.0.5/jaxb-xjc-2.0.5.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -833,7 +891,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/tomcat-coyote/5.5.15/tomcat-coyote-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/mx4j/mx4j/2.1.1/mx4j-2.1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -842,7 +900,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/sandesha2/sandesha2-policy/1.3/sandesha2-policy-1.3.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -851,7 +909,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -860,7 +918,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/ws-commons/tcpmon/1.0/tcpmon-1.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ws/security/wss4j/SNAPSHOT/wss4j-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -869,7 +927,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-jaxws-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -878,7 +936,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -887,7 +945,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-discovery/commons-discovery/0.2/commons-discovery-0.2.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -896,7 +954,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/xkms/xkms/SNAPSHOT/xkms-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/jasper-compiler-jdt/5.5.15/jasper-compiler-jdt-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -905,7 +963,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/ant/ant-nodeps/1.7.0/ant-nodeps-1.7.0.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -914,7 +972,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -923,7 +981,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/backport-util-concurrent/backport-util-concurrent/2.1/backport-util-concurrent-2.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -932,7 +990,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-spring/SNAPSHOT/axis2-spring-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -941,7 +999,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-jws-api/SNAPSHOT/axis2-jws-api-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -950,7 +1008,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-discovery/commons-discovery/0.2/commons-discovery-0.2.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/httpcomponents/httpcore-niossl/4.0-alpha6/httpcore-niossl-4.0-alpha6.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -959,7 +1017,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ws/security/wss4j/SNAPSHOT/wss4j-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/xfer/wso2xfer/SNAPSHOT/wso2xfer-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -968,7 +1026,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/jasper-compiler-jdt/5.5.15/jasper-compiler-jdt-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-jibx/SNAPSHOT/axis2-jibx-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -977,7 +1035,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/ant/ant-nodeps/1.7.0/ant-nodeps-1.7.0.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/antlr/antlr/2.7.6rc1/antlr-2.7.6rc1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -986,7 +1044,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1/geronimo-jms_1.1_spec-1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-jaxws-api/SNAPSHOT/axis2-jaxws-api-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -995,7 +1053,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1004,7 +1062,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/backport-util-concurrent/backport-util-concurrent/2.1/backport-util-concurrent-2.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-mtompolicy/SNAPSHOT/axis2-mtompolicy-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1013,7 +1071,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/tracer/wso2tracer/SNAPSHOT/wso2tracer-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/tomcat/juli/6.0.10/juli-6.0.10.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1022,7 +1080,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/axis2/axis2-metadata/SNAPSHOT/axis2-metadata-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1031,7 +1089,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/antlr/antlr/2.7.6rc1/antlr-2.7.6rc1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/throttle/wso2throttle-core/SNAPSHOT/wso2throttle-core-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1040,7 +1098,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/wso2/statistics/wso2statistics/SNAPSHOT/wso2statistics-SNAPSHOT.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/rhino/js/1.6R5/js-1.6R5.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1049,7 +1107,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/tomcat/tomcat-apr/5.5.15/tomcat-apr-5.5.15.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1058,7 +1116,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/tomcat/juli/6.0.10/juli-6.0.10.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/a1deployer/wso2a1deployer/SNAPSHOT/wso2a1deployer-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1067,7 +1125,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.0-alpha5/httpcore-nio-4.0-alpha5.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/springframework/spring-core/1.2.8/spring-core-1.2.8.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1076,7 +1134,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/rhino/js/1.6R5/js-1.6R5.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-jaxws-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1085,7 +1143,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/tomcat/tomcat-apr/5.5.15/tomcat-apr-5.5.15.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/wso2/statistics/wso2statistics/SNAPSHOT/wso2statistics-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1094,7 +1152,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/springframework/spring-core/1.2.8/spring-core-1.2.8.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/axis2/axis2/SNAPSHOT/axis2-SNAPSHOT.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1103,7 +1161,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/httpcomponents/httpcore-niossl/4.0-alpha5/httpcore-niossl-4.0-alpha5.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1/geronimo-annotation_1.0_spec-1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1112,7 +1170,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1121,7 +1179,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1/geronimo-annotation_1.0_spec-1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/mx4j/mx4j-tools/2.1.1/mx4j-tools-2.1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1130,7 +1188,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/commons-modeler/commons-modeler/1.1/commons-modeler-1.1.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/commons-modeler/commons-modeler/1.1/commons-modeler-1.1.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
@@ -1139,7 +1197,7 @@
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar:///home/azeez/.m2/repository/org/springframework/spring-beans/1.2.8/spring-beans-1.2.8.jar!/" />
+          <root url="jar:///home/saminda/.m2/repository/org/springframework/spring-beans/1.2.8/spring-beans-1.2.8.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />

Modified: trunk/wsas/java/modules/samples/pom.xml
==============================================================================
--- trunk/wsas/java/modules/samples/pom.xml	(original)
+++ trunk/wsas/java/modules/samples/pom.xml	Fri Jan  4 00:14:33 2008
@@ -74,7 +74,7 @@
         <module>DataService</module>
         <module>NodeManagement</module>
         <module>MEX</module>
-        <!--<module>MTOM</module>-->
+        <module>MTOM</module>
         <module>XKMS</module>
         <module>Xfer</module>
         <module>sts-sample</module>