1

我正在使用带有 gwt 的 eclipse galileo。

我收到以下错误:

No source code is available for type javax.xml.namespace.QName; did you forget to inherit a required module?
No source code is available for type javax.xml.bind.JAXBElement<T>; did you forget to inherit a required module?

我尝试将 jaxrpc.jar 添加到库路径,并下载 QName.java 的源代码(我已将其放在 src/javax/xml/namespace/QName.java 中)。但没有任何帮助。

这是让我遇到问题的文件 - 它是自动生成的:

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source     schema. 
// Generated on: 2011.08.31 at 06:12:27 PM IDT 
//


package com.company.jaxb.componentCurrentKPIs;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the com.company.jaxb.componentCurrentKPIs package. 
 * <p>An ObjectFactory allows you to programatically 
 * construct new instances of the Java representation 
 * for XML content. The Java representation of XML 
 * content can consist of schema derived interfaces 
 * and classes representing the binding of schema 
 * type definitions, element declarations and model 
 * groups.  Factory methods for each of these are 
 * provided in this class.
 * 
 */
@XmlRegistry
public class ObjectFactory {

private final static QName _ComponentCurrentKPIs_QNAME = new QName("", "componentCurrentKPIs");

/**
 * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.company.jaxb.componentCurrentKPIs
 * 
 */
public ObjectFactory() {
}

/**
 * Create an instance of {@link CurrentKPI }
 * 
 */
public CurrentKPI createCurrentKPI() {
    return new CurrentKPI();
}

/**
 * Create an instance of {@link ComponentCurrentKPIs }
 * 
 */
public ComponentCurrentKPIs createComponentCurrentKPIs() {
    return new ComponentCurrentKPIs();
}

/**
 * Create an instance of {@link JAXBElement }{@code <}{@link ComponentCurrentKPIs }{@code >}}
 * 
 */
@XmlElementDecl(namespace = "", name = "componentCurrentKPIs")
public JAXBElement<ComponentCurrentKPIs> createComponentCurrentKPIs(ComponentCurrentKPIs value) {
    return new JAXBElement<ComponentCurrentKPIs>(_ComponentCurrentKPIs_QNAME, ComponentCurrentKPIs.class, null, value);
    }

}
4

0 回答 0