we are creating a web project (WAR packaging), which will only have webservices developed using gvNIX/Roo following a JAX-WS Java-first approach.
We are following the official guide available at http://www.gvnix.org/assets/doc/gvnix-1.4.1-reference-docs.pdf but it doesn't seem to work.
We have done the following steps:
- Followed chapter 2, installation of gvNIX. Correct.
- Followed chapter 3, development with Eclipse. We have used STS as distribution (chapter 3.1.1). Correct.
- Followed chapter 5, create new application. Correct.
- Followed chapter 30, add-on service.
- Followed chapter 30.2, creation of local services. Correct.
- Followed chapter 30.3, creation of servers from Java. Fail.
At this step 4.2 from chapter 30.3 it fails with the message: "Command 'remote service define ws --class ~.service.Service' was found but is not currently available (type 'help' then ENTER to learn about this command)".
Putting it all together, this is the content of log.roo:
// Spring Roo 1.3.1.RELEASE [rev 8cb81a3] log opened at 2015-03-26 09:24:15
project --topLevelPackage com.test.webservices --projectName webservices --java 7 --packaging WAR
// Spring Roo 1.3.1.RELEASE [rev 8cb81a3] log closed at 2015-03-26 09:24:24
// Spring Roo 1.3.1.RELEASE [rev 8cb81a3] log opened at 2015-03-26 09:24:31
remote service class --class ~.service.Service
remote service operation --name myMethod --service ~.service.Service --return java.lang.Long --paramNames param1,param2 --paramTypes "java.lang.String,java.util.List"
// Spring Roo 1.3.1.RELEASE [rev 8cb81a3] log closed at 2015-03-26 09:30:59
And this is the command that doesn't work:
remote service define ws --class ~.service.Service
Why is this last command not working when you are following the official guide step by step?
Is it a bug on gvNIX/Roo? Doesn't gvNIX/Roo support Java first approach?
Thanks in advance.
This error was fixed on gvNIX 2.0.0.M1
https://github.com/gvSIGAssociation/gvnix
Try it and provide your feedback!
Best Regards