incubator-empire-db-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Venditti" <vendi...@esteam.de>
Subject AW: Unable to run "empire-db-example-struts2" in Eclipse
Date Fri, 27 Feb 2009 08:44:41 GMT
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örg 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=1.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
	Benjamin

-----Urspr√ľngliche 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 <venditti@esteam.de> 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=1.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=1.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.

Mime
View raw message