JAXB is troublesome with Netbeans littlebit. I finally removed default namespaces configuration wide and defined hard prefixes. package-info.java needed to be extended manually with array of XmlNs (prefix, uri). In main class of JAXB I put also @XmlRootElement (namespace) specification. Working now.