You can reach Pascal by mail at

For more information about him see his LinkedIn profile

View Pascal Alma's profile on LinkedIn


27 Responses to contact

  1. Abhinandan says:


    You have not uploaded the main file for 27 July article (Spring ,hibernate and mongo db).
    Please upload that also if you have that.
    I hope you will respond soon.

  2. Abhinandan says:


    thanks for replying, what i want to say is that when we ll run these files on IDE they ll ask for a main file which is not there as a java main class, but now i have created that main file and the project is working fine just with the warnings such as :
    log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See for more info.
    i am running it on netbeans IDE and your “&quot” thing was giving some errors in one file at four places.

    would you please let me know about these warnings and how to fix it.

    • Pascal Alma says:

      The warnings means the logging framework Log$J isn’t initialized well. To do so, add a file name ‘’ to your /src/main/resources/ directory. in the file put the following:

      # default properties to initialise log4j
      log4j.rootLogger=INFO, A1
      log4j.appender.A1.layout.ConversionPattern=[%d{MM-dd HH:mm:ss}] %-5p %c{1} [%t]: %m%n

      Save it and the file should be put on your classpath when you run your class.

      • Abhinandan says:


        One thing i want to know that whether .properties file, the IDE will recognize it or not because in my case with net-beans its not doing that. And one more thing can i put this file in / src /main/config etc. and your above solution is not helping me coming out of that

      • Abhinandan says:

        Hey Hi,

        Now i have all set up with the Log4j but now the thing is that i am not able to perform insert operation on mongodb data or query it .
        Would you please let me know as how to do that.

      • robinson says:

        I am using log4j xml instead of works but log4j.xml doesn’t work

  3. MuleCoder says:

    Hi Pascal,
    I am using Mule 3.1.2 and have a secured secured service proxy defined in Mule.

    I need to consume a webservice having 1.2 as soapversion. I believe mule by default uses 1.1 as soapversion. I am aware that an attribute was introduced in Mule 3.2.
    Is there a way so that we can force it to use soapversion 1.2 without having to upgrade the mule to 3.2.
    Please suggest.

  4. MuleCoder says:

    Thank you Pascal a lot.for quick reply. Yes this issue is same as Mule defect/enhancement 5961. I tried implementing CXF interceptor but it didn’t work.
    Yeah i agree, it seems there is only option left to upgrade the Mule from 3.1.2 to 3.3,x version. do you know if there is any backward compatibility compatibility issue in Mule if i recommend up-gradation from 3.1.2 to 3.3.x.

    Thanks again for help!!

    Best Regards,
    Mule Coder

  5. MuleCoder says:

    Hello Pascal, Hope you are doing well! We need to validate the SOAP service request and response through schematron file. Do you know if there is a way i can apply schematron validations in mule proxy service? I was searching on Google and didn’t find any document around it. Thanks for help!

  6. MuleCoder says:

    Thank you Pascal for quick response. I will try this option.

  7. juantwo says:

    need help ..its my first time to use mapforce…how do i use mapforce in my webapps(shopping cart) that is created in netbeans java

    ill trying to connect my webapps to salesforce.. is it possible???

  8. Hi,

    Please, could you help me , how do I confirm that messages routed via mule jms pass-through-router is not lost ?

    Basically, we have a mule jms pass-through-router taking a message from one Q1 and passing on to Q2 based on some regex. All good.
    However, if the client which is reading the Q2 is not available, the messages are lost.

    If I send messages directly to Q2, the messages are persistent.

    Can you help how do I check this scenario while messages are getting lost from one queue to another while using mule jms pass-through-router ?

  9. Alejandro says:

    Hi Pascal,

    just a comment about (comments are closed there)

    using ActiveMq 5.10 I’m hitting the same issue the other person reported (can’t lock file). There are a couple different steps needed:
    1) the generated instanceX\bin\instanceX.bat files are incomplete, I had to add

    set ACTIVEMQ_CONF=”/instanceB/conf”
    set ACTIVEMQ_DATA=”/instanceB/data”

    2) there are a few more connectors to update in activemq.xml (stomp, mqtt and ws). I had to specify different ports there

    3) to start, now use “instanceX\bin\instanceX.bat start”

    Besides that, thanks a lot for the excellent article!

  10. Chandana says:


    I am a student of a college and need to code on Hadoop Mapreduce. As i am unaware of the basics and i have a very short duration i wanted to seek your help. Kindly let me know if you can offer you help in coding for the hadoop mapreduce. so that i can mail you more details.


  11. Alberto Pozzato says:

    Hi Pascal, I just read and I just wondering if you can post the source code related. Thanks a lot!

  12. Quentin says:

    Hi Pascal

    I have created a custom filter to secure my rest end points.
    Like so:

    public class MyFilter implements org.mule.api.routing.filter.filter, Intialisable {
    private String token;
    public boolean accept(MuleMessage message) {
    token = message.getInboundProperty(“token”);
    mySecurity security = new mySecurity();
    return security.ValidateToken(token);

    This works fine
    If the token isn’t supplied it gives me an error as it should and stops access to the endpoints.

    The error message it gives is:
    “Message has been rejected by filter. Message payload is of type; String”
    Error code is 406 Not acceptable

    How can i change this response message and error code?
    I assume the calling class will have access to the response message, but i cant seem to find it.

    Can you help?

    • Pascal Alma says:

      Hi Quentin,

      See this blog post: and especially the part about apikit:mapping-exception-strategy. I think that is what you need.

      • Quentin says:

        Thanks Pascal

        I had a look at that.
        I have tried to implement it but have been unsuccessful
        There were a number of dependency issues in ivy that i finally solved.
        But i still get this error when mule tries to deply the application.

        org.mule.module.launcher.DeploymentInitException: SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘apikit:mapping-exception-strategy’. One of ‘{“”:beans, “”:bean, “”:property-placeholder, “”:ref, “”:global-property, “”:configuration, “”:notifications, “”:abstract-extension, “”:abstract-shared-extension, “”:abstract-mixed-content-extension, “”:abstract-agent, “”:abstract-security-manager, “”:abstract-transaction-manager, “”:abstract-shared-transaction-manager, “”:abstract-connector, “”:abstract-shared-connector, “”:abstract-global-endpoint, “”:abstract-exception-strategy, “”:abstract-flow-construct, “”:flow, “”:sub-flow, “”:abstract-model, “”:abstract-interceptor-stack, “”:abstract-filter, “”:abstract-transformer, “”:processor-chain, “”:custom-processor, “”:abstract-empty-processor, “”:invoke, “”:set-payload, “”:abstract-global-intercepting-message-processor, “”:custom-queue-store, “”:abstract-processing-strategy}’ is expected.
        at org.mule.module.launcher.application.DefaultMuleApplication.init( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.artifact.ArtifactWrapper.init( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArtifactDeployer.deploy( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DeploymentDirectoryWatcher.deployPackedApps( ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at java.util.concurrent.Executors$ ~[?:1.7.0_91]
        at java.util.concurrent.FutureTask.runAndReset( ~[?:1.7.0_91]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301( ~[?:1.7.0_91]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ ~[?:1.7.0_91]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.7.0_91]
        at java.util.concurrent.ThreadPoolExecutor$ [?:1.7.0_91]
        at [?:1.7.0_91]

      • Pascal Alma says:

        Hi Quentin,

        This error can be caused by two things:
        – you didn’t declare the namespace ‘apikit’ in your config file
        – if the namespace is in place you are missing the dependency holding the ‘apikit’ XSD and corresponding code.
        So I would suggest you check these two again. Otherwise try the Mule Forum to see if they can help you with this.

  13. Anuj Agarwal says:

    Hi Pascal,

    My name is Anuj Agarwal. I’m Founder of Feedspot.

    I would like to personally congratulate you as your blog The Pragmatic Integrator | Pascal Alma has been selected by our panelist as one of the Top 40 Java Blogs on the web.

    I personally give you a high-five and want to thank you for your contribution to this world. This is the most comprehensive list of Top 40 Java Blogs on the internet and I’m honored to have you as part of this!

    Also, you have the honor of displaying the badge on your blog.


  14. Alexandre Moraes says:

    I read the post and it is exactly what I need.
    But i´m running version 5.15 and when I starts the second instance an error occur.

    A big stacktrace is shown and the last error is:
    ERROR: java.lang.IllegalStateException: BeanFactory not initialized or already closed.

    Do you know what is happening?

    Thanks in advance

  15. Animesh Kumar says:

    Hey, I have read a few of your posts and found them really helpful and amazing. in addition to the technical knowledge, I also want to know more about the good practices and guidelines which are followed while developing an industrial level software. Can you give me some more information about the same? Exact culture and specifications of the practices followed and tool used to achieve these in any of the previous places you have worked would be very helpful. Thank You!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s