From dev-return-65207-apmail-geronimo-dev-archive=geronimo.apache.org@geronimo.apache.org Wed Jul 02 13:29:27 2008 Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 61345 invoked from network); 2 Jul 2008 13:29:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2008 13:29:27 -0000 Received: (qmail 49390 invoked by uid 500); 2 Jul 2008 13:29:26 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 49353 invoked by uid 500); 2 Jul 2008 13:29:26 -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 49342 invoked by uid 99); 2 Jul 2008 13:29:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 06:29:26 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of banga.shrey@gmail.com designates 209.85.198.235 as permitted sender) Received: from [209.85.198.235] (HELO rv-out-0506.google.com) (209.85.198.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 13:28:36 +0000 Received: by rv-out-0506.google.com with SMTP id f6so374180rvb.55 for ; Wed, 02 Jul 2008 06:28:56 -0700 (PDT) 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=y51yicdcKiaEFR1cqANnoU2okxdn5QNGbN7qy6Hdlno=; b=B0Q3JNLp6kTs5BtgXlKExuMAjWbACfFF8RAI5ZqMAWd3xTXG/z2ZrU8nKB9GTIxQ99 1JMyx7eNU0kMl3iz0mrNC7Xcy+RuwCr4HDsR6gGarV6X92c7Flrqf4v7I51ci5mu17BY kZzK/2guHDSWx58EIR/qUxNsar7dx0bGysEE4= 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=nMum97NpAmJiPfC4Q6HTw0p/Z6nosH9BzICJNeauT9fZIay0N8l7W8sZSB7pcsOzEi r7nRaB3G/p/FuBum42WOr4LHY/cNuzsBoywSYwkjnvw99m9CZogV3QYdfiIy7Y7EvNVR Nomb6hDlicWNSVZTvoFm1z1M6jQ7w4vUbKsSE= Received: by 10.141.76.21 with SMTP id d21mr4363236rvl.242.1215005336692; Wed, 02 Jul 2008 06:28:56 -0700 (PDT) Received: by 10.141.43.14 with HTTP; Wed, 2 Jul 2008 06:28:56 -0700 (PDT) Message-ID: <9dc4201d0807020628k14349f49l1df2c34351016386@mail.gmail.com> Date: Wed, 2 Jul 2008 18:58:56 +0530 From: "Shrey Banga" To: dev@geronimo.apache.org Subject: Re: Quick development of jsp pages in Admin Console In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6134_26551581.1215005336703" References: <9dc4201d0806300543h2f641a60k35556a9324cece17@mail.gmail.com> <5A3DF582-4AE1-4A1A-A670-1883D35954AB@gmail.com> <4868FCBA.3040109@gmail.com> <9dc4201d0807020309i2bb82856w6510319e58327e01@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6134_26551581.1215005336703 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Jospeh :) On Wed, Jul 2, 2008 at 6:57 PM, Joseph Leong wrote: > Hi Shrey, > > I'll be more than glad to document it for you. > > -Joseph Leong > > > On Wed, Jul 2, 2008 at 6:09 AM, Shrey Banga wrote: > >> Hi, >> >> I was trying to edit this page- >> http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html but it says >> I do not have permission to edit it. Also, I experimented a little with >> inPlace deployment but couldn't get it to work for plancreator and I think >> the method described above is useful for admin console webapps. Can someone >> else document this method ? >> >> >> On Mon, Jun 30, 2008 at 9:03 PM, Hernan Cunico wrote: >> >>> Kevan Miller wrote: >>> >>>> >>>> On Jun 30, 2008, at 8:43 AM, Shrey Banga wrote: >>>> >>>> Hi, >>>>> >>>>> While working on PlanCreator, I initially restarted it after each >>>>> modification to the code which is too cumbersome for testing small changes >>>>> especially in the JSPs. Thanks to Manu, I realized that there's an easier >>>>> workaround to this:- >>>>> >>>>> 1. Modify \var\catalina\conf\web.xml: >>>>> * Set the *development* parameter to *true* in the >>>>> init-param to org.apache.jasper.servlet.JspServlet >>>>> * Edit (add if doesn't exist) the >>>>> *modificationTestInterval* to *0* >>>>> 2. In the webapp that you intend to modify, find the web.xml and >>>>> remove the servlet-name and servlet-mapping of the jsp you >>>>> intend to modify and test. >>>>> For example, for PlanCreator I edit the >>>>> plancreator-console-tomcat-2.2-SNAPSHOT.car\WEB-INF\web.xml. >>>>> 3. Restart the server with these settings in place. >>>>> >>>>> Once this is done, you can modify the jsp in place and hit refresh to >>>>> test it. It'll be recompiled each time. I think this is very handy for >>>>> developing and testing deployed web applications. Can someone copy this to >>>>> wiki or grant me access to it ? >>>>> >>>> >>>> Looks like Shrey has already submitted an ICLA to the ASF. Hernan, can >>>> you give Shrey access? >>>> >>>> --kevan >>>> >>> My machine got toasted (literally) last week and I'm still struggling >>> with the new one. >>> >>> I just added Shrey to geronimo-contributors. >>> >>> for the record, any confluence admin can do this, a list with the admins >>> is available at >>> http://cwiki.apache.org/geronimo/geronimo-cwiki-documentation-architecture.html >>> >>> Shrey, let us know if you have any questions >>> >>> btw, wouldn't a scenario like the one described be addressed by inPlace >>> deployment ? I used that in the past and worked like a charm >>> >>> btw 2, Firefox 3 is also giving me headaches. >>> >>> Cheers! >>> Hernan >>> >> >> >> >> -- >> Shrey Banga >> Bachelor of Technology, III year >> Department of Electrical Engineering >> Indian Institute of Technology Roorkee >> > > -- Shrey Banga Bachelor of Technology, III year Department of Electrical Engineering Indian Institute of Technology Roorkee ------=_Part_6134_26551581.1215005336703 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Jospeh :)

On Wed, Jul 2, 2008 at 6:57 PM, Joseph Leong <josephcleong@gmail.com> wrote:
Hi Shrey,

I'll be more than glad to document it for you.

-Joseph Leong


On Wed, Jul 2, 2008 at 6:09 AM, Shrey Banga <banga.shrey@gmail.com> wrote:
Hi,

I was trying to edit this page- http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html but it says I do not have permission to edit it. Also, I experimented a little with inPlace deployment but couldn't get it to work for plancreator and I think the method described above is useful for admin console webapps. Can someone else document this method ?


On Mon, Jun 30, 2008 at 9:03 PM, Hernan Cunico <hcunico@gmail.com> wrote:
Kevan Miller wrote:

On Jun 30, 2008, at 8:43 AM, Shrey Banga wrote:

Hi,

While working on PlanCreator, I initially restarted it after each modification to the code which is too cumbersome for testing small changes especially in the JSPs. Thanks to Manu, I realized that there's an easier workaround to this:-

  1. Modify <geronimo-directory>\var\catalina\conf\web.xml:

         * Set the *development* parameter to *true* in the
           init-param to org.apache.jasper.servlet.JspServlet
         * Edit (add if doesn't exist) the
           *modificationTestInterval* to *0*
  2. In the webapp that you intend to modify, find the web.xml and

     remove the servlet-name and servlet-mapping of the jsp you
     intend to modify and test.
     For example, for PlanCreator I edit the
     plancreator-console-tomcat-2.2-SNAPSHOT.car\WEB-INF\web.xml.
  3. Restart the server with these settings in place.


Once this is done, you can modify the jsp in place and hit refresh to test it. It'll be recompiled each time. I think this is very handy for developing and testing deployed web applications. Can someone copy this to wiki or grant me access to it ?

Looks like Shrey has already submitted an ICLA to the ASF. Hernan, can you give Shrey access?

--kevan
My machine got toasted (literally) last week and I'm still struggling with the new one.

I just added Shrey to geronimo-contributors.

for the record, any confluence admin can do this, a list with the admins is available at http://cwiki.apache.org/geronimo/geronimo-cwiki-documentation-architecture.html

Shrey, let us know if you have any questions

btw, wouldn't a scenario like the one described be addressed by inPlace deployment ? I used that in the past and worked like a charm

btw 2, Firefox 3 is also giving me headaches.

Cheers!
Hernan



--
Shrey Banga
Bachelor of Technology, III year
Department of Electrical Engineering
Indian Institute of Technology Roorkee




--
Shrey Banga
Bachelor of Technology, III year
Department of Electrical Engineering
Indian Institute of Technology Roorkee ------=_Part_6134_26551581.1215005336703--