I am trying to compile a subclass of java.lang.Exception with the
@WebFault annotation drawn from jaxb-api-2.0.jar of the
apache-cxf-2.0.1-incubator.tar.gz binary package.
import javax.xml.ws.WebFault;
@WebFault(name="PfCServiceFault",
faultName="au.net.mmsn.pfc.servlet.PfCServiceFault")
public class PfCServiceFault extends Exception {
...
}
Unfortunately when I compile that I get the compilation error
PfCServiceFault.java:6: cannot find symbol
symbol : method faultName()
location: @interface javax.xml.ws.WebFault
faultName="au.net.mmsn.pfc.servlet.PfCServiceFault")
^
1 error
Is that normal?
I am using javac 1.5.0_06 on linux.
I was hoping that the faultName might propogate through into
the imports of the wsdl2java created interface and its implementation
(because it doesn't seem to curently)
Thanks for any advice.
Doug