Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-980

synapse-config repository (sequences...) not initializes in war distribution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1
    • None
    • Deployment
    • Jboss 7.2

    Description

      Hi

      When deploying the war (exploded and updated the web.xml) with the corrects paths, The deployment of the configuration files with sequences (and any other type) fails:

      12:45:18,821 DEBUG [org.apache.synapse.deployers.AbstractSynapseArtifactDeployer] (ServerService Thread Pool – 55) Deployment of the synapse artifact from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml : STARTED
      12:45:18,822 INFO [org.apache.axis2.deployment.DeploymentEngine] (ServerService Thread Pool – 55) org.apache.axis2.deployment.DeploymentException: ServerContextInformation not found. Unable to continue the deployment operation.

      If I send a request that should go over that sequence, I got an error regarding secuence not found.
      12:56:14,858 ERROR [org.apache.synapse.mediators.base.SequenceMediator] (HttpServerWorker-1) Sequence named Value

      {name ='null', keyValue ='sequencedeploytest'} cannot be found
      12:56:14,858 ERROR [SERVICE_LOGGER.__SynapseService] (HttpServerWorker-1) Sequence named Value {name ='null', keyValue ='sequencedeploytest'}

      cannot be found
      12:56:14,859 WARN [org.apache.synapse.core.axis2.SynapseMessageReceiver] (HttpServerWorker-1) Executing fault handler due to exception encountered
      12:56:14,859 WARN [SERVICE_LOGGER.__SynapseService] (HttpServerWorker-1) Executing fault handler due to exception encountered
      12:56:14,859 WARN [org.apache.synapse.FaultHandler] (HttpServerWorker-1) ERROR_CODE : 0
      12:56:14,859 WARN [org.apache.synapse.FaultHandler] (HttpServerWorker-1) ERROR_MESSAGE : Sequence named Value

      {name ='null', keyValue ='sequencedeploytest'} cannot be found
      12:56:14,860 WARN [org.apache.synapse.FaultHandler] (HttpServerWorker-1) ERROR_DETAIL : org.apache.synapse.SynapseException: Sequence named Value {name ='null', keyValue ='sequencedeploytest'}

      cannot be found
      at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:253)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:163)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:188)
      at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
      at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
      at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:422)
      at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:274)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)

      But if after the deployment is complete If I update the file to get it reloaded (by the scanner) , it works

      12:56:55,158 DEBUG [org.apache.synapse.deployers.AbstractSynapseArtifactDeployer] (Timer-1) Undeployment of the synapse artifact from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml : STARTED
      12:56:55,159 ERROR [org.apache.synapse.deployers.AbstractSynapseArtifactDeployer] (Timer-1) Artifact representing the filename /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml is not deployed on Synapse
      12:56:55,159 INFO [org.apache.axis2.deployment.DeploymentEngine] (Timer-1) org.apache.axis2.deployment.DeploymentException: Artifact representing the filename /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml is not deployed on Synapse
      12:56:55,159 DEBUG [org.apache.synapse.deployers.AbstractSynapseArtifactDeployer] (Timer-1) Deployment of the synapse artifact from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml : STARTED
      12:56:55,164 DEBUG [org.apache.axiom.om.util.StAXUtils] (Timer-1) XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
      12:56:55,164 DEBUG [org.apache.synapse.deployers.SequenceDeployer] (Timer-1) Sequence Deployment from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml : Started
      12:56:55,164 DEBUG [org.apache.synapse.config.xml.MediatorFactoryFinder] (Timer-1) getMediator(

      {http://ws.apache.org/ns/synapse}

      sequence)
      12:56:55,165 DEBUG [org.apache.synapse.config.xml.MediatorFactoryFinder] (Timer-1) getMediator(

      {http://ws.apache.org/ns/synapse}

      log)
      12:56:55,167 DEBUG [org.apache.synapse.config.xml.MediatorFactoryFinder] (Timer-1) getMediator(

      {http://ws.apache.org/ns/synapse}

      drop)
      12:56:55,168 DEBUG [org.apache.synapse.deployers.SequenceDeployer] (Timer-1) Sequence named 'sequencedeploytest' has been built from the file /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml
      12:56:55,168 DEBUG [org.apache.synapse.mediators.base.SequenceMediator] (Timer-1) Initializing child mediators of mediator : SequenceMediator
      12:56:55,168 DEBUG [org.apache.synapse.deployers.SequenceDeployer] (Timer-1) Initialized the sequence : sequencedeploytest
      12:56:55,168 DEBUG [org.apache.synapse.deployers.SequenceDeployer] (Timer-1) Sequence Deployment from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml : Completed
      12:56:55,168 INFO [org.apache.synapse.deployers.SequenceDeployer] (Timer-1) Sequence named 'sequencedeploytest' has been deployed from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml
      12:56:55,169 DEBUG [org.apache.synapse.deployers.SynapseArtifactDeploymentStore] (Timer-1) Added deployment artifact with file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml
      12:56:55,169 DEBUG [org.apache.synapse.deployers.AbstractSynapseArtifactDeployer] (Timer-1) Deployment of the synapse artifact from file : /opt/jboss/standalone/deployments/synapse.war/WEB-INF/repository/conf/synapse-config/sequences/sequencedeploytest.xml : COMPLETED

      and if I launch a request it goes through ok.

      2:57:41,695 DEBUG [org.apache.synapse.mediators.base.SequenceMediator] (HttpServerWorker-2) Sequence <SequenceMediator> :: mediate()
      12:57:41,695 DEBUG [org.apache.synapse.mediators.base.SequenceMediator] (HttpServerWorker-2) Start : Sequence key=<Value

      {name ='null', keyValue ='sequencedeploytest'}>
      12:57:41,695 DEBUG [org.apache.synapse.mediators.base.SequenceMediator] (HttpServerWorker-2) Executing with key Value {name ='null', keyValue ='sequencedeploytest'}

      12:57:41,695 DEBUG [org.apache.synapse.mediators.base.SequenceMediator] (HttpServerWorker-2) Start : Sequence <sequencedeploytest>

      Attachments

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            jlpedrosa Jose Luis Pedrosa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: