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üngliche Nachricht-----
Von: Francis De Brabandere [mailto:[email protected]]
Gesendet: Fr 27.02.2009 12:10
An: [email protected]
Betreff: Re: Unable to run "empire-db-example-struts2" in Eclipse
are you using doebele as svn account???
On Fri, Feb 27, 2009 at 11:55 AM, Benjamin Venditti <[email protected]> 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:
>
> <!-- WTP-Eclipse-Projekt -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-eclipse-plugin</artifactId>
> <configuration>
> <m2eclipse>true</m2eclipse>
> <downloadSources>true</downloadSources>
> <wtpversion>1.5</wtpversion>
> </configuration>
> </plugin>
>
> 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:
>
> An internal error occurred during: "Importing Maven projects". Element
> not found: /empire-db-parent/empire-db-examples/empire-db-example-
> struts2-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üngliche Nachricht-----
> Von: Francis De Brabandere [mailto:[email protected]]
> Gesendet: Freitag, 27. Februar 2009 09:58
> An: [email protected]
> 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 <[email protected]> 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ö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:[email protected]]
>> Gesendet: Donnerstag, 26. Februar 2009 20:54
>> An: [email protected]
>> 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 <[email protected]>
>> 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.
>>
>
>
>
> --
> 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.