Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.




 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic