Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 55286 invoked from network); 20 Aug 2006 22:37:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Aug 2006 22:37:42 -0000 Received: (qmail 1104 invoked by uid 500); 20 Aug 2006 22:37:40 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 1056 invoked by uid 500); 20 Aug 2006 22:37:40 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 1043 invoked by uid 99); 20 Aug 2006 22:37:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 15:37:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.116.97.229] (HELO mail.dudney.net) (66.116.97.229) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 15:37:39 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.dudney.net (Postfix) with ESMTP id 0733D2FF48A for ; Sun, 20 Aug 2006 16:37:13 -0600 (MDT) Received: from mail.dudney.net ([127.0.0.1]) by localhost (mini.dudney.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17425-05 for ; Sun, 20 Aug 2006 16:36:59 -0600 (MDT) Received: from [192.168.1.100] (c-24-9-189-43.hsd1.wa.comcast.net [24.9.189.43]) by mail.dudney.net (Postfix) with ESMTP id EC8372FF46D for ; Sun, 20 Aug 2006 16:36:58 -0600 (MDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: <20060817185115.63202.qmail@web31709.mail.mud.yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <15BA70B0-136A-44B9-926F-AF7738315362@apache.org> Content-Transfer-Encoding: 7bit From: Bill Dudney Subject: Re: m2 build - validating Date: Sun, 20 Aug 2006 16:36:57 -0600 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new at dudney.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi All, Sorry its taken me so long to get this posted. I had a bunch of travel related headaches thur and fri of last week... I've adopted http://issues.apache.org/jira/browse/GERONIMO-2326 as the JIRA to track the first part of the problem (the datasource deployment stuff) with the current trunk and deployment. I've just attached a patch to the issue that makes a small change to the CAR plugin to include RAR's in the dependencies that are copied into the assembly repository. I am fairly sure this needs to be done as the RAR's end up in the repository on 1.1 and the DatabaseInfo class requires them to be there (albeit with a comment that says EVIL!!! :). However there might be something going on there I'm not aware of. One quick note on this change. The RAR's do end up copied into the CAR (without this change) but, the DatabaseInfo class is expecting (at least) the Derby related RAR's to be directly in the repo. Take a look here http://tinyurl.com/jynnh. the list of *RAR_NAME fields are all used to load the RAR's directly from the repository (http:// tinyurl.com/kyhve getRAR static method on line 1036). As the comments says this is rather hard coded. I've not had time to get brain cells focused on the solution. Seems that we should be able to do some kind of maven magic though to find the tranql/tranql-connector/rar instead of hardcoding the path. But again I don't know the history so perhaps there is a reason for the EVIL :) So the patch attached to 2326 gets us almost there, but there is still the issue with the IncompatiblClassChangeError coming up. I posted a partial stack trace in the issue. Any pointers, thoughts or other things that could help me track that one down are most welcome. I have to bail for a couple of hours but will be back on line around 7:00MST for a bit. Also David J, if you could take a look at the pom changes and make sure they are in line with your recommendations. I could not find another car to have system-database depended on that would bring in the dependencies and system-database looked to be the most logical place to add add a jar dependency. I added the jar's to the gbean- deployer/pom.xml because the CNFExceptions were coming from classes in this package and again no obvious CAR to add to the mix. Thanks! bd- On Aug 17, 2006, at 3:07 PM, Jason Dillon wrote: > And it seems I have the magic incantation now :-) Going to see how > well I can cast it on the car plugin later today. > > --jason > > > On Aug 17, 2006, at 11:51 AM, anita kulshreshtha wrote: > >> >> >> --- Jason Dillon wrote: >> >>> IMO we should not overload the mechanism here, but define >>> new >>> >>> configuration elements that allow us to add the additional metadata >>> needed.... >> >> Bill, if you do not want to improve the existing car-maven- >> plugin, >> you will need to use the scope. >> >> just like how I added classpathPrefix to be used to >>> control the prefix for manifest entries. >> >> IMO, the classpath should be constructed dynamically using the >> transitive dependencies of the modules, i.e for j2ee-system config >> use >> dependencies of the system module. The way it is now is very hard to >> maintain. Every time a dependency is changed in the system module, >> most >> executable configurations must be updated manually. The current >> way of >> maintaining hard coded dependencies in the classPath element are only >> marginally better than maintaining a large string of the original >> implementaion. Adding prefix to these dependencies is trivial. >> >> Thanks >> Anita >> >> >>> >>> Then the m2 dependencies would only really be used to control build >>> order for cars. >>> >>> --jason >>> >>> >>> On Aug 17, 2006, at 8:59 AM, anita kulshreshtha wrote: >>> >>>> Oops.., the correct link is : >>>> >>>> http://mail-archives.apache.org/mod_mbox/geronimo-dev/200605.mbox/% >>> >>>> 3c20060523131245.44642.qmail@web31713.mail.mud.yahoo.com%3e >>>> >>>> Thanks >>>> Anita >>>> >>>> --- anita kulshreshtha wrote: >>>> >>>>> inline... >>>>> >>>>> --- David Jencks wrote: >>>>> >>>>>> >>>>>> On Aug 16, 2006, at 4:33 PM, Bill Dudney wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> i've been using the m2 build for several days now and I've >>>>> noticed >>>>>> >>>>>>> that while it works well there are several details that are >>> still >>>>> >>>>>>> not nailed down. Particularly I've been hitting lots of >>>>> dependency >>>>>> >>>>>>> issues around deployment. So what I've started doing is slogging >>>>> >>>>>>> through each of them one at a time, posting a jira and a patch. >>>>>>> >>>>>>> It struck me that there are probably similar issues throughout >>>>> the >>>>>> >>>>>>> server WRT the m2 build. >>>>>>> >>>>>>> I'm open to other methods (and would love to hear of a silver >>>>>>> bullet:) but seems to me that we need to basically hit >>> everything >>>>> >>>>>>> in the console and tools and such and make sure it works so we >>>>> can >>>>>> >>>>>>> be sure the dependencies are correct. While I don't think I'll >>> be >>>>> >>>>>>> able to hit 'everything' I'll try to poke on most of the console >>>>> >>>>>>> and the CLI tools and make sure that it 'works'. >>>>>>> >>>>>>> My plan of attack: >>>>>>> >>>>>>> 1 - provide patches for the stuff i know about now >>>>> (tranql/tranql- >>>>>>> connector is missing for example from the repository) >>>>>>> 2 - finish getting deployment working from the console (data >>>>>>> sources, ejb-jar's, wars etc) >>>>>>> 3 - poke on the rest of the console >>>>>>> 4 - deploy daytrader >>>>>>> 5 - anything else anyone comes up with >>>>>>> >>>>>>> I will be posting bunches of jira's and fixes over the next few >>>>>>> days as I work through this stuff (unless someone has a better >>>>> idea >>>>>> >>>>>>> about how to tackle it). >>>>>> >>>>>> This is great that you are taking a look at this. Here are some >>>>> tips >>>>>> >>>>>> that may help fix dependency problems: >>>>>> >>>>>> 1. The modules use resources2/META-INF/geronimo-dependency.xml >>>>> files >>>>>> >>>>>> to specify transitive dependencies. We could use a lot more of >>>>>> these. You may find the best solution to a classpath problem is >>>>>> adding one of these. >>>>>> >>>>>> 2. There are often several ways to get a jar into a classloader, >>>>> such >>>>>> as >>>>>> a) depending on a car, from a car >>>>>> b) depending on a jar from a jar (using >>> geornimo-dependency.xml) >>>>>> c) depending directly on the jar from a car >>>>>> I'd say this is the order of preference >>>>>> >>>>>> 3) It is really important that the builder cars don't start any >>>>>> runtime cars: if you violate this rule the packaging plugin is >>>>> likely >>>>>> >>>>>> to stop working. You can have 2.a and enforce this rule by using >>>>> the >>>>>> >>>>>> element in the dependency and setting it to >>>>> classes>>>>> scope>. This means the dependency's classloader will be >>>>> constructed >>>>>> >>>>>> and available for use but that no services from the car will be >>>>>> started. >>>>> >>>>> This might be helpful in adding dependency using 2.a - >>>>> >>>>> >>>> http://mail-archives.apache.org/mod_mbox/geronimo-dev/200605.mbox/ >>>> browser >>>>> >>>>> Thanks >>>>> Anita >>>>>> >>>>>> This is in my experience somewhat nerve wracking and gruesome >>> work, >>>>> >>>>>> so I really appreciate your taking it on, and I'll do whatever I >>>>> can >>>>>> >>>>>> to help you with it. >>>>>> >>>>>> thanks >>>>>> david jencks >>>>>> >>>>>>> >>>>>>> TTFN, >>>>>>> >>>>>>> -bd- >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> __________________________________________________ >>>>> Do You Yahoo!? >>>>> Tired of spam? Yahoo! Mail has the best spam protection around >>>>> http://mail.yahoo.com >>>>> >>>> >>>> >>>> __________________________________________________ >>>> Do You Yahoo!? >>>> Tired of spam? Yahoo! Mail has the best spam protection around >>>> http://mail.yahoo.com >>> >>> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >