1

When using build script to compile jax-ws classes, compiliation errors were thrown complaining 'cannot find symbol' even though I included the correct jar in the classpath (jaxws-api.jar), I printed out the classpath entries to make sure all depenedent classes are there. any further ideas?

[javac] symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
[javac] location: class javax.xml.ws.Service
[javac]         super(wsdlLocation, serviceName, features);
[javac]         ^
[javac] 3 errors    
m4rtin
  • 2,445
  • 22
  • 34
Victor Wang
  • 41
  • 2
  • 7
  • "cannot find symbol" means the compiler can't resolve some variable or name, etc. Please add the full stacktrace in your question – Leo Aug 18 '14 at 21:29
  • This error happens exclusively when I used jenkins to automate the build. By using ant only, it doesn't throw such error, unfortunatelly, jenkins doesn't provide full stack trace. – Victor Wang Aug 18 '14 at 21:31

1 Answers1

1

Just searched around and found something related in one previous post. Will be trying the same and keep updated.

Community
  • 1
  • 1
Victor Wang
  • 41
  • 2
  • 7