[JBossCache] - jbosscache 1.4.1.sp5 running on oc4j 10.1.3
by zinformagm
when call treeCache.start(), it has a exception:
07/10/23 15:49:24 java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
07/10/23 15:49:24 at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:504)
07/10/23 15:49:24 at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
07/10/23 15:49:24 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
07/10/23 15:49:24 at org.jgroups.blocks.MethodCall.(MethodCall.java:46)
07/10/23 15:49:24 at java.lang.Class.forName0(Native Method)
07/10/23 15:49:24 at java.lang.Class.forName(Class.java:164)
07/10/23 15:49:24 at org.jboss.cache.marshall.MethodDeclarations.class$(MethodDeclarations.java:39)
07/10/23 15:49:24 at org.jboss.cache.marshall.MethodDeclarations.(MethodDeclarations.java:268)
07/10/23 15:49:24 at org.jboss.cache.interceptors.CallInterceptor.(CallInterceptor.java:30)
07/10/23 15:49:24 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
07/10/23 15:49:24 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
07/10/23 15:49:24 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
07/10/23 15:49:24 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
07/10/23 15:49:24 at java.lang.Class.newInstance0(Class.java:350)
07/10/23 15:49:24 at java.lang.Class.newInstance(Class.java:303)
07/10/23 15:49:24 at org.jboss.cache.factories.InterceptorChainFactory.createInterceptor(InterceptorChainFactory.java:43)
07/10/23 15:49:24 at org.jboss.cache.factories.InterceptorChainFactory.createPessimisticInterceptorChain(InterceptorChainFactory.java:95)
07/10/23 15:49:24 at org.jboss.cache.factories.InterceptorChainFactory.buildInterceptorChain(InterceptorChainFactory.java:35)
07/10/23 15:49:24 at org.jboss.cache.TreeCache._createService(TreeCache.java:1431)
07/10/23 15:49:24 at org.jboss.cache.TreeCache.createService(TreeCache.java:1388)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:173)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:265)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
07/10/23 15:49:24 at com.igm.gml.cache.JbCacheUtil.(JbCacheUtil.java:37)
07/10/23 15:49:24 at com.igm.gml.servlet.initServlet.init(initServlet.java:47)
please help. thanks
-Z
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098068#4098068
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098068
18Â years, 8Â months
[JBoss Seam] - Re: getter problem
by skanky78
thank you pete, now i'm using the @factory annotation.
for pagination i'm using rich:datascroller and a dataTable component-binding (as recommended in the doc: http://docs.jboss.com/seam/2.0.0.CR1/reference/en/html_single/#d0e5034)
anonymous wrote :
|
| @In(create = true)
| // dataTable binding
| protected Binding binding;
|
| @Factory(scope=ScopeType.EVENT)
| public DataModel getItems() {
|
| // in this method i'm using the current dataTable index (dataTable.getFirst()) and pagesize (dateTable.getRows) to get the items for the selected page
|
| }
|
anonymous wrote :
| <rich:dataTable id="dataTable" binding="#{binding.dataTable}" value="#{items}">
|
| ..
| </rich:dataTable>
|
the problem with that is, that i need the current index of the datatable within the factory method to fetch the items for selected page. but at the time the factory method is executed (after restore view phase) the method binding.dataTable.getFirst() returns the old value because it isn't initialized yet.
how can i get the current index of the dataTable (if datascroller is used) so that i'm able to fetch the next page items in the factory method? any ideas?
cheers,
sven
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098062#4098062
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098062
18Â years, 8Â months