Papi Client:: The WebLogic Server 9.x-style policy is not supported in JAX
739930Mar 23 2011 — edited Oct 31 2011Ive generated a papi WS client using Ant <clientgen>. When I deploy and run it in weblogic 10.3.4 I get this error:
Caused by: weblogic.wsee.ws.init.WsDeploymentException: The WebLogic Server 9.x-style policy is not supported in JAX-WS web services.
at weblogic.wsee.security.wssp.deploy.WssDeploymentListener.process(WssDeploymentListener.java:55)
at weblogic.wsee.jaxws.framework.jaxrpc.TubelineDeploymentListener.createClient(TubelineDeploymentListener.java:56)
Im setting the username/password using a ClientUNTCredentialProvider:
BindingProvider bindingProvider = (BindingProvider) port;
Map<String, Object> requestContext = (Map<String, Object>) bindingProvider.getRequestContext();
List<CredentialProvider> credentailProviders = new ArrayList<CredentialProvider>();
credentailProviders.add(new ClientUNTCredentialProvider(credentials.getUserName().getBytes(), credentials
.getPassword().getBytes()));
requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credentailProviders);
requestContext.put(BindingProvider.USERNAME_PROPERTY, credentials.getUserName());
requestContext.put(BindingProvider.PASSWORD_PROPERTY, credentials.getPassword());
What else do I need to do?