[JBoss Seam] - Re: Deployment of exploded ear fails in 1.1.6
by novare
After trying out the latest from CVS, I still get errors related to duplicate components, but now the error message is as follows:
| 11:53:26,011 DEBUG [Scanner] found: org/jboss/seam/web/SeamFilter.class
| 11:53:26,027 DEBUG [org.jboss.seam.deployment.Scanner] found: org/jboss/seam/web/package-info.class
| 11:53:26,027 DEBUG [Scanner] found: org/jboss/seam/web/package-info.class
| 11:53:26,261 INFO [org.jboss.seam.init.Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| 11:53:26,261 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| 11:53:27,011 ERROR [[/fm]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.IllegalStateException: Two components with the same name and precedence: org.jboss.seam.servlet.multipartFilter
| at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:374)
| at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:527)
| at org.jboss.seam.init.Initialization.installScannedClass(Initialization.java:473)
| at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:467)
| at org.jboss.seam.init.Initialization.init(Initialization.java:449)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:65)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
|
I've made sure that jboss-seam.jar appears only once in my deployment.
And the problem is not related to wheather or not the deployment is exploded or packed.
Any ideas?
BR
Jarle
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014938#4014938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014938
19Â years, 2Â months
[JBoss Seam] - pagination control (10.3) missing transaction
by baz
As gavin suggested. moved to herehttp://jira.jboss.com/jira/browse/JBSEAM-803
(Could it be, that the @transactional has no effect in my environment:
Hibernate running in microcontainer on tomcat
Using the configuration from the Docu chapter 19.5)
I do have implemented the pagination control (Chapter 10.3 from the docu.
This piece of code does not function:
<s:link view="/listUser.xhtml" rendered="#{myUserList.nextExists}" value=" last ">
<f:param name="firstResult" value="#{myUserList.lastFirstResult}"/>
</s:link>
When rendering the page an exception is thrown:
2:13:28,734 DEBUG org.jboss.seam.core.Events: Processing event:org.jboss.seam.postSetVariable.myUserList
12:13:28,750 DEBUG org.jboss.util.NestedThrowable: org.jboss.util.NestedThrowable.parentTraceEnabled=true
12:13:28,750 DEBUG org.jboss.util.NestedThrowable: org.jboss.util.NestedThrowable.nestedTraceEnabled=false
12:13:28,750 DEBUG org.jboss.util.NestedThrowable: org.jboss.util.NestedThrowable.detectDuplicateNesting=true
12:13:28,750 ERROR org.hibernate.util.JDBCExceptionReporter: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1171019559906/10, BranchQual=null:1171019559906, localId=0:10]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1171019559906/10, BranchQual=null:1171019559906, localId=0:10])
09.02.2007 12:13:28 com.sun.facelets.FaceletViewHandler handleRenderException
SCHWERWIEGEND: Error Rendering View[/listUser.xhtml]
javax.faces.el.EvaluationException: /listUser.xhtml @67,73 value="#{myUserList.lastFirstResult}": Exception getting value of property lastFirstResult of base of type : org.jboss.seam.framework.HibernateEntityQuery$$EnhancerByCGLIB$$9d3287a
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
at javax.faces.component.UIParameter.getValue(UIParameter.java:68)
at org.jboss.seam.ui.HtmlLink.getParameterString(HtmlLink.java:208)
at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:115)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
After removing this piece of code the pagination works for first,last and next.
I have debugged the app.
getLastFirstResult is called which calls getResultCount form HibernateEntityQuery
The query gets generated
but Integer) query.uniqueResult();
raises the excepton about the missing transaction.
Any ideas what went wrong?
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014920#4014920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014920
19Â years, 2Â months