cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Blank (JIRA)" <>
Subject [jira] [Created] (CXF-3591) the generated wadl contain empty grammar section even though only jaxb classes are used
Date Wed, 15 Jun 2011 02:02:47 GMT
the generated wadl contain empty grammar section even though only jaxb classes are used

                 Key: CXF-3591
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.4
         Environment: cxf servlet on tomcat 6.0.29
            Reporter: Alexander Blank

when deploying the following service interface below with the jaxb classes one of them below
the generated wadl (in firefox by going to wadl url) does not have generated schema and grammar
section is empty.

I tried setting properties to WADLGenerator with no effect.
Is it a bug (I have the same problem with version 2.3.0) or I need to configure something
I am using jdk 1,5.

The configuration of the jaxrs server is below
<jaxrs:server id="myService" address="/" staticSubresourceResolution = "true">
        <ref bean="rateManagerResource"/>
        	<entry key="json" value="application/json"/>
            <entry key="xml" value="application/xml" />

public interface RateManagerResource {
	@Produces({ "application/xml" })
	@WadlElement(response = RateSetRes.class)
	public Response getAllRateSets();
    @Produces({ "application/xml" })
    public Response getAllCurves();
	@Produces({ "application/xml" })
	public List<CurveDetailRes> getRateInput(@PathParam("name") String name);
    @Produces({ "application/xml" })
    public Response getRateInput(@PathParam("id") long id);

	public Response postRateDataWithId(@PathParam("id") long id,List<CurveDetailRes> rateData);

    public Response postRateDataWithName(@PathParam("name") String name,List<CurveDetailRes>


@XmlRootElement(name = "rateset", namespace="")
public class RateSetRes extends RepresentationWithLinks{
    public RateSetRes() {
    private long id;
    private String name;
    public void setId(long id) { = id;
    public long getId() {
        return id;
    public void setName(String name) { = name;
    public String getName() {
        return name;

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message