Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 34190 invoked from network); 11 Feb 2008 21:44:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 21:44:52 -0000 Received: (qmail 76361 invoked by uid 500); 11 Feb 2008 21:44:44 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 76308 invoked by uid 500); 11 Feb 2008 21:44:44 -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 76296 invoked by uid 99); 11 Feb 2008 21:44:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 13:44:43 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jaw981@gmail.com designates 72.14.246.247 as permitted sender) Received: from [72.14.246.247] (HELO ag-out-0708.google.com) (72.14.246.247) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 21:44:12 +0000 Received: by ag-out-0708.google.com with SMTP id 5so279394agb.7 for ; Mon, 11 Feb 2008 13:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=GJku7TiOTwvWtuV5sqKtw9pllXmUTMNiQU2iS+CmifA=; b=xVPiAoe6G753sMJGBkw0G7sq7oVpZbw5cVBXxElZwfRkzZTHfPXZC01JKSYOUKL7+Ee4kIkaHZoZywz8sPRuWmojprvlhunMg6NArhENtox9QVC4ctUUW7ykwjuYCWvH5ppn+BOFUtywCxVIiBZAxRHFYyjt3U3YR/TnsAk/PF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ls/84tWbUjkyTF0iLm7TVC6LEnz6WZhTc8bhtii5vt0U3lQQ2ttV2bMqBYEDZhrJdOwumrRGZClYK6E1BYCRUa7kJSogmyj4hnENQKWstpZzbiOHyQ7te+76dPDDKC6FrD3TVLtpHswW7H/zcyBtFW91Th92u818CASoK6CyGxM= Received: by 10.150.201.13 with SMTP id y13mr174957ybf.100.1202766256939; Mon, 11 Feb 2008 13:44:16 -0800 (PST) Received: by 10.150.138.3 with HTTP; Mon, 11 Feb 2008 13:44:16 -0800 (PST) Message-ID: <73a75e430802111344y32e2f4d9l3b896ce67894f740@mail.gmail.com> Date: Mon, 11 Feb 2008 16:44:16 -0500 From: "Jason Warner" To: dev@geronimo.apache.org Subject: Re: Round trip debugging of Geronimo in Eclipse In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16978_8596221.1202766256926" References: <15419998.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_16978_8596221.1202766256926 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Joseph, Just a quick comment. If Dan is making changes to a module, it would be better for him to leave the tests on when building. That way, the tests can root out any issues his changes might have caused (hopefully). ~Jason Warner On Feb 11, 2008 4:37 PM, Joseph Leong wrote: > Hi Dan, > > Going off what Jacek said. I recommend trying that method, it'll save you > LOTS of time and frustration with rebuilding just that module piece and > copying that piece back into your Geronimo distro. > > I know that when someone first said this to me, it was a bit confusing > without the details. So i will try and clarify it for whoever is > interested. > > So this scenario, as Jacek said, would apply for most cases.. the certain > cases that it doesn't work for i believe is if it is working with other > dependencies - which would require going up the chain and re-building those > pieces as well (Someone confirm?). Nonetheless, just try your module and > typically it should work. I'll try and provide you with an example of how i > am approaching this with the admin console plugin installer > > First to give you the bigger picture, we're merely updating the particular > piece of Geronimo you've already extracted and built so that it can reflect > those changes the next time you run it. > > 1) navigate to the directory where your module is located and rebuild it > with mvn.. i typically do mvn clean install -Dtest=False -P no-it > > 2) Going under the assumption you already extract and built Geronimo... > there is going to be a jar file of the module in the //server > root/repository/subfolders... you want to replace that jar file with the jar > file you just generated with your build in step 1. > > 3) Once replaced, start your server up and the changes should be applied. > > Note**: To find the jar file in step one you want to navigate to that > modules source directories and traverse around until you find that > WEB-INF/lib/ and the jar should be in there. > > Wishing you the best, > Joseph Leong > > > > On Feb 11, 2008 3:35 PM, Dan Becker wrote: > > > > > Hello all, > > > > I have set up a Geronimo 2.1 server in Eclipse using the instructions > > given > > at > > > > http://geronimo.apache.org/developing-the-geronimo-eclipse-plugin-in-eclipse.html > > . > > > > I have imported a server trunk tree as projects into my Eclipse > > environment, > > set up a Geronimo server runtime, and point a Plug-in Target Platform > > back > > to my plugin directory. At this point all seems to be working. I can use > > Eclipse to start and stop the server, and catch a break point in > > geronimo-system. > > > > However, when I try to modify the server code, I have difficulty taking > > the > > updated class back to the runtime to further debug it. I see modifying a > > Java file in Eclipse produces an updated class file in the server trunk > > framework module geronimo-system directory, but I still am unclear what > > steps or what poms to build to bring this class back to the server > > runtime. > > > > I would appreciate any doc pointers or explanations to help clear my > > newbie > > confusion. > > Thanks, Dan > > > > > > -- > > View this message in context: > > http://www.nabble.com/Round-trip-debugging-of-Geronimo-in-Eclipse-tp15419998s134p15419998.html > > Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com. > > > > > ------=_Part_16978_8596221.1202766256926 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Joseph,

Just a quick comment.  If Dan is making changes to a module, it would be better for him to leave the tests on when building.  That way, the tests can root out any issues his changes might have caused (hopefully).

~Jason Warner

On Feb 11, 2008 4:37 PM, Joseph Leong <josephcleong@gmail.com> wrote:
Hi Dan,

Going off what Jacek said.  I recommend trying that method, it'll save you LOTS of time and frustration with rebuilding just that module piece and copying that piece back into your Geronimo distro. 

I know that when someone first said this to me, it was a bit confusing without the details.  So i will try and clarify it for whoever is interested.

So this scenario, as Jacek said, would apply for most cases.. the certain cases that it doesn't work for i believe is if it is working with other dependencies - which would require going up the chain and re-building those pieces as well (Someone confirm?).  Nonetheless, just try your module and typically it should work.  I'll try and provide you with an example of how i am approaching this with the admin console plugin installer

First to give you the bigger picture, we're merely updating the particular piece of Geronimo you've already extracted and built so that it can reflect those changes the next time you run it.

1) navigate to the directory where your module is located and rebuild it with mvn.. i typically do mvn clean install -Dtest=False -P no-it

2) Going under the assumption you already extract and built Geronimo... there is going to be a jar file of the module in the //server root/repository/subfolders... you want to replace that jar file with the jar file you just generated with your build in step 1.

3) Once replaced, start your server up and the changes should be applied.

Note**: To find the jar file in step one you want to navigate to that modules source directories and traverse around until you find that WEB-INF/lib/ and the jar should be in there.

Wishing you the best,
Joseph Leong



On Feb 11, 2008 3:35 PM, Dan Becker <dan.o.becker@gmail.com> wrote:

Hello all,

I have set up a Geronimo 2.1 server in Eclipse using the instructions given
at
http://geronimo.apache.org/developing-the-geronimo-eclipse-plugin-in-eclipse.html.

I have imported a server trunk tree as projects into my Eclipse environment,
set up a Geronimo server runtime, and point a Plug-in Target Platform back
to my plugin directory. At this point all seems to be working. I can use
Eclipse to start and stop the server, and catch a break point in
geronimo-system.

However, when I try to modify the server code, I have difficulty taking the
updated class back to the runtime to further debug it. I see modifying a
Java file in Eclipse produces an updated class file in the server trunk
framework module geronimo-system directory, but I still am unclear what
steps or what  poms to build to bring this class back to the server runtime.

I would appreciate any doc pointers or explanations to help clear my newbie
confusion.
Thanks, Dan


--
View this message in context: http://www.nabble.com/Round-trip-debugging-of-Geronimo-in-Eclipse-tp15419998s134p15419998.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.



------=_Part_16978_8596221.1202766256926--