2 Replies Latest reply on Jan 13, 2009 10:14 PM by John O'Neill

    BindException on Startup with Basic Sample

    John O'Neill Newbie

      I'm having issues with getting the Basic Sample up and running.

       

      While running on Geronimo 2.1.3, apache-servicemix-3.4.0.0-fuse, I get the folllowing error below.  Any thoughts?

       

      mvn jbi:embeddedServicemix

      Scanning for projects...

      Searching repository for plugin with prefix: 'jbi'.

      -


      Building ServiceMix :: Samples :: Basic

          task-segment: jbi:embeddedServicemix

      -


      Preparing jbi:embeddedServicemix

      servicemix-build:copy {execution: default}

      resources:resources

      Using default encoding to copy filtered resources.

      Downloading: http://repo.open.iona.com/maven2/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom

      Downloading: http://download.java.net/maven/1/org.apache.ws.security/poms/wss4j-1.5.2.pom

      Downloading: http://svn.apache.org/repos/asf/servicemix/m2-repo//org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom

      Downloading: http://repo1.maven.org/maven2/org/apache/ws/security/wss4j/1.5.2/wss4j-1.5.2.pom

      compiler:compile

      No sources to compile

      jbi:embeddedServicemix

      2009-01-11 13:44:10,984 INFO  ileSystemXmlApplicationContext - Refreshing org.apache.xbean.spring.context.FileSystemXmlApplicationContext@fd46

      62: display name ; startup date ; root of context hierarch

      y

      2009-01-11 13:44:11,324 INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from URL [file:/C:/aws/fuse/apache-servicemix-3.4.

      0.0-fuse/src/samples/basic/src/main/resources/servicemix.xml]

      2009-01-11 13:44:14,669 INFO  ileSystemXmlApplicationContext - Bean factory for application context [org.apache.xbean.spring.context.FileSyste

      mXmlApplicationContext@fd4662]: org.springframework.beans.factory.support.DefaultListableBeanFactory@12cfd62

      2009-01-11 13:44:14,719 INFO  DefaultListableBeanFactory     - Pre-instantiating singletons in org.springframework.beans.factory.support.Defau

      ltListableBeanFactory@12cfd62: defining beans ; root of factory h

      ierarchy

      2009-01-11 13:44:14,879 WARN  EndpointRegistry               - Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2P

      rocessor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader

      2009-01-11 13:44:15,580 INFO  BrokerService                  - Using Persistence Adapter: MemoryPersistenceAdapter

      2009-01-11 13:44:15,731 INFO  BrokerService                  - ActiveMQ 5.1.0 JMS Message Broker (localhost) is starting

      2009-01-11 13:44:15,731 INFO  BrokerService                  - For help or more information please see: http://activemq.apache.org/

      2009-01-11 13:44:15,951 INFO  ManagementContext              - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

       

      2009-01-11 13:44:16,151 ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind

      java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException:

      Address already in use: JVM_Bind

      at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)

      at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1395)

      at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1848)

      at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1801)

      at org.apache.activemq.broker.BrokerService.start(BrokerService.java:455)

      at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:50)

      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(Native Method)

      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.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)

      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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)

      at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479)

      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

      at java.security.AccessController.doPrivileged(Native Method)

      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.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:149)

      at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:48)

      at org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.startServiceMix(ServiceMixEmbeddedMojo.java:73)

      at org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute(ServiceMixEmbeddedMojo.java:49)

      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Caused by: java.io.IOException: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind

      at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)

      at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:124)

      at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)

      at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:123)

      at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)

      at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)

      at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)

      at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1389)

      ... 86 more

      Caused by: java.net.BindException: Address already in use: JVM_Bind

      at java.net.PlainSocketImpl.socketBind(Native Method)

      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)

      at java.net.ServerSocket.bind(ServerSocket.java:319)

      at java.net.ServerSocket.<init>(ServerSocket.java:185)

      at java.net.ServerSocket.<init>(ServerSocket.java:141)

      at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:162)

      at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:118)

      ... 92 more

      2009-01-11 13:44:16,472 INFO  DefaultListableBeanFactory     - Destroying singletons in org.springframework.beans.factory.support.DefaultLista

      bleBeanFactory@12cfd62: defining beans ; root of factory hierarch

      y

      -


      BUILD ERROR

      -


      Unable to start the ServiceMix container

       

      Embedded error: Error creating bean with name 'jbi' defined in URL [file:/C:/aws/fuse/apache-servicemix-3.4.0.0-fuse/src/samples/basic/src/main/resources/servic

      emix.xml]: Cannot create inner bean 'sm:activationSpec#10278c5' of type while setting bean property 'activa

      tionSpecs' with key ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sm:activationSpec#10278c5'

      defined in URL file:/C:/aws/fuse/apache-servicemix-3.4.0.0-fuse/src/samples/basic/src/main/resources/servicemix.xml: Cannot create inner bean '(inner bean)' of type while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException:

      Error creating bean with name '(inner bean)' defined in URL file:/C:/aws/fuse/apache-servicemix-3.4.0.0-fuse/src/samples/basic/src/main/resources/servicemix.xml: Cannot create inner bean 'jms:endpoint#6ee404' of type while setting bean property 'endpoints' with key ; nested

      exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jms:endpoint#6ee404' defined in URL [file:/C:/aws/fuse/apa

      che-servicemix-3.4.0.0-fuse/src/samples/basic/src/main/resources/servicemix.xml]: Cannot resolve reference to bean 'jmsFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in URL [file:/C:/aw

      s/fuse/apache-servicemix-3.4.0.0-fuse/src/samples/basic/src/main/resources/servicemix.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind

      -


      For more information, run Maven with the -e switch

      -


      Total time: 50 seconds

      Finished at: Sun Jan 11 13:44:16 CST 2009

      Final Memory: 21M/41M

      -


      2009-01-11 13:44:16,892 INFO  BrokerService                  - ActiveMQ Message Broker (localhost, null) is shutting down

      2009-01-11 13:44:16,902 INFO  TransportConnector             - Connector tcp://localhost:61616 Stopped

      2009-01-11 13:44:16,922 INFO  BrokerService                  - ActiveMQ JMS Message Broker (localhost, null) stopped