Skip to main content

wscompile: -security is an invalid option or argument

2 replies [Last post]
poc0123
Offline
Joined: 2005-04-06
Points: 0

i'm getting this error when compiling:

[wscompile] error: -security is an invalid option or argument
[wscompile] Usage: wscompile [options] configuration_file

i checked the version of the tool with wscompile -version and i get:

JAX-RPC Standard Implementation (1.1.3, build R1)

i'm getting this error when compiling the jaas_sample in jwsdp-2.0; would like to get past that error...thoughts anybody?

-- poc

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dingotush
Offline
Joined: 2006-05-24
Points: 0

I had the same problem, and fixed it by adding the ws-security plugin jar file to the classpath used when running wscompile. Once this is done wscompile recognises the -security option.

In my case (the xws-security examples from the jwsdp2.0, and using the sun application server) I edited jwsdp2.0/xws-security/samples/buildconfig/sjsas-config.xml
and added the following 3 lines to the definition of the path "app.classpath":



See also this thread:
http://forum.java.sun.com/thread.jspa?threadID=609410&messageID=3486045

sandoz
Offline
Joined: 2003-06-20
Points: 0

Hi,

This is the wrong forum for this question.

Please try asking on the following forum instead:

http://forums.java.net/jive/forum.jspa?forumID=46.

Thanks,
Paul.