I use Tomcat via the Eclipse WTP. Here are some quick instructions if
you're using Maven:

- add the wtpversion and wtpContextName elements to your
  maven-eclipse-plugin config

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <downloadSources>true</downloadSources>
          <downloadJavadocs>true</downloadJavadocs>
          <wtpversion>2.0</wtpversion>
          <wtpContextName>oneid-web</wtpContextName>
        </configuration>
      </plugin>

- regenerate your Eclipse project: mvn eclipse:eclipse

- in Eclipse, refresh your project. You should see a little globe in the
  top right corner of your project icon.

- open the Servers view, right click it, and add a Tomcat server. You'll
  have to tell it about your Tomcat install directory.

- right-click your newly created server, select Add and Remove
  Projects..., and add your project to the server.

- start the server by clicking the little bug icon in the Servers view.

I've heard others on this list favour Jetty over Tomcat for reasons of
startup time and hot code replace, but I've not had either problem with
Tomcat. It starts fast (~10 seconds for my app, most of which is
starting up Spring and Hibernate), and hot code replace works unless I'm
changing the "shape" of a class (e.g. adding fields or methods).

jk

On Tue, Dec 23, 2008 at 11:34:41AM +0100, Björn Tietjens wrote:
> Hi,
> 
> I am developing a webapp with wicket on eclipse, deploying as war, using 
> a local tomcat for testing.
> What is the best/easiest way to debug my app with eclipse?
> How can I deploy/start the webapp from within eclipse or how can I  
> attach eclipse to tomcat in order to debug my code?
> 
> Thanx for your help.
> Cheers Björn
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to