I've been using the sysdeo plugin fairly successfully. I have some notes on how
I set it up, but it's been a while since I did it. It involves setting up the
sysdeo plugin in your pom.xml and adding the sysdeo devloader to your tomcat
installation.
See here
http://mojo.codehaus.org/sysdeo-tomcat-maven-plugin/usage.html
and here's what I have in my notes.
1. install the sysdeo plugin and set up as you would normally
2. Create the devloader jar.
- go the location where you installed the plugin
(ex: ECLIPSE_HOME\plugins\com.sysdeo.eclipse.tomcat_3.2.1)
- grab the devloader.zip
- extract devloader.zip in a temp folder
- turn it into a jar
jar -cf org devloader.jar
- come to think of it you may just be able to just rename it, since
jar files are just zip archives (or you may just be able to drop it
in there).
3. Add sysdeo plugin to your pom
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sysdeo-tomcat-maven-plugin</artifactId>
<version>1.0</version>
</plugin>
4. Copy devloader.jar to TOMCAT_HOME/lib
5. Add Eclipse plugin to your pom (if not already there) with sysdeo
projectnature,
if already there then just add the projectnature
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.3</version>
<configuration>
<additionalProjectnatures>
<projectnature>
com.sysdeo.eclipse.tomcat.tomcatnature
</projectnature>
</additionalProjectnatures>
</configuration>
</plugin>
6. run the plugins
- mvn eclipse:eclipse sysdeo-tomcat:generate
- this will do a few things
- add an entry to your server.xml that will tell
tomcat to use the devloader as it's class loader
- generate a .tomcatPlugin file in your projects root
that will tell the devloader where to load the classes and
jars from
- set your build paths so that changes you make to your code
will be compiled to your target dir
- you may need to tweak the server.xml a bit to get the Context
path correct (or you can do this by right clicking on the project ->
properties -> tomcat -> context path
I got the instructions from here
http://mojo.codehaus.org/sysdeo-tomcat-maven-plugin/usage.html
however the link to how to configure the devloader is broken so I had to jimmy
that part up myself.
I think that was about it, if you try it let me know how it goes. It works
pretty well and once you have it set up in your eclipse environment adding it to
a new project is pretty simple. The only thing that seems to fail is that
changes to configuration files don't seem to get picked up (ex:
applicationContext.xml). I usually run mvn package when I make changes to config
files.
Daryl
Stan Reshetnyk wrote:
Hi
I wish I could debug appfuse based project in eclipse. So that I can
run it inside eclipse with embedded server or sysdeo tomcat plugin.
And I very instested in hot replace feature during debug. Did anybody
try to achieve that point?
Can somebody help me here. Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.24.1/1470 - Release Date: 5/28/2008 7:20 AM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]