[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
Well, SEMPPL seems work fine to me in JBoss 4.0.4GA + Seam 20060520 + jsf-facelets 1.1.4. It has still a drawback, anyway: when an exception occurs in a page, it leaks the serving transaction which is left active in the thread and may eventually be propagated to other servlets. For the very same reason, an exception in a page may led to a unusable application: the user often can't just avoid the wrong page and do something else. Do you experience the same? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946399#3946399 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946399 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
pbrewer_uk wrote : I do sometimes experience an exception that brings down the whole servlet I think this is not the same problem I'm experiencing: I get errors caused by transactions already active after the first exception. Please note that the first exception is due to a software mistake and its throwing is correct. Just, after it I get an barely useless app with SEMPPL. Probably, waiting for the transaction to timeout would help, but this is far from optimal in a web env... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946423#3946423 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946423 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: resume parent conversation in @End method
This is an interesting new feature. Do you think there would be any usefulness in enhancing it (or perhaps extending it) to the case in which one is popping and redirecting from the topmost conversation? I guess it could be usefull in many cases. In example, a logon issued by a login interceptor could start a conversation which, when ended, resumes to the point were it was started. This would get a logon on demand function implementation simpler, in example. I mean, the conversation return point should be saved in the conversation itself, not in its parent conversation. This would allow a non-null return value when ending and redirecting the topmost conversation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3943144#3943144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3943144 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: resume parent conversation in @End method
Great! Gonna try it! Thanks, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3943242#3943242 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3943242 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
I found a (very) temporary workaround to the transaction-still-there: don't use the SeamExtendedManagedPersistencePhaseListener. I had somewhere a servlet filter adding transactional behaviour to http requests. It basicly wraps a transaction begin/commit around an http request, rolling the transaction back on exceptions. I just put this servlet on top of the SeamServlet and used SeamPhaseListener instead of the extended one. It works more or less (didn't try with jBPM), but please don't ask me exactly why. Gavin, I see there is a SeamTransactionManagedPersistencePhaseListener, which sounds close the the temporary kludge I applied. I would like to give it a try, but it seems to me that's not referenced in any doc. Defining it as a PhaseListener in my app, I got this: | 2006-04-28 15:57:25,921 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-28 15:57:25,937 DEBUG [org.jboss.seam.jsf.SeamTransactionManagedPersistencePhaseListener] Starting transaction prior to RESTORE_VIEW phase | 2006-04-28 15:57:25,937 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-28 15:57:25,953 DEBUG [org.jboss.seam.contexts.Lifecycle] Begin web request | 2006-04-28 15:57:25,968 DEBUG [org.jboss.seam.contexts.Lifecycle] Session started | 2006-04-28 15:57:26,046 DEBUG [org.jboss.seam.Component] instantiating Seam component: localeSelector | 2006-04-28 15:57:26,046 DEBUG [org.jboss.seam.jsf.SeamTransactionManagedPersistencePhaseListener] Flushing persistence contexts after INVOKE_APPLICATION phase | 2006-04-28 15:57:26,062 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-28 15:57:26,109 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] uncaught exception handled by Seam | javax.servlet.ServletException: Could not flush to database | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at it.mycomp.myapp.web.filter.ClientCacheDisableFilter.doFilter(ClientCacheDisableFilter.java:43) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2006-04-28 15:57:26,281 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
anonymous wrote : If you try to mix your own tx management with Seam tx management, you will break stuff. No wonder you have been having problems. Somehow, I'd the feeling you would reply this way... :) Gavin, I added the transactional filter to the request chain to use the SeamServletFilter, not the SeamExtendedManagedPersistenceWhatever. And this happened yesterday, too. I'm in need to keep going with development, you know. anonymous wrote : However, I think I've fixed the NPE you encountered. This is really good. Will it be in today's snapshot? anonymous wrote : You are meant to use SEMPPL together with SeamServletFilter SeamServletFilter? Do you mean SeamExceptionFilter? Or do I have to use SeamServletFilter for my non-seam ImageServlet (which doesn't uses sessions, conversations and seam at all)? I mean -just to know- in the case you meant SeamServletFilter, servlets transactions are not anymore decoupled with SEMPPL? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3940198#3940198 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940198 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
anonymous wrote : As I read his thread, he did stop using SEMPPL and switched to the regular SeamPhaseListener + custom TX management because he could not resolve the exception. He was never simultaneously using SEMPPL + custom TX management. Right. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3940218#3940218 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940218 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
What about the following? After restarting jboss and the app and accessing this page from the main one, the page is correctly shown but the request ends with a RollbackException, which mean someone marked rollback-only the transaction. Please note that no place in the involved application code deals with marking the transaction rollback-only. The only place in which I could eventually do it is in the ImageServlet, but the two pages (the main one and the one for which I'm reporting this log) does not actually make use of it. | 2006-04-26 13:39:21,687 DEBUG [it.mycomp.myapp.web.filter.ClientCacheDisableFilter] Added cache-control attributes in response to http://localhost:8080/myapp/catalog.jsf; | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.contexts.Lifecycle] Begin web request | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.core.Manager] No stored conversation | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] After restore view, conversation context: ConversationContext(2) | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-26 13:39:21,687 DEBUG [org.jboss.seam.Component] instantiating Seam component: facesMessages | 2006-04-26 13:39:21,812 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: localizer | 2006-04-26 13:39:21,812 DEBUG [org.jboss.seam.Component] instantiating Seam component: localizer | 2006-04-26 13:39:21,812 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: localizer | 2006-04-26 13:39:21,812 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: localizer | 2006-04-26 13:39:21,812 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component | 2006-04-26 13:39:21,812 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component | 2006-04-26 13:39:21,828 DEBUG [org.jboss.seam.Component] instantiating Seam component: myDatabase | 2006-04-26 13:39:21,828 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-04-26 13:39:21,828 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-04-26 13:39:21,828 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4694227197247488 | 2006-04-26 13:39:21,828 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-04-26 13:39:21,828 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2006-04-26 13:39:21,843 ERROR [STDERR] org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager | at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:174) | at org.hibernate.impl.SessionImpl.checkTransactionSynchStatus(SessionImpl.java:1824) | at org.hibernate.impl.SessionImpl.getSessionFactory(SessionImpl.java:1669) | at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:388) | at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:540) | at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:562) | at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:513) | at org.hibernate.ejb.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:71) | at org.hibernate.ejb.EntityManagerImpl.init(EntityManagerImpl.java:35) | at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:37) | at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:32) | at org.jboss.ejb3.entity.InjectedEntityManagerFactory.createEntityManager(InjectedEntityManagerFactory.java:76) | at
[JBoss-user] [JBoss Seam] - SeamExtendedManagedPersistencePhaseListener
I'm having a bad time with it. I'm developing a webapp in which I have conversations (and plan to use jBPM) and some custom servlet for handling images. The problem is that, sometime, my image servlet throws an exception by which I'm told that a UserTransaction is already active. The image servlet has to access the db (by its own means: no seam or whatever), so it obtains a UserTransaction, and EntityManager and begins a transaction. Using SeamPhaseListener everything was fine, but with SeamExtendedManagedPersistencePhaseListener it seems that transactions are now not committed/rolled-back once opened when a conversation is started. Now, I know that a transaction as well as an EntityManager or Hibernate Session object is something tied to a thread, so I suppose that when my image servlet fails it is because the thread it is running into is the very same hosting a previous seam request. Well, I'm not really shure this is the right seam behaviour, anyway: UserTransaction, EntityManager and Session instances should be closed or (somehow) detached from the thread at the end of a request, isn't it? Did I find something wrong in seam, or it's (again) just me? How I'm supposed to mitigate the two needs (transactions with seam conversations and servlet decoupling)? Regards. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938954#3938954 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938954 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
You're right: cold-deploying the app I don't get anymore an IllegalWhatever exception due to an already-started transaction from the non-seam servlet. But now I get the following when accessing a parametrized page (eg.: thepage.jsf?c=3) from the very same page but different parameter (eg: from thepage.jsf?c=1) AND the switch happens in the very same HTTP connection (ie: the browser and tomcat are using an http persistent connection). | type Exception report | | message | | description The server encountered an internal error () that prevented it from fulfilling this request. | | exception | | javax.servlet.ServletException: could not register synchronization with JTA TransactionManager | org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:52) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | | root cause | | javax.servlet.ServletException: could not register synchronization with JTA TransactionManager | javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) | it.edlui.confesercenti.web.filter.ClientCacheDisableFilter.doFilter(ClientCacheDisableFilter.java:43) | org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23) | org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | | root cause | | org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager | org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:174) | org.hibernate.impl.SessionImpl.checkTransactionSynchStatus(SessionImpl.java:1824) | org.hibernate.impl.SessionImpl.getSessionFactory(SessionImpl.java:1669) | org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:388) | org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:540) | org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:562) | org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:513) | org.hibernate.ejb.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:71) | org.hibernate.ejb.EntityManagerImpl.init(EntityManagerImpl.java:35) | org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:37) | org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:32) | org.jboss.ejb3.entity.InjectedEntityManagerFactory.createEntityManager(InjectedEntityManagerFactory.java:76) | org.jboss.seam.core.ManagedPersistenceContext.create(ManagedPersistenceContext.java:53) | sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source) | sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | java.lang.reflect.Method.invoke(Method.java:585) | org.jboss.seam.util.Reflections.invoke(Reflections.java:13) | org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) | org.jboss.seam.Component.callComponentMethod(Component.java:1166) | org.jboss.seam.Component.callCreateMethod(Component.java:1151) | org.jboss.seam.Component.newInstance(Component.java:1140) | org.jboss.seam.Component.getInstance(Component.java:1088) | org.jboss.seam.Component.getInstance(Component.java:1071) | org.jboss.seam.Component.getInstanceToInject(Component.java:1195) | org.jboss.seam.Component.injectFields(Component.java:879) | org.jboss.seam.Component.inject(Component.java:686) | org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:30) | sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) | sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | java.lang.reflect.Method.invoke(Method.java:585) | org.jboss.seam.util.Reflections.invoke(Reflections.java:13) | org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:87) | org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60) | org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:68) | sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source) | sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | java.lang.reflect.Method.invoke(Method.java:585) | org.jboss.seam.util.Reflections.invoke(Reflections.java:13) | org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:87) |
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
Oh, by the way: I'm now using JBoss-4.0.4-CR2 and jboss-seam-CVS20060423. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3939072#3939072 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939072 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener
Well, it may be. But why it happens on finalizing a component and not when injecting EMs? Also, if it is a classpath problem, I would expect to see it everytime, not in few, exact conditions. Isn't that there is a classloader problem somewhere? Like, say, the tomcat's thread pool is grown from a different classloader then the one that creates the initial pool. (NOTE NOTE: just guessing). Or... I have this in jboss-app.xml: | jboss-app | loader-repositoryseam.jboss.org:loader=mywebapp/loader-repository | moduleservicelogin-service.xml/service/module | /jboss-app | Is it this the problem? I faithfully copied this on suggestion. I don't even know what's supposed to do... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3939076#3939076 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939076 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @In, @Out and @Factory. It's me or...
Almost: splitting the MyClass in two classes, one outjecting idCat and one outjecting currentCategory, as well as emulating the behaviour of @Factory through @Out(s) on getters solved the problem. It is not that elegant, but works. After changes I thought that retrieving idCat in initCurrentCategory() using Component.getInstance(...) could have possibly forced the idCat factory invocation, but I didn't try it. Do you have any suggestion to spare? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3937505#3937505 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937505 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - @In, @Out and @Factory. It's me or...
Dears, I have something like this in a Seam component of mines: | @Name(myComp) | @Scope(ScopeType.EVENT) | @Intercept(InterceptionType.ALWAYS) | public class MyComp { | @In(create = true) | private HibernateEntityManager theDatabase; | | | @RequestParameter | private String p; | | @In(create = true) @Out | private Integer idCat; | | @Factory(idCat) | public void initIdCat() | { idCat = Integer.valueOf(c); } | | | @In(create = true) @Out | private Cat currentCategory; | | @Factory(currentCategory) | public void initCurrentCategory() { | currentCategory = (Cat)theDatabase.getSession().createCriteria(Cat.class) | .add(Restrictions.idEq(idCat)) | .uniqueResult(); | } | | | // Etc, etc... | } | Now, when I ask for the idCat value from a JSF page, I get a correct result. When I attempt from that page to get the value of currentCategory, I get a NullPointerException in which it is said that idCat in initCurrentCategory() is null. Is it a Seam issue or a Giampaolo's one? Regards, Giampaolo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3935990#3935990 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935990 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @In, @Out and @Factory. It's me or...
It is not that easy to post: it is based on a two-level template and two custom tags in a ui:repeat/c:forEach... What are you looking for? I'll post the needed fragment. This is the base page, however: | ?xml version=1.0 encoding=UTF-8? | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:c=http://java.sun.com/jstl/core; | xmlns:fmt=http://java.sun.com/jstl/fmt; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:e=http://www.xxx.it/taglib/xxx; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:fn=http://java.sun.com/jsp/jstl/functions; | template=include/default.xhtml | | ui:define name=titleh:outputText value=#{e:localize(currentCategory).text}//ui:define | | ui:define name=subtitle | h:outputLink value=index.jsfHome/h:outputLink | c:forEach var=c items=#{currentCategoryPath} |span class=px16h:outputText value=//span |c:choose | c:when test=#{c == currentCategory} | h:outputText value=#{e:localize(c).text} transient=true/ | /c:when | c:otherwise | h:outputLink value=catalog.jsf | f:param name=c value=#{c.id}/ | h:outputText value=#{e:localize(c).text} transient=true/ | /h:outputLink | /c:otherwise |/c:choose | /c:forEach | /ui:define | | ui:define name=body | c:if test=#{! empty currentCategory.childrenCats} |div style=height: 8px /div |ui:repeat var=category value=#{e:orderASC(currentCategory.childrenCats)} | ui:include src=/WEB-INF/facelets/includes/categoryAbstract.xhtml/ | div style=height: 8px /div |/ui:repeat |table class=sottotrtd class=spc/td/tr/table | /c:if | c:if test=#{! empty currentCategoryProducts} |div style=height: 8px /div |c:forEach var=ph items=#{currentCategoryProducts} | ui:include src=/WEB-INF/facelets/includes/productAbstract.xhtml/ | div style=height: 8px /div |/c:forEach |table class=sottotrtd class=spc/td/tr/table | /c:if | /ui:define | /ui:composition | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3936003#3936003 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936003 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @In, @Out and @Factory. It's me or...
Well, context demarcation happens in component code, not in jsf page... However, actually I don't use it at all. I will for some pages, but not yet. @Out with @Factory always works to me when the outjected value is asked by jsf pages. It never works to me when it is used from inside the same component supplying it, as in the example provided. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3936005#3936005 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936005 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @In, @Out and @Factory. It's me or...
Ok, my brain was elsewhere while writing my previous post... Now I got your point. I think there shouldn't be any difference in grabbing an attr at context or from component level: after all, in any case there is an underlying faces context triggering the (in my case cascaded) bijections... Also, Seam doesn't have to adhere to any (more or less silly) standard, so, taken I'm not the only dumb here to feel a feature like this useful, I wouldn't say that we misunderstood the concept of seam component. Maybe that seam developers relied too much on the example Hotel app? Also, calling the idCat property means I have to trash the Factory-based design, which I don't dislike at all. I would need to wrap my attrs within | if(attr == null) { | // Build attr | } | | return(attr); | constructs. Not a big problem, but... oh my! There is probably another way to let this work, which is to retrieve the idCat attribute in initCurrentCategory from a FacesContext. But, again, it's right few lines above! Why one would need to do that? Anyway, I'm going to try it... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3936010#3936010 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936010 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @In, @Out and @Factory. It's me or...
Of course, it is: | @RequestParameter | private String c; | Something went wrong in my previous cut'n'paste. The code I'm using is correct, however... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3936015#3936015 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936015 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: DataModel / Duplicated ID
[EMAIL PROTECTED] wrote : Yes, it does seem to fix the bug in all cases. You have to return an outcome and trigger a navigation rule from faces-config.xml. I have this problem, too. But I don't (yet) have any interceptor triggered: I'm actually prototipizing a site and have only navigation links between pages (through h:outputLink). When I click on a link, sometimes I get the _id0 duplicated messages, which gets fixed simply by reloading the page in the browser. I have a two-level template nesting, however, which would cost me a bit to flatten. But I suspect that this may be the cause in my case. Did anybody of you experienced this problem with nested templates? Also, days are passed by the time of the last reply to this issue. So, I would like to know if there had been any advance in definitely fixing it. Thanks, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932805#3932805 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932805 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: DataModel / Duplicated ID
[EMAIL PROTECTED] wrote : Guys this is NOTHING TO DO WITH SEAM Well, I didn't mind to call for an impeachment of Seam in this. Just, since the people using Seam is also using myfaces+facelets, chances are they are up to date with news about this issue... Did I do something wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932815#3932815 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932815 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: DataModel / Duplicated ID
However, you were right, Gavin: upgrading the MyFaces core library (api+impl) to the 1.1.3-SNAPSHOT dated march 27, 2006, solved this issue at least for me. To whom it may concern, the MyFaces core's 1.1.3 nightly snapshots may be downloaded from http://cvs.apache.org/builds/myfaces/nightly/. An upgrade of the commons-codec, commons-collections and commons-digester libraries in the jsf-libs directory is also needed, as well as a copy of the commons-lang one, which wasn't needed at all in 1.1.1. These dependency libraries are shipped with the snapshort archive as well. Regards, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3932846#3932846 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3932846 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user