Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

  1. Download and install Websphere 6.1.0.X
  2. Download and install EJB3 feature pack
  3. Don't forge to create or augment the Websphere profile you want to use with the EJB3 features.
  4. Go to the jboss-seam/examples/jpa directory
  5. Run ant websphere61 to build a Websphere compliant version of the application.
  6. Start the Websphere server and open the Administration Console
  7. Set a Websphere web container custom property com.ibm.ws.webcontainer.invokefilterscompatibility = true.
  8. Set a Websphere web Hard Drive Data Recovery container custom property prependSlashToResource = true.
  9. Go to the Enterprise Applications page of the Websphere Administration Console and press the Install button.
  10. Browse to the jboss-seam/examples/jpa/dist-websphere61/jboss-seam-jpa.war file using the file upload widget.
  11. In the Context root text box enter jboss-seam-jpa.
  12. Now you can select Next all the way to the Summary page and click the Finish button.
  13. From the Enterprise Applications list select: jboss-seam-jpa--> Manager Modules --> jboss-seam-jpa.war and set the class loader option to Classes loaded with application class loader first, and then Apply
  14. From the Enterprise Applications list select: jboss-seam-jpa-->Class loading and update detection link and set the class WD1001FALS loader option to Classes loaded with application class loader first, and then Apply. If this setting won't take see the reference guide for more instructions.
  15. Restart the Websphere server.
  16. Point your browser to http://localhost:9080/jboss-seam-jpa/index.html and register an account and book some hotels.

For details on these steps and more examples on Websphere including how to get EJB3 applications working see the reference guide chapter Seam on IBM's Websphere.

8 comments:
10. Mar 2008, 18:55 America/New_York | Link

Since jboss-seam-jpa.war is the non-EJB version of the hotel booking application (i.e., it's in examples/jpa/, not examples/jpa/jee5/), it should work without the IBM EJB3 Feature Pack. I was able to get it working by packaging /WEB-INF/lib/ejb3peristence.jar (from the Hibernate EntityManager project) into jboss-seam-jpa.war. EJB3 feature pack not required.

11. Mar 2008, 17:52 America/New_York | Link

I'll second the above. I have the JPA example working using the same approach Eric noted above (including the persistence APIs in the WAR file)

09. Oct 2008, 17:19 America/New_York | Link
Tiago Augusto | tiagoaugusto.AT.gmail.com

What about the custom properties i have to add, why i need to add this?

com.ibm.ws.webcontainer.invokefilterscompatibility ? prependSlashToResource ?

16. Oct 2008, 23:52 America/New_York | Link
Marek Novotny | hotmana76.AT.gmail.com

Without these properties Ajax features doesnt work in the jpa example

22. Oct 2008, 16:37 America/New_York | Link

Where can i download a sample package who run under WAS7 (the new websphere 7)

And how can i integer jbosstools for seam in RAD? (RAD is eclipse customize by IBM)

Thx

22. Dec 2008, 11:59 America/New_York | Link
Ruben Trancoso

Will seam work with websphere 6.0.2.15?

 
23. Feb 2009, 17:35 America/New_York | Link

Since there are a lot of differences between WAS 6.1 and WAS 7.0, it should be noted that:

 
04. Mar 2009, 12:11 America/New_York | Link