[JBoss Cache: Core Edition] - Bind cache with jndi
by gsoing
Hi All,
I'm trying to use jboss cache 3.0.3 and I want to bind it to the JNDI. For the moment I have the following exception :
| 21:44:12,839 INFO [ComponentRegistry] JBoss Cache version: JBossCache 'Naga' 3.
| 0.2.GA
| 21:44:12,917 ERROR [STDERR] javax.naming.CommunicationException [Root exception
| is java.io.NotSerializableException: org.jboss.cache.invocation.CacheInvocationD
| elegate]
| 21:44:12,917 ERROR [STDERR] at org.jnp.interfaces.NamingContext.bind(NamingC
| ontext.java:673)
| 21:44:12,917 ERROR [STDERR] at org.jnp.interfaces.NamingContext.bind(NamingC
| ontext.java:607)
| 21:44:12,917 ERROR [STDERR] at javax.naming.InitialContext.bind(InitialConte
| xt.java:400)
| 21:44:12,917 ERROR [STDERR] at com.capgemini.test.InitServlet.init(InitServl
| et.java:70)
| 21:44:12,917 ERROR [STDERR] at javax.servlet.GenericServlet.init(GenericServ
| let.java:212)
| 21:44:12,917 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load
| Servlet(StandardWrapper.java:1048)
| 21:44:12,917 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load
| (StandardWrapper.java:950)
| 21:44:12,917 ERROR [STDERR] at org.apache.catalina.core.StandardContext.load
| OnStartup(StandardContext.java:4122)
| 21:44:12,917 ERROR [STDERR] at org.apache.catalina.core.StandardContext.star
| t(StandardContext.java:4421)
| 21:44:12,917 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.Tomcat
| Deployment.performDeployInternal(TomcatDeployment.java:312)
| 21:44:12,917 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.Tomcat
| Deployment.performDeploy(TomcatDeployment.java:144)
| 21:44:12,917 ERROR [STDERR] at org.jboss.web.deployers.AbstractWarDeployment
| .start(AbstractWarDeployment.java:461)
| 21:44:12,917 ERROR [STDERR] at org.jboss.web.deployers.WebModule.startModule
| (WebModule.java:118)
| 21:44:12,917 ERROR [STDERR] at org.jboss.web.deployers.WebModule.start(WebMo
| dule.java:97)
| 21:44:12,917 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
| Native Method)
| 21:44:12,917 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
| ativeMethodAccessorImpl.java:39)
| 21:44:12,917 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
| ke(DelegatingMethodAccessorImpl.java:25)
| 21:44:12,917 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
| 97)
| 21:44:12,917 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.
| invoke(ReflectedDispatcher.java:157)
| 21:44:12,917 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invoc
| ation.java:96)
| 21:44:12,917 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
| ion.java:88)
| 21:44:12,917 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invo
| ke(AbstractMBeanInvoker.java:264)
| 21:44:12,917 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
| eanServerImpl.java:668)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.microcontainer.ServiceProxy.
| invoke(ServiceProxy.java:206)
| 21:44:12,917 ERROR [STDERR] at $Proxy36.start(Unknown Source)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.microcontainer.StartStopLife
| cycleAction.installAction(StartStopLifecycleAction.java:42)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.microcontainer.StartStopLife
| cycleAction.installAction(StartStopLifecycleAction.java:37)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleCon
| trollerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessCon
| trollerContextAction.install(AccessControllerContextAction.java:71)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| erContextActions.install(AbstractControllerContextActions.java:51)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| erContext.install(AbstractControllerContext.java:348)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.microcontainer.ServiceContro
| llerContext.install(ServiceControllerContext.java:286)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.install(AbstractController.java:1598)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.incrementState(AbstractController.java:934)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.resolveContexts(AbstractController.java:1062)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.resolveContexts(AbstractController.java:984)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.change(AbstractController.java:822)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.change(AbstractController.java:553)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.ServiceController.doChange(S
| erviceController.java:688)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.ServiceController.start(Serv
| iceController.java:460)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.deployers.ServiceDeployer.st
| art(ServiceDeployer.java:163)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.deployers.ServiceDeployer.de
| ploy(ServiceDeployer.java:99)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.deployers.ServiceDeployer.de
| ploy(ServiceDeployer.java:46)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.Abst
| ractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.Abst
| ractRealDeployer.deploy(AbstractRealDeployer.java:50)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.Deploye
| rWrapper.deploy(DeployerWrapper.java:171)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.Deploye
| rsImpl.doDeploy(DeployersImpl.java:1439)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.Deploye
| rsImpl.doInstallParentFirst(DeployersImpl.java:1157)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.Deploye
| rsImpl.doInstallParentFirst(DeployersImpl.java:1178)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.Deploye
| rsImpl.install(DeployersImpl.java:1098)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| erContext.install(AbstractControllerContext.java:348)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.install(AbstractController.java:1598)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.incrementState(AbstractController.java:934)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.resolveContexts(AbstractController.java:1062)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.resolveContexts(AbstractController.java:984)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.change(AbstractController.java:822)
| 21:44:12,917 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControll
| er.change(AbstractController.java:553)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.Deploye
| rsImpl.process(DeployersImpl.java:781)
| 21:44:12,917 ERROR [STDERR] at org.jboss.deployers.plugins.main.MainDeployer
| Impl.process(MainDeployerImpl.java:698)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.server.profileservice.hotdep
| loy.HDScanner.scan(HDScanner.java:290)
| 21:44:12,917 ERROR [STDERR] at org.jboss.system.server.profileservice.hotdep
| loy.HDScanner.run(HDScanner.java:221)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.Executors$RunnableAdapte
| r.call(Executors.java:441)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| 21:44:12,917 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| 21:44:12,917 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
| 21:44:12,917 ERROR [STDERR] Caused by: java.io.NotSerializableException: org.jboss.cache.invocation.CacheInvocationDelegate
| 21:44:12,917 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
| 21:44:12,917 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
| 21:44:12,917 ERROR [STDERR] at java.rmi.MarshalledObject.<init>(MarshalledObject.java:101)
| 21:44:12,917 ERROR [STDERR] at org.jnp.interfaces.MarshalledValuePair.<init>(MarshalledValuePair.java:65)
| 21:44:12,933 ERROR [STDERR] at org.jnp.interfaces.NamingContext.createMarsha
| lledValuePair(NamingContext.java:1393)
| 21:44:12,933 ERROR [STDERR] at org.jnp.interfaces.NamingContext.bind(NamingContext.java:636)
| 21:44:12,933 ERROR [STDERR] ... 69 more
|
So my question is : is it possible to bind the cache to the jndi. If it not the case, how can i share it between several webapps or application.
Regards
--
Guillaume
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235108#4235108
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235108
16 years, 10 months
I get the message "Queue full, discarding item" at jboss startup time
by Arif Pathan
I have been using JBoss version 4.2.2 for some time now. Since last
couple of days, I've started seeing the message "Queue full, discarding
item" printed out on stdout (get multiple of these). These messages show
up before JBoss finishes initializing. I've tried searching the web,
jboss source, etc. but to no avail. Any pointers would be greatly
appreciated,
Thanks in advance,
arif
-----------------------------------------
Confidentiality Notice!
This electronic transmission and any attached documents or other
writings are confidential and are for the sole use of the intended
recipient(s) identified above. This message may contain information
that is privileged, confidential or otherwise protected from
disclosure under applicable law. If the receiver of this
information is not the intended recipient, or the employee, or
agent responsible for delivering the information to the intended
recipient, you are hereby notified that any use, reading,
dissemination, distribution, copying or storage of this information
is strictly prohibited. If you have received this information in
error, please notify the sender by return email and delete the
electronic transmission, including all attachments from your
system.
16 years, 10 months