Question: My question is a little bit strange but I "need" to internal purpose update the $.ajax function.

In the original jQuery code, there is:

```
ajax: function( origSettings ) {
    // Some code
    function success() {
        // If a local callback was specified, fire it and pass it the data
        if ( s.success ) {
            s.success.call( callbackContext, data, status, xhr );
        }

        // Fire the global callback
        if ( s.global ) {
            trigger( "ajaxSuccess", [xhr, s] );
        }
    }
}

```

And I would like change the internal `success` function to :

```
ajax: function( origSettings ) {
    // Some code
    function success() {
        // Fire the global callback
        if ( s.global ) {
            trigger( "ajaxSuccess", [xhr, s] );
        }

        // If a local callback was specified, fire it and pass it the data
        if ( s.success ) {
            s.success.call( callbackContext, data, status, xhr );
        }
    }
}

```

Trigger changes in this order is more normal and adapted for me...

How can I do this properly ? (If I can...)

Thanks.

Answer: 
I don't know why you wouldn't want to use google to find the answer. But, the specific problem is probably due to the fact that Tomcat now has it's own Servlet class. So try removing the servlet-api.jar file from the lib directory. Or make sure the version of Tomcat you are using with Eclipse matches the server you are going to deploy on (although it's probably easier to upgrade the Tomcat version on the server than trying to setup eclipse with an older version).
You can use [Provenance](https://github.com/armhold/Provenance) to figure out where random jar files come from, and easily get some XML to help you convert to a Maven (or Ivy) project structure.

Disclaimer: this is my project.