Return-Path: Delivered-To: apmail-incubator-empire-db-dev-archive@minotaur.apache.org Received: (qmail 12172 invoked from network); 27 Feb 2009 14:45:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2009 14:45:49 -0000 Received: (qmail 91254 invoked by uid 500); 27 Feb 2009 14:45:49 -0000 Delivered-To: apmail-incubator-empire-db-dev-archive@incubator.apache.org Received: (qmail 91243 invoked by uid 500); 27 Feb 2009 14:45:49 -0000 Mailing-List: contact empire-db-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-dev@incubator.apache.org Delivered-To: mailing list empire-db-dev@incubator.apache.org Received: (qmail 91232 invoked by uid 99); 27 Feb 2009 14:45:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 06:45:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.7.226.111] (HELO mail.esteam.de) (217.7.226.111) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Feb 2009 14:45:39 +0000 Content-class: urn:content-classes:message Subject: AW: Unable to run "empire-db-example-struts2" in Eclipse Date: Fri, 27 Feb 2009 15:45:17 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C998EA.01723A00" Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.5 Thread-Topic: Unable to run "empire-db-example-struts2" in Eclipse Thread-Index: AcmYzBJK/3f8jLxzQTSZH4VyBMSEcQAG9Axc References: <1235569380.65129.ezmlm@incubator.apache.org><3ab983230902261154h49e26350q643405356754e2f@mail.gmail.com><3ab983230902270058g4b32e6a6mbdac244861b3edf1@mail.gmail.com> <3ab983230902270310j3ad4d650t8c9e6fb5444932a4@mail.gmail.com> From: "Benjamin Venditti" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C998EA.01723A00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi francis, in fact yes i'm using rainers svn account. sorry, i should have told you = that before. Of course rainer knows that and please feel free to ask him about that. I added two more sample applications - empire-db-example-cxf a simple webservice build with apache-cxf. it contains the two main = classes "RunServer" and "RunClient". - empire-db-example-struts2-cxf is more or less the same as "empire-db-example-struts2" but uses a = webservice to retrieve the data. In order to run/test these examples, you have to start the webservice = "RunServer" first, and then the web-example "empire-db-example-struts2-cxf" with tomcat, jetty or a = other application server. Would be nice, if someone could have a look at it. Greetings Benjamin -----Urspr=FCngliche Nachricht----- Von: Francis De Brabandere [mailto:francisdb@gmail.com] Gesendet: Fr 27.02.2009 12:10 An: empire-db-dev@incubator.apache.org Betreff: Re: Unable to run "empire-db-example-struts2" in Eclipse =20 are you using doebele as svn account??? On Fri, Feb 27, 2009 at 11:55 AM, Benjamin Venditti = wrote: > Hi Francis, > > i figured out how to configure the web-applications to run within = eclipse. > To get it working, I used the following snippet in the pom.xml for the = web-example projects: > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0org.apache.maven.plugins > =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0maven-eclipse-plugin > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0true > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0true > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A01.5 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > It is then sufficient to run "mvn eclipse:eclipse" on the console once = to get it working within eclipse. > > However this has some strange effect on the other example projects, = i.e. the m2eclipse plugin does not convert the other example projects = correctly. And I get an error message during checkout saying: > > =A0 =A0 =A0 =A0An internal error occurred during: "Importing Maven = projects". Element =A0not found: = /empire-db-parent/empire-db-examples/empire-db-example- =A0 =A0 = =A0struts2-cxf/.settings. > > Although the folder is there?!?!?! > > I therefore included the upper snipped in the pom.xml only as an = comment. > If users want to run/debug the web-examples in eclipse, they just have = to uncomment it and run "mvn eclipse:eclipse". > > > -----Urspr=FCngliche Nachricht----- > Von: Francis De Brabandere [mailto:francisdb@gmail.com] > Gesendet: Freitag, 27. Februar 2009 09:58 > An: empire-db-dev@incubator.apache.org > Betreff: Re: Unable to run "empire-db-example-struts2" in Eclipse > > I don't run them using eclipse, I ran them using the maven jetty = plugin > > On Fri, Feb 27, 2009 at 9:44 AM, Benjamin Venditti = wrote: >> Hi Francis, >> >> Thanks for the advice, i'll try asking on the m2eclipse list. >> I thought you could help me out with that, as you already got the = web-examples running eclipse. >> >> I saw on the mailing-list that J=F6rg got it running, but I don't = have a clue how he did that. He wrote that he used the "Run As--> Run on = Server ..." option, but not that he executed "mvn eclipse:m2eclipse = -Dwtpversion=3D1.5" before. So I thought there is an easier way to get = it working. >> >> How do you run/debug the struts2 web-example in eclipse? >> >> Greetings >> =A0 =A0 =A0 =A0Benjamin >> >> -----Urspr=FCngliche Nachricht----- >> Von: Francis De Brabandere [mailto:francisdb@gmail.com] >> Gesendet: Donnerstag, 26. Februar 2009 20:54 >> An: empire-db-dev@incubator.apache.org >> Betreff: Re: Unable to run "empire-db-example-struts2" in Eclipse >> >> to be honest I don't know, maybe it would be better to ask this on = the >> m2eclipse list? >> >> On Thu, Feb 26, 2009 at 2:46 PM, Benjamin Venditti = wrote: >>> Hi Francis, >>> >>> i have followed your work in the mailing-archive for "mavenizing" >>> empire-db. >>> Currently I am trying to get the web-example running with tomcat in >>> eclipse so that I can debug the struts2 web example. >>> >>> Fortunately I've been successful with that, but I had to do some >>> handwork. Maybe you can help me with that, as I'm a maven newbe :). >>> >>> Here is what I've tried so far: >>> >>> 1. Checked out the trunk from SVN with the "Check out as Maven = Project >>> ..." option. >>> >>> 2. Executed "mvn eclipse:m2eclipse -Dwtpversion=3D1.5" in the = directory >>> "empire-db-example-struts2" to make it a WebApp. >>> >>> 3. Activated the Maven-Dependencies under Project "Properties-->Java = EE >>> Module Dependencies" >>> >>> 4. Added Tomcat Server Modules under Project "Properties-->Java = Build >>> Path". >>> >>> If I now start the project with the "Run As--> Run on Server ..." >>> option, the server doesn't find the dependencies for "empire-db" and >>> "empire-db-struts2". >>> >>> In fact I got it working by building and copying the missing = libraries >>> "empire-db-2.0.5-SNAPSHOT.jar" and " >>> empire-db-struts2-2.0.5-SNAPSHOT.jar" by hand into the lib folder of = the >>> deployed WebApp. >>> >>> My Questions are now: >>> - Do I have to exec "mvn eclipse:m2eclipse -Dwtpversion=3D1.5", or = is >>> there a easier way to tell eclipse that it is a WebApp? >>> >>> - Why do I have to copy the dependencies for "empire-db" and >>> "empire-db-struts2" by hand? I cannot see why they aren't deployed = as >>> they are listed in the pom.xml. >>> >>> It would be really nice if you could help me out with this. >>> Thanks in advance. >>> >>> Benjamin Venditti >>> >> >> >> >> -- >> http://www.somatik.be >> Microsoft gives you windows, Linux gives you the whole house. >> > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. > --=20 http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. ------_=_NextPart_001_01C998EA.01723A00--