I use HiveMind 1.1 in a web application deployed in a Websphere 4.0 server.
When I start the application, the registry is built using
Registry registry = RegistryBuilder.constructDefaultRegistry();
and it works well.
But if I change any class file without restarting the application, it throws
the following exception. Appreciate your help.
java.lang.ClassCastException:
org.apache.hivemind.impl.ServiceModelContribution
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.readServiceModelFactories(RegistryInfrastructureImpl.java:462)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.getServiceModelFactory(RegistryInfrastructureImpl.java:442)
at
org.apache.hivemind.impl.ModuleImpl.getServiceModelFactory(ModuleImpl.java:166)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:205)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:222)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:434)
at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:154)
at
org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(RegistryBuilder.java:196)
at
com.brocade.lictransfer.web.LicTransferActionServlet.init(LicTransferActionServlet.java:128)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:175)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:761)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:257)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:453)
at
com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1233)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194)
at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java:1009)
at com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java:1017)
at
com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java:384)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:501)
at
com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:356)
at
com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:31)
at
com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:390)
at java.util.TimerThread.mainLoop(Timer.java(Compiled Code))
at java.util.TimerThread.run(Timer.java:395)
--
View this message in context:
http://www.nabble.com/ClassCastException%3A-org.apache.hivemind.impl.ServiceModelContribution-tf1928649.html#a5282148
Sent from the Hivemind - User forum at Nabble.com.