• Post Reply Bookmark Topic Watch Topic
  • New Topic

NetBeans gives compilation error while building the WebClient using jdk1.5

 
pawan joshi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
I m using NetBeans IDE.

When i generating a web-client using the NetBeans IDE for a WebService, i m getting the following compilation error message .
==================================================================
Compiling 46 source files to D:\Pawan\Java Projects\ThunderHead\build\classes
D:/Pawan/Java Projects/ThunderHead/build/generated/wsimport/client/com/thunderhead/api/job/package-info.java:1: package annotations should be in file package-info.java@javax.xml.bind.annotation.XmlSchema(namespace = "http://job.api.thunderhead.com", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
1 error
BUILD FAILED
==================================================================

I m using jdk1.5 and jaxws2.1

Source code of the file package-info.java :
==================================================================
@javax.xml.bind.annotation.XmlSchema(namespace = "http://job.api.thunderhead.com", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package com.thunderhead.api.job;
==================================================================

Can anyone please help me out to resolve this problem... its urgent.




 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the problem is related to your Java version. Near as I can tell, those JAXB 2.0 classes in the javax.xml.bind - etc packages are not in the standard 1.5 library, but they are in 1.6.

Bill
 
pawan joshi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i've refrenced additionaly JAXB 2.1 library in my project.

Can't the client be compiled using that library?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!