Questions tagged [wsgen]

wsgen - Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation.

79 questions
3
votes
1 answer

'wsgen' is not recognized as an internal or external command, operable program or batch file

well I do seem to be getting this error while trying to create a web service with wsgen. The details in the screenshot Can somebody help? Thanks
Arturas M
  • 4,120
  • 18
  • 50
  • 80
2
votes
1 answer

Using provided scope for javaee-api version 6 causes wsgen to fail in Maven

I use wsgen from the jaxws-maven-plugin to generate web service artifacts from my @WebService java class (start from Java). My web service class injects an @EJB. I've included the javaee-api version 6 as a dependency. Everything was working fine…
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
2
votes
1 answer

wsgen: returning an abstract class

I wrote an abstract class import javax.xml.bind.annotation.*; public abstract class Parent { @XmlAttribute(name = "one") public String getOne() { return "one";} } and two derived classes: import…
Pierre
  • 34,472
  • 31
  • 113
  • 192
2
votes
2 answers

How to write a wsgen script for Windows

I'm working on Build a SOAP Server with GAE. In the article, it contains... Run wsgen on the annoted class. This tool is now included in the JDK. My JDK includes the version from JAX-WS RI 2.1.6. (You can discover the version by typing…
cht
  • 367
  • 2
  • 6
  • 20
2
votes
0 answers

javax.validation Compatibility issue with WAS 8.5 server

I am trying to deploy my application in WAS 8.5 server, but I see something very weired happending. When I use the below jar while building , the application builds along with my wsdl without any issue. But it fails during deployment in WAS 8.5…
vibhas
  • 1,449
  • 4
  • 18
  • 32
2
votes
0 answers

ArrayStoreException while deploying war containing wsdl

I am facing the below issue while deploying my war in IBM WAS 8.5.5.3 server. Please have a look and give your suggestion of this error. I building the application I did'nt find any issue. Facing this issue from sometime but still unable to resolve…
vibhas
  • 1,449
  • 4
  • 18
  • 32
2
votes
0 answers

Unable to do wsdl generation by maven plugin

I am trying to build my project through maven(2.2.1) using jdk 1.7. But I am facing the issue when the goal wsgen runs. I go through various online issues but still unable to resolve this problem. Below is my error log : Embedded error:…
vibhas
  • 1,449
  • 4
  • 18
  • 32
2
votes
1 answer

using wsgen utility for generating webservice client classes

I have a web service implemented in this folder in this package hierarchy in eclipse: src\hw2\agency\server to generate the client classes using WSGEN utility, I entered the following command in cmd: C:\Users\NOONA\workspace\HW2>wsgen -d . -keep…
Noona
  • 643
  • 1
  • 14
  • 30
2
votes
1 answer

wsgen ant task ignore @webMethod(exclude=true) annotation

I Have a web service implementation class in java and I use wsgen to generate the service end point classes. There is a public method in my SEI that I want to exclude from the web-service interface. It seems that the annotation @WebMethod…
jumar
  • 5,360
  • 8
  • 46
  • 42
2
votes
3 answers

Maven: tools.jar not found when executing wsgen

I try to use jaxws:wsgen maven plugin from Windows 8 command line, but it fails with: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory I know this indicates Maven cannot find tools.jar in my JDK but I don't know how…
FeivelFei
  • 45
  • 1
  • 1
  • 5
2
votes
0 answers

Using wsgen to generate JAX-WS web service related classes, WSDL and XSD

I am trying out a Hello World JAX-WS web service (a Document styled, instead of RPC) in eclipse. I am following this tut. Here is my project setup: Now I want to create web service support classes for deployment of web service using wsgen as…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
2
votes
1 answer

jax-ws: what exactly does the "keep" flag in the "wsgen" tool do?

What exactly does the keep flag in the wsgen tool do? I am using the default command-line implementation that ships with Oracle Java 7 (at: /usr/lib/jvm/java-7-oracle/bin/wsgen). The documentation says: "Keep generated files" however I 've tried…
Marcus Junius Brutus
  • 26,087
  • 41
  • 189
  • 331
2
votes
2 answers

wsgen raising NoClassDefFoundError exceptions

I'm learning Java web services form the "Java Web Services Up and Running" book. As stated, I compiled the classes (where stands the "Teams" web service) : javac ch01/team/*.java Then, when it comes to generating artifacts with this command (done…
Karl
  • 23
  • 3
2
votes
2 answers

Where to find wsgen tool?

Where to find the wsgen tool?
Java Guy
  • 3,391
  • 14
  • 49
  • 55
2
votes
2 answers

Maven: How can I get a profile to inherit the dependencyManagement tag from a parent pom?

I run wsgen in its own profile because I don't want it to run every time I build the product. But I'm getting an error about a missing version when I run it: $ mvn package -P wsgen [INFO] Scanning for projects... [ERROR] The build could not read…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356