Java - JBoss - Seam - Eclipse Development Stack
Thursday, September 25th, 2008Here’s what I have running well at the moment (likely to change over time as needs change):
- JDK 1.6 update 7
- mysql-connector-java (I’m using version 5.1.6)
- JBoss Application Server 4.2.3.GA
- To make deployment to this application server possible/easier from my non-privileged user account:
- chown -R jerry:jerry $JBOSS_HOME
- I am controlling this only from the command line after observing that launching it from within Eclipse causes the load on my workstation to get very high for no apparent reason.
- cd $JBOSS_HOME/bin
- ./run.sh
- Since I’m also using MySQL, I have copied the mysql-connector-java-5.1.6-bin.jar file into my $JBOSS_HOME/server/default/lib
- To make deployment to this application server possible/easier from my non-privileged user account:
- Seam 2.1.0.GA
- this Seam Getting Started guide will be helpful - and there’s plenty more good info in the Reference Guide.
- If you’re serious about Seam development, get “Seam in Action” - it’s available as a PDF file too!
- I do all the seam-gen stuff from the command line - it’s really easy once you get into the “flow” of doing it this way (and eliminates any issues of doing it from within your IDE). This mostly amounts to only a few commands once you start working in your code:
- seam explode (to get things started)
- seam restart (to compile and deploy your latest code changes)
- As the project grows and evolves, it is likely you’ll end up with customized build and deployment command-line scripts anyway.
- Eclipse 3.4.1 (in my case, eclipse-jee-ganymede-SR1-linux-gtk-x86_64.tar.gz)
- Nightly build of the JBoss IDE Tools. I am using JBossTools-200810010752-nightly-ALL-linux-gtk-x86_64.zip - however a more recent build should work just as well.
- Using a recent nightly build solved my problem with the JBoss Tools Palette not working with Eclipse 3.4 as described here
- Debugging seems to work well (as long as the server is started in “debug” mode from inside Eclipse)
- JBoss Tools Palette works well.
- Looks like everything is working for now.
- Nightly build of the JBoss IDE Tools. I am using JBossTools-200810010752-nightly-ALL-linux-gtk-x86_64.zip - however a more recent build should work just as well.
Here’s an important chunk of my .bashrc file:
export JAVA_HOME=/usr/local/java/latest export PATH=$JAVA_HOME/bin:$PATH export ANT_HOME=/usr/local/apache-ant-1.7.1 export PATH=$ANT_HOME/bin:$PATH export JBOSS_HOME=/usr/local/jboss/jboss_as/latest export PATH=$JBOSS_HOME/bin:$PATH export SEAM_HOME=/usr/local/jboss/seam/latest export PATH=$SEAM_HOME:$PATH
The “latest” directory in the paths above is the result of my use of symlinks like this:
jerry@localhost /usr/local/jboss/seam >ll total 8 drwxr-xr-x 11 root root 4096 2008-10-23 23:03 jboss-seam-2.1.0.CR1 drwxr-xr-x 12 root root 4096 2008-10-24 15:03 jboss-seam-2.1.0.GA lrwxrwxrwx 1 root root 20 2008-10-24 15:12 latest -> jboss-seam-2.1.0.GA/
































































