Re: Struts2 Showcase Example and Eclipse
Hi, After reading this message, I got further question… http://www.nabble.com/Struts2-Showcase-Example-and-Eclipse-tf2468025.html I am new to Eclipse, and Struts 2, Here trying to run/debug the application within Eclipse with JBoss, I downloaded the Struts 2 sample src, C:\\struts-2.0.1\src\apps\showcase And run “mvn eclipse:eclipse -Dwtpversion=1.0 -Papps,plugins” Yes, I get the eclipse project for Showcase. Then import the project to eclipse, so far so good.. When I click the option "Run on Server", Jboss started up and said some classpath not found, or missing files.. I guess, it's because the structure in Eclipse project is different from the standard webapps structure, So, how can I build/deploy it, and run it in Eclipse? Do I need to write a ANT build script to do it? Thanks, -Frankie Jim Reynolds wrote: > > I have downloaded and deployed the showcase examples for Struts2 as a > learning tool. I have been going through the code file by file, and > was wondering if there was a better way to handle this. I have Eclipse > IDE and was wondering if the project could be imported into Eclipse, > so I can walk the classes easier. I am new with Eclipse and also > Struts2. So I am looking for advice on how I could configure this and > also be able to make changes and see the changes within the web app. > > Make sense? Thanks, > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts2-Showcase-Example-and-Eclipse-tf2468025.html#a6976475 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Showcase Example and Eclipse
Don't forget to add the profiles switch (-Papps,plugins) that will gen your eclipse files under apps and plugins... $ cd svn/struts/struts2 $ mvn eclipse:eclipse -Dwtpversion=1.0 -Papps,plugins -- James Mitchell 678.910.8017 On Oct 18, 2006, at 1:57 PM, Don Brown wrote: If you want to tweak the showcase app, the easiest way to run it is from the source code. In the source distribution of 2.0.1 or a checked out trunk, change to the apps/showcase directory. From there, you can run the eclipse and jetty maven plugins. Don On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: > Simply type, from the command line, "mvn eclipse:eclipse" and Maven > will generate all the Eclipse-related project files. Add the > '-Dwtpversion=1.0' flag to also generate Web Tools Project files. > > For running the thing, I've had good experiences using the Jetty Maven > 2 plugin. See our Bootstrap tutorial - > http://cwiki.apache.org/confluence/display/WW/Bootstrap > > I also found this useful: > http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven +Jetty+Plugin+inside+Eclipse > > Don > > On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have downloaded and deployed the showcase examples for Struts2 as a > > learning tool. I have been going through the code file by file, and > > was wondering if there was a better way to handle this. I have Eclipse > > IDE and was wondering if the project could be imported into Eclipse, > > so I can walk the classes easier. I am new with Eclipse and also > > Struts2. So I am looking for advice on how I could configure this and > > also be able to make changes and see the changes within the web app. > > > > Make sense? Thanks, > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Showcase Example and Eclipse
If you want to tweak the showcase app, the easiest way to run it is from the source code. In the source distribution of 2.0.1 or a checked out trunk, change to the apps/showcase directory. From there, you can run the eclipse and jetty maven plugins. Don On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: > Simply type, from the command line, "mvn eclipse:eclipse" and Maven > will generate all the Eclipse-related project files. Add the > '-Dwtpversion=1.0' flag to also generate Web Tools Project files. > > For running the thing, I've had good experiences using the Jetty Maven > 2 plugin. See our Bootstrap tutorial - > http://cwiki.apache.org/confluence/display/WW/Bootstrap > > I also found this useful: > http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse > > Don > > On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have downloaded and deployed the showcase examples for Struts2 as a > > learning tool. I have been going through the code file by file, and > > was wondering if there was a better way to handle this. I have Eclipse > > IDE and was wondering if the project could be imported into Eclipse, > > so I can walk the classes easier. I am new with Eclipse and also > > Struts2. So I am looking for advice on how I could configure this and > > also be able to make changes and see the changes within the web app. > > > > Make sense? Thanks, > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Showcase Example and Eclipse
The Maven command reads the pom.xml files to obtain the dependencies and basic project structure. I don't think there are POM files in the exploded WAR, so you would have to work from the source distribution or checkout. Starting from the root of the struts2 source distribution (you see all folders and a single pom.xml), with Maven 2 installed, you can run $ mvn eclipse:eclipse and the Maven eclipse plugin will generate all the Eclipse setup files. Likewise for IDEA $ mvn idea:idea For more than you wanted to know, see also * http://cwiki.apache.org/WW/building-with-maven.html -Ted. On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: > Simply type, from the command line, "mvn eclipse:eclipse" and Maven > will generate all the Eclipse-related project files. Add the > '-Dwtpversion=1.0' flag to also generate Web Tools Project files. > > For running the thing, I've had good experiences using the Jetty Maven > 2 plugin. See our Bootstrap tutorial - > http://cwiki.apache.org/confluence/display/WW/Bootstrap > > I also found this useful: > http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse > > Don > > On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have downloaded and deployed the showcase examples for Struts2 as a > > learning tool. I have been going through the code file by file, and > > was wondering if there was a better way to handle this. I have Eclipse > > IDE and was wondering if the project could be imported into Eclipse, > > so I can walk the classes easier. I am new with Eclipse and also > > Struts2. So I am looking for advice on how I could configure this and > > also be able to make changes and see the changes within the web app. > > > > Make sense? Thanks, > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- HTH, Ted. * http://www.husted.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts2 Showcase Example and Eclipse
Maybe I should add that the excellent Maven has support for creating project-files for IDEA IntelliJ also. Cheers, Peter -Original Message- From: Wesslan [mailto:[EMAIL PROTECTED] Sent: den 18 oktober 2006 20:02 To: 'Struts Users Mailing List' Subject: RE: Struts2 Showcase Example and Eclipse Try http://maven.apache.org/. http://maven.apache.org/download.html#installation for installation instructions. Hth, Peter -Original Message- From: Jim Reynolds [mailto:[EMAIL PROTECTED] Sent: den 18 oktober 2006 19:49 To: Struts Users Mailing List Subject: Re: Struts2 Showcase Example and Eclipse Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: > Simply type, from the command line, "mvn eclipse:eclipse" and Maven > will generate all the Eclipse-related project files. Add the > '-Dwtpversion=1.0' flag to also generate Web Tools Project files. > > For running the thing, I've had good experiences using the Jetty Maven > 2 plugin. See our Bootstrap tutorial - > http://cwiki.apache.org/confluence/display/WW/Bootstrap > > I also found this useful: > http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin +inside+Eclipse > > Don > > On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have downloaded and deployed the showcase examples for Struts2 as a > > learning tool. I have been going through the code file by file, and > > was wondering if there was a better way to handle this. I have Eclipse > > IDE and was wondering if the project could be imported into Eclipse, > > so I can walk the classes easier. I am new with Eclipse and also > > Struts2. So I am looking for advice on how I could configure this and > > also be able to make changes and see the changes within the web app. > > > > Make sense? Thanks, > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts2 Showcase Example and Eclipse
Try http://maven.apache.org/. http://maven.apache.org/download.html#installation for installation instructions. Hth, Peter -Original Message- From: Jim Reynolds [mailto:[EMAIL PROTECTED] Sent: den 18 oktober 2006 19:49 To: Struts Users Mailing List Subject: Re: Struts2 Showcase Example and Eclipse Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: > Simply type, from the command line, "mvn eclipse:eclipse" and Maven > will generate all the Eclipse-related project files. Add the > '-Dwtpversion=1.0' flag to also generate Web Tools Project files. > > For running the thing, I've had good experiences using the Jetty Maven > 2 plugin. See our Bootstrap tutorial - > http://cwiki.apache.org/confluence/display/WW/Bootstrap > > I also found this useful: > http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin +inside+Eclipse > > Don > > On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have downloaded and deployed the showcase examples for Struts2 as a > > learning tool. I have been going through the code file by file, and > > was wondering if there was a better way to handle this. I have Eclipse > > IDE and was wondering if the project could be imported into Eclipse, > > so I can walk the classes easier. I am new with Eclipse and also > > Struts2. So I am looking for advice on how I could configure this and > > also be able to make changes and see the changes within the web app. > > > > Make sense? Thanks, > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Showcase Example and Eclipse
Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: Simply type, from the command line, "mvn eclipse:eclipse" and Maven will generate all the Eclipse-related project files. Add the '-Dwtpversion=1.0' flag to also generate Web Tools Project files. For running the thing, I've had good experiences using the Jetty Maven 2 plugin. See our Bootstrap tutorial - http://cwiki.apache.org/confluence/display/WW/Bootstrap I also found this useful: http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse Don On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > I have downloaded and deployed the showcase examples for Struts2 as a > learning tool. I have been going through the code file by file, and > was wondering if there was a better way to handle this. I have Eclipse > IDE and was wondering if the project could be imported into Eclipse, > so I can walk the classes easier. I am new with Eclipse and also > Struts2. So I am looking for advice on how I could configure this and > also be able to make changes and see the changes within the web app. > > Make sense? Thanks, > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Showcase Example and Eclipse
Simply type, from the command line, "mvn eclipse:eclipse" and Maven will generate all the Eclipse-related project files. Add the '-Dwtpversion=1.0' flag to also generate Web Tools Project files. For running the thing, I've had good experiences using the Jetty Maven 2 plugin. See our Bootstrap tutorial - http://cwiki.apache.org/confluence/display/WW/Bootstrap I also found this useful: http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse Don On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: I have downloaded and deployed the showcase examples for Struts2 as a learning tool. I have been going through the code file by file, and was wondering if there was a better way to handle this. I have Eclipse IDE and was wondering if the project could be imported into Eclipse, so I can walk the classes easier. I am new with Eclipse and also Struts2. So I am looking for advice on how I could configure this and also be able to make changes and see the changes within the web app. Make sense? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]