Skip to main content

Package not found while running WSGen command for Jax Ws Webservice

2 replies [Last post]
life1style1
Offline
Joined: 2012-05-24
Points: 0

Hi,

I am having this issue for quite a some time now and not able to figure out the proper solution.

I am using this command to generate wsdl : wsgen -classpath ../build/classes/ -wsdl -s . ws.JaxWsService under the source folder of my application.

The class JaxWsService is annotated as @WebService.This class imports hibernate and spring classes.Whenever i run the wsgen command it says the spring and hibernate packages does not exists.But i have the jars under the lib directory.

Any idea how to resolve this issue.

Regards,
Souvik

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sauvage
Offline
Joined: 2004-03-04
Points: 0

Hi,

It looks like you forgot to add jars you have under the lib directory in the classpath arg. Then the command should look like:
wsgen -classpath ../build/classes/:../lib/myjar.jar -wsdl -s . ws.JaxWsService

Regards,

Laurent.

life1style1
Offline
Joined: 2012-05-24
Points: 0

Thanks Laurent for ur reply.

Actually it seems there should be a semicolon(;) after the ../build/classes

instead of colon(:).

I tried with the colon but it failed,succeded using semicolon.

-Souvik