In GlassFish ESB v2.2, as in GlassFish ESB v2.1 before it, the name of the host specified in the URL matters. One may get different artifacts generated when specifying “localhost” as the host name, different when specifying FQDN of the host and different when specifying an alias host name (alternative name to FQDN, perhaps specified in the “hosts” file. If the alias refers to 127.0.0.1 artifacts are not generated correctly.
The best policy is to use the FQDN of the host to which the service is deployed. This generates correct artifacts.