[JBoss Seam] - Re: @Destroy annotated method on Application Scoped componen
by bytor99999
Using "org.jboss.seam.preDestroyContext.Application" does not call the method at all, I then assumed it was because "Application" should be "APPLICATION"
so
Using "org.jboss.seam.preDestroyContext.APPLICATION" we get the following exception.
| 15:18:45,718 INFO [TomcatDeployer] undeploy, ctxPath=/embedded-console, warUrl=.../tmp/deploy/tmp6323embedded-console-e
| xp.war/
| 15:18:45,734 ERROR [[/embedded-console]] Exception sending context destroyed event to listener instance of class org.jbo
| ss.seam.servlet.SeamListener
| java.lang.IllegalStateException: no event context active
| at org.jboss.seam.web.ServletContexts.instance(ServletContexts.java:40)
| at org.jboss.seam.web.Parameters.getRequestParameters(Parameters.java:39)
|
And that kind of looks like the same thing that we got for @Destroy "no event context active"
Wait, if this is a redeploy, so I am overwriting the .war file, is the original Class still in the ClassLoader for it to call the @Destroy or event method? Or is it gone when JBoss AS/Tomcat undeploys it? Maybe that has something to do with what we are seeing. Just a wild guess.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062721#4062721
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062721
18Â years, 10Â months
[JBoss Seam] - Re: Web Application Deployment (JSF [with Seam] + EJB3 [with
by pete.muirï¼ jboss.org
"tcavaleiro" wrote : The doubt is:
| "how can we deploy a JSF project that communicates with the EJB3 that exists on another tier". Or in other way, making a separate deployment for EJB3 and another deployment for JSF, is that possible? Is there any configuration changes needed?
For most apps Seam makes tiered development unnecessary (in our opinion at least), so you aren't going to find many examples of it. But you can still do it. Just declare your EJBs as normal, and inject them using @EJB into your Seam (EJB) components as needed (or use whatever method you like to get hold of the EJBs). It's tricker to get the SMPC working here, but you can. You should be able to declare multiple ejb modules in your application.xml if you want to package your ejbs seperate from your seam components
anonymous wrote : Another thing, it's possible (not read much about it.. so if someone can abbreviate the time reading :) ) to interact with ajax4jsf in some way, using javascript hand made or jboss seam remoting, that we can refresh some part of the page (rerender an outputPanel).
I believe that ajax4jsf offers this ootb - take a look at the ajax4jsf docs and the booking example.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062720#4062720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062720
18Â years, 10Â months
[JBoss Seam] - [Seam 2] Parameter, sent from EL expression in xhtml to metho
by fmars
Because the beta 1 release has a bug, which makes my application not-runnable, i can't use it. So i built seam 2 from the CVS myself.
i have a stateful bean, a long-running conversation. In a step a table is displayed with clickable links made by <s:link>. from the "action" i'm calling a method of the bean with a parameter. The method is called successfully but the parameter is always null. I am using <rich:dataTable>. Here how it looks like (shortened)
<rich:dataTable var="gene" value="#{methcancerpipe.genes}">
| <f:facet name="header"> Column Headers ... </f:facet>
|
| <rich:column>
| <ui:repeat value="#{gene.geneinfo.isoforms}" var="isoform">
| <s:link action="#{methcancerpipe.displayCpGInfos(isoform)}" value="#{isoform.name} "/>
| </ui:repeat>
| </rich:column>
| </rich:dataTable>
Somehow "isoform" set to null on the way. it is not null because the name (value="#{isoform.name} ) is shown correctly.
But if i set the parameter statically like this:
<ui:repeat value="#{gene.geneinfo.isoforms}" var="isoform">
| <s:link action="#{methcancerpipe.displayCpGInfos(methcancerpipe.genes[0].geneinfo.isoforms[0])}" value="#{isoform.name} "/>
| </ui:repeat>
it works as expected. i think, this is a bug. What do you think?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062717#4062717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062717
18Â years, 10Â months
[JBoss Seam] - Problem running SeamTest
by tuxzilla
I changed all the EJBs in my app to pojo, and used Seam entityManager. I got this error when I ran my test that extends SeamTest:
[testng] Caused by: java.lang.RuntimeException: org.hibernate.TransactionExce
ption: Could not register synchronization for container transaction
Here is the persistence-test.xml:
| <persistence-unit name="n3">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/n3TestDatasource</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.cache.use_query_cache" value="true"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/n2EntityManagerFactory"/>
| <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider" />
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSDirectoryProvider"/>
| <property name="hibernate.search.default.indexBase" value="C:\temp\testLuceneIndex"/>
| </properties>
| </persistence-unit>
How do I make tests run for Pojos? Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062711#4062711
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062711
18Â years, 10Â months