Hi I finally managed to get most of the build working. But there were things like which version to use and where to start that always trouble me. Also after seeing this thread someone had mailed me about the difficulties he had faced while building axis and how he had abandoned that idea. So I guess making a small documentation to talk about building axis is required. It is there in Developer's-guide. But it is kinda outdated. So i am attaching a step by step process of doing the build. Also included is the recommended version for each of the required/optional components. I would realise appreciate if you can take a look at this and say if it is ok. I will then go ahead and make the required changes to the docs/build.xml.
Thanks Vidyanand. -----Original Message----- From: Vidyanand Murunikkara Sent: Wednesday, November 20, 2002 12:40 PM To: [EMAIL PROTECTED] Subject: RE: Few questions on the build Thanks Dims and i finally figured out what was wrong with my environment for running saaj PackageTests. I had a activation.jar in the jre/lib/ext :-) Vidyanand. -----Original Message----- From: Davanum Srinivas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: RE: Few questions on the build Here's a list of jars in my xml-axis\java\lib directory. (See http://xml.apache.org/axis/dist/1_0/dependencies.html for URL's) activation.jar jcert-1_0_3.jar jnet-1_0_3.jar jsse-1_0_3.jar junit-3.8.1.jar mail-1_3.jar mailapi-1_3.jar servlet.jar xercesImpl-2_4_0.jar xml-apis-2_4_0.jar Thanks, dims --- Vidyanand Murunikkara <[EMAIL PROTECTED]> wrote: > Thanks Tom > > 1. I have confirmed that the build needs mailapi.jar to compile. Classes > like DefaultTypeMappingImpl seem to have depenendency on it. So we will > need to change the build file. > a) Does it mean we will add mailapi.jar to the lib directory? > Since activation.jar is not present I presume it is not > required to be added > b) If attachments are meant to be required should we remove all > the excludes for compiling in build.xml which depend on > attachments being present. > > 2. I cant figure out whats wrong. But i end getting up the error message > again. > > Thanks. > Vidyanand > -----Original Message----- > From: Tom Jordahl [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 6:14 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Few questions on the build > > > Vidyanand, > > 1. I usually run with all the optional components except security. > Feel free to add comments to the build.xml and documentation if you > discover a dependency in the tests that should be documented. Or fix up > the code to not require the dependency. > > 2. I don't know why this would happen, probably missing a jar file. SAAJ > probably requires some of the attachment jars, which are optional in the > build. > > 3. I develop with JDK 1.3.1. There are no mandated versions (1.3 or > higher is probably all we need). Sticking with 1.3 will prevent you > from coding any 1.4 dependencies, so I recommend doing that. > > 4. We should NOT care about the parser we use. JAXP is all we require. > It would be good to have someone using a parser that is not Xerces. I > used Xerces 1.4.4, but recently switched to 2.x. > > Hope this helps. > > -- > Tom Jordahl > Macromedia Server Development > > > > -----Original Message----- > From: Vidyanand Murunikkara [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 7:55 PM > To: [EMAIL PROTECTED] > Subject: Few questions on the build > > > Hi > > 1) In the build.xml there is some notes about optional components. Are > these required to be in every developers machine? I needed to add > mailapi.jar to the lib directory to get it compiling. But it is supposed > to be an optional component. Am I missing something ? > > 2) I tried running "ant clean all-tests" after adding mailapi.jar to the > lib directory. I end up getting stuck at running the > tests.saaj.PackageTests. I get a UnsupportedDataTypeException from JAF. > Again is there somethign possibly wrong with my environment. > > 3) I use JDK 1.4 for development. Is that ok or does Axis mandate a JDK > 1.3.1 ? > > 4. THe developer's guide requires xerces to be present. Since I use JDK > 1.4 I already have a JAXP compliant parser. Is that good enough ? ( I > have read in one of the threads that xerces is preferred ). > > Thanx for taking a look at this and hoping to hear soon :-) > Vidyanand. ===== Davanum Srinivas - http://xml.apache.org/~dims/ __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com
Assumptions about your environment. 1. You have a JDK1.3.1+ installed. 2. You have ant 1.5+ installed. Building axis and running all tests without any optional components. ################################################################### 1. download the xml-axis project from cvs. ( http://xml.apache.org/axis/cvs.html) 2. Download activation.jar to $(axis.home)/java/lib. ( http://java.sun.com/products/javabeans/glasgow/jaf.html ) version recommened : 1.0.2 3. Download mailapi.jar to $(axis.home)/java/lib. ( http://java.sun.com/products/javamail/) version recommended : 1.3 4. You should be able to do able to run "ant compile" now from $(axis.home)/java/. 5. To run "ant all-tests" you will need to add junit.jar to your ant installations lib directory. It is not sufficient that you keep it in $(axis.home)/java/lib. If not in ant lib it conks out saying it cannot create task/type of type: junit. http://www.junit.org/index.htm Recommended version 3.8+ With Servlet.jar ################################################################### 1. Download required jars (servlet.jar) to $(axis.home)/java/lib. (http://java.sun.com/products/servlet/) Axis supports only Java Servlet 2.2 specs. With JSSE ################################################################### 1. Download the required jars( jsse.jar, jnet.jar,jcert.jar ) to $(axis.home)/java/lib. (http://java.sun.com/products/jsse/) Recommended version: 1.0.3 With Jimi ################################################################### 1. Download JimiProClasses.zip ( http://java.sun.com/products/jimi/) With Castor. ################################################################### 1. Download the jar for castor-xml ( http://castor.exolab.org). Recommended version : 0.9.4.1 With Commons-httpclient. ################################################################### 1. Download the jar( commons-httpclient) (http://jakarta.apache.org/commons/httpclient/) Recommened version : 2.0-alpah2 With xml-security ################################################################### 1. Download required jar (xmlsec.jar) to $(axis.home)/java/lib. (http://xml.apache.org/security/) Recommended Version: 1.0.4+ Note : In JDK 1.3.1 I had xmlsec.jar in the lib directory but security.present wont get set to true I tried doign a javap on org.apache.xml.security.Init and i get Error : No binary file 'FuncLoader' But in JDK1.4 it seems to work fine. 2. To run "ant all-tests" you will need xalan.jar (http://xml.apache.org/xalan-j/) Recommended Version: 2.4.0