[JBoss Seam] - configurable Skinning with Richfaces
by baz
Hello,
i do want to implement the configurable skinning shown in the richfaces demo.
So i have created a seam component called skinBean. And added in web.xml this parameter:
<context-param>
| <param-name>org.ajax4jsf.SKIN</param-name>
| <param-value>#{skinBean.skin}</param-value>
| </context-param>
|
but with no success. I thought that this is because ajax can not access seam components so i took the original skinBean from the example, renamed it to managedSkinBean and configured it as a managed bean in faces config. And of course changed the parameter shown above to managedSeamBean
But i get this exception again:
17:01:09,531 ERROR org.ajax4jsf.framework.renderer.AjaxPhaseListener: Exception on get current Skin
| javax.faces.el.EvaluationException: Cannot get value for expression '#{managedSkinBean.skin}'
| at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
| at org.ajax4jsf.framework.skin.SkinFactoryImpl.getSkinOrName(SkinFactoryImpl.java:187)
| at org.ajax4jsf.framework.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:90)
| at org.ajax4jsf.framework.renderer.AjaxPhaseListener.beforePhase(AjaxPhaseListener.java:134)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| 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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
| at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:153)
| at org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165)
| at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76)
| at org.jboss.seam.contexts.PageContext.get(PageContext.java:66)
| at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160)
| at org.jboss.seam.Component.getInstance(Component.java:1577)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53)
| at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
| at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574)
| at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
| at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
| at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
| ... 37 more
Any ideas why this happens?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030698#4030698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030698
19Â years, 1Â month
[JBossCache] - java.lang.IllegalStateException: there is already a writer h
by mindflyer
I have problem with JBossCache 1.4.1.SP3 (and JBoss 4.0.5.ga with hibernate 3.2.2.ga)
I configured optimistic mode and catched exception:
DEBUG [org.jboss.cache.interceptors.OptimisticLockingInterceptor] Caught exception attempting to lock nodes
| java.lang.IllegalStateException: there is already a writer holding the lock: GlobalTransaction:<null>:2311
| at org.jboss.cache.lock.LockMap.setWriterIfNotNull(LockMap.java:96)
| at org.jboss.cache.lock.IdentityLock.acquireWriteLock(IdentityLock.java:208)
| at org.jboss.cache.Node.acquireWriteLock(Node.java:529)
| at org.jboss.cache.Node.acquire(Node.java:476)
| at org.jboss.cache.interceptors.OptimisticLockingInterceptor.lockNodes(OptimisticLockingInterceptor.java:153)
| at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:80)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:873)
| at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1138)
| at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
| at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
| at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
| at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
| at org.jboss.tm.TxManager.commit(TxManager.java:240)
| at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:369)
| at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:160)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:157)
| at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5863)
| at org.jboss.cache.TreeCache.put(TreeCache.java:3833)
| at org.jboss.cache.TreeCache.put(TreeCache.java:3507)
| at org.hibernate.cache.OptimisticTreeCache.writeLoad(OptimisticTreeCache.java:84)
| at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:55)
| at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:156)
| at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
| at org.hibernate.loader.Loader.doQuery(Loader.java:717)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
| at org.hibernate.loader.Loader.doList(Loader.java:2211)
| at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2127)
| at org.hibernate.loader.Loader.list(Loader.java:2087)
| at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
| at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
| at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at net.uk.topdog.td2.common.dao.server.PersistentUnTypedEmfDAO.getCollection(PersistentUnTypedEmfDAO.java:316)
|
I found similar problem http://jira.jboss.com/jira/browse/JBCACHE-740
and see Fix Version/s: 2.0.0.BETA1.
The page http://labs.jboss.com/portal/jbosscache/compatibility/index.html tells that JBossCache2 is compatible only with JBoss5. Is it true?
I can't use JBoss5 now and want to use optimistic locking very much :)
Does anyone know if this problem is gonna be fixed in version 1.4.x?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030697#4030697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030697
19Â years, 1Â month
[JCA/JBoss] - Re: Jboss 4.2.0CR1 -
by mark.littleï¼ jboss.com
"omerlin" wrote : Hello Mark and weston,
| First of all, thanks for your help - i really don't know what to do because this code is running without problem on Glassfish .
|
| Mark,
| I don't see anywhere in my trace that a transaction was previously marked as ROLLBACK-ONLY.
Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a0aa44a:cf61:45ffd85c:49 status: ActionStatus.ABORT_ONLY >)
indicates to me that the transaction has been marked as rollback-only. If a transaction is rolled back then it doesn't go through the ABORT_ONLY stage. This typically only happens a) if the application calls setRollbackOnly, or b) if a timeout goes off for the transaction and it can't be rolled back immediately, for some reason.
I can't tell whether this is the cause of the problem or a symptom though, from the current stack trace.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030689#4030689
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030689
19Â years, 1Â month
[JNDI/Naming/Network] - [[EJBInvokerServlet]] Servlet.service() for servlet EJBInvo
by danny123
Is any body can tell me why I am getting this error. I am using Http naming services instead of RMI/IIOP.
19:12:19,473 ERROR [[EJBInvokerServlet]] Servlet.service() for servlet EJBInvoke
rServlet threw exception
java.lang.IllegalStateException
at org.apache.catalina.connector.ResponseFacade.resetBuffer(ResponseFaca
de.java:285)
at org.jboss.invocation.http.servlet.InvokerServlet.processRequest(Invok
erServlet.java:193)
at org.jboss.invocation.http.servlet.InvokerServlet.doPost(InvokerServle
t.java:224)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030687#4030687
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030687
19Â years, 1Â month