[jboss-user] [JBossCache] - Re: java.io.NotSerializableException: WebappClassLoader
philippe.suray
do-not-reply at jboss.com
Thu Apr 5 04:24:35 EDT 2007
I ran another test: deploy my webapp in Tomcat inside JBoss, in my ServletContextListener i init the cache with:MBeanServer server =MBeanServerLocator.locateJBoss();
| treecache = (TreeCacheMBean)MBeanProxyExt.create(TreeCacheMBean.class, "jboss.cache:service=TreeCache", server);
| treecache.registerClassLoader("/command_image/", Thread.currentThread().getContextClassLoader());
| isInited = true;
In my servlet, i try to get an image from the cache with:(MappingResponse)treeCache.get(fqn.toString(), key))
Another exception is thrown:10:12:06,437 ERROR [JDBCCacheLoader] Failed to load node for fqn /command_image/style_20/zoom_10/grid_10_127: Unable to load to deserialize result: java.lang.ClassNotFoundException: No ClassLoaders found for: com.marketip.cache.util.MappingResponse
| java.sql.SQLException: Unable to load to deserialize result: java.lang.ClassNotFoundException: No ClassLoaders found for: com.marketip.cache.util.MappingResponse
| at org.jboss.cache.loader.JDBCCacheLoader.loadNode(JDBCCacheLoader.java:1109)
| at org.jboss.cache.loader.JDBCCacheLoader.get(JDBCCacheLoader.java:263)
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadData(CacheLoaderInterceptor.java:443)
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadNode(CacheLoaderInterceptor.java:353)
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:180)
| at org.jboss.cache.interceptors.ActivationInterceptor.invoke(ActivationInterceptor.java:64)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:365)
| 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:138)
| at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5863)
| at org.jboss.cache.TreeCache.get(TreeCache.java:3627)
| at org.jboss.cache.TreeCache.get(TreeCache.java:3608)
| at org.jboss.cache.TreeCache.get(TreeCache.java:3595)
| at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy54.get(Unknown Source)
| at com.marketip.cache.filter.CacheFilter.doFilter(CacheFilter.java:54)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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)
I really don't understand what happens.
Help, help ...
PHS
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034912#4034912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034912
More information about the jboss-user
mailing list