Java 扩展的WADL:看不到jaxb类

Java 扩展的WADL:看不到jaxb类,java,jaxb,jersey-2.0,wadl,Java,Jaxb,Jersey 2.0,Wadl,我为以下问题挣扎了几天。 我创建了一个简单的jersey 2项目。 这是我的运动衫 public class JerseyConfig extends ResourceConfig { public JerseyConfig() { property(ServerProperties.WADL_GENERATOR_CONFIG, "com.platform.config.jersey.EpWadlGeneratorConfig"); register(P

我为以下问题挣扎了几天。 我创建了一个简单的jersey 2项目。 这是我的运动衫

public class JerseyConfig extends ResourceConfig {
    public JerseyConfig() {
        property(ServerProperties.WADL_GENERATOR_CONFIG, "com.platform.config.jersey.EpWadlGeneratorConfig");

        register(ProjectPolicyCounterWebService.class);
    }
}
此外,我还有以下生成器配置:

public class EpWadlGeneratorConfig extends WadlGeneratorConfig {

    @Override
    public List<WadlGeneratorDescription> configure() {

        return generator(WadlGeneratorApplicationDoc.class)
                .prop("applicationDocsStream", "ws/wadl/application-doc.xml")
                .generator(WadlGeneratorResourceDocSupport.class)
                .prop("resourceDocStream", "resourcedoc.xml")
                .generator(WadlGeneratorGrammarsSupport.class)
                .prop("grammarsStream", "ws/wadl/application-grammars.xml")
                .prop("overrideGrammars", true)
                .generator(WadlGeneratorResourceDocSupport.class)
                .prop("resourceDocStream", "ws/wadl/resourcedoc.xml")
                .descriptions();
    }

}
响应类型中不包含我的元素

<ns2:application xmlns:ns2="http://wadl.dev.java.net/2009/02">
<ns2:doc title="A message in the WADL" xml:lang="en">
This is added to the start of the generated application.wadl
</ns2:doc>
<ns2:doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 2.19 2015-06-29 13:02:58"/>
<ns2:doc xmlns:jersey="http://jersey.java.net/" jersey:hint="This is simplified WADL with user and core resources only. To get full WADL with extended resources use the query parameter detail. Link: http://localhost:9000/api/application.wadl?detail=true"/>
<ns2:grammars>
<ns2:include href="/ws/xsd/NumberResponseType.xsd"/>
</ns2:grammars>
<ns2:resources base="http://localhost:9000/api/">
<ns2:resource path="/">
<ns2:resource path="type">
<ns2:method id="type" name="GET">
<ns2:response>
<ns2:representation mediaType="application/xml"/>
</ns2:response>
</ns2:method>
</ns2:resource>
</ns2:resource>
</ns2:resources>
</ns2:application>

这将添加到生成的application.wadl的开头
我做错了什么

<ns2:application xmlns:ns2="http://wadl.dev.java.net/2009/02">
<ns2:doc title="A message in the WADL" xml:lang="en">
This is added to the start of the generated application.wadl
</ns2:doc>
<ns2:doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 2.19 2015-06-29 13:02:58"/>
<ns2:doc xmlns:jersey="http://jersey.java.net/" jersey:hint="This is simplified WADL with user and core resources only. To get full WADL with extended resources use the query parameter detail. Link: http://localhost:9000/api/application.wadl?detail=true"/>
<ns2:grammars>
<ns2:include href="/ws/xsd/NumberResponseType.xsd"/>
</ns2:grammars>
<ns2:resources base="http://localhost:9000/api/">
<ns2:resource path="/">
<ns2:resource path="type">
<ns2:method id="type" name="GET">
<ns2:response>
<ns2:representation mediaType="application/xml"/>
</ns2:response>
</ns2:method>
</ns2:resource>
</ns2:resource>
</ns2:resources>
</ns2:application>