Weblogic 12c JAX-WS usernametoken policy authentication issue

I created a simple JAX-WS webservice on weblogic12c. I added a cutom policy -a simple usernametoken policy.
I added the policy to the webservice via the admin console. (inbound only)
Testing from soapui, I was able to get a good response with correct username/password.
If I dont pass the username/password , I get an Invalid security message.
The issue is when I send in an incorrect username/and or password, I get following error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Unknown exception, internal system processing error.</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
Why is the correct reason not receved in teh soap message???
On turning on debug log, I was able to see following message in the server log:
####<Mar 13, 2013 4:37:41 PM EDT> <Debug> <SecurityAtn> <NJCDTL02> <myServer1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363207061361> <BEA-000000>
     at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:601)
     at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)
     at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
     at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)
     at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
     at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
     at com.bea.common.security.internal.service.JAASLoginServiceImpl.login(JAASLoginServiceImpl.java:113)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:601)
     at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
     at $Proxy16.login(Unknown Source)
     at weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.login(WLSJAASLoginServiceImpl.java:89)
     at com.bea.common.security.internal.service.JAASAuthenticationServiceImpl.authenticate(JAASAuthenticationServiceImpl.java:82)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:601)
     at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
     at $Proxy34.authenticate(Unknown Source)
     at weblogic.security.service.WLSJAASAuthenticationServiceWrapper.authenticate(WLSJAASAuthenticationServiceWrapper.java:40)
     at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:338)
     at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:345)
     at weblogic.xml.crypto.wss.SecurityUtils.assertId(SecurityUtils.java:100)
     at weblogic.xml.crypto.wss.SecurityUtils.assertIdentity(SecurityUtils.java:72)
     at weblogic.xml.crypto.wss.UsernameTokenHandler.getSubject(UsernameTokenHandler.java:207)
     at weblogic.xml.crypto.wss.WSSecurityContext.getSubject(WSSecurityContext.java:656)
     at weblogic.xml.crypto.wss.WSSecurityContext.getSubject(WSSecurityContext.java:596)
     at weblogic.wsee.security.wssp.handlers.PostWssServerPolicyHandler.processRequest(PostWssServerPolicyHandler.java:56)
     at weblogic.wsee.security.wssp.handlers.WssHandler.handleRequest(WssHandler.java:112)
     at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)
     at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:892)
     at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:841)
     at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:804)
     at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:706)
     at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:430)
     at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:640)
     at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:265)
     at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:163)
     at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:171)
     at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
     at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
     at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311)
     at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)
     at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:99)
     at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:352)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3284)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
     at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1512)
     at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>
####<Mar 13, 2013 4:37:41 PM EDT> <Debug> <SecurityAtn> <NJCDTL02> <myServer1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363207061361> <BEA-000000> <com.bea.common.security.internal.service.LoginModuleWrapper.commit>
####<Mar 13, 2013 4:37:41 PM EDT> <Debug> <SecurityAtn> <NJCDTL02> <myServer1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363207061361> <BEA-000000> <LDAP Atn Abort>
####<Mar 13, 2013 4:37:41 PM EDT> <Debug> <SecurityAtn> <NJCDTL02> <myServer1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363207061361> <BEA-000000> <com.bea.common.security.internal.service.LoginModuleWrapper.commit delegated, returning false>
####<Mar 13, 2013 4:37:41 PM EDT> <Debug> <SecurityAtn> <NJCDTL02> <myServer1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363207061361> <BEA-000000> <weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.authenticate authenticate failed for user test1234>

Hi René ,
i just use plain HTTP, not HTTPS.
seems don't involve any certificate, am i right?
in J2SE environment, i can run the webservice client without problem.
but once i run the client in weblogic, the problem mentioned occurred.
if i manually delete the ws-policy related tag in the wsdl file (i download it to local filesystem for testing), the client can run in weblogic too.
so, think there is some setting in weblogic that try to handle the ws-policy by its so-called 'credential provider'(e.g. ClientUNTCredentialProvider ?)
thank you.

Similar Messages

  • Issue with Weblogic 12c(12.1.2)

    My service is working as expected in weblogic 11g.Now we are upgrading to weblogic 12c.
    We are facing an issue of "NullPointerException" , due to the values, not getting  populated during server startup from ra.xml.
    In weblogic 11g the control is not going to that location, which is leading to an exception in Web logic 12c(NPE).
    If we validate the null values, control is invoking twice, one with null values and another time with actual values from ra.xml.
    Please help me on the same.
    Thanks & Regards
    Vijay
    Following is the error message
    WARNING: Warning from ejbc: EJB name WorkpointRulesEJB is defined in weblogic-ej
    b-jar xml but the corresponding bean is missing. Please check that the name is a
    ccurate
    <Dec 30, 2013 9:34:06 PM IST> <Warning> <Connector> <BEA-190155> <Compliance che
    cking and validation of the resource adapter C:\Oracle\Middleware\Oracle_Home\us
    er_projects\domains\base_domain\applications\iam_im.ear\policyserver.rar resulte
    d in the following warnings:
    In META-INF/ra.xml element <connection-definition> the property "ValidateSMHeade
    rsWithPS" of type "java.lang.String": unable to find a set method in class "com.
    netegrity.ra.policyserver.impl.PSManagedConnectionFactory">
    <Dec 30, 2013 9:34:06 PM IST> <Warning> <Connector> <BEA-190155> <Compliance che
    cking and validation of the resource adapter C:\Oracle\Middleware\Oracle_Home\us
    er_projects\domains\base_domain\applications\iam_im.ear\workflow.rar resulted in
    the following warnings:
    In META-INF/ra.xml element <connection-definition> the property "RunGeneralMonit
    or" of type "java.lang.Boolean": unable to find a set method in class "com.neteg
    rity.ra.workflow.impl.WFManagedConnectionFactory">
    <Dec 30, 2013 9:34:10 PM IST> <Error> <Connector> <BEA-199212> <Failed to create
    connection pool [iam/im/rar/Workflow] due to error: Unexpected exception thrown
    by resource adapters ManagedConnectionFactory implementation "{0}", {1}. -  [ja
    va.lang.NullPointerException
            at com.netegrity.ra.workflow.impl.WFManagedConnectionFactory.hashCode(WF
    ManagedConnectionFactory.java:463)
            at java.lang.Object.toString(Object.java:219)
            at java.lang.String.valueOf(String.java:2826)
            at java.lang.StringBuilder.append(StringBuilder.java:115)
            at weblogic.connector.common.Utils.setProperties(Utils.java:102)
            at weblogic.connector.outbound.RAOutboundManager.initializeMCF(RAOutboun
    dManager.java:552)
            at weblogic.connector.outbound.RAOutboundManager.createConnectionFactory
    Internal(RAOutboundManager.java:475)
            at weblogic.connector.outbound.RAOutboundManager.createConnectionFactory
    (RAOutboundManager.java:433)
            at weblogic.connector.outbound.RAOutboundManager.initialize(RAOutboundMa
    nager.java:409)
            at weblogic.connector.outbound.RAOutboundManager.<init>(RAOutboundManage
    r.java:150)
            at weblogic.connector.common.RAInstanceManager.createOutboundManager(RAI
    nstanceManager.java:2324)
            at weblogic.connector.common.RAInstanceManager.createResourceAdapter(RAI
    nstanceManager.java:1271)
            at weblogic.connector.common.RAInstanceManager.activate(RAInstanceManage
    r.java:458)
            at weblogic.connector.deploy.ConnectorModule.activate(ConnectorModule.ja
    va:304)
            at weblogic.application.internal.ExtensibleModuleWrapper$ActivateStateCh
    ange.next(ExtensibleModuleWrapper.java:317)
            at weblogic.application.internal.ExtensibleModuleWrapper$ActivateStateCh
    ange.next(ExtensibleModuleWrapper.java:313)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:42)
            at weblogic.application.internal.ExtensibleModuleWrapper.activate(Extens
    ibleModuleWrapper.java:121)
            at weblogic.application.internal.flow.ModuleListenerInvoker.activate(Mod
    uleListenerInvoker.java:114)
            at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleSta
    teDriver.java:192)
            at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleSta
    teDriver.java:187)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:42)
            at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleS
    tateDriver.java:58)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(De
    ploymentCallbackFlow.java:145)
            at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja
    va:729)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:42)
            at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.
    java:258)
            at weblogic.application.internal.EarDeployment.activate(EarDeployment.ja
    va:61)
            at weblogic.application.internal.DeploymentStateChecker.activate(Deploym
    entStateChecker.java:165)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap
    pContainerInvoker.java:80)
            at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicD
    eployment.java:222)
            at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromSer
    verLifecycle(BasicDeployment.java:414)
            at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(De
    ploymentAdapter.java:51)
            at weblogic.management.deploy.internal.DeploymentAdapter.activate(Deploy
    mentAdapter.java:200)
            at weblogic.management.deploy.internal.AppTransition$2.transitionApp(App
    Transition.java:30)
            at weblogic.management.deploy.internal.ConfiguredDeployments.transitionA
    pps(ConfiguredDeployments.java:240)
            at weblogic.management.deploy.internal.ConfiguredDeployments.activate(Co
    nfiguredDeployments.java:169)
            at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Conf
    iguredDeployments.java:123)
            at weblogic.management.deploy.internal.DeploymentServerService.resume(De
    ploymentServerService.java:191)
            at weblogic.management.deploy.internal.DeploymentServerService.start(Dep
    loymentServerService.java:99)
            at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

    Hi Sai,
    it did  not solve my issue. I am getting SocketException.The post you were talking about is BindException.
    Please help me if you can do something on this.
    Some where i have seen like this
    Using IPv6-Formatted Addresses
    Platform: All
    When using an IPv6-formatted address for WebLogic Server, the URL should include square brackets ('[' and ']') for the host address. Otherwise, WLST may fail to connect to the running server.
    Workaround
    Add square brackets to the host address. For example:
    t3://[fe80:0:0:0:203:baff:fe2f:59e5]:9991.
    But i dont know in which file these hosts contains.

  • Trying to deploy a Metro JAX-WS Endpoint with UsernameToken wsit in Weblogic 12c

    Hi,
    we just try to deploy a Metro based Jax-WS Endpoint to Weblogic 12c.
    The Webservice itself is successfully deployed on Tomcat with Metro 2.3 and Weld.
    For security the wsit file is used in combination with the UsernameToken policy.
    For Validation an implementation of PasswordValidator (com.sun.xml.wss.impl.callback.PasswordValidationCallback.PasswordValidator) is used,
    Unfortunately this class is not present in the weblogic jax-ws implementation, despite the fact that the implementation is based upon metro.
    Is there a possibility to use the standard metro implementation for jax-ws in Weblogic 12c (12.1.2.0).
    We found an  user guide here: https://metro.java.net/guide/ch02.html#weblogic-10 but it doesn't work for us.
    Maybe there is an problem with 12.1.2.0, because the user guide is for 12.1.1.0.
    Has anyone tried something similar?
    Thanks

    because using sun-jaxws.xml is a non-standard deployment descriptor. You need to use just the web.xml and instead of pointing at the JAX-WS RI servlet, point it at your endpoint implementation class. The AS 9 tutorial should show an example of this.

  • Upgrading to weblogic 12c issue with JSF

    Migrating to the Weblogic 12c faced so many issue with the shared class library. After fixing all the issue stuck with JSF and on google everywhere it was mentioned error happening due to multiple JSF version colliding.
    My whole application works like a charm in 10.3.6 but same app not working after updating the spring 4 and hibernate 4.
    This is the error I am receiving below errors ...
    <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <JSF1029: The specified InjectionProvider implementation 'com.bea.faces.WeblogicInjectionProvider' does not implement the InjectionProvider interface. >
    1. Cause: Unable to create a new instance of 'org.springframework.web.jsf.DelegatingVariableResolver': javax.faces.FacesException: org.springframework.web.jsf.DelegatingVariableResolver
    2. Cause: Unable to create a new instance of 'org.springframework.web.jsf.DelegatingVariableResolver': javax.faces.FacesException: org.springframework.web.jsf.DelegatingVariableResolver
        at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(Unknown Source)
        at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(Unknown Source)
        at com.sun.faces.config.processor.ApplicationConfigProcessor.process(Unknown Source)
        at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(Unknown Source)
        at com.sun.faces.config.processor.LifecycleConfigProcessor.process(Unknown Source)
        Truncated. see log file for complete stacktrace
    Caused By: javax.faces.FacesException: org.springframework.web.jsf.DelegatingVariableResolver
        at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(Unknown Source)
        at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(Unknown Source)
        at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(Unknown Source)
        at com.sun.faces.config.processor.ApplicationConfigProcessor.process(Unknown Source)
        at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(Unknown Source)
        Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: org.springframework.web.jsf.DelegatingVariableResolver
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        Truncated. see log file for complete stacktrace
    3. ]] Root cause of ServletException.
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
        at javax.faces.FactoryFinderInstance.getFactory(Unknown Source)
        at javax.faces.FactoryFinder.getFactory(Unknown Source)
        at javax.faces.webapp.FacesServlet.init(Unknown Source)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
        Truncated. see log file for complete stacktrace
    4.Error> <javax.faces> <BEA-000000> <Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.>
    <Error> <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <Unexpected exception when attempting to tear down the Mojarra runtime
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342)
        at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141)
        at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:583)
        Truncated. see log file for complete stacktrace
    I had the classloader from weblogic but unable to find if there is anything related with Multiple JSF versions colliding. Here is the classloader log
    **System Classloaders**
    Type: sun.misc.Launcher$ExtClassLoader
    HashCode: 1956433926
    Classpath:
    /C:/Java/jdk1.7.0_45/jre/lib/ext/access-bridge-64.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/dnsns.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/jaccess.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/localedata.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/sunec.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/sunjce_provider.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/sunmscapi.jar
    /C:/Java/jdk1.7.0_45/jre/lib/ext/zipfs.jar
    Type: sun.misc.Launcher$AppClassLoader
    HashCode: 345487281
    Classpath:
    /C:/Oracle12c/Middleware/modules/features/weblogic.server.modules_12.1.1.0.jar
    /C:/Oracle12c/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar
    /C:/Oracle12c/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar
    /C:/Oracle12c/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar
    /C:/Oracle12c/Middleware/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar
    /C:/Oracle12c/Middleware/wlserver_12.1/common/derby/lib/derbyclient.jar
    /C:/Oracle12c/Middleware/wlserver_12.1/server/lib/weblogic.jar
    /C:/Oracle12c/Middleware/wlserver_12.1/server/lib/weblogic_sp.jar
    /C:/Oracle12c/Middleware/wlserver_12.1/server/lib/webservices.jar
    /C:/Oracle12c/Middleware/wlserver_12.1/server/lib/xqrl.jar
    /C:/Program%20Files/Java/jdk1.7.0_45/lib/tools.jar
    Type: weblogic.utils.classloaders.GenericClassLoader
    HashCode: 1277718374
    Classpath:
    **Application Classloaders**
    Type: weblogic.utils.classloaders.FilteringClassLoader
    HashCode: 929366372
    Filter: [antlr.*, antlr.collections.*, antlr.collections.impl.*, antlr.debug.misc.*, com.sun.activation.*, com.sun.istack.*, com.sun.mail.*, com.sun.xml.*, org.apache.commons.*, org.joda.time.*, org.apache.xalan.*, org.apache.xml.*, org.apache.wml.*, org.apache.xerces.*, org.apache.xpath.*, com.ctc.wstx.*, org.slf4j.*, javax.faces.*, com.sun.faces.*, com.bea.faces.*, com.sun.el.*, javax.el.*, javassist.*]
    Classpath: empty
    Type: weblogic.utils.classloaders.GenericClassLoader
    HashCode: 2137066604
    Classpath:
    **Type: weblogic.utils.classloaders.FilteringClassLoader**
    HashCode: 1212049573
    Filter: []
    Classpath: empty
    Type: weblogic.utils.classloaders.ChangeAwareClassLoader
    HashCode: 1604673952
    Classpath:
    C:\s-ear-1.0-SNAPSHOT_4
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\classes
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\FastInfoset-1.2.12.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\_wl_cls_gen.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\acegi-security-1.0.7.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\activation-1.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\activation.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\antlr-2.7.7.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\aopalliance-1.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\aspectjrt-1.8.5.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\aspectjweaver-1.8.5.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\backport-util-concurrent-3.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\bcprov-jdk16-140.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\cacauth-2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\camel-core-2.5.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\camel-josql-2.5.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps-handshake-3.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps2-liquibase-1.0-SNAPSHOT.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps2domain-1.0-SNAPSHOT.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps2util-1.0-SNAPSHOT.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\cloning-1.7.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-beanutils-1.8.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-codec-1.9.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-collections-3.2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-dbcp-1.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-digester-2.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-httpclient-3.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-io-1.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-lang-2.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-logging-1.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-logging-api-1.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-management-1.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-pool-1.5.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\dom4j-1.6.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\gentlyweb-utils-1.5.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-commons-annotations-4.0.4.Final.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-core-4.2.18.Final.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-entitymanager-4.2.18.Final.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-validator-4.2.0.Final.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icefaces-3.2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icefaces-ace-3.2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icefaces-compat-3.2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icepush-3.2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\itext-4.2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\itextpdf-5.0.6.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jackson-core-asl-1.9.9.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jackson-core-lgpl-1.9.9.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jackson-mapper-asl-1.9.9.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jasperreports-ca-4.8.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javassist-3.18.2-GA.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javax.el-api-2.2.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javax.faces-2.2.9.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javax.inject-1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jax-qname.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb-api-2.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb-api.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb-impl-2.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb1-impl.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxp-api.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxws-api-2.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-archive-browsing-5.0.0alpha-200607201-119.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-logging-3.1.3.GA.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-logging-annotations-1.2.0.Beta1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-transaction-api_1.1_spec-1.0.1.Final.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jcl-over-slf4j-1.5.2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jersey-bundle-1.18.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\joda-time-2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\joda-time-hibernate-1.3.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\josql-1.5.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\josql-2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\json-20140107.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jsr173_1.0_api.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jsr250-api-1.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jsr311-api-1.1.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jstl-1.2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jta-1.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\log4j-1.2.14.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\mail-1.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\mail.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\objenesis-1.2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\opencsv-1.7.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\oro-2.0.8.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\portlet-api-2.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\primefaces-3.4.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\quartz-1.8.4.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\saaj-api-1.3.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\saaj-api.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\saaj-impl.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\serializer-2.7.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\serializer.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\service-1.0-SNAPSHOT.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\servlet.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\slf4j-api-1.5.2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\slf4j-log4j12-1.5.2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-aop-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-aspects-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-beans-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-context-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-context-support-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-core-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-expression-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-jdbc-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-jms-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-orm-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-oxm-3.0.5.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-security-core-4.0.0.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-tx-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-web-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-webmvc-4.0.9.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-ws-core-2.0.0.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-ws-security-2.0.0.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-xml-2.0.0.RELEASE.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\stax-api-1.0-2.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\3capture-1.0.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\s-beans-1.0-SNAPSHOT.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\usertype.core-3.1.0.CR10.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\usertype.jodatime-1.9.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\usertype.spi-3.1.0.CR10.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\validation-api-1.0.0.GA.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\wss4j-1.5.8.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xalan-2.7.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xercesImpl-2.8.1.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xercesImpl.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xml-apis.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xmldsig.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xmlsec-1.4.3.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xmlsec.jar
    C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xws-security-3.0.jar
    jsf myfaces weblogic1
    Here are links for more details.
    http://stackoverflow.com/questions/29857571/weblogic-12c-java-lang-illegalstateexception-could-not-find-backup-for-factory
    http://www.coderanch.com/t/649308/JSF/java/Faces-Servlet-failed-preload-startup
    Sorry incase question not formatted. Any suggestions appreciated.

    hi.
    I had faced this behavior on weblogic 12c(12.1.1).
    Maybe This problem was solved by 12.1.2.
    But, when text item submitted together with a upload file, multibyte characters was garbage characters.
    See Multibyte character was garbage characters, when multipart requested (Multipartリクエストで文字化けが発生する) on WebLogic12(12.1.2.0)

  • Papi Client:: The WebLogic Server 9.x-style policy is not supported in JAX

    Ive 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?

    I have exactly the same problem.
    how you solved this issue?

  • Programmatic JAAS Authentication for Web/EJBs on WebLogic 12c

    Technologies: JSPs, Servlets, EJBs (version 2.1)
    Database: Oracle 11g Database
    Application Server: WebLogic 12c
    I am working on a project where the users and roles are stored on an Oracle database (as database users with roles granted to them). We therefore need a custom authentication method (the default WebLogic UsernamePasswordLoginModule won't cut it). We created a DatabaseUserLoginModule prior to migrating from a 10g enviroment to 11g/12c.
    public class DatabaseUserLoginModule implements LoginModule
         public boolean login() throws LoginException
              Connection conn = null;
              try
                   s
                   InitialContext ic = new InitialContext();
                   DataSource ds = (DataSource)ic.lookup(jndiDSName);
                   conn = ds.getConnection(username, password);
                   List dbauth = new ArrayList();
                   String rolesSQL = "SELECT GRANTED_ROLE FROM USER_ROLE_PRIVS UNION SELECT GRANTED_ROLE FROM ROLE_ROLE_PRIVS";
                   Statement rolesStmt = conn.createStatement();
                   ResultSet results = rolesStmt.executeQuery(rolesSQL);
                   dbauth.add(new DBUserPrincipal(username));
                   while (results.next())
                        String roleName = results.getString("GRANTED_ROLE");
                        DBRolePrincipal dbRolePrincipal = new DBRolePrincipal(roleName);
                        dbauth.add(dbRolePrincipal);
                   authPrincipals = (Principal[])dbauth.toArray(new Principal[dbauth.size()]);
              catch (Exception e)
                   throw new LoginExcpetion(e.getMessage());
              finally
                   try
                        conn.close();
                   catch (Exception e)
                        throw new LoginExcpetion(e.getMessage());
              return true;
         public boolean commit() throws LoginException
              for (int i = 0; i < authPrincipals.length; i++)
                   subject.getPrincipals().add(authPrincipals[i]);
              return true;
    The getConnection() method on the datasource works with a database username and password thanks to the new "Use Database Credentials" option for WebLogic datasources and granting CONNECT THROUGH (datasource user) privilege for each user.
    We have configured a JAAS context to use this login module by creating a jaas.conf file and setting JAVA_OPTIONS to include "-Djava.security.auth.login.config=%DOMAIN_HOME%\bin\jaas.conf". The file looks like this:
    Test {
    xxxx.controller.security.loginmodule.DatabaseUserLoginModule required;
    When the user logs in, the application uses a LoginContext object to perform authentication:
        PassiveCallbackHandler cbh = new PassiveCallbackHandler(username, password);
        lc = new LoginContext("Test", cbh);
        lc.login();
    This successfully uses the DatabaseUserLoginModule to authenticate the user and populate the Subject with the appropriate roles.
    The next step is to use an InitialContext to lookup an EJB and call a method. We have permissions in ejb-jar.xml for each method, based on database roles:
    <method-permission>
         <role-name>XXXX_USER</role-name>
         <method>
              <ejb-name>AccessControl</ejb-name>
              <method-intf>Home</method-intf>
             <method-name>create</method-name>
             <method-params>
                   <method-param>java.lang.String</method-param>
             </method-params>
         </method>
         <method>
             <ejb-name>AccessControl</ejb-name>
             <method-intf>Remote</method-intf>
             <method-name>remove</method-name>
         </method>
         <method>
             <ejb-name>AccessControl</ejb-name>
             <method-intf>Remote</method-intf>
             <method-name>processFailedLogin</method-name>
             <method-params>
                   <method-param>java.lang.String</method-param>
             </method-params>
         </method>
         <method>
             <ejb-name>AccessControl</ejb-name>
             <method-intf>Remote</method-intf>
             <method-name>processSuccessfulLogin</method-name>
             <method-params>
                   <method-param>java.lang.String</method-param>
             </method-params>
         </method>
    </method-permission>
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://localhost:7101");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    InitialContext ic = new InitialContext(env);
    ic.lookup("EJBName");
    The problem is that when the InitialContext is initialised I get the following error:
    javax.naming.AuthenticationException [Root exception is javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User XXXX_USER] javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User XXXX_USER denied]
    It looks like the InitialContext is attempting to authenticate the user through WebLogic's default authenticator. How do I tell it to use the JAAS context (with the custom login module) I have already set up?
    If I use the default constructor (new InitialContext()) then I get a different error when calling an EJB method:
    <java.rmi.AccessException: [EJB:010160]Security violation: User <anonymous> has insufficient permission to access EJB type=<ejb>, application=TestApplication, module=TestEJB.jar, ejb=AccessControl, method=processSuccessfulLogin, methodInterface=Remote, signature={java.lang.String}.>
    In this case, how do I propagate the Subject after using LoginContext so that the user calling EJB methods is not anonymous?

    This is the JDev & ADF forum. Your question is better asked in one of the WebLogic forums!
    Timo

  • Issues while deploying Spring 3+Hibernate 4+Weblogic 12C app

    Hi,
    We are migrating spring 2.5 to 3.1 and hibernate 3.4 to 4.1 During this migration, we got some JPA2 issues on weblogic 10.3, so we moved to weblogic 12C to get hibernate 4 working ...but getting below exception while deploying the war. Please guide.
    java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
    My POM file is,
    <dependencies>
              <dependency>
                   <groupId>antlr</groupId>
                   <artifactId>antlr</artifactId>
                   <version>2.7.7</version>
              </dependency>
              <dependency>
              <groupId>xml-apis</groupId>
              <artifactId>xml-apis</artifactId>
              <version>1.0.b2</version>
              <scope>provided</scope>
              </dependency>
              <dependency>
              <groupId>stax</groupId>
              <artifactId>stax-api</artifactId>
              <version>1.0.1</version>
              <scope>provided</scope>
              </dependency>
              <dependency>
                   <groupId>javax.persistence</groupId>
                   <artifactId>persistence-api</artifactId>
                   <version>1.0</version>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-aop</artifactId>
              </dependency>
              <!--<dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-aspects</artifactId>
              </dependency> -->
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-beans</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-context</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-core</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-jdbc</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-orm</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-tx</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-jms</artifactId>
              </dependency>
              <dependency>
                   <groupId>org.springframework.webflow</groupId>
                   <artifactId>spring-faces</artifactId>
                   <version>${springWebFlow.version}</version>
              </dependency>
              <dependency>
                   <groupId>org.hibernate</groupId>
                   <artifactId>hibernate-validator</artifactId>
              </dependency>
              <dependency>
                   <groupId>javax.annotation</groupId>
                   <artifactId>jsr250-api</artifactId>
                   <version>1.0</version>
              </dependency>
              <dependency>
                   <groupId>javax.transaction</groupId>
                   <artifactId>jta</artifactId>
                   <version>1.1</version>
              </dependency>
              <dependency>
                   <groupId>javax.faces</groupId>
                   <artifactId>jsf-api</artifactId>
                   <version>${jsf.version}</version>
              </dependency>
              <dependency>
                   <groupId>commons-lang</groupId>
                   <artifactId>commons-lang</artifactId>
                   <version>2.1</version>
              </dependency>
              <dependency>
                   <groupId>org.hibernate</groupId>
                   <artifactId>hibernate-core</artifactId>
                   <version>4.1.1.Final</version>
                   <exclusions>
                        <exclusion>
                             <artifactId>antlr</artifactId>
                             <groupId>antlr</groupId>
                        </exclusion>
                   </exclusions>
              </dependency>
              <!--<dependency>
                   <groupId>org.hibernate</groupId>
                   <artifactId>hibernate-jmx</artifactId>
                   <version>3.3.2.GA</version>
              </dependency>-->
              <!--<dependency>
                   <groupId>org.hibernate</groupId>
                   <artifactId>hibernate-commons-annotations</artifactId>
                   <version>3.3.0.ga</version>
              </dependency>-->
              <dependency>
                   <groupId>log4j</groupId>
                   <artifactId>log4j</artifactId>
              </dependency>
              <dependency>
                   <groupId>weblogic</groupId>
                   <artifactId>weblogic.jms.client</artifactId>
                   <version>11</version>
              </dependency>
              <dependency>
                   <groupId>commons-beanutils</groupId>
                   <artifactId>commons-beanutils-core</artifactId>
                   <version>1.8.3</version>
              </dependency>
              <dependency>
                   <groupId>commons-dbutils</groupId>
                   <artifactId>commons-dbutils</artifactId>
                   <version>1.3</version>
              </dependency>
              <dependency>
                   <groupId>org.hibernate</groupId>
                   <artifactId>hibernate-entitymanager</artifactId>
                   <version>4.1.1.Final</version>
              </dependency>
              <dependency>
                   <groupId>org.slf4j</groupId>
                   <artifactId>slf4j-api</artifactId>
                   <version>1.5.9.RC1</version>
              </dependency>
              <dependency>
                   <groupId>org.slf4j</groupId>
                   <artifactId>slf4j-log4j12</artifactId>
                   <version>1.5.9.RC1</version>
              </dependency>
              <dependency>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-test</artifactId>
                   <scope>test</scope>
              </dependency>
              <dependency>
                   <groupId>junit</groupId>
                   <artifactId>junit</artifactId>
                   <scope>test</scope>
              </dependency>
              <dependency>
                   <groupId>oracle</groupId>
                   <artifactId>ojdbc6</artifactId>
                   <version>11.2.0.1.0</version>
              </dependency>
              <dependency>
                   <groupId>commons-jxpath</groupId>
                   <artifactId>commons-jxpath</artifactId>
                   <version>1.3</version>
              </dependency>
              <dependency>
                   <groupId>javax.mail</groupId>
                   <artifactId>mail</artifactId>
                   <version>1.4.1</version>
              </dependency>
              <dependency>
                   <groupId>com.sun.xml.bind</groupId>
                   <artifactId>jaxb-impl</artifactId>
                   <version>2.2.1.1</version>
                   <exclusions>
                        <exclusion>
                             <artifactId>stax-api</artifactId>
                             <groupId>javax.xml.stream</groupId>
                        </exclusion>
                   </exclusions>
              </dependency>
              <dependency>
                   <groupId>cglib</groupId>
                   <artifactId>cglib-nodep</artifactId>
              </dependency>
              <dependency>
                   <groupId>com.cgi.sipcip</groupId>
                   <artifactId>SipCipBuild</artifactId>
                   <version>1.0</version>
                   <scope>compile</scope>
              </dependency>
              <dependency>
                   <groupId>net.sf.ehcache</groupId>
                   <artifactId>ehcache-core</artifactId>
                   <version>2.4.2</version>
              </dependency>
              <dependency>
                   <groupId>com.googlecode.ehcache-spring-annotations</groupId>
                   <artifactId>ehcache-spring-annotations</artifactId>
                   <version>1.1.3</version>
              </dependency>
              <dependency>
                   <groupId>org.codehaus.groovy</groupId>
                   <artifactId>groovy</artifactId>
                   <exclusions>
                        <exclusion>
                             <artifactId>antlr</artifactId>
                             <groupId>antlr</groupId>
                        </exclusion>
                   </exclusions>
              </dependency>
              <dependency>
                   <groupId>org.mockito</groupId>
                   <artifactId>mockito-all</artifactId>
                   <scope>test</scope>
              </dependency>
              <dependency>
              <groupId>commons-validator</groupId>
              <artifactId>commons-validator</artifactId>
              <version>1.4.0</version>
              </dependency>
              <dependency>
              <groupId>commons-net</groupId>
              <artifactId>commons-net</artifactId>
              <version>3.0.1</version>
              </dependency>
              <!-- Lab Upgrade change for spring 3.1.1-->
              <dependency>
                   <groupId>org.aspectj</groupId>
                   <artifactId>aspectjrt</artifactId>
                   <version>1.6.6</version>
              </dependency>
              <dependency>
                   <groupId>asm</groupId>
                   <artifactId>asm</artifactId>
                   <version>1.5.3</version>
              </dependency>
         </dependencies>
    Thanks
    Shilpa

    984456 wrote:
    java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
    Thanks
    ShilparClear indication of class path issue, please correct the hibernate files. appropriately.
    Hope this helps.
    Regards,
    Jeets.

  • Adobe-livecycle-weblogic.ear deployment issue on weblogic 12c

    Hi All,
         I am trying to install livecycle 3 on weblogic 12c. but in configuration manager adobe-livecycle-weblogic.ear is not getting deployed when packaged JDBC is selected
    has anyone faced this isse before...

    Hi Ravi,
    WebLogic 12c is not a supported Application Server for LiveCycle ES3.
    You can visit http://help.adobe.com/en_US/livecycle/10.0/supported_platforms.html for a list of supported Application Servers for LiveCycle ES3.
    Thanks and Regards,
    Hina Rastogi

  • Oracle weblogic 12c problem

    Hello,
    After you install the 32bit version of Oracle WebLogic 12c , jdevstudio11115install (Windows 7 32 bit platform) . These actions come after the installation of the domain ADF 's and then completed the installation.
    I receive the following error when I run startWebLogic.cmd. ( What is the solution. )
    WARNING: Opening of file based farm keystore failed.
    oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06514: Openin
    g of file based farm keystore failed.
    at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKe
    yStore(FileKeyStoreManager.java:351)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.do
    Init(FileKeyStoreServiceImpl.java:101)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
    nit>(FileKeyStoreServiceImpl.java:73)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
    nit>(FileKeyStoreServiceImpl.java:63)
    at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
    yStoreProvider.java:157)
    at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
    yStoreProvider.java:64)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServ
    iceInstance(ContextFactoryImpl.java:139)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getConte
    xt(ContextFactoryImpl.java:170)
    at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getConte
    xt(ContextFactoryImpl.java:191)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getCo
    ntext(JpsContextFactoryImpl.java:132)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getCo
    ntext(JpsContextFactoryImpl.java:127)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
    java:850)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
    java:844)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
    tore(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:291)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:284)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
    vaPolicyProvider.java:270)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.lo
    adOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1343)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
    itialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
    erviceManager.java:873)
    at weblogic.security.SecurityService.start(SecurityService.java:148)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    <Dec 12, 2011 11:43:27 AM EET> <Error> <Security> <BEA-090892> <The loading of O
    PSS java security policy provider failed due to exception, see the exception sta
    ck trace or the server log file for root cause. If still see no obvious cause, e
    nable the debug flag -Djava.security.debug=jpspolicy to get more information. Er
    ror message: oracle.security.jps.JpsException: [PolicyUtil] Exception while gett
    ing default policy Provider>
    <Dec 12, 2011 11:43:27 AM EET> <Critical> <WebLogicServer> <BEA-000386> <Server
    subsystem failed. Reason: weblogic.security.SecurityInitializationException: The
    loading of OPSS java security policy provider failed due to exception, see the
    exception stack trace or the server log file for root cause. If still see no obv
    ious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more in
    formation. Error message: oracle.security.jps.JpsException: [PolicyUtil] Excepti
    on while getting default policy Provider
    weblogic.security.SecurityInitializationException: The loading of OPSS java secu
    rity policy provider failed due to exception, see the exception stack trace or t
    he server log file for root cause. If still see no obvious cause, enable the deb
    ug flag -Djava.security.debug=jpspolicy to get more information. Error message:
    oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default p
    olicy Provider
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.lo
    adOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
    itialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
    erviceManager.java:873)
    at weblogic.security.SecurityService.start(SecurityService.java:148)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsRuntimeException: oracle.security.jps.JpsExcep
    tion: [PolicyUtil] Exception while getting default policy Provider
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:293)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:284)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
    vaPolicyProvider.java:270)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsException: [PolicyUtil] Exception while gettin
    g default policy Provider
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
    tore(PolicyUtil.java:899)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:291)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:284)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
    vaPolicyProvider.java:270)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    Truncated. see log file for complete stacktrace
    Caused By: java.security.PrivilegedActionException: oracle.security.jps.JpsExcep
    tion: [PolicyUtil] Unable to obtain default JPS Context!
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
    tore(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:291)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:284)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
    vaPolicyProvider.java:270)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain defau
    lt JPS Context!
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
    java:860)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
    java:844)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
    tore(PolicyUtil.java:844)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<
    init>(PolicyDelegationController.java:291)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06
    514: Opening of file based farm keystore failed.
    at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKe
    yStore(FileKeyStoreManager.java:351)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.do
    Init(FileKeyStoreServiceImpl.java:101)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
    nit>(FileKeyStoreServiceImpl.java:73)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
    nit>(FileKeyStoreServiceImpl.java:63)
    at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
    yStoreProvider.java:157)
    Truncated. see log file for complete stacktrace
    >
    <Dec 12, 2011 11:43:30 AM EET> <Notice> <WebLogicServer> <BEA-000365> <Server st
    ate changed to FAILED.>
    <Dec 12, 2011 11:43:30 AM EET> <Error> <WebLogicServer> <BEA-000383> <A critical
    service failed. The server will shut itself down.>
    <Dec 12, 2011 11:43:33 AM EET> <Notice> <WebLogicServer> <BEA-000365> <Server st
    ate changed to FORCE_SHUTTING_DOWN.>
    Note: JDeveloper 11.1.2.1 and 11.1.1.5.0 install but it did not work.
    C:\oracle\Middleware\user_projects\domains\base_domain\config\fmwconfig\bootstrap\cwallet.sso I have full authority, but did not work folder. (permissions full controll)
    Edited by: 889612 on 12.Ara.2011 07:06

    I am having the exact same issue with Weblogic 12c on Windows Server 2003 SP1 on Intel Itanium processor with Java SE 1.6u29 and JDeveloper 11.1.2.1.0.
    Please advise!
    Thanks in advance.
    P.S.
    Unfortunately, problem also confirmed on Windows 7 64bit and JRockit-jdk1.6.0_29-R28.2.0-4.1.0 and JDeveloper 11.1.2.1.0.
    LOG
    WARNING: Failed to save farm keystore. Reason {0}
    Dec 12, 2011 10:51:29 PM oracle.security.jps.internal.keystore.file.FileKeyStore
    Manager createKeyStore
    WARNING: Failed to save farm keystore. Reason {0}
    oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06513: Failed to save farm keystore. Reason at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.create KeyStore(FileKeyStoreManager.java:309)
    Edited by: rade.radenkovic on Dec 12, 2011 1:53 PM

  • How to use Derby database in embedded mode in WebLogic 12c?

    I have a JavaEE-6 application that uses Derby database in embedded mode. It uses JPA for persistence. Everything works fine in Glassfish but now I am trying to port it to WebLogic 12c and having issues setting up Derby database in WLS in embedded mode. The derby setup in WLS asks for Host/port and does not have the embedded mode option. Any help is appreciated.
    -Prantor

    I'm pretty sure this is the wrong forum. "Oracle Application Server" is iAS, not WebLogic.

  • Java.lang.StackOverflowError Running BASIC JSF 2 example on Weblogic 12c

    *I followed the very basic tutorial found here  example and cannot seem to get past the following error:*
    Error 500--Internal Server Error
    java.lang.StackOverflowError
    at weblogic.servlet.internal.ServletResponseImpl.addHeader(ServletResponseImpl.java:567)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    Pressing shift + F5 a couple times I can generate a slightly different stacktrace as follows:
    Error 500--Internal Server Error
    java.lang.StackOverflowError
    at com.sun.faces.application.ViewHandlerResponseWrapper.setStatus(ViewHandlerResponseWrapper.java:88)
    at javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:224)
    at com.sun.faces.application.ViewHandlerResponseWrapper.setStatus(ViewHandlerResponseWrapper.java:88)
    at javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:224)
    Here is my web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5">
    <display-name>JavaServerFaces</display-name>
    <!-- JSF mapping -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Map these files with JSF -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is the pom.xml
    <project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.example</groupId>
    <artifactId>JavaServerFaces</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>JavaServerFaces Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <dependencies>
    <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.1.7</version>
    </dependency>
    <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.1.7</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    </dependency>
    </dependencies>
    <build>
    <finalName>JavaServerFaces</finalName>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.1</version>
    <configuration>
    <source>1.6</source>
    <target>1.6</target>
    </configuration>
    </plugin>
    </plugins>
    </build>
    </project>
    I have exhausted several hours searching the web and constructing new projects with no luck. I understand that the StackOverflowError is produced from bad recursion calls and infinite loops, however I can't see this as the case here.
    My current dev stack is eclipse juno (oepe-12.1.1.2.1-juno-distro-win32-x86_64.zip), m2e-wtp, weblogic 12c, Java EE 6 using JSF 2.1
    *If I export the war file using eclipse (Right click the project -> Export -> WAR file) then manually deploy it via the weblogic admin counsel the app works as expected. As soon as I add the project to the server inside eclipse and start the server I can no longer view the page. I noticed that in the autogenerated_ear_ folder per my domain that each project project folder is actually empty.*
    Any help would me MUCH appreciated!!
    UPDATE - Solved the problem! After adding JSF 2.1 in the pom.xml the JSF 2.1 checkbox was checked in project facets, however it did not add the faces-config.xml to the project. I simple created a new xml file named faces-config.xml under the webapp folder and added the following xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd" version="2.1">
    <application></application>
    </faces-config>
    I hope this helps others!
    Edited by: 1006228 on May 15, 2013 8:21 PM
    Edited by: 1006228 on May 16, 2013 6:39 PM

    Hi.
    Try this http://oracleradio.blogspot.com/2012/01/error-durante-el-deployment-de-un.html
    It is in spanish, but the important part is that u may correct the issue, installing 11.1.1.5 with the Feature Pack.
    It seems to be happening with processes that have loop formed with boundary event inside a gateway circuit.
    Hope this helps.
    best

  • Weblogic 12c Servlet Response - Special characters show up as question mark

    My web app is running on Weblogic 12c (12.1.1) using WebWork + Hibernate. The program streams data (bytes making up a pdf) from a CLOB in an Oracle Database to the AsciiStream of the servlet output response. No exceptions are thrown, but the generated pdf contains blank pages. Comparing the bytes of the generated pdf, special characters are showing up as question marks.
    Some of the bytes read in from the database contain 8 bits (correct data), but the bytes that the servlet return contain only 7 (all bytes with 8 bits become "1111111"). The number of bytes returned from the servlet is correct.
    Code:
    //Response is HttpServletResponse
    response.setContentType("application/pdf");
    response.setHeader("Content-Disposition", "inline; filename=\"test.pdf\"");
    out = response.getOutputStream();
    byte[] buf = new byte[16 * 1024];
    InputStream in = clob.getAsciiStream();
    int size = -1;
    while ((size = in.read(buf)) != -1){
    // buf contains the correct data
    out.write(buf, 0, size);
    // other exception handling code, etc
    out.flush();
    out.close();
    "Correct" pdf byte example:
    10011100
    10011101
    1010111
    1001011
    1101111
    11011011
    Incorrect pdf byte example:
    111111
    111111
    1010111
    1001011
    1101111
    111111
    I have verified that the data read from the CLOB in the database IS correct. My guess is that the Weblogic server has some strange servlet settings that causes the bytes to be written to the servlet output stream incorrectly, or a character encoding issue. Any ideas?
    Edited by: 944705 on Jul 26, 2012 10:17 AM

    Solution found, I'll post the work around to those who might encounter the same problem.
    Somewhere in the layers of technology (webwork or weblogic I'd guess), the servlet response is encoded into UTF-8 regardless. The encoding in the database was ISO-8859-1. Sending ISO encoded bytes by UTF-8 caused the conflicting character codes (anything above 127) to show up as undefined.
    The fix is to decode the input byte array into ISO-8859 string, then encode that string into UTF-8, which can be send by Weblogic.
    isoConvert = new String(buf, "ISO-8859-1");
    out.write(isoConvert.getBytes("UTF-8"), 0, isoConvert.getBytes("UTF-8").length);

  • Error invoking WebService in Eclipse with WebLogic 12c plugin

    I am using Eclipse Indigo with WebLogic 12c plugin to create a standalone WebService Client which invokes a simple WebService. The WebService is protected by Security Policies Wssp1.2-2007-Wss1.0-X509-Basic256.xml and Wssp1.2-SignBody.xml.
    I get the following exception when I run the standalone client:
    h2. Exception in thread "main" java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider weblogic.wsee.jaxws.spi.WLSProvider could not be instantiated: java.lang.ExceptionInInitializerError
    The same program works fine using JDeveloper 11g but not in Eclipse Indigo or in Juno. Has anyone faced this issue?
    Thanks,
    Madhav

    The stand-alone client JAR file does not, however, support invoking Web services that use the following advanced features:
    Web services reliable SOAP messaging
    Message-level security (WS-Security)
    http://docs.oracle.com/cd/E14571_01/web.1111/e13760/client.htm#i229632
    Can you try running by adding weblogic.jar. but if you run the client inside the wls Server it should work.
    Regards,
    Sunil P

  • Override Spring jar in Weblogic 12c

    Hi Folks,
    We have been facing an issue while overriding the Spring jar in Weblogic 12c. Basically we need to write a bean based on some 3rd party API calling their interfaces. Now they use Spring 2.5 jar for their own implementation. Since Weblogic inherently supports Spring 3.0 jar. As a result when we write our bean wrapping their interfaces and deploy it, it doesn't work. We replicated the issue by replacing Spring 2.5 jar with Spring 3 in local environment.
    If we modify the server classpath to load the Spring 2.5 jar (preceding Spring 3.0), entire soa-infra application goes down, so what We wanted to know if it is possible to override the Spring jar only for our application itself? While loading the application it will override the Spring 3.0 jar with Spring 2.5 in the application context but server will keep using Spring 3.0?
    Any ideas/suggestions highly appreciated!
    Thanks,
    Bhaskar

    Hi Bhaskar,
    have you tried packing the Spring libraries in your application and using the Filterring Classloader? Maybe this links can help you :
    Understanding WebLogic Server Application Classloading
    http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP601
    http://stackoverflow.com/questions/11476874/weblogic-10-3-5-overriding-spring-version
    best regards, Nicolas

  • Javax.jms.InvalidSelectorException occurs when upgrade to weblogic 12c

    Recently, our team upgrade weblogic server from 11g to 12c,  some errors occur when start web application in weblogic domain.
    The error is related to message driven bean,  below is the part of  ejb-jar.xml definition:
      <message-driven id="message-driven_1">
          <description>Message Driven Bean</description>
          <display-name>Message Configuration (MDB)</display-name>
          <ejb-name>Logger</ejb-name>
          <ejb-class>com.logging.mdb.Logger</ejb-class>
          <messaging-type>javax.jms.MessageListener</messaging-type>
          <transaction-type>Container</transaction-type>
          <message-destination-type>javax.jms.Queue</message-destination-type>
          <activation-config>
                <activation-config-property>
                    <activation-config-property-name>messageSelector</activation-config-property-name>
                    <activation-config-property-value>DELIVERY='IMMEDIATE'</activation-config-property-value>
                </activation-config-property>
                <activation-config-property>
                    <activation-config-property-name>acknowledgeMode</activation-config-property-name>
                    <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
                </activation-config-property>
                <activation-config-property>
                     <activation-config-property-name>destinationType</activation-config-property-name>
                     <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
                </activation-config-property>
          </activation-config>
      </message-driven>
    When start application below errors show up:
    <Dec 18, 2013 6:24:05 AM PST> <Warning> <EJB> <SLC02PGO> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1387376645415> <BEA-010061> <The Message-Driven EJB Logger is unable to connect to the JMS destination edx/queue/logger. The Error was:
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    ####<Dec 18, 2013 6:24:15 AM PST> <Warning> <EJB> <SLC02PGO> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1387376655414> <BEA-010096> <The Message-Driven EJB MessageDispatcher is unable to connect to the JMS destination or bind to JCA resource adapter edx.queue.outbound. The onnection failed after 124 attempts. The MDB will attempt to reconnect/rebind every 10 seconds. This log message will repeat every 600 seconds until the condition clears.>
    It works well in weblogic 11g,   not sure whether there's any changes in weblgic 12c.
    I'm appreciate if there's someone can help me on this issue.
        <message-driven id="message-driven_1">
          <description>Message Driven Bean</description>
          <display-name>Message Configuration (MDB)</display-name>
          <ejb-name>Logger</ejb-name>
          <ejb-class>com.edocs.fs.logging.mdb.Logger</ejb-class>
          <messaging-type>javax.jms.MessageListener</messaging-type>
          <transaction-type>Container</transaction-type>
          <message-destination-type>javax.jms.Queue</message-destination-type>
          <activation-config>
            <activation-config-property>
              <activation-config-property-name>messageSelector</activation-config-property-name>
              <activation-config-property-value>DELIVERY='IMMEDIATE'</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
              <activation-config-property-name>acknowledgeMode</activation-config-property-name>
              <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
              <activation-config-property-name>destinationType</activation-config-property-name>
              <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
            </activation-config-property>
          </activation-config>
          <resource-ref id="ResRef_Logger_1">
            <res-ref-name>jdbc/LoggerDataSource</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
        </message-driven>

    Hi,
    I debug the application, I found my @ViewScoped ManagedBeans, they're recreated after you click a button or select a item in combobox
    Here is a piece of code:
        @PostConstruct
        public void resolveEntity() {
            Object sEntity = FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("entity");
            entity = (BctTbOportunidade) sEntity;
             FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("entity");
            if (entity == null) {
                entity = new BctTbOportunidade();
    I use @postConstruct to get a entity from another page in sessionMap(I set a item from a table and use this method to modify a entity in a other page).
    When I click a button or select a item in combobox in same page @PostConstruct method is called but values are lost. No Exceptions are thrown by server.
    I found a artice written by BalluC that some versions of jsf 2.1 has this behavior The BalusC Code: The benefits and pitfalls of @ViewScoped
    I already configured my web.xml to set false javax.faces.PARTIAL_STATE_SAVING 
    But this behavior continues.
    The jsf version deployed in my weblogic 12c is 2.1.7.

Maybe you are looking for

  • Advance ajdustment for Vendor line items through F110

    Hello We have to make advance ajustment through F110 for the Vendor line items .  Advance is posted with special indicators through F-48 and invoice booked through FB60 and MIRO. I have checked the configuration in FBZP "All Company Codes" where spec

  • Weather icon wont find local weather

    my local weather will not update on the weather app.

  • Adhoc Query : Auth

    Hi All, I want to restrict a User for a custom craeted Adhoc Query created. In, T.Code : S_PH0_48000510 - Personnel Management -> Administration -> Info System -> Ad Hoc Query User Group : ZHRPAYROLL Infoset : ZHRPAY Query : EmpMaster How do give aut

  • Problem editing Word docs with Magic Trackpad

    Hi--I'm a playwright working in Word. I recently purchased a magic trackpad. I'm having a tough time selecting text for cutting, copying, etc. I'll want to select a word or two but wind up getting the whole paragraph, an incomplete chunk, or nothing

  • Insert an infoobject in a multiprovider?

    Hi Experts, The particular infoobject that I need in my zquery is not available in the multiprovider of my query. 1. Can i insert the infoobject directly in the multiprovider? This infoobject is not created as a infoprovider. what will happen if i ch