I'm trying to install \examples\servicemix-web war archive with embeded
servicemix into WebSphere 6.1.0.0
and facing same jmx-related problem: InstanceAlreadyExistsException
I commented out rmiRegistry, jmxServer, jmxConnector in
servicemix-web\src\webapp\WEB-INF\jmx.xml
and in servicemix-web\src\webapp\WEB-INF\applicationContext.xml removed
MBeanServer="#jmxServer"
and set useMBeanServer="false"
and see the following exception, please advice what's going wrong ?
Exception = javax.naming.NameNotFoundException
Source = com.ibm.ws.naming.urlbase.UrlContextImpl.bind
probeid = 298
Stack Dump = javax.naming.NameNotFoundException: Name comp/env/jbi not found
in context "java:".
at
com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1767)
at
com.ibm.ws.naming.ipbase.NameSpace.getParentContext(NameSpace.java:1644)
at
com.ibm.ws.naming.urlbase.UrlContextImpl.getParentBindingData(UrlContextImpl.java:1639)
at
com.ibm.ws.naming.urlbase.UrlContextImpl.bind(UrlContextImpl.java:205)
at
com.ibm.ws.naming.urlbase.UrlContextImpl.bind(UrlContextImpl.java:344)
at javax.naming.InitialContext.bind(InitialContext.java:371)
at
org.apache.servicemix.jbi.framework.ClientFactory.start(ClientFactory.java:86)
at
org.apache.servicemix.jbi.container.JBIContainer.start(JBIContainer.java:661)
at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:117)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at
java.security.AccessController.doPrivileged(AccessController.java:214)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:605)
at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:265)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:271)
at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at
com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:653)
at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:606)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1295)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:567)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:948)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1478)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3731)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:3813)
larasith wrote:
>
> Thanks Dave, but i don't know how to disable jmx in servicemix.xml, and in
> the web distribution of servicemix there isn't a activemq.xml file.
>
>
> Dave Stanley wrote:
>>
>> You may need to disable jmx for both the smx container and the
>> embedded broker (via WEB-INF/servicemix.xml and WEB-INF/activemq.xml).
>> It seems to conflict with the WAS container.
>>
>> /Dave
>>
>> On Tue, Oct 20, 2009 at 8:48 AM, larasith <[email protected]> wrote:
>>>
>>> Hi, know anyone how to deploy smx in websphere. I'm trying to deploy de
>>> war
>>> distribution and i get this error:
>>>
>>> Error Message: Filter [spring]: could not be initialized
>>> Error Code: 500
>>> Target Servlet: null
>>> Error Stack:
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean
>>> with name 'jbi' defined in ServletContext resource
>>> [/WEB-INF/servicemix.xml]: Invocation of init method failed; nested
>>> exception is javax.jbi.JBIException:
>>> javax.management.InstanceAlreadyExistsException:
>>> org.apache.servicemix:Name=ManagementContext,cell=PC-201493Node01Cell,Type=SystemService,ContainerName=ServiceMix,node=PC-201493Node01,process=server1
>>>
>>> thanks
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Deploy-servicemix-3.3.1-in-websphere-6.1-tp25974461p25974461.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/Deploy-servicemix-3.3.1-in-websphere-6.1-tp25974461p28387979.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.