Most of the Seam example applications will work out of the box with JBoss Application Server 4.2.X. See the readme.txt files in each example applications for more information or follow these step-by-step instructions:
- Download JBoss AS 4.2.X and start JBoss with the bin/run.(sh/bat) script.
- Edit build.properties in your Seam directory and configure the jboss.home property to be your JBoss AS installation directory.
- In the jboss-seam/examples/booking directory, type ant deploy.
- Point your browser to http://localhost:8080/seam-booking/ and register an account and book some hotels.
- In the jboss-seam/examples/dvdstore directory, type ant deploy.
- Point your browser to http://localhost:8080/seam-dvd/ and register an account and buy some movies.
- In the jboss-seam/examples/issues directory, type ant deploy.
- Point your browser to http://localhost:8080/seam-issues/ and register an account and enter some bugs.
Now pick one of these apps and change the pages and/or source code in your the jboss-seam/examples/<app-dir> directory and redeploy the application by calling ant deploy - see how your modifications affect the application.
Created: 12. Feb 2008, 18:14 CET (Christian Bauer)
Last Modified: 12. Feb 2008, 18:15 CET (Christian Bauer)
Running ant deploy resulted in build failure using ant 1.6.0. After installing ant 1.6.5 the build was successful.
The build.properties file didn't have an entry for 'jboss.home' and although I've added one with value pointing to my JBoss AS install dir, when I perform the ant deploy of the booking example, the EAR gets placed under C:/jboss-seam-2.1.0.A1/examples/booking/jboss-4.2.2.GA/server/default/deploy instead of C:/jboss-4.2.2.GA/server/default/deploy which is where I reckon it should be copied into. Am running JBoss 4.2.2.GA and Seam 2.1.0.A1
Please, put here your jboss.home line exactly as you typed in.
Remember that you have to use escape sequences in the path. Make sure you set the jboss.home to
Upps, the browser removed the second slash
C:\\jboss-4.2.2.GA
I get a BUILD FAILURE with Ant 1.7.0. Could somebody help me?
I get:
BUILD FAILED c:\PROGRA~1\JBOSS\-~1.CR1\examples\build.xml:618: Failed to copy c:\PROGRA~1\JBOS S\-~1.CR1\examples\dvdstore\resources\jboss-seam-dvd-ds.xml to c:\PROGRA~1\JBOSS- ~1.CR1\examples\dvdstore\Programmejboss-4.2.2.GA \server\default\deploy\jboss-se am-dvd-ds.xml due to java.io.FileNotFoundException c:\PROGRA~1\JBOSS-~1.CR1\exam ples\dvdstore\Programmejboss-4.2.2.GA \server\default\deploy\jboss-seam-dvd-ds.x ml (Das System kann den angegebenen Pfad nicht finden)
I've found the mistake:
In build.properties I set the variable
I changed that to
Now it works.
I found numerous errors when using 'ant deploy' in fedora 8/9, the key to fixing this was to set JAVA_HOME in the /etc/ant.conf file to point to the correct jdk.
Hope this helps some people.
Thanks.
I tried to run the examples with jbossAS5.0.4-beta and it's not working. I know that the instructions said to run on jbossAS4.2, but isn't supposed to work on jboss5 ?
I have the same question. Isn't it suppose to work w/ JBoss AS 5 ?
I have just spent a while digging around in the build trying to find which JBoss server instance it's trying to deploy to. Having found it's just a hard coded path to the instance It occurs to me that it would be helpful to make this a property and refer to it in the sample build properties.