CXF-2477 has the following overall description. The wsdl has a schema in it, and that schema xs:import's other schemas.
When SchemaUtil pulls the schema into Xml Schema, the imported schemas are added to the collection. However, SchemaUtil does not treat them as first-class citizens, and so they remain invisible to the javascript generator. It wouldn't be especially hard to make SchemaUtil build the SchemaInfo objects for the additional schemas. What puzzled me is why this only busts the javascript generator. Maybe it should just generate for the entire collection and ignore the particular list of SchemaInfo objects hanging off the service?
