1

I have a problem like this ; Could you please help me if you know the reason?

I m trying to generate jaxb classes for input and out types using wsgen command line utility.

error Eclipse

nurdan karaman
  • 203
  • 2
  • 4
  • 13

2 Answers2

3

The print screen you posted (and @home's comment is spot on - you should add the stacktrace not a print screen) tells you the problem.

@javax.jws.WebService annotated classes that do not belong to a package must have the @javax.jws.WebService.targetNamespace element.

You don't specify a target namespace and wsgen can't infer one because you classes are in the default package. Having classes in the default package is a frown upon practice. Put your classes under a package and try again or have the WebService.targetNamespace element set up which also gives you more control on what the tool generates.

Bogdan
  • 23,890
  • 3
  • 69
  • 61
0

@javax.jws.WebService the annotated classe who implements Web Service Business interface, must have a no-argument constructor otherwise wsGen tool gets such error.
Reference: Creating a Simple Web Service and Client with JAX-WS

Shadyar
  • 709
  • 8
  • 16