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.

Most of the Seam example applications work with JBoss Application Server 5.x as is. Seam 2.2.0 is the recommended version for use with AS5.

Setup

The setup required to use JBoss AS 5 is exactly the same as with JBoss AS 4.2.X

  1. Download JBoss AS 5 and start JBoss with the bin/run.(sh/bat) script.
  2. Edit build.properties in your Seam directory and configure the jboss.home property to be your JBoss AS installation directory.
  3. In the jboss-seam/examples/booking directory, type ant deploy.
  4. Point your browser to http://localhost:8080/seam-booking/ and register an account and book some hotels.
  5. In the jboss-seam/examples/drools directory, type ant deploy.
  6. Point your browser to http://localhost:8080/seam-drools/ and play the guessing game.
  7. In the jboss-seam/examples/wicket directory, type ant deploy.
  8. Point your browser to http://localhost:8080/seam-wicket/ and see what Wicket is all about.

Note that jpa example has AS5 specific build target - jboss5

Now pick one of these apps and change the pages and/or source code in your Seam's /examples/<app-dir> directory and redeploy the application by calling ant deploy - see how your modifications affect the application.

If you would like to understand some of the details of the Seam, AS 5 integration take a look on the JBoss wiki and specifically What is JBoss-Seam-Int

Seam 2.2.0 compatibility issues with AS 5.x

Seam's now target's JBoss 5. All examples have been tested and work with JBoss 5.

18 comments:
 
15. Oct 2008, 07:46 America/New_York | Link

I tried the seam-dvd example, when I tried to log in I got

EntityManagerFactory not found in JNDI : java:/dvdEntityManagerFactory

Using Seam 2.1.0.CR1 and JBoss 5.0.0.CR2

 
03. Dec 2008, 10:29 America/New_York | Link
ChengLiZhi | 58104351.AT.qq

Remove seam.properties from your project, run it OK!

 
15. Dec 2008, 04:31 America/New_York | Link
Raghunath

Still issue remains ..

I'm trying to generate seam project using jbosstools with reverse engineered entities. I'm getting following error and I tried this by removing seam.properties(2 files - in src/model ,src/action) but still no use ... error repeated

javax.faces.FacesException: javax.el.ELException: /StudentList.xhtml @37,60 rendered="#{empty studentList.resultList}": Error reading 'resultList' on type org.domain.Z1.session.StudentList_$$_javassist_1
        at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:393
......
Caused by: org.hibernate.hql.ast.QuerySyntaxException: Student is not mapped [select student from Student student]
.....

Then I moved all src files to my own src-dir then I'm getting different error on the response page

Exception during request processing: 
Caused by javax.servlet.ServletException with message: "/CommunityList.xhtml @19,81 value="#{communityList.community.name}": Target Unreachable, identifier 'communityList' resolved to null" 

thanks raghu

 
12. Jan 2009, 04:07 America/New_York | Link
RND

I am getting this exactly same problem running JBossAS 5.0 and Seam 2.x. I have yet to find a solution online after searching all day.

 
12. Jan 2009, 05:12 America/New_York | Link
RND

There is a workaround here:

https://jira.jboss.org/jira/browse/JBSEAM-3821

The workaround is to add the classes to the persistence.xml file. I did this and it found the entity classes. Not the ideal solution, but it works. Hopefully this will be fixed in the non-beta releases of JBoss tools.

RND

 
19. Jan 2009, 20:47 America/New_York | Link

Seam booking example still does not work with Jboss 5.

 
09. Feb 2009, 17:01 America/New_York | Link
Jason Porter

I ran into this problem last week too, After looking into this issue and posting on the JBoss forums the solution (besides adding the class entry into the persistence.xml) is to jar up your entity objects with a persistence.xml in the META-INF (the same way you would with an EAR). This is probably a bit more portable as well.

10. Mar 2009, 20:39 America/New_York | Link

Hello issue to do with asynchronous invocation of render component for sending e-mail.

JBSEAM-4005

Note: 4.2.3-GA works perfect.

 
26. Jun 2009, 11:31 America/New_York | Link

I want to know the Setup in the article. There it says two of this: 2.Edit build.properties in your Seam directory and configure the jboss.home property to be your JBoss AS installation directory. 3.In the jboss-seam/examples/booking directory, type ant deploy.

I want to know what I should edit build.properties for?Then,In the jboss-seam/examples/booking directory, type ant deploy. Means What????

 
29. Jun 2009, 04:06 America/New_York | Link

A couple of JBoss AS 5.1.0.GA issues with Seam 2.1.2 (and likely earlier versions): Can't deploy an exploded ear / war. It causes 5.1.0.GA to constantly shutdown and redeploy the application. This is an acknowledged issue, but I haven't seen a fix date.

Haven't completely confirmed this one, but it appears 5.1.0.GA doesn't respect the <class>com.class.name</class> and <exclude-unlisted-classes /> tags within persistence.xml. In my case, I have several datasources and associated entities. With <property name="hibernate.hbm2ddl.auto" value="update"/> specified and under 4.2.3.GA, the entities are created in the proper databases. Deploying the same ear under 5.1.0.GA, the entities are created in the correct databases, but other entities from other datasources are also included! I've posted something under JBoss AS 5.1.0.GA forum.

And of course, my favorite: if you have any newlines wihin a tag in the persistence.xml, 5.1.0.GA will refuse to deploy the app.

 
30. Jun 2009, 18:29 America/New_York | Link

exclude-unlisted-classes tag must be <exclude-unlisted-classes>true</exclude-unlisted-classes> Other docs indicated <exclude-unlisted-classes/> was sufficient, and it worked in 4.x.

 
12. Aug 2009, 17:40 America/New_York | Link
philip
Robert Morse wrote on Jun 29, 2009 04:06:
A couple of JBoss AS 5.1.0.GA issues with Seam 2.1.2 (and likely earlier versions): Can't deploy an exploded ear / war. It causes 5.1.0.GA to constantly shutdown and redeploy the application. This is an acknowledged issue, but I haven't seen a fix date.

Could you please post a link to this JIRA issue? I can't seem to find it :(

 
13. Aug 2009, 18:38 America/New_York | Link

the following post from JBoss User Forum solved the infinite redeployment of exploded war for me.

removing .jsfdia and .psdia files from the exploded war let JBoss deploy the exploded war only once.

 
28. Aug 2009, 19:56 America/New_York | Link
HI!

I would like to migrate myProject from JBoss 4.22 to JBoss 5.1, but I always get this error:

Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: myProject
The xa datasources are in deploy dir.
The generated seam project by Seam-gen works fine, but I didn't find the difference between these projects. :(

thx.
 
13. Oct 2009, 11:02 America/New_York | Link
Vinh

I can't find jboss.home property in build.properties!

 
26. Oct 2009, 17:52 America/New_York | Link

look in /jboss-seam-2.2.x.GA/build/sample.build.properties

Copy the line(s) you want to /jboss-seam-2.2.x.GA/build.properties

06. Dec 2009, 17:32 America/New_York | Link
prada

Please add an note, that the ant must have been installed. To miss that note is to hinder young developer (yea, like me).

 
13. Jan 2010, 00:35 America/New_York | Link
Banjo

Add this line to hte build properties file jboss.home(EQUALS SIGN)C:/Program Files/jboss/jboss-5.1.0.GA/