After restart netbeans all my projects using JAX-WS is returning the same errors on build.
/(...)/jax-ws/(...).java:48: cannot find symbol
symbol : method required()
location: @interface javax.xml.bind.annotation.XmlElementRef
@XmlElementRef(name = "x", type = JAXBElement.class, required = false)
Cleaning and refreshing web service client don't solve this problem.
To solve it i need to delete the web service client and add a new one again.
After a restart to netbeans the problem occurs again.
(Sorry, english isn't my mother language)
I cannot reproduce the issue. The information you sent isn't sufficient.
What jdk version Netbeans in running on ?
What Java Platform is set-up in your project ?
What project type you use for your JAX-WS client ?
Do you have some library (JAX-WS or JAXB) on the project classpath ?
The problem like this usually occurs when your jax-ws artifacts are generated in a newer version of JAX-WS than JAX-WS version, used by the project.
You may try to set up the "target" wsimport option to 2.1 or to 2.0.
(Web Service References -> Edit WS Attributes -> Wsimport Options tab)
Or remove the JAXB (JAX-WS) librery, if there is any, from the project classpath. (Project -> Libraries node).
It looks similar to bug 174557.
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 2
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b12
System: Mac OS X version 10.9.4 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/rcacheira/Library/Application Support/NetBeans/8.0
Cache directory: /Users/rcacheira/Library/Caches/NetBeans/8.0
I think that setting target option to 2.1 on wsimport, solved the problem, although the problem should not occur since I created the web service client with the same version of java and netbeans and on the same computer.