Seam/Environment

From Wikibooks, open books for an open world
Jump to navigation Jump to search

To set up Seam, use the following software:

Software[edit | edit source]

  • JBoss 4.2.2.GA
  • JBoss Seam 2.0.0.GA
  • Eclipse Europa for JEE developers
  • JDK 1.5.x or above
  • Apache Ant 1.6.x (do not use 1.7!)

Configuration[edit | edit source]

Environment variables[edit | edit source]

  • Ensure that JAVA_HOME is pointing to the JDK
  • Ensure that ANT_HOME is pointing to the Ant directory
  • Make sure that "%ANT_HOME%\bin" is in the PATH variable

Seam[edit | edit source]

  • Put the location of the JBOSS AS in the build.properties file (has to be absolute)

Eclipse[edit | edit source]

  • Set up the JBoss AS Runtime
    • Go to Windows --> Preferences --> Server --> Installed Runtimes
    • Click Add
    • Select JBoss 4.2 Runtime
    • Browse for the installation directory
  • Set up the server to run off the runtime
    • In the JBoss Server View, select New Server
    • Select your newly created runtime
  • Test the server by starting it up
    • If there are problems, check the end of this guide for technical issues on JBoss

HSQLDB (a.k.a. Hypersonic)[edit | edit source]

  • The embedded database within JBoss
  • I am using it in its default configuration, which means that data will not be retained when the JBoss Application Server is shut down

Notes[edit | edit source]

The above configuration is for Windows XP. I've set up the same environment on Linux (Kubuntu 7.10) without much difficulty as well.