You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Jose Luis Pedrosa (JIRA)" <ji...@apache.org> on 2013/10/04 15:30:42 UTC

[jira] [Updated] (SYNAPSE-980) synapse-config repository (sequences...) not initializes in war distribution

     [ https://issues.apache.org/jira/browse/SYNAPSE-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jose Luis Pedrosa updated SYNAPSE-980:
--------------------------------------


Hi All

I have been tracing this down:
I ran synapse inside jboss with an strace -f
"trace -f bin/standalone.sh 2>&1 | grep -E  'stat|open|read' > tracelog"

if i look for synapse.xml
I can see stats but also opens:
stat("/media/joseluis/comet/opt/jboss/standalone/deployments/comet.ear/synapse.war/WEB-INF/conf/synapse.xml", {st_mode=S_IFREG|0644, st_size=1107, ...}) = 0
open("/media/joseluis/comet/opt/jboss/standalone/deployments/comet.ear/synapse.war/WEB-INF/conf/synapse.xml", O_RDONLY) = 418

But if I look for registry,xml, there are only stats but no opens
 stat("/media/joseluis/comet/opt/jboss/standalone/deployments/comet.ear/synapse.war/WEB-INF/repository/conf/synapse-config/registry.xml", {st_mode=S_IFREG|0644, st_size=1466, ...}) = 0

So for some reason in this setup is not trying to open it.
Could you try to help me how to fix this?

> synapse-config repository (sequences...) not initializes in war distribution
> ----------------------------------------------------------------------------
>
>                 Key: SYNAPSE-980
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-980
>             Project: Synapse
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 2.1
>         Environment: Jboss 7.2
>            Reporter: Jose Luis Pedrosa
>            Assignee: Hiranya Jayathilaka
>            Priority: Minor
>              Labels: deployment, war
>
> 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>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org