Getting user context from webecenter
I need to get the user context ( who logged in ) from webcenter and use that in the portlet/taskflow. Any one can help me with this?
getting the following error in the portlet. ( while devoping in jdev)..
java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:2122)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1933)
at jsp_servlet.__test_jspx._jspx___tag0(__test_jspx.java:90)
at jsp_servlet.__test_jspx._jspService(__test_jspx.java:65)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
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:300)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
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.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Similar Messages
-
Getting user name from sopa header
How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...
I din't get this with SRemoteUser
1. i've enabled " Do Not Use SOAP Envolope"
2.Enabled ASMA
3.Variable Transport Binding .
used the following code as well:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
conf.get(user);
But not value in it.. Correct me if iam wrong.. -
Sharepoint 2010 get User Groups from specific site
Hello,
I was able to get all User groups from entire site Collection.
But instead of getting user groups from entire site, I want read user groups only from one specified sub site.
Please help!
ThanksAssuming you have an SPWeb object named "web", example:
SPSite site = new SPSite(http://yourdomain/sites/yoursite);
SPWeb web = site.OpenWeb("mysubsite/subsbusite");
web.Groups will return a collection of SPGroup objects for the current subsite. If this subsite inherits permissions from a parent site (web.HasUniquePerm = False), the list is the same as the Groups property of the parent site.
SPWeb.Groups:
http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spweb.groups(v=office.15).aspx
SPGroup:
http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spgroup(v=office.15).aspx
You would be better results by posting coding questions in "SharePoint 2010 - Development and Programming" instead of "SharePoint 2010 - General Discussions and Questions".
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
Where does apex get user details from for login in
sorry for this stupid question. I have been looking up in google "where does apex get user details from for login in" and nothing answers my question. Basically I wanted to know when you log in your application how does apex know you have access to this application. How does it know you are a valid user because I am creating an application which basically checks if a user exist in one database and also checks if he/she exist in the second database.
Thanks you and sorry if this is very newbieIn the page 101 which is the login in page in the login in process. I have this in the source its not working in term of it is not letting me login in anymore even though I exist in the user table.
DECLARE
v_access_level number;
BEGIN
SELECT count(*)INTO
v_access_level
FROM USER
WHERE UPPER(USER_NAME) = UPPER(:APP_USER);
IF NVL(v_access_level, 0) !=0 THEN
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':9'
ELSE
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => 'YtYuTrFRd',
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':9'
END IF;
end;
please bare in mind that my USER table DOES NOT have a password because the authentication scheme as all the details of login in to any systems. I am only trying to check if the username exist in my USER table.
Thanks -
How i get user info from ldap using java after authenticating user with SSO
Hi
I have one jsp/bean application as a partner application with SSO.
It works fine.
Now i need to get other attributes of user from LDAP who has logged into the application through SSO.
using SSO java APIs i only get username, userDN, subscriber info.
To get user's other attribute i have to user LDAP APIs for that i have to create on Directory Context, for the same i need userpassword.
so here i my question, how do i get user password after he has logged in thro SSO.
regards..
and thanking u in advance
samirValentina,
there's no way to get the password value from the directory (it's one way). Of course you can get the hashed (MD4,MD5,SHA-1) base64 encoded value (i.e. the value you see in OiD) but not the 'password'.
--Olaf -
Getting the context from a DataControl
I have a JavaBean that I have converted into a DataControl. Since the methods on that JavaBean are getters, and don't take parameters, I am wondering if there is any way to get at either the request, the session, or the context from within my DataControl.
Is there some class that will allow me to obtain the current request, session, or context, since my UIX page that uses this DataControl cannot pass these in as a parameter?
BradException? "found: X required: Y" sounds more like a compiler error to me.
You need to post the lines of code that cause the error so we can see what's going on. -
Getting User Attributes from an Active Directory LDAP
Hello all.
I want to extract attributes assigned to a user in the Active Directory LDAP and make them available through the getPropertyValue property in Javascript. I know that a user's System Attributes can be accessed with getPropertyValue but I have not found a way to get specific attributes from the LDAP and make them available as specific attributes in xMII. System attributes like "EmailAddress1" seem to transfer from the LDAP but others don't. Anyone have any ideas?
Thanks.
...SparksSparks,
If you're using 11.5 or 12 actually they should all map into the system as session properties. You can use the following URL to verify your session properties:
http://<xMIIServer>/Lighthammer/PropertyAccessServlet?Mode=List
If you are not seeing the attributes you expect then your Attribute Query for User or Role is incorrect for your LDAP system and you need to change the LDAP configuration queries.
-Sam -
Getting User projects from Collab Server
Hi, How can I retrieve user projects from collaboration server from a portlet using EDK?
Hi,
Here are two ways for your reference:
1. Use ensureUser Method in the JS Client Object Model:
http://msdn.microsoft.com/en-us/library/ff408786.aspx
2. Use the SPServices
jQuery library to achieve it.
http://stackoverflow.com/questions/5542208/sharepoint-2010-use-spservices-to-get-a-users-id
http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups
http://devspoint.wordpress.com/2012/07/17/jsrender-spservices-and-user-profiles/
Best Regards
Dennis Guo
TechNet Community Support -
Can't get user account from 10.7.5 to Mavericks with Migration Assistant
I am perplexed about this one. I want to use migration assistant to get a user account from an old Mac Pro running 10.7.5 to a 2012 iMac that has Mavericks on it.
I've tried:
1 - Migration assistant over the network - migration assistant says the Mac Pro needs a higher operating system, but the computer can't be upgraded.
2 - Target mode of Mac Pro to iMac: Migration assistant sees the volume, but doesn't acknowledge any user accounts. It only acknowledges applications, and other files.
Any ideas folks. I simply want to bring the user accout over to the new computer and perhaps the applications.LOL - I figured it out. I had to update the Mac Pro which included a new migration assistant update.
-
Get user comments from Service Manager 2012
Hi all,
For some Service Manager customizations, I want to "export" the user comments from incident tickets to an email message. I want to do this with Orchestrator.
I was thinking to create a runbook with the follow components:
- Get Incident
- Get relationship (Related class = Trouble Ticket User comments)
In the last activity "send mail", I want to add the user comments. But I can't find the user comments from the Published data. (see print screen)
Know anyone of you if it is possible to get the user comments? If Yes, How to do that?Hi!
Yes, it is possible. "Get Relationship" does just exactly that, it only gets the relationship between the Incident object and the Trouble Ticket User Comment object. After you have retrieved this, you then need to get the actual related object.
To do that, you Get Object, the class you want (in this case Trouble Ticket User Comment), then make sure you add a filter to search for the "Related Object Guid" from the published data of the Get Relationship.
Make sure you select the "Related Object Guid"! It is a very common mistake to choose "SC Object Guid", but that is just the guid of the relationship...not the object you want ;)
A bit tricky to understand at first, but easy enough after you get the hang of it. -
How to get user attributes from LDAP authenticator
I am using an LDAP authenticator and identity asserter to get user / group information.
I would like to access LDAP attributes for the user in my ADF Taskflow (Deployed into webcenter spaces).
Is there an available api to get all the user attributes through the established weblogic authenticator provider or do i have to directly connect to the LDAP server again?
Any help would be appreciatedHi Julián,
in fact, I've never worked with BSP iViews and so I don't know if there is a direct way to achieve what you want. Maybe you should ask within BSP forum...
A possibility would be to create a proxy iView around the BSP iView (in fact: before the BSP AppIntegrator component) which reads the user names and passes this as application params to the BSP component. But this is
Beginner
Medium
Advanced
Also see http://help.sap.com/saphelp_nw04/helpdata/en/16/1e0541a407f06fe10000000a1550b0/frameset.htm
Hope it helps
Detlev -
Get user details from OIM User From based on Last modified time stamp
Hi Gurus,
I have a requirement that i want user details from OIM(11gr1) User form based on some time stamp.
suppose my time stamp is 201401011130.
And i changed one user in user form at 201401011200 (let sau user name is mahesh)
now when i run the java code based on the time stamp i want mahesh details. How can i do this.
Please let me know.
Regards
MaheshThis is how you can run sql query.
String query="write sql query";
Connection con=Platform.getOperationalDS().getConnection();
Statement st=con.prepareStatement(query); // PreparedStatement is preferable instead of Statement
ResultSet rs=st.executeQuery();
while(rs.next())
String userlogin =rs.String("usr_login"); -
How to get user information from ldap - bpm11g
hi all,
i need know how to do get information from ldap, but using adf bean for show user data in adf form.
anyone knows about this ?
tks.Neal wrote:
>
Hi,
I am using WLS default authentication to protect my JSP pages. Can someone tell
me if it is possible to add more fields to the default login box (in addition
to login and password boxes, I want to ask user the department name). In additional,
can WLS propogate this information (department name) along with other security
credentails to other J2EE components such as EJBs? In my EJBs I want to be able
to get the department name that user provided during login and then use that for
conditional business logic.
Any insights on this subject will be greatly appreciated.
TIA,
-NealYou can't do this with the default simple authentication. That can only handle a
username / password combination.
You should be able to do this with JAAS. You could write a LoginModule that
populates the department as a Principal or public Credential on the Subject in
addition to the normal authentication. You would have to do a callback handler
that passed through the department info to it.
This link has more on WLS's stab at JAAS:
http://e-docs.bea.com/wls/docs61/security/prog.html#1039659
Once you have associated the Subject with the access control context by invoking
a doAs() you should be able to get it back at any point with
Subject.getSubject(AccessController.getContext()) to get access to the
department info.
It will all be a bit of a chore, mind. -
Is it possible to get user exit from st05???
Hi all,
One has said me that you can find user exit of a transaction from sql trace, st05.
I do not believe that, however I wanted to ask you..
Thanks.Hi,
we can find the badi but not the user exit . u have 2methods for searching userexits
one frm the tcode-> find programname->package name->gotosmod->give package name and f4 functioanlity->cmod-> give the name u can get it.
other-> directly from smod and cmod.
regards,
Sana. -
Getting User Settings from One MBP to another MBP
Scenario: I've got two 2011 MBP 13" 2.7ghz 500GB Hybrid SSD 8GB RAM laptops. On one of them, the hard drive became unrepairable, so in order to fix, I transferred all of my data via thunderbolt from the unrepairable hard drive to the other MBP's hard drive. I then erased and restored the hard drive of the machine not working and reinstalled Lion. All good. I then transferred all of my data back. Question, how do I get my user settings back if I skipped the set up assistant the first time around? Migration assistant? I put the MBP holding my old data in target disk mode but I only am able to migrate the settings of the previously working MBP. Does this make sense? Thank you.
If I'm getting this right (and that's not certain) when you first
transferred all of my data via thunderbolt from the unrepairable hard drive to the other MBP's hard drive.
How did you do this and what did you copy and where (to another folder?) on the working MBP?
Maybe you are looking for
-
How to set up use of relative URLs for a BSP application
Dear all, I need to access a BSP application through our external portal. This is failing because generated URLs are absolute URLs (they mention physical server name, not known of course on the internet) where they should be relative URLs (they use e
-
hmmm bit baffled by this... ive had photos on my nano... worked fine... now i have chaged what photo albums are on there and the progress bar indicates they are being optimisd for ipod as i dont need the full res ones, but once its done the itunes wi
-
ABAP Objects: Introduction to Programming SAP Applications
Hi, does anybody knows any tutorial that would explain me how to install and make available in my SAP installation the examples and database that comes with this book ABAP Objects: Introduction to Programming SAP Applications The point is that i coul
-
Maverick upgrade: Can't create recovery partition and infinite loop
Hi, I'm using MacBook Air Mid 2011 with 256 GB SSD (~30 GB free disk space) running MacOS 10.7.4. So far I never followed the suggestion to upgrade to MacOS Maverick but yesterday I thought, OK, let's do it. After the first reboot the setup started w
-
Form Based on Stored Procedure
I have an application (STAR_PORTAL) that is owned by the 'STARS3' schema. I want to create a form based on a stored procedure. The procedure ('select_empname') is stored in a package ('star_portal') that is owned by the portal30 user. When I get to t