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.

Bug 138964 - Error package annotation must be in package-info.java
Summary: Error package annotation must be in package-info.java
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: Sun Windows XP
: P4 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 17:35 UTC by julien2512
Modified: 2010-11-17 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description julien2512 2008-07-03 17:35:26 UTC
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.
Comment 1 Milan Kuchtiak 2008-12-01 16:13:18 UTC
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 ?
Comment 2 julien2512 2008-12-01 17:21:31 UTC
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.