Worklist - Usernames + Underscores

When trying to edit flex field mappings, or creating custom views I am having trouble with one user.
Due to enterprise naming conventions, all service type users such as bpeladmin need to have svc_ appended to the front of their logins.
However, when trying to browse for task types, or creating custom views, I am getting an error, ONLY with usernames with UNDERSCORES.
The username is svc_bpeladmin, and I am getting this in the logs. Anybody have a workaround to this?
<2007-07-14 15:45:10,562> <ERROR> <oracle.bpel.services.workflow> <::> Identity Service cannot find user.
Error occurs while getting user "svc" in realm "jazn.com"
Verify that user "svc" exits in realm "jazn.com". Contact oracle support if error is not fixable.
ORABPEL-10516
Identity Service cannot find user.
Error occurs while getting user "svc" in realm "jazn.com"
Verify that user "svc" exits in realm "jazn.com". Contact oracle support if error is not fixable.
     at oracle.tip.pc.services.identity.jazn.BPMAuthorizationServiceImpl.lookupUser(BPMAuthorizationServiceImpl.java:130)
     at oracle.tip.pc.services.identity.jazn.xml.XMLIdentityService.lookupUser(XMLIdentityService.java:137)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextFromToken(VerificationService.java:1892)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:730)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:818)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.validateContext(TaskMetadataService.java:634)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getTaskAttributesForTaskDefinition(TaskMetadataService.java:676)
     at worklistapp.servlets.Preferences.handleViewsRequest(Preferences.java:317)
     at worklistapp.servlets.Preferences.handleRequest(Preferences.java:190)
     at worklistapp.servlets.BaseServlet.doPost(BaseServlet.java:157)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
<2007-07-14 15:45:10,562> <ERROR> <oracle.bpel.services.workflow> <::> Invalid Token Error in Verification Service.
Invalid Token Error in Verification Service. Received invalid token c9pHcmBFtc5lSM/g/slFB4MynulA3WZ5mgzsiEDn/zIU9oI97im6QwNIRJSfiG+LnWr4TAzedz3E5di50ocWbdEg+ZFrBFtBMUqFngoPHMSY4FF66cxEQKEGe8KYNQvOaAxXej/9qYqSDBgocUGYlGIJ8hsEgYBPGjw5DafAQEbfrJuzR9mn/COL80RT84vs4Jdae0ZkowDf+pwrY5zSO31uYwIhkoRX in validateContext
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
ORABPEL-30503
Invalid Token Error in Verification Service.
Invalid Token Error in Verification Service. Received invalid token c9pHcmBFtc5lSM/g/slFB4MynulA3WZ5mgzsiEDn/zIU9oI97im6QwNIRJSfiG+LnWr4TAzedz3E5di50ocWbdEg+ZFrBFtBMUqFngoPHMSY4FF66cxEQKEGe8KYNQvOaAxXej/9qYqSDBgocUGYlGIJ8hsEgYBPGjw5DafAQEbfrJuzR9mn/COL80RT84vs4Jdae0ZkowDf+pwrY5zSO31uYwIhkoRX in validateContext
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:735)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:818)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.validateContext(TaskMetadataService.java:634)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getTaskAttributesForTaskDefinition(TaskMetadataService.java:676)
     at worklistapp.servlets.Preferences.handleViewsRequest(Preferences.java:317)
     at worklistapp.servlets.Preferences.handleRequest(Preferences.java:190)
     at worklistapp.servlets.BaseServlet.doPost(BaseServlet.java:157)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
Caused by: ORABPEL-10516
Identity Service cannot find user.
Error occurs while getting user "svc" in realm "jazn.com"
Verify that user "svc" exits in realm "jazn.com". Contact oracle support if error is not fixable.
     at oracle.tip.pc.services.identity.jazn.BPMAuthorizationServiceImpl.lookupUser(BPMAuthorizationServiceImpl.java:130)
     at oracle.tip.pc.services.identity.jazn.xml.XMLIdentityService.lookupUser(XMLIdentityService.java:137)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextFromToken(VerificationService.java:1892)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:730)
     ... 23 more
<2007-07-14 15:45:10,578> <ERROR> <oracle.bpel.services.workflow> <::> Invalid Token Error in Verification Service.
Invalid Token Error in Verification Service. Received invalid token c9pHcmBFtc5lSM/g/slFB4MynulA3WZ5mgzsiEDn/zIU9oI97im6QwNIRJSfiG+LnWr4TAzedz3E5di50ocWbdEg+ZFrBFtBMUqFngoPHMSY4FF66cxEQKEGe8KYNQvOaAxXej/9qYqSDBgocUGYlGIJ8hsEgYBPGjw5DafAQEbfrJuzR9mn/COL80RT84vs4Jdae0ZkowDf+pwrY5zSO31uYwIhkoRX in validateContext
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
ORABPEL-30503
Invalid Token Error in Verification Service.
Invalid Token Error in Verification Service. Received invalid token c9pHcmBFtc5lSM/g/slFB4MynulA3WZ5mgzsiEDn/zIU9oI97im6QwNIRJSfiG+LnWr4TAzedz3E5di50ocWbdEg+ZFrBFtBMUqFngoPHMSY4FF66cxEQKEGe8KYNQvOaAxXej/9qYqSDBgocUGYlGIJ8hsEgYBPGjw5DafAQEbfrJuzR9mn/COL80RT84vs4Jdae0ZkowDf+pwrY5zSO31uYwIhkoRX in validateContext
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:735)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:818)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.validateContext(TaskMetadataService.java:634)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getTaskAttributesForTaskDefinition(TaskMetadataService.java:676)
     at worklistapp.servlets.Preferences.handleViewsRequest(Preferences.java:317)
     at worklistapp.servlets.Preferences.handleRequest(Preferences.java:190)
     at worklistapp.servlets.BaseServlet.doPost(BaseServlet.java:157)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
Caused by: ORABPEL-10516
Identity Service cannot find user.
Error occurs while getting user "svc" in realm "jazn.com"
Verify that user "svc" exits in realm "jazn.com". Contact oracle support if error is not fixable.
     at oracle.tip.pc.services.identity.jazn.BPMAuthorizationServiceImpl.lookupUser(BPMAuthorizationServiceImpl.java:130)
     at oracle.tip.pc.services.identity.jazn.xml.XMLIdentityService.lookupUser(XMLIdentityService.java:137)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextFromToken(VerificationService.java:1892)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:730)
     ... 23 more
07/07/14 15:45:10 ORABPEL-10516
Identity Service cannot find user.
Error occurs while getting user "svc" in realm "jazn.com"
Verify that user "svc" exits in realm "jazn.com". Contact oracle support if error is not fixable.
     at oracle.tip.pc.services.identity.jazn.BPMAuthorizationServiceImpl.lookupUser(BPMAuthorizationServiceImpl.java:130)
     at oracle.tip.pc.services.identity.jazn.xml.XMLIdentityService.lookupUser(XMLIdentityService.java:137)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.createContextFromToken(VerificationService.java:1892)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:730)
     at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:818)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.validateContext(TaskMetadataService.java:634)
     at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getTaskAttributesForTaskDefinition(TaskMetadataService.java:676)
     at worklistapp.servlets.Preferences.handleViewsRequest(Preferences.java:317)
     at worklistapp.servlets.Preferences.handleRequest(Preferences.java:190)
     at worklistapp.servlets.BaseServlet.doPost(BaseServlet.java:157)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)

All that was required was to remove bpeladmin from the system-jazn-config.xml and add svc_bpeladmin with correct permissions.
Setting the owner to "svc_bpeladmin" was adequate enough to have svc_bpeladmin replace most functions of "bpeladmin" in the worklist. It could be any username, not just "svc_bpeladmin".
Since having a user "bpeladmin" did not meet enterprise naming standards, this is our solution. Many enterprises do not like having generic administrative names without some sort of prefix.
So to eventually hook up with an LDAP repository, it is required to have something replace what the "bpeladmin" user would most likely be doing. We are also keeping em, bpelconsole, etc. running off of system-jazn-data.xml, since they do not need access to any other enterprise wide logins.

Similar Messages

  • Username is case sensitive in BPM Worklist

    HI
    I have BPEL process with human task, that assigned to jcooper.
    When i login as jcooper i see this task.
    But if i login as JCOOPER i don't see task.
    Why i have 2 users with same usernames.
    How it fix.
    Thanks.

    You could change the worklist application by forcing the username after logon to lowercase. This is done by changing the JSP/java code of the application.
    Marc
    http://orasoa.blogspot.com

  • Can't enter username, phone doesn't have an underscore.

    I just created my username on my desktop. However my email account is only on my cellphone (Samsung Galaxie III) which doesn't have an underscore (_) on the keyboard. Can I change the username to something w/o an underscore?

    '''I just created my username on my desktop.'''
    This could be a username for a user account on your PC. Username for your subscription to ebay. Who knows?
    Well this is a support forum for Thunderbird email client. You do not specify what username you are asking about. Email accounts use usernames. This forum is not really for support of actually using the forum itself.
    This forum is free. Just make a new account with the username you want. It is not like you will get charged extra.

  • Usernames with underscore at the begining cannot edit pages

    Hello,
    I know that a username (short name) starting with an underscore “_” are reserved by the system accounts.
    Anyways I wanted a character to differentiate users by their name and didn’t wanted to use the hyphen.
    So with such users, the pen button is never available. You cannot edit their pages.
    The fix is to not name your users using a underscore at the begining.
    I wouldn’t consider this as a bug but worth to know.
    Message was edited by: Thyb
    Message was edited by: Thyb

    > Is DW as bad as FP?
    Without a comfort level in HTML and CSS, anything will be
    trouble for you.
    On the other hand, if you are not put off by looking at code,
    then DW's
    templates are quite simple to understand and adapt to.
    > The site is quite large and has a few sub webs.
    DW will not play well with sub webs. Each sub web must be
    treated as an
    independent site in DW with its own site definition and local
    site (although
    you could nest your local sites in DW).
    > Anyway, I guess I test on a local server and hope to get
    an understanding
    > of
    > DW.
    Does your site's usage require a testing server? By that, I
    mean to ask -
    are you using server scripting? If not, then you do not need
    a testing
    server.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jeff5100" <[email protected]> wrote in
    message
    news:gbari5$bhb$[email protected]..
    > Thanks ACE,
    >
    > There was indeed a Template folder with the template
    file in
    > it.
    > I have downloaded it and will attempt to discover how to
    use it. It
    > reminds me
    > of Front Page which is a nightmare to go behind. Is DW
    as bad as FP? I am
    > fairly comfortable with html and have a conceptual
    understanding of css. I
    > have
    > built a site or two from scatch with DW without any
    problems. My main
    > concern
    > is that this site has been built by many entities and
    using different code
    > applications. I have to fix a few cosmetic things but
    don't want to break
    > the
    > site with my minor changes. The site is quite large and
    has a few sub
    > webs.
    > Anyway, I guess I test on a local server and hope to get
    an understanding
    > of
    > DW.
    >
    > Thanks again for your help
    >

  • PortalPath for Mydashboard is not working when the username contains a "/"

    Hi,
    Our OBIEE application is integrated with a java web application. We are providing links to the dashboards, Mydashboard, Answers and Administration using java and passing the credentials and portal paths to OBIEE using java.
    Every other link is working fine, except the Mydahsboard link. When an username contains a "/" (Ex: xyz/adc.admin), then the mydashboard link is thorwing a path not found exception.
    We tried escaping the user name, encoding the username. Nothing worked.
    Finally removed the portal path from the URL and it is working fine, but lead to another problem.
    The other problem is that, if the user clicks the Mydashboard link and then Dashboard link and again mydashboard link, then the dashboard is coming up, but not the mydashboard.
    As we have removed the portalpath from the url, I guess the portal path of the dashboard is getting cached somewhere and it is being used even for the mydashboard.
    Any ideas, how to get this worked would be appreciated!!
    Thanks!!
    Vasantha.P

    Why do you need user names with /? If this is due to SSO try using the stripWindowsDomain option in your SSO configuration. See this post:
    http://www.clearpeaks.com/blog/oracle-bi-ee/configuring-obiee-to-work-in-single-sign-on-sso-environment-on-iis
    Otherwise you are going to have to convert it to something else or you will have plenty of problems in OBIEE. We ended up replacing it by "_" (underscore) and that worked fine for us.

  • How to configure SOA Suite 11g Worklist with LDAP Identity Store

    Hi
    Im trying to configure the worklistapp to use an ldap identity store (SOA Suite 11g)
    The ldap is a open source ldap (Open DS in this case), is NOT : OID, OVD, Active Directory, WLS OVD, IPlanet.
    for doing so, i did the next configurations:
    workflow-identity-config.xml
    <configuration realmName="realm1">
    <provider providerType="JPS" name="JpsProvider" service="Identity">
    <property name="jpsContextName" value="worklist" />
    </provider>
    </configuration>
    jps-config.xml
    <?xml version="1.0" encoding="UTF-8" standalone='yes'?>
    <jpsConfig xmlns="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd" schema-major-version="11" schema-minor-version="1">
         <!-- This property is for jaas mode. Possible values are "off", "doas" and "doasprivileged" -->
         <property name="oracle.security.jps.jaas.mode" value="off"/>
         <property name="custom.provider" value="true"/>
    <serviceProviders>
    <serviceProvider type="IDENTITY_STORE" name="idstore.ldap.provider" class="oracle.security.jps.internal.idstore.ldap.LdapIdentityStoreProvider">
    <description>LDAP-based IdentityStore Provider</description>
    </serviceProvider>
    </serviceProviders>
    <serviceInstances>
              <serviceInstance name="idstore.ldap.opends" provider="idstore.ldap.provider">
                   <property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
                   <property name="idstore.type" value="CUSTOM"/>
                   <property name="ldap.url" value="ldap://host:port"/>
                   <property name="subscriber.name" value="dc=company,dc=com"/>
                   <property name="search.type" value="SIMPLE"/>
                   <property name="security.principal" value="cn=adminuser,dc=company,dc=com"/>
                   <property name="security.credential" value="!adminuser_password"/>
                   <property name="user.login.attr" value="cn"/>
                   <property name="username.attr" value="cn"/>               
                   <property name="groupname.attr" value="cn"/>
                   <extendedProperty>
                        <name>group.mandatory.attrs</name>
                        <values>
                             <value>cn</value>
                             <value>objectClass</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>group.object.classes</name>
                        <values>
                             <value>top</value>
                             <value>groupOfUniqueNames</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>group.filter.object.classes</name>
                        <values>
                             <value>groupOfUniqueNames</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>group.member.attrs</name>
                        <values>
                             <value>uniqueMember</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>group.search.bases</name>
                        <values>
                             <value>o=groups,dc=company,dc=com</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>user.mandatory.attrs</name>
                        <values>
                             <value>cn</value>
                             <value>objectClass</value>
                             <value>sn</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>user.object.classes</name>
                        <values>
                             <value>organizationalPerson</value>
                             <value>person</value>
                             <value>inetOrgPerson</value>
                             <value>top</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>user.filter.object.classes</name>
                        <values>
                             <value>inetOrgPerson</value>
                        </values>
                   </extendedProperty>
                   <extendedProperty>
                        <name>user.search.bases</name>
                        <values>
                             <value>o=users,dc=company,dc=com</value>
                        </values>
                   </extendedProperty>
              </serviceInstance>
         </serviceInstances>
    <jpsContexts default="default">
    <jpsContext name="worklist">
    <serviceInstanceRef ref="credstore"/>
    <serviceInstanceRef ref="keystore"/>
    <serviceInstanceRef ref="policystore.xml"/>
    <serviceInstanceRef ref="audit"/>
    <serviceInstanceRef ref="idstore.ldap.opends"/>
    </jpsContext>
    </jpsContexts>
    </jpsConfig>
    but i get the error:
    Jul 2, 2009 12:52:40 PM oracle.security.jps.internal.idstore.util.IdentityStoreUtil getIdentityStoreFactory
    WARNING: The identity store factory name is not configured.
    Jul 2, 2009 12:52:40 PM oracle.bpel.services.common.ServicesLogger __logException
    SEVERE: <.> Error in authenticating user.
    Error in authenticating and creating a workflow context for user realm1/user1.
    Verify that the user credentials and identity service configurations are correct.
    ORABPEL-30501
    Error in authenticating user.
    Error in authenticating and creating a workflow context for user sigfe.com/user1.
    Verify that the user credentials and identity service configurations are correct.
    at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:603)
    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)
    So, anyone knows how i can specify the identity store factory?
    or the correct parameters for a ldap identity store repository?
    I used the 11G documentation for the security file :
    http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/jpsprops.htm
    thanks

    I am having exactly the same issue. Once I configure jps-config.xml file to use my custom authenticator and login into the worklist app, the following gets thrown. I was wondering if you need map some roles to the existing users in the Custom Authenticator.
    Exception
    exception.70692.type: error
    exception.70692.severity: 2
    exception.70692.name: Error while granting BPMOrganizationAdmin role to SOAOperator.
    exception.70692.description: Error occured while granting the application role BPMOrganizationAdmin to application role SOAOperator.
    exception.70692.fix: In the policy store, please add SOAOperator role as a member of BPMOrganizationAdmin role, if it is not already present.

  • Building Custom Worklist application in 11g using wlfullclient.jar

    Hi,
    Can anybody mention me the detailed steps to be followed to build a custom Worklist application.
    I have created a Web application jdev 11g
    I placed the following url to create
    http://download.oracle.com/docs/cd/E1552301/integration.1111/e10224/bp_worklistcust.htm_+
    placed the following jars in classpath
    Wsclient_extended.jar
    Bpm-services.jar
    Bpm-infra.jar
    Wlfullclient.jar
    xmlparserv2.jar
    xml.jar
    I did not find this bpm-services-client.jar* anywhere in the SOA stack. I am missing this??
    and also place wf_client_config.xml under src folder the content is as below
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <workflowServicesClientConfiguration xmlns="http://xmlns.oracle.com/bpel/services/client">
    <server name ="default" default="true" >
    <localClient>
    <participateInClientTransaction>false</participateInClientTransaction>
    </localClient>
    <remoteClient>
    <serverURL>t3://localhost:7001</serverURL>
    <userName>weblogic</userName>
    <password>weblogic123</password>
    <initialContextFactory>weblogic.jndi.WLInitialContextFactory
    </initialContextFactory>
    <participateInClientTransaction>false</participateInClientTransaction>
    </remoteClient>
    <soapClient>
    <rootEndPointURL>http://localhost:7001</rootEndPointURL>
    <identityPropagation mode="dynamic" type="saml">
    <policy-references>
    <policy-reference enabled="true" category="security"
    uri="oracle/wss10_saml_token_client_policy"/>
    </policy-references>
    </identityPropagation>
    </soapClient>
    </server>
    </workflowServicesClientConfiguration>
    And I have placed web.xml and weblogic.xml under WEB-INF folder.
    I do not have any compile time error.
    But when I am trying to deploy the application I am getting the following error.
    If i remove the wlfullclient.jar I am not getting this error as it is trying to load something while deployment.
    Please can anybody tell me what exactly I am missing.
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:111)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:61)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: c devi on 24 Sep, 2010 8:45 AM

    Hi,
    Can anybody mention me the detailed steps to be followed to build a custom Worklist application.
    I have created a Web application jdev 11g
    I placed the following url to create
    http://download.oracle.com/docs/cd/E1552301/integration.1111/e10224/bp_worklistcust.htm_+
    placed the following jars in classpath
    Wsclient_extended.jar
    Bpm-services.jar
    Bpm-infra.jar
    Wlfullclient.jar
    xmlparserv2.jar
    xml.jar
    I did not find this bpm-services-client.jar* anywhere in the SOA stack. I am missing this??
    and also place wf_client_config.xml under src folder the content is as below
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <workflowServicesClientConfiguration xmlns="http://xmlns.oracle.com/bpel/services/client">
    <server name ="default" default="true" >
    <localClient>
    <participateInClientTransaction>false</participateInClientTransaction>
    </localClient>
    <remoteClient>
    <serverURL>t3://localhost:7001</serverURL>
    <userName>weblogic</userName>
    <password>weblogic123</password>
    <initialContextFactory>weblogic.jndi.WLInitialContextFactory
    </initialContextFactory>
    <participateInClientTransaction>false</participateInClientTransaction>
    </remoteClient>
    <soapClient>
    <rootEndPointURL>http://localhost:7001</rootEndPointURL>
    <identityPropagation mode="dynamic" type="saml">
    <policy-references>
    <policy-reference enabled="true" category="security"
    uri="oracle/wss10_saml_token_client_policy"/>
    </policy-references>
    </identityPropagation>
    </soapClient>
    </server>
    </workflowServicesClientConfiguration>
    And I have placed web.xml and weblogic.xml under WEB-INF folder.
    I do not have any compile time error.
    But when I am trying to deploy the application I am getting the following error.
    If i remove the wlfullclient.jar I am not getting this error as it is trying to load something while deployment.
    Please can anybody tell me what exactly I am missing.
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:111)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:61)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: c devi on 24 Sep, 2010 8:45 AM

  • [ADF custom task form] How to get logged user in Worklist app?

    Hi!
    How to get the user id, logged in Worklist application in a managed bean? I'm creating ADF task form for human task and i have to know which user is logged in.
    Thx!

    &lt;af:outputText value="Authenticated User: #{securityContext.userName}" id="ot2"/>
    or via standard j2se apis (Subject.getSubject(..))
    hth clemens (http://blogs.oracle.com/soabpm)

  • How to get the logged in username or how to set the acquiredby?

    We are using BPEL 10.1.2.0.2.
    We have implemented CAS/OID to work with the TaskList. Our issue is with obtaining the logged in username while in the BPEL Workflow. Acquired by variable is not populated even after the task is acquired. Explicitly setting Acquired By doesn't work either (still comes as null).
    This might be something quite simple, but I am not able to figure it out. Is there a way to get the logged in username or the user who acquired the task while in the BPEL workflow?
    Thank you!

    I have no longer access to the custom worklist application of 10.1.2 but in 10.1.3 you can access it through:
    SessionStore sessStore = SessionStore.getInstance(request.getSession(false));
    String userName = ((IWorkflowContext) sessStore.get(WorklistappConstants.SESS_ATTR_WORKFLOW_CONTEXT)).getUser();Kind Regards,
    Andre

  • Worklist FYI task is not visible after updating protectednumberattribute2

    Hi,
    I need you guys help please. The case is that or bpel process is creating a FYI task for user notification where a custom worklist screen is created to retreive FYI tasks for the users.
    If any of the FYI task is later updated with the API, the task becomes invisible in the worklist application and also cannot be retreived with the worklist API.
    Below is the code for retreiving and updating the task. Its an struts action and the init method is executed the first time to display all tasks.
    Later the delete method is invoked and again the init method to see the remaining tasks.
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import javax.naming.NamingException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.bpel.services.workflow.IWorkflowConstants;
    import oracle.bpel.services.workflow.StaleObjectException;
    import oracle.bpel.services.workflow.WorkflowException;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import oracle.bpel.services.workflow.repos.Ordering;
    import oracle.bpel.services.workflow.repos.Predicate;
    import oracle.bpel.services.workflow.repos.TableConstants;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.task.model.Task;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import org.apache.commons.dbutils.QueryRunner;
    import org.apache.commons.lang.StringUtils;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.DynaActionForm;
    @SuppressWarnings( { "unchecked", "deprecation" })
    public class Crud extends BaseAction {
         private Log log = LogFactory.getLog(getClass());
         private String getRemoteUser(HttpServletRequest request) {
              boolean isDevMode = Boolean.valueOf(System.getProperty("DEV_MODE"));
              String remoteUser = null;
              if (isDevMode) {
                   if ((remoteUser = request.getParameter("remote_user")) != null)
                        request.getSession().setAttribute("remote_user", remoteUser);
                   else
                        remoteUser = request.getSession().getAttribute("remote_user").toString();
              if (remoteUser == null)
                   remoteUser = request.getHeader("REMOTE-USER");
              return remoteUser;
         public void init(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws WorkflowException {
              log.debug("init");
              IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                        .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              String remoteUser = getRemoteUser(request);
              log.debug("remote user: " + remoteUser);
              IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                        .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                        AppProperties.getProperty("identityContext"), remoteUser);
              log.debug(wfCtx.getClass());
              ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
              // category is CRUD
              Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                        Predicate.OP_EQ, "CRUD");
              // should not be a stale task
              crudPredicate.addClause(Predicate.AND,TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_NEQ,
                        IWorkflowConstants.TASK_STATE_STALE);
              log.debug(crudPredicate);
              List queryColumns = new ArrayList();
              queryColumns.add("TASKID");
              queryColumns.add("TASKNUMBER");
              queryColumns.add("TITLE");
              queryColumns.add("PRIORITY");
              queryColumns.add("STATE");
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
              queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
              // List optionalInfo = new ArrayList();
              // optionalInfo.add("PAYLOAD");
              Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
              ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
              List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                        ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
              request.setAttribute("CRUD_TASKS", tasksList);
              logTaskAttributes(tasksList);
         public void delete(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws WorkflowException, StaleObjectException {
              log.debug("delete");
              DynaActionForm deleteForm = (DynaActionForm) form;
              IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                        .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
              String remoteUser = getRemoteUser(request);
              log.debug("remote user: " + remoteUser);
              IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                        .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                        AppProperties.getProperty("identityContext"), remoteUser);
              log.debug(wfCtx.getClass());
              // category is CRUD
              Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                        Predicate.OP_EQ, "CRUD");
              // assigned to the remote user
              crudPredicate.addClause(Predicate.AND, TableConstants.ASSIGNEE_ASSIGNEE_COLUMN,
                        Predicate.OP_EQ, remoteUser);
              // task is assigned
              crudPredicate.addClause(Predicate.AND, TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_EQ,
                        IWorkflowConstants.TASK_STATE_ASSIGNED);
              // trxNo
              crudPredicate.addClause(Predicate.AND,
                        TableConstants.WFTASK_PROTECTEDTEXTATTRIBUTE1_COLUMN, Predicate.OP_EQ, deleteForm
                                  .getString("trxNo"));
              // is a draft
              crudPredicate.addClause(Predicate.AND,
                        TableConstants.WFTASK_PROTECTEDNUMBERATTRIBUTE2_COLUMN, Predicate.OP_EQ, Double
                                  .valueOf(Constants.TrxTypeId.DRAFT.getTrxTypeId()));
              log.debug(crudPredicate);
              List queryColumns = new ArrayList();
              queryColumns.add("TASKID");
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
              queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
              queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
              Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
              ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
              Task draftTask = null;
              List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                        ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
              logTaskAttributes(tasksList);
              if (tasksList!=null && tasksList.size() > 0)
                   draftTask = tasksList.get(0);
              if (draftTask == null)
                   return;
              try {
                   // settting the task status to Constants.TrxTypeId.DELETED
                   log.debug("update from: "
                             + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
                   draftTask.getSystemMessageAttributes().setProtectedNumberAttribute2(
                             Double.valueOf(Constants.TrxTypeId.DELETED.getTrxTypeId()));
                   wfSvcClient.getTaskService().updateTask(wfCtx, draftTask);
                   log.debug("updated to: "
                             + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
                   c.commit();
              } catch (Exception e) {
                   log.error(e, e);
         private void logTaskAttributes(List<Task> tasksList) {
              // log.debug("task:" + task + " payload: "
              // + (task.getPayload() == null ? "null" :
              // task.getPayload().getContent()));
              log.debug("***********");
              for (Task task : tasksList) {
              log.debug("\ttask owner:" + task.getOwnerUser());
              log.debug("task state:" + task.getSystemAttributes().getState());
              // log.debug("task assigned date:" +
              // task.getSystemAttributes().getAssignedDate());
              log.debug("task status :"
                        + task.getSystemMessageAttributes().getProtectedNumberAttribute2());
              log.debug("task id :" + task.getSystemAttributes().getTaskId());
              log.debug("***********");
    Please help,
    Regards
    Mehdi

    Hi ,
      I am executing the WEbservice using WSNAVIGATOR but its not execute , its getting HTML log error as  below..
    1-Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE"
    2-
    HTTP/1.1 500 Internal Server Error
    server: SAP NetWeaver Application Server 7.20 / AS Java 7.20
    content-type: text/xml; charset=utf-8
    date: Sat, 26 Nov 2011 11:40:56 GMT
    transfer-encoding: chunked
    Set-Cookie: <value is hidden>
    2e4
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</faultstring><detail><yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException xmlns:yq1='http://sap-j2ee-engine/error'>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    0
    Thnaks
    Sudhir

  • Building a custom worklist client in 11g R1 fails to authenticate [Solved]

    Release: 11gR1
    Hi,
    We're trying to build a custom worklist client using the APIs exposed by the workflow service described here:
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_worklistcust.htm#BHAHBHID
    I created an ADF/webcenter application.
    Created a page and added ADF security to the page which in turn authenticates via OID - this works.
    However when I try to use the workflow API to retrieve the workflow context I receive this exception:
    ========= get tasks =========
    admin user : weblogic
    admin pw : weblogic1
    realm : myrealm
    user : harry
    exception : ORABPEL-30501
    Error in authenticating user.
    Error in authenticating and creating a workflow context for user myrealm/weblogic.
    Verify that the user credentials and identity service configurations are correct.
    message : Error in authenticating user.
    Error in authenticating and creating a workflow context for user myrealm/weblogic.
    Verify that the user credentials and identity service configurations are correct.
    ORABPEL-30501
    Error in authenticating user.
    Error in authenticating and creating a workflow context for user myrealm/weblogic.
    Verify that the user credentials and identity service configurations are correct.
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_1031_WLStub.authenticate(Unknown Source)
    at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:103)
    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 oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invokeTarget(WFClientRetryInvocationHandler.java:121)
    at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invoke(WFClientRetryInvocationHandler.java:67)
    at $Proxy138.authenticate(Unknown Source)
    at view.services.worklistService.getTasks(worklistService.java:46)
    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 javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
    at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:184)
    at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(ValueRenderer.java:145)
    at oracle.adfinternal.view.faces.renderkit.rich.OutputTextRenderer.encodeAll(OutputTextRenderer.java:108)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:392)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.ja
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.ja
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:1523)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:925)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderSecondPane(PanelSplitterRenderer.java:831)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:166)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class oracle.tip.pc.infra.exception.PCRuntimeException
    at oracle.tip.pc.services.common.ServiceFactory.getAuthenticationServiceInstance(ServiceFactory.java:166)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.getAuthenticationService(VerificationService.java:3688)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.authenticateUser(VerificationService.java:620)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:85)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy154.authenticateUser(Unknown Source)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.authenticate(TaskQueryService.java:394)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:85)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at oracle.bpel.services.workflow.test.workflow.ExceptionTestCaseBuilder.invoke(ExceptionTestCaseBuilder.java:155)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy162.authenticate(Unknown Source)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryServiceBean.authenticate(TaskQueryServiceBean.java:80)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl.authenticate(TaskQueryService_oz1ipg_EOImpl.java:733)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    ... 2 more
    The Code Fragment that causes the exception:
    public class worklistService {
    String adminUser = "weblogic";
    String adminPassword = "weblogic1";
    String realm = "myrealm";
    public List getTasks() throws WorkflowException, StaleObjectException {
    System.out.println("========= get tasks =========");
    List tasks = null;
    String user = ADFContext.getCurrent().getSecurityContext().getUserName();
    try {
    IWorkflowServiceClient iWorkflowServiceClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
    ITaskQueryService iTaskQueryService = iWorkflowServiceClient.getTaskQueryService();
    System.out.println("admin user : " + adminUser);
    System.out.println("admin pw : " + adminPassword);
    System.out.println("realm : " + realm);
    System.out.println("user : " + user);
    IWorkflowContext adminContext = iTaskQueryService.authenticate(adminUser, adminPassword.toCharArray(), realm); *<-- EXCEPTION HERE*
    System.out.println("------ adminContext : " + adminContext);
    IWorkflowContext userContext = iTaskQueryService.authenticateOnBehalfOf(adminContext,user);
    System.out.println("------ userContext : " + userContext);
    My wf_client_config.xml file:
    <workflowServicesClientConfiguration xmlns="http://xmlns.oracle.com/bpel/services/client">
         <server name="default" default="true">
              <localClient>
                   <participateInClientTransaction>false</participateInClientTransaction>
              </localClient>
              <remoteClient>
                   <serverURL>t3://localhost:8001</serverURL>
                   *<userName>weblogic</userName>*
                   *<password>weblogic1</password>*
                   <initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory>
                   <participateInClientTransaction>false</participateInClientTransaction>
              </remoteClient>
              <soapClient>
                   <rootEndPointURL>http://localhost:8001</rootEndPointURL>
                   <identityPropagation mode="dynamic" type="saml">
                        <policy-references>
                             <policy-reference enabled="true" category="security" uri="oracle/wss10_saml_token_client_policy"/>
                        </policy-references>
                   </identityPropagation>
              </soapClient>
         </server>
    </workflowServicesClientConfiguration>
    Further Notes:
    The out-of-the-box worklistapp included with BPEL authenticates correctly through the same OID instance.
    The above was when I used REMOTE_CLIENT, I get a similar error when I use SOAP_CLIENT.
    Any help is greatly appreciated.
    Thanks
    Bud
    Edited by: user1330597 on Jul 15, 2009 8:54 AM

    Hi Guys,
    Thank you for taking the time to answer my questions, from your replies I gathered that I was barking up the wrong tree.
    I'll comment on my solution below for the curious.
    thx
    Bud
    I left my wf_client_config.xml file as is. (shown in the original comment above - I have this file in the ViewController project's src directory - not the global src directory)
    I reverted my workflow-identity-config.xml file to its original state (ie removed the multiple configurations and defaulted to the jazn.com realm):
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <ISConfiguration xmlns="http://www.oracle.com/pcbpel/identityservice/isconfig" >
    <configurations>
    <configuration realmName="jazn.com">
    <provider providerType="JPS" name="JpsProvider" service="Identity">
    <property name="jpsContextName" value="default" />
    </provider>
    </configuration>
    </configurations>
    <property name="caseSensitive" value="false"/>
    </ISConfiguration>
    It seemed to me that the worklist client service (API) always uses jazn.com as the realm, even though I added users to myrealm (weblogic's default realm) via oid.
    When I browse for users in a HumanTask.task file in JDeveloper for instance the users I had added to myrealm show up in the jazn.com realm - which is okay since they're all in there.
    Since this is a client and we don't really know the password of a user logging in I used the authenticateOnBehalfOf() method to get the IWorkflowContext of the user after getting the IWorkflowContext of an Administrator.
    In order to get an administrator IWorkflowContext you need to authenticate against a user who is in the 'Administrators' group.
    The code I used is below:
    public class worklistService {
    String adminUser = "harry";
    String adminPassword = "welcome1";
    String realm = "jazn.com";
    public List getTasks() throws WorkflowException, StaleObjectException {
    String user = ADFContext.getCurrent().getSecurityContext().getUserName();
    try {
    IWorkflowServiceClient iWorkflowServiceClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
    ITaskQueryService iTaskQueryService = iWorkflowServiceClient.getTaskQueryService();
    System.out.println("admin user : " + adminUser);
    System.out.println("admin pw : " + adminPassword);
    System.out.println("realm : " + realm);
    System.out.println("user : " + user);
    IWorkflowContext directUserContext = iTaskQueryService.authenticate("ben", adminPassword.toCharArray(), realm);
    System.out.println("------ directUserContext : " + directUserContext);
    IWorkflowContext adminContext = iTaskQueryService.authenticate(adminUser, adminPassword.toCharArray(), realm);
    System.out.println("------ adminContext : " + adminContext);
    IWorkflowContext userContext = iTaskQueryService.authenticateOnBehalfOf(adminContext,user);
    System.out.println("------ userContext : " + userContext);
    Hope this helps someone else ...

  • Problem in using Oracle BPEL 10.1.2 (beta3) Worklist API

    I'm trying the following simple program but fails. Thanks advance for your help. Here are the codes:
    package test;
    import oracle.tip.pc.api.worklist.IWorklistContext;
    import oracle.tip.pc.infra.exception.PCException;
    import oracle.tip.pc.services.hw.worklist.WorklistService;
    public class TaskTester
    public static void main(String[] args)
    String username="jcooper";
    String password="welcome";
    try
    WorklistService worklistService = WorklistService.getWorklistService();
    IWorklistContext ctx = worklistService.authenticateUser(username,password);
    System.out.println("Success");
    catch (PCException pce)
    pce.printStackTrace();
    System.out.println(pce.toString());
    The following error message is resulted:
    log4j:WARN No appenders could be found for logger (collaxa.cube.services).
    log4j:WARN Please initialize the log4j system properly.
    Warning: Could not locate file pc.properties in classpath
    java.lang.NullPointerException
    at oracle.tip.pc.services.hw.worklist.WorklistService.authenticateUser(WorklistService.java:272)
    at test.TaskTester.main(TaskTester.java:17)
    ORABPEL-10142
    Worklist Service Authenticate User Error.
    An error occured in the Worklist Service while authenticating user jcooper with the identity service.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.

    It works fine after I port it to a web service. But, there's another problem when I try to call "getWorklistTasks" after "authenticateUser" and the codes are as follows:
    IWorklistContext ctx = worklistService.authenticateUser(userName,password);
    Map filterMap = new HashMap();
    filterMap.put("TaskFilter", "My & Group");
    filterMap.put("PriorityFilter", "Any");
    filterMap.put("StatusFilter", "Assigned");
    filterMap.put("BusinessProcessFilter", "Any");
    List taskList = worklistService.getWorklistTasks(ctx, "", filterMap, "Title", "ASC");
    It resulted that after calling "getWorklistTasks", it hanged and no reply.
    Any idea? Thanks a lot.
    Best Regards,
    Simon.

  • Customize the worklist screen

    How can I customize the workflow worklist screen for our application? Or is there a PLSQL API that can return individual values like, start date, end date, status, subject of notification etc, so that I can create my own screen?

    Yes, Just query the wf_worklist_v view and filter the contents as needed by your cusotm inbox. Here is an example were I queried based on username and priority.
    select '<a href ="/pls/wf/wfa_html.detail?nid='||nid||'" target="_New">'||subject||'
    </a>' Notifications, begin_date, due_date from wf.wf_worklist_v where status ='OPEN' and priority between :P1_PRIORITY_MIN and :P1_PRIORITY_MAX and to_user = :app_user

  • Error: Error WLI-Worklist

    FOllowing error is logged in weblogic server( 8.1 workshop).
    <Feb 17, 2004 10:53:16 AM GMT+05:30> <Error> <WLI-Worklist> <BEA-610066> <You
    mu
    st be in the worklist admin role or task owner or the task claimant or in the
    as
    signee list to perform this operation.>
    It does not specify task. it logs this error frequently. even when there is no
    request from browser.
    Pls help.
    Thanks in advance.

    Karen
    Please ensure that wlpi-worklist.jar is in your classpath when you start
    weblogic
    Tony
    "Karen Law" <[email protected]> wrote in message
    news:[email protected]..
    I am using Weblogic 6.1 with WLI 2.1. I have just deployed worklist.war
    which is a JSP worklist client. I can access the first login page. But
    when I insert username, password and submit, an error comes out as
    shown:
    C:\bea61\wlintegration2.1\config\samples\applications\.wlnotdelete\WEB-INF\_
    tmp_war_myserver_myserver_worklist\jsp_servlet\_worklist\__worklist.java:24:
    package com.bea.wlpi.server.worklist does not exist
    probably occurred due to an error in /worklist/worklist.jsp line 11:
    " session="true" %>
    C:\bea61\wlintegration2.1\config\samples\applications\.wlnotdelete\WEB-INF\_
    tmp_war_myserver_myserver_worklist\jsp_servlet\_worklist\__worklist.java:25:
    package com.bea.wlpi.server.principal does not exist
    probably occurred due to an error in /worklist/worklist.jsp line 11:
    " session="true" %>
    I use the default "samples" domain. And I don't know why it can't
    include com.bea.wlpi.server.worklist and com.bea.wlpi.server.principal.
    Anyone can help? Thx!
    Regards,
    Karen

  • Oracle Worklist API -- OWSM

    Hi,
    I am invoking SOA suite 11G (11.1.1.5) human task application (sits in one wls server domain) from a web application (sits in another wls domain) using oracle worklist api and showing the task details in my web app. I would like to do the user credentials validation at SOA application side by adding owsm username token policy to my composite application.
    So there are 2 questions:
    1.How do I pass (or construct) the username token details in worklist client class which resided in my web application?
    2. Will OWSM can check these user credentials against our own database table or always against the weblogic identity store?
    Please provide some inputs.
    Thanks,
    Cdhar

    Hi,
    i'm also trying to access the worklist from a java program, authentication using jazn xml works fine.
    IWorkflowServiceClient wfSvcClient =               WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
    ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
    IWorkflowContext ctx = querySvc.authenticate("jcooper",     "welcome1",
                             null, null);
    List queryColumns = new ArrayList();
                   queryColumns.add("TASKID");
                   queryColumns.add("TASKNUMBER");
                   queryColumns.add("TITLE");
                   List tasks = querySvc.queryTasks(ctx,queryColumns,
                             null, ITaskQueryService.ASSIGNMENT_FILTER_MY,
                             null, null, null, 0, 0);
    However querySvc.queryTasks always returns empty.
    I've tried to check the worklistapp, and the tasks are there.
    could somebody tell me what are the mistakes?
    Thanks in advance,
    santoso

Maybe you are looking for