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: 
You can list the directory of the jar on the command line with

```
jar tvf servlet-api.jar

```

(jar is in the bin directory of your jdk).

Odds are that this is the standard servlet api specification jar. The jar itself likely contains no implementation, rather jboss is relied on for that, but the project needed eclipse to have a copy to be able to compile the project.

You should not include the servlet-api inside your war file, as any servlet container will provide it.
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.