Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9286415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:24:40+00:00 2026-06-18T19:24:40+00:00

How the Mule application can be directly convert into a war file, to deploy

  • 0

How the Mule application can be directly convert into a war file, to deploy in Jboss application server, i tried and failed with creating the war file manually as mentioned here and gone through this too, but still didn’t get a clear view on this part.Provide a assistance with example. Note: there is no Mule-config.xml file in my sample mule application program

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T19:24:42+00:00Added an answer on June 18, 2026 at 7:24 pm
    • In the pom.xml, ensure you have <packaging>war</packaging>
    • Create src/main/webapp/WEB-INF/web.xml using the template below, replacing YOUR_CONFIGS with a comma-separated list of Mule configurations and YOUR_PATH with the path you want for the Mule servlet,
    • Replace all your inbound HTTP endpoints with Servlet endpoints, like <servlet:inbound-endpoint path="/YOUR_ENDPOINT_PATH" />

    And you should be good to go!

    web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
        version="2.5">
    
        <context-param>
            <param-name>org.mule.config</param-name>
            <param-value>YOUR_CONFIGS</param-value>
        </context-param>
    
        <listener>
            <listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
        </listener>
    
        <servlet>
            <servlet-name>muleServlet</servlet-name>
            <servlet-class>org.mule.transport.servlet.MuleReceiverServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>muleServlet</servlet-name>
            <url-pattern>/YOUR_PATH/*</url-pattern>
        </servlet-mapping>
    </web-app>
    

    EDIT I’ve open-sourced a running demo: https://github.com/ddossot/mule-webapp-example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a mule-standalone server with an application I'm working on. Many of the
I have a Mule 3.3.0 flow which splits a file into records. I need
Using Mule 3, how can I pass a java.io.File object payload from an inbound
can somebody please help me how to make a war of a simple mule
I have a folder on my Mule ESB server which several sources can point
I have a mule application that I want to deploy to Heroku. Has any
How can I pass parameters to external webservice via mule flow using CFX?
I have an Mule application whose purpose is to send emails. The application performs
How does RabbitMQ compare to Mule, I am going to build an application using
Mule 3.3 can automatically unmarshall an XML string to an object using JAXB given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.