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.
| Online: | 10 Members of 9199 |
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.
The setup required to use JBoss AS 5 is exactly the same as with JBoss AS 4.2.X
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's now target's JBoss 5. All examples have been tested and work with JBoss 5.
I tried the seam-dvd example, when I tried to log in I got
Using Seam 2.1.0.CR1 and JBoss 5.0.0.CR2
Remove seam.properties from your project, run it OK!
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
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.
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
Seam booking example still does not work with Jboss 5.
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.
Hello issue to do with asynchronous invocation of render component for sending e-mail.
JBSEAM-4005
Note: 4.2.3-GA works perfect.
I want to know the 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????
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.
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.
Could you please post a link to this JIRA issue? I can't seem to find it :(
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.
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.
I can't find jboss.home property in build.properties!
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
Please add an note, that the ant must have been installed. To miss that note is to hinder young developer (yea, like me).
Add this line to hte build properties file jboss.home(EQUALS SIGN)C:/Program Files/jboss/jboss-5.1.0.GA/