Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error while applying OWSM policies on Web service created from Jdeveloper 11g (SEVERE: java.io.FileN

Salman5Jun 4 2014 — edited Jun 4 2014

I created sample class Testws with one simple method sayHi(String name) that simply showing welcome message. The target is to create web service application for this class and applying OWSM policies.

All the needed file is generated from Jdeveloper 11.1.1.7 and I added the oracle/wss_username_token_client_policy to the client side in TestwsPortClient. Problem is that when I run the main method from TestwsPortClient I got the following error: SEVERE: java.io.FileNotFoundException: .\config\jps-config.xml (The system cannot find the path specified)

Although I tried (But it did not work) to set the system propriety to find the missing file as follow:

        System.setProperty("oracle.security.jps.config",

                           "C:\\Users\\asalman\\AppData\\Roaming\\JDeveloper\\system11.1.1.7.40.64.93\\DefaultDomain\\config\\fmwconfig\\jps-config.xml");

More than one thread suggest to check the oracle documentation:

https://support.oracle.com/epmos/faces/DocumentDisplay?id=972284.1

but it asks for Support Identifiers


Here is the Client Class TestwsPortClient:

    public static void main(String[] args) {

        testwsService = new TestwsService();

        SecurityPoliciesFeature securityFeatures =

            new SecurityPoliciesFeature(new String[] { "oracle/wss_username_token_client_policy" });

        Testws testws = testwsService.getTestwsPort(securityFeatures);

        // Add your code to call the desired methods.

        System.setProperty("oracle.security.jps.config",

                           "C:\\Users\\asalman\\AppData\\Roaming\\JDeveloper\\system11.1.1.7.40.64.93\\DefaultDomain\\config\\fmwconfig\\jps-config.xml");

      

        List<CredentialProvider> credProviders =new ArrayList<CredentialProvider>();

        String username = "weblogic";

        String password = "weblogic1";

        CredentialProvider cp =new ClientUNTCredentialProvider(username.getBytes(), password.getBytes());

        credProviders.add(cp);

        Map<String, Object> rc = ((BindingProvider)testws).getRequestContext();

        rc.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

        testws.sayHi("Ahmad");

    }

Here is the stack trace:

SEVERE: java.io.FileNotFoundException: .\config\jps-config.xml (The system cannot find the path specified)

SEVERE: java.io.FileNotFoundException: .\config\jps-config.xml (The system cannot find the path specified)

INFO: WSM-09004 Component auditing cannot be initialized.

INFO: Recipient Alias property not configured in the policy. Defaulting to encrypting with signers certificate.

WARNING: JPS-00065 Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory.

WARNING: JPS-00065 Jps platform factory creation failed. Reason: {0}.

java.security.PrivilegedActionException: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory.

  at java.security.AccessController.doPrivileged(Native Method)

  at oracle.security.jps.ee.JpsPlatformFactory.getPlatformFactory(JpsPlatformFactory.java:189)

  at oracle.security.jps.ee.JpsPlatformFactory.getPlatformFactory(JpsPlatformFactory.java:150)

  at oracle.security.jps.internal.audit.AuditServiceImpl.initAuditLogDirectory(AuditServiceImpl.java:377)

  at oracle.security.jps.internal.audit.AuditServiceImpl.<init>(AuditServiceImpl.java:204)

  at oracle.security.jps.internal.audit.AuditProvider.getInstance(AuditProvider.java:58)

  at oracle.security.jps.internal.audit.AuditProvider.getInstance(AuditProvider.java:43)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:159)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:165)

  at oracle.wsm.security.jps.JpsManager.getJpsContext(JpsManager.java:157)

  at oracle.wsm.security.jps.JpsManager.getCredentialStore(JpsManager.java:403)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentialFromCredStore(ClientUtils.java:250)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentialsFromCSFInPolicy(ClientUtils.java:113)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentials(ClientUtils.java:80)

  at oracle.wsm.security.policy.scenario.client.ConfigCallbackHandler.handle(ConfigCallbackHandler.java:97)

  at oracle.wsm.security.policy.scenario.processor.UsernameTokenProcessor.build(UsernameTokenProcessor.java:432)

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:213)

  at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor.execute(SecurityScenarioExecutor.java:855)

  at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(AssertionExecutor.java:41)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(WSPolicyRuntimeExecutor.java:425)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntimeExecutor.java:344)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.execute(WSPolicyRuntimeExecutor.java:291)

  at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:102)

  at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1059)

  at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:489)

  at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:374)

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleRequest(WSMAgentHook.java:305)

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)

  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

  at com.sun.xml.ws.client.Stub.process(Stub.java:272)

  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

  at $Proxy33.sayHi(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

  at $Proxy34.sayHi(Unknown Source)

  at test.TestwsPortClient.main(TestwsPortClient.java:44)

Caused by: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory.

  at oracle.security.jps.ee.JpsPlatformFactory$2.run(JpsPlatformFactory.java:197)

  at oracle.security.jps.ee.JpsPlatformFactory$2.run(JpsPlatformFactory.java:190)

  ... 49 more

WARNING: JPS-00169 Cannot get server log directory. Reason: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory...

WARNING: JPS-00065 Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory.

WARNING: JPS-00065 Jps platform factory creation failed. Reason: {0}.

java.security.PrivilegedActionException: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory.

  at java.security.AccessController.doPrivileged(Native Method)

  at oracle.security.jps.ee.JpsPlatformFactory.getPlatformFactory(JpsPlatformFactory.java:189)

  at oracle.security.jps.ee.JpsPlatformFactory.getPlatformFactory(JpsPlatformFactory.java:150)

  at oracle.security.jps.az.internal.common.util.AzPrincipalUtil.init(AzPrincipalUtil.java:150)

  at oracle.security.jps.az.internal.common.util.AzPrincipalUtil.<clinit>(AzPrincipalUtil.java:113)

  at oracle.security.jps.az.internal.common.info.PrincipalEntryImpl.getPrincipal(PrincipalEntryImpl.java:69)

  at oracle.security.jps.az.internal.runtime.entitymanager.PermissionManagerImpl.init(PermissionManagerImpl.java:247)

  at oracle.security.jps.az.internal.runtime.policy.AbstractPolicyImpl.initPolicy(AbstractPolicyImpl.java:199)

  at oracle.security.jps.az.internal.runtime.policy.SystemPolicyImpl.<init>(SystemPolicyImpl.java:86)

  at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.initializeUncontrolledMode(PDPServiceImpl.java:570)

  at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.initial(PDPServiceImpl.java:489)

  at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.<init>(PDPServiceImpl.java:371)

  at oracle.security.jps.az.internal.runtime.provider.PDPServiceProvider.getInstance(PDPServiceProvider.java:89)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:159)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:165)

  at oracle.wsm.security.jps.JpsManager.getJpsContext(JpsManager.java:157)

  at oracle.wsm.security.jps.JpsManager.getCredentialStore(JpsManager.java:403)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentialFromCredStore(ClientUtils.java:250)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentialsFromCSFInPolicy(ClientUtils.java:113)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentials(ClientUtils.java:80)

  at oracle.wsm.security.policy.scenario.client.ConfigCallbackHandler.handle(ConfigCallbackHandler.java:97)

  at oracle.wsm.security.policy.scenario.processor.UsernameTokenProcessor.build(UsernameTokenProcessor.java:432)

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:213)

  at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor.execute(SecurityScenarioExecutor.java:855)

  at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(AssertionExecutor.java:41)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(WSPolicyRuntimeExecutor.java:425)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntimeExecutor.java:344)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.execute(WSPolicyRuntimeExecutor.java:291)

  at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:102)

  at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1059)

  at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:489)

  at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:374)

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleRequest(WSMAgentHook.java:305)

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)

  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

  at com.sun.xml.ws.client.Stub.process(Stub.java:272)

  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

  at $Proxy33.sayHi(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

  at $Proxy34.sayHi(Unknown Source)

  at test.TestwsPortClient.main(TestwsPortClient.java:44)

Caused by: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory.

  at oracle.security.jps.ee.JpsPlatformFactory$2.run(JpsPlatformFactory.java:197)

  at oracle.security.jps.ee.JpsPlatformFactory$2.run(JpsPlatformFactory.java:190)

  ... 55 more

WARNING: JPS-00065: Jps platform factory creation failed. Reason: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory..

oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: oracle.security.jps.JpsException: JPS-00065: Jps platform factory creation failed. Reason: java.lang.ClassNotFoundException: oracle.security.jps.se.JpsSEPlatformFactory..

  at oracle.security.jps.ee.JpsPlatformFactory.getPlatformFactory(JpsPlatformFactory.java:203)

  at oracle.security.jps.ee.JpsPlatformFactory.getPlatformFactory(JpsPlatformFactory.java:150)

  at oracle.security.jps.az.internal.common.util.AzPrincipalUtil.init(AzPrincipalUtil.java:150)

  at oracle.security.jps.az.internal.common.util.AzPrincipalUtil.<clinit>(AzPrincipalUtil.java:113)

  at oracle.security.jps.az.internal.common.info.PrincipalEntryImpl.getPrincipal(PrincipalEntryImpl.java:69)

  at oracle.security.jps.az.internal.runtime.entitymanager.PermissionManagerImpl.init(PermissionManagerImpl.java:247)

  at oracle.security.jps.az.internal.runtime.policy.AbstractPolicyImpl.initPolicy(AbstractPolicyImpl.java:199)

  at oracle.security.jps.az.internal.runtime.policy.SystemPolicyImpl.<init>(SystemPolicyImpl.java:86)

  at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.initializeUncontrolledMode(PDPServiceImpl.java:570)

  at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.initial(PDPServiceImpl.java:489)

  at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.<init>(PDPServiceImpl.java:371)

  at oracle.security.jps.az.internal.runtime.provider.PDPServiceProvider.getInstance(PDPServiceProvider.java:89)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)

  at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:159)

  at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:165)

  at oracle.wsm.security.jps.JpsManager.getJpsContext(JpsManager.java:157)

  at oracle.wsm.security.jps.JpsManager.getCredentialStore(JpsManager.java:403)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentialFromCredStore(ClientUtils.java:250)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentialsFromCSFInPolicy(ClientUtils.java:113)

  at oracle.wsm.security.policy.scenario.client.ClientUtils.getCredentials(ClientUtils.java:80)

  at oracle.wsm.security.policy.scenario.client.ConfigCallbackHandler.handle(ConfigCallbackHandler.java:97)

  at oracle.wsm.security.policy.scenario.processor.UsernameTokenProcessor.build(UsernameTokenProcessor.java:432)

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:213)

  at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor.execute(SecurityScenarioExecutor.java:855)

  at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(AssertionExecutor.java:41)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(WSPolicyRuntimeExecutor.java:425)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntimeExecutor.java:344)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.execute(WSPolicyRuntimeExecutor.java:291)

  at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:102)

  at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1059)

  at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:489)

  at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:374)

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleRequest(WSMAgentHook.java:305)

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)

  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

  at com.sun.xml.ws.client.Stub.process(Stub.java:272)

  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

  at $Proxy33.sayHi(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

  at $Proxy34.sayHi(Unknown Source)

  at test.TestwsPortClient.main(TestwsPortClient.java:44)

WLS ManagedService is not up running. Fall back to use system properties for configuration.

SEVERE: WSM-00007 JPS exception

SEVERE: WSM-00016 The username/password credentials or certificates null are missing.

SEVERE: WSM-00005 Error in sending the request.

SEVERE: WSM-07607 Failure in execution of assertion {http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token executor class oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.

SEVERE: WSM-07602 Failure in WS-Policy Execution due to exception.

SEVERE: WSM-07501 Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.client, application=null, composite=null, modelObj=TestwsService, policy=oracle/wss_username_token_client_policy, policyVersion=null, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token.

oracle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing.

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:229)

  at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor.execute(SecurityScenarioExecutor.java:855)

  at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(AssertionExecutor.java:41)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(WSPolicyRuntimeExecutor.java:425)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntimeExecutor.java:344)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.execute(WSPolicyRuntimeExecutor.java:291)

  at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:102)

  at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1059)

  at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:489)

  at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:374)

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleRequest(WSMAgentHook.java:305)

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)

  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

  at com.sun.xml.ws.client.Stub.process(Stub.java:272)

  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

  at $Proxy33.sayHi(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

  at $Proxy34.sayHi(Unknown Source)

  at test.TestwsPortClient.main(TestwsPortClient.java:44)

Caused by: oracle.wsm.security.SecurityException: WSM-00015 : The user name is missing.

  at oracle.wsm.security.policy.scenario.processor.UsernameTokenProcessor.build(UsernameTokenProcessor.java:471)

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:213)

  ... 28 more

SEVERE: WSMAgentHook: An Exception is thrown:

oracle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing.

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:229)

  at oracle.wsm.security.policy.scenario.executor.SecurityScenarioExecutor.execute(SecurityScenarioExecutor.java:855)

  at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(AssertionExecutor.java:41)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(WSPolicyRuntimeExecutor.java:425)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntimeExecutor.java:344)

  at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.execute(WSPolicyRuntimeExecutor.java:291)

  at oracle.wsm.policyengine.impl.PolicyExecutionEngine.execute(PolicyExecutionEngine.java:102)

  at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1059)

  at oracle.wsm.agent.WSMAgent.processRequest(WSMAgent.java:489)

  at oracle.wsm.agent.handler.WSMEngineInvoker.handleRequest(WSMEngineInvoker.java:374)

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleRequest(WSMAgentHook.java:305)

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)

  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

  at com.sun.xml.ws.client.Stub.process(Stub.java:272)

  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

  at $Proxy33.sayHi(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

  at $Proxy34.sayHi(Unknown Source)

  at test.TestwsPortClient.main(TestwsPortClient.java:44)

Caused by: oracle.wsm.security.SecurityException: WSM-00015 : The user name is missing.

  at oracle.wsm.security.policy.scenario.processor.UsernameTokenProcessor.build(UsernameTokenProcessor.java:471)

  at oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.sendRequest(WssUsernameTokenScenarioExecutor.java:213)

  ... 28 more

Exception in thread "main" javax.xml.ws.WebServiceException: javax.xml.rpc.JAXRPCException: oracle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing.

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:233)

  at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)

  at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)

  at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)

  at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)

  at com.sun.xml.ws.client.Stub.process(Stub.java:272)

  at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)

  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)

  at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)

  at $Proxy33.sayHi(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)

  at $Proxy34.sayHi(Unknown Source)

  at test.TestwsPortClient.main(TestwsPortClient.java:44)

Caused by: javax.xml.rpc.JAXRPCException: oracle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing.

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleException(WSMAgentHook.java:462)

  at oracle.wsm.agent.handler.wls.WSMAgentHook.handleRequest(WSMAgentHook.java:318)

  at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2014
Added on Jun 4 2014
2 comments
2,621 views