Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Thank you sir. This is really my bad. I didnt know that this package-info.java is that important. I didn't keep this file thinking that it contain only package name.Now i kept and every thing worked correctly. By searching google, i tried to keep namespace for AddrCheck and AddrCheckResponse files in XmlRootElement. But that time i got null result. Any way thank you so much sir. Thatswhy i kept one more question to understand how these marshaller works, Any way thank you very much sir again. Commented Jan 6, 2011 at 0:01
  • 2
    I have the exact same problem, but i never deleted the package-info.java file and double checked if it is really there too. Could you give me some hints please? Commented Jan 20, 2012 at 11:09
  • 1
    I have kept package-info.java in place but still I get unexpected element error. Any idea what else I am missing? Commented Nov 19, 2021 at 11:53