3 Replies Latest reply on Apr 23, 2013 9:40 AM by Justin Bertram

    user and password parameter in corebridge

    m f Newbie

      Hi all,

       

      I'm using hornetq-2.3.0.CR2. I read the user-manual but i couldn't figure out what user and password do in corebridge. Can anybody help me?

      I also tried it:

       

      <bridges>
                          <bridge name="bridge-to-target-server">
                                    <queue-name>jms.queue.source</queue-name>
                                    <forwarding-address>jms.queue.target</forwarding-address>
                                    <ha>false</ha>
                                    <retry-interval>2000</retry-interval>
                                    <reconnect-attempts>-1</reconnect-attempts>
                                    <failover-on-server-shutdown>false</failover-on-server-shutdown>
                                    <use-duplicate-detection>true</use-duplicate-detection>
                             <static-connectors>
                                              <connector-ref>remote-connector</connector-ref>
                                    </static-connectors>
                                    <user>admin</user>
                                    <password>admin</password>
                          </bridge>
       </bridges>
      
      

       

      I defined admin user in hornetq-user.xml:

       

      
      <user name="admin" password="admin">
      
      
      
      
      
      
      <role name="admin" />
      
      
      </user>
      
      
      
      

       

      But in hornetq startup, I get this error (why???):

       

       

      17:46:00,819 INFO  [org.hornetq.integration.bootstrap] HQ101000: Starting HornetQ Server
      17:46:02,406 ERROR [org.hornetq.core.client] HQ214019: Invalid configuration: org.xml.sax.SAXParseException; cvc-complex-type.2.4.d: Invalid content was found starting with element 'user'. No child element is expected at this point.
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) [jboss-mc.jar:]
                at javax.xml.validation.Validator.validate(Unknown Source) [rt.jar:1.7.0_07]
                at org.hornetq.utils.XMLUtil.validate(XMLUtil.java:479) [hornetq-core-client.jar:]
                at org.hornetq.core.deployers.impl.FileConfigurationParser.parseMainConfig(FileConfigurationParser.java:173) [hornetq-server.jar:]
                at org.hornetq.core.config.impl.FileConfiguration.start(FileConfiguration.java:85) [hornetq-server.jar:]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_07]
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_07]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_07]
                at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_07]
                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) [jboss-mc.jar:]
                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150) [jboss-mc.jar:]
                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96) [jboss-mc.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(HornetQBootstrapServer.java:236) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(HornetQBootstrapServer.java:206) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:154) [hornetq-bootstrap.jar:]
                at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83) [jboss-mc.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:115) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:69) [hornetq-bootstrap.jar:]
      
      
      17:46:02,596 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=Configuration state=Create: java.lang.IllegalStateException: Invalid configuration
                at org.hornetq.utils.XMLUtil.validate(XMLUtil.java:485) [hornetq-core-client.jar:]
                at org.hornetq.core.deployers.impl.FileConfigurationParser.parseMainConfig(FileConfigurationParser.java:173) [hornetq-server.jar:]
                at org.hornetq.core.config.impl.FileConfiguration.start(FileConfiguration.java:85) [hornetq-server.jar:]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_07]
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_07]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_07]
                at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_07]
                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) [jboss-mc.jar:]
                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150) [jboss-mc.jar:]
                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) [jboss-mc.jar:]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96) [jboss-mc.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(HornetQBootstrapServer.java:236) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy(HornetQBootstrapServer.java:206) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:154) [hornetq-bootstrap.jar:]
                at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83) [jboss-mc.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:115) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:69) [hornetq-bootstrap.jar:]
      Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.d: Invalid content was found starting with element 'user'. No child element is expected at this point.
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) [jboss-mc.jar:]
                at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) [jboss-mc.jar:]
                at javax.xml.validation.Validator.validate(Unknown Source) [rt.jar:1.7.0_07]
                at org.hornetq.utils.XMLUtil.validate(XMLUtil.java:479) [hornetq-core-client.jar:]
                ... 36 more
      
      
      17:46:02,856 ERROR [org.hornetq.integration.bootstrap] HQ104001: Failed to start server: java.lang.IllegalStateException: Incompletely deployed:
      
      
      DEPLOYMENTS IN ERROR:
        Deployment "Configuration" is in error due to: java.lang.IllegalStateException: Invalid configuration
      
      
      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "JMSServerManager" is missing the following dependencies:
          Dependency "HornetQServer" (should be in state "Installed", but is actually in state "Described")
        Deployment "HornetQServer" is missing the following dependencies:
          Dependency "Configuration" (should be in state "Installed", but is actually in state "**ERROR**")
      
      
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278) [jboss-mc.jar:]
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174) [jboss-mc.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:157) [hornetq-bootstrap.jar:]
                at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83) [jboss-mc.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:115) [hornetq-bootstrap.jar:]
                at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:69) [hornetq-bootstrap.jar:]
      
      
      17:46:02,908 INFO  [org.hornetq.integration.bootstrap] HQ101001: Stopping HornetQ Server
      
      

       

      Thanks in advance.