You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Bevon <be...@gmail.com> on 2009/12/07 04:41:50 UTC

jaxws/wsgen fails with 'NotFoundException' ... classpath issue?

Greetings,
I am trying to generate a WSDL for a simple POJO, but I cannot seem to get
wsgen working.  I was getting a NullPointerException, but was able to find a
solution from the following thread:

http://old.nabble.com/Exception-while-generating-WSDL-in-Geronimo-2.0.2-to13051525s134.html#a13096574

The solution was to add the JPA spec jar to the classpath.  However, I am
now seeing a NotFoundException that I cannot seem to solve.  Here is what I
am seeing:

C:\Program Files\Apache\Geronimo_v2.1.4\bin>gsh
Apache Geronimo (2.1.4)

Type 'help' for more information.
-------------------------------------------------------------------------------
Bevon Palod@BEVONTP:/> jaxws/wsgen -classpath
C:/Progra~1/Apache/Geronimo_v2.1.4
/repository/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3
.0_spec-1.1.1.jar;E:/PSOP/wsdl/psop_jaxws20_1.jar -d E:/PSOP/wsdl
-wsdl:soap1.1
com.psop.controller.ws.CreatePlayerJaxws
error: Missing SEI

Usage: wsgen [options] <SEI>

where [options] include:
  -classpath <path>          specify where to find input class files
  -cp <path>                 same as -classpath <path>
  -d <directory>             specify where to place generated output files
  -extension                 allow vendor extensions - functionality not
specifi
ed
                             by the specification.  Use of extensions may
                             result in applications that are not portable or
                             may not interoperate with other implementations
  -help                      display help
  -keep                      keep generated files
  -r <directory>             resource destination directory, specify where
to
                             place resouce files such as WSDLs
  -s <directory>             specify where to place generated source files
  -verbose                   output messages about what the compiler is
doing
  -version                   print version information
  -wsdl[:protocol]           generate a WSDL file.  The protocol is
optional.
                             Valid protocols are soap1.1 and Xsoap1.2, the
defau
lt
                             is soap1.1.  Xsoap1.2 is not standard and can
only
be
                             used in conjunction with the -extension option
  -servicename <name>        specify the Service name to use in the
generated WS
DL
                             Used in conjunction with the -wsdl option.
  -portname <name>           specify the Port name to use in the generated
WSDL
                             Used in conjunction with the -wsdl option.

Examples:
  wsgen -cp . example.Stock
  wsgen -cp . example.Stock -wsdl -servicename {http://mynamespace}MyService

ERROR NotFoundException: E:/PSOP/wsdl/psop_jaxws20_1.jar
Bevon Palod@BEVONTP:/>


The file psop_jaxws20_1.jar contains my POJO and a SEI.  The class
com.psop.controller.ws.CreatePlayerJaxws is the POJO.  If I were to change
the -classpath setting so that my jar is first and the JPA spec jar is
second, then I see a similar error, except it complains about the JPA spec
jar:

ERROR NotFoundException:
C:/Progra~1/Apache/Geronimo_v2.1.4/repository/org/apach
e/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3.0_spec-1.1.1.jar


Any help or insight would be appreciated.  If more information is required,
please let me know.
Thanks in advance,
Bevon
-- 
View this message in context: http://old.nabble.com/jaxws-wsgen-fails-with-%27NotFoundException%27-...-classpath-issue--tp26671063s134p26671063.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.