This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, I am developping a web service client for my own web service. Some times, next to a big modification in the web service client, when compiling netbeans reports the "package annotation must be in package-info.java". The package-info.java file is for documentation or annotate a package. It is generated by jaxws as it build the service web proxy. Since the error message appear, it still not compile. But I tried to clean the project, but it don't work. So I tried to delete the annotation jaxws self-insert in the package-info.java file, then compile, the it works. Then, I append again the annotation in the package-info.java file, and the compilation works fine. In conclusion the error "package annotation must be in package-info.java" is non sense, and it may be a bug.
Sorry for not responding sooner. Was this really happening with Netbeans 6.1 ? We did some problems with package-info.java class in Netbeans 6.5. You're writing here: you deleted the @XmlSchema annotation ad put it back there manually, is that right ? Is this still happening with Netbeans 6.5 ?
Hi, I never test it with Netbeans 6.5, but I confirm the problem with Netbeans 6.1 (once again this afternoon, and the trick works). Is the JDK (1.5) can be the source of the problem? Today, the error message appears after setting the JDK from 1.6 to 1.5, then building a jar web service client. Thank you. P.S.: I have to test it with Netbeans 6.5, but it should be long.