Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 67141 invoked from network); 21 Jul 2008 22:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2008 22:38:20 -0000 Received: (qmail 21995 invoked by uid 500); 21 Jul 2008 22:38:17 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 21939 invoked by uid 500); 21 Jul 2008 22:38:17 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 21928 invoked by uid 99); 21 Jul 2008 22:38:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 15:38:17 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.217.242.87] (HELO anchor-post-37.mail.demon.net) (194.217.242.87) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 22:37:21 +0000 Received: from lampsacos.demon.co.uk ([62.49.22.91] helo=[192.168.0.3]) by anchor-post-37.mail.demon.net with esmtp (Exim 4.68) id 1KL40n-0006kv-N2 for users@cocoon.apache.org; Mon, 21 Jul 2008 22:37:45 +0000 Message-ID: <48850FB9.1020601@lampsacos.demon.co.uk> Date: Mon, 21 Jul 2008 23:37:45 +0100 From: Ken Starks User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Java bean puzzle. using ecliplse plugin or not. References: <495295EE69BB4B4AAE73D1B0D8AD551803058063@ATLAS.computas.int> <487D07D4.1030001@lampsacos.demon.co.uk> <20080721192734.GE17528@jeff-work> In-Reply-To: <20080721192734.GE17528@jeff-work> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm pretty sure the artifacts are not different, having done a 'compare' of the POMs in eclipse. I don't know what an OSGi is, can you tell me how to check whether i have one? Jeff Caldwell wrote: > Anyone else see this too? I've tried both approaches and have the same results. > > The only thing I can think is that there is not an OSGi running when we start jetty > with "mvn jetty:run". Or perhaps the artifacts are actually different when running > from command line as opposed to running via the eclipse plug-in for maven? > > On Tue, Jul 15, 2008 at 09:25:56PM +0100, Ken Starks wrote: > >> It depends which way I do things, but I am still having >> problems with 'Your first Cocoon 2.2 Application' >> because the Java Bean doesn't work. >> >> But while experimenting with the Eclipse plugin >> 'Maven Integration for Eclipse' as a way of >> generating the block, I suddenly found that the >> Java-Bean did work. >> >> Can anyone explain this behaviour, in terms that a >> non-java-speaker might understand? >> >> +++++++++++++++++++++++++++++++++++++++++++++++++ >> >> Details: >> >> Method One: (don't work) >> ++++++++++++++++++ >> >> a. In the shell, >> -------------- >> mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org >> >> >> >> cd myBlock1 >> mvn eclipse:eclipse >> mvn jetty:run >> >> b. Browser >> ----------- >> Going to http://localhost:8888/myBlock1/spring-bean, >> >> #message >> >> >> Method two (do work!) >> ++++++++++=+++++ >> >> a. in Eclipse >> ------------ >> (with 'Maven integration for eclipse' plugin >> from update site:- >> http://m2eclipse.sonatype.org/update-dev/ ) >> >> Menubar --.New --> Maven --> Maven Project >> --> NEXT >> >> un-check 'Use default Workspace location' >> browse to your usual 'GettingStartedApp' directory >> --> Next >> >> Nexus Indexer. select artifact Id:- >> cocoon-22-archetype-block >> --> Finish >> >> >> >> >> Cocoon then creates and compiles the block >> >> b. In the shell, >> -------------- >> >> >> cd myBlock2 >> mvn jetty:run >> >> c. Browser >> ----------- >> Going to http://localhost:8888/myBlock2/spring-bean, >> >> This is a message coming from a Spring bean. >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org