Given that JBossWS should load by default the META-INF/jboss-wsse-client.xml in your jar file if you don't explicitly provide that url, generally speaking you can access resources in a jar using the getResource() method of Class.
I have a WAR that contains the server (provider of a secure web service) and an EAR that contains the client (as a jar) and a war that implements a servlet to test the client.
EAR = client.jar + servlet.war
WAR = server.war
In the client I do
but I have a FileNotFound Error
I also try with:
URL fileURL = this.getClass().getResource("META-INF/jboss-wsse-client.xml");
StubExt stub = (StubExt) port1;
But in this way error is: fileURL is null
It's like if my JBoss don't load by default the META-INF/jboss-wsse-client.xml of my jar file, but try to load in
I can't create a dir META-INF in
<JBOSS_HOME>\bin with this file (in this case i haven't error! XD)
What I wrong? I must set something? Please, can you help me?
Thanks in advance
Can you please try including the file in the root classpath of your application ?