Solved

getUserPrincipal  Problem

Posted on 2006-10-30
1
261 Views
Last Modified: 2008-03-03
I need to pass a javax.security.Principal object to a 3rd party library.

Problem is my request.getUserPrincipal() returns null.

It looks like its an authentication thing.

How do I fix this?    Is there a basic how-to that will make sure my "user" is authenticated properly?
0
Comment
Question by:tmonteit
1 Comment
 
LVL 5

Accepted Solution

by:
kannan_ekanath earned 500 total points
ID: 17840280
You are not authenticated properly. Is it a web application. See if the UI page is secured (meaning you will need a username/password to access the page). Most app servers like weblogic have standard mechanisms of doing this.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
table example 4 32
login jsp example 24 64
printf performancy 11 67
java imports not found 4 24
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question