why I can't navigate from page two to secure the other pages

Hello everyone,

I have created secure login page and can normally connect by username and password, and redirect me normally on the second page, but the second page I can not navigate to the third, when I do remove the security I can usually navigate between pages

This my adfc_config

<? XML version = "1.0" encoding = "UTF-8"? >

"< adfc-config xmlns ="http://xmlns.oracle.com/adf/controller"version ="1.2">"

< id view = "usage_details" >

usage_details.jspx < page > < / print this page >

< / view >

< id view = "General_Reports" >

General_Reports.jspx < page > < / print this page >

< / view >

< rule of flow control = "__2" id >

usage_details < of-activity-id > < /-activity-id >

< control-flow-case id = "__3" >

Gen < from outcome > < / de-results >

General_Reports < to-activity-id > < / to-activity-id >

< / control-flow-case >

< / control-flow-rule >

< managed-bean id = "__1" >

loginBean < managed-bean-name > < / managed-bean-name >

view.loginBean < managed-bean-class > < / managed-bean-class >

application of < managed-bean-scope > < / managed-bean-scope >

< / managed-bean >

< / adfc-config >

and that's my jazn-dat

<? XML version = "1.0" encoding = "UTF - 8" standalone = 'Yes'? "" >
"" < jazn-data xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
"xsi: noNamespaceSchemaLocation ="http://xmlns.oracle.com/oracleas/schema/jazn-data.xsd">."
< default = "jazn.com Kingdom-jazn" >
< domain >
< name > jazn.com < / name >
< user >
< user >
Nihad < name > < / name >
Nihad < display name > < / display-name >
mEKt9XT9Dvnfjmi5kphbCuzuyvZY6PiZ < power > 903 {} < / qualifications >
< / user >
< / users >
< roles / >
< / domain >
< / Kingdom-jazn >
< policy store >
applications <>
< application >
< name > usage_details < / name >
< app-roles >
< app-role >
< name > ManagerRole < / name >
oracle.security.jps.service.policystore.ApplicationRole < class > < / class >
< display name > role manager < / display-name >
< member >
< member >
Nihad < name > < / name >
oracle.security.jps.internal.core.principals.JpsXmlUserImpl < class > < / class >
< / member >
< / members >
< / app-role >
< / app-roles >
< jazn > political
<>grant
< dealer >
< directors >
< principal >
< name > ManagerRole < / name >
oracle.security.jps.service.policystore.ApplicationRole < class > < / class >
< / main >
< / directors >
< / dealer >
<>permissions
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.welcomePageDef1 < / name >
Display < share > < / actions >
< / authorization >
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.welcomePageDef < / name >
< action > customize, grant, customize, view < / actions >
< / authorization >
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.usage_detailsPageDef < / name >
< action > customize, grant, customize, view < / actions >
< / authorization >
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.General_ReportsPageDef < / name >
< action > customize, grant, customize, view < / actions >
< / authorization >
< permission >
oracle.adf.controller.security.TaskFlowPermission < class > < / class >
< name > /WEB-INF/task-flow-definition.xml#task-flow-definition < / name >
Display < share > < / actions >
< / authorization >
< / authorization >
< / grant >
<>grant
< dealer >
< directors >
< principal >
< name > anonymous role < / name >
oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl < class > < / class >
< / main >
< / directors >
< / dealer >
<>permissions
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.loginpagePageDef < / name >
Display < share > < / actions >
< / authorization >
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.errorPageDef < / name >
Display < share > < / actions >
< / authorization >
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > view.pageDefs.welcomePageDef1 < / name >
Display < share > < / actions >
< / authorization >
< permission >
oracle.adf.controller.security.TaskFlowPermission < class > < / class >
< name > /WEB-INF/task-flow-definition.xml#task-flow-definition < / name >
Display < share > < / actions >
< / authorization >
< / authorization >
< / grant >
< / jazn-policy >
< / application >
< / applications >
< / policy-store >
< / jazn-data >

and this is my loginbean

Overview;

Import javax.faces.application.FacesMessage;
Import javax.faces.context.FacesContext;

Import javax.security.auth.Subject;
Import javax.security.auth.login.FailedLoginException;
Import javax.security.auth.login.LoginException;

Import javax.servlet.RequestDispatcher;
to import javax.servlet.http.HttpServletRequest;

to import javax.servlet.http.HttpServletResponse;


weblogic.security.URLCallbackHandler import;
Import weblogic.security.services.Authentication;

Import weblogic.servlet.security.Utils;
Import weblogic.servlet.security.ServletAuthentication;


public class loginBean {}
private String _username, _password;

{} public void setUsername (String _username)
This ._username = _username;
}

public String getUsername() {}
return _username;
}

{} public void setPassword (String _password)
This ._password = _password;
}

public String getPassword() {}
return _password;
}

public String doLogin() throws {LoginException}
String _username =;
Byte [] pw = _password.getBytes ();
FacesContext ctx = FacesContext.getCurrentInstance ();
HttpServletRequest request = (HttpServletRequest) () .getRequest () ctx.getExternalContext;
Subject mySubject.
try {}
mySubject = Authentication.login (new URLCallbackHandler (UN, pw));
ServletAuthentication.runAs (mySubject, request);
ServletAuthentication.generateNewSessionID (request);
String loginURL = "/ adfAuthentication?success_url=/faces/usage_details.jspx";
HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());
RequestDispatcher dispatcher = request.getRequestDispatcher (loginURL);
Dispatcher.Forward (request, response);


} catch (FailedLoginException e) {}
FacesMessage msg =
new FacesMessage (FacesMessage.SEVERITY_ERROR, "name of invalid user or password","invalid username or password");
ctx.addMessage (null, msg);

} catch (Exception e) {}
Returns a null value.
}

Returns a null value.

}
}


and help him please.


Change this line

String loginURL = "/ adfAuthentication?success_url=/faces/usage_details.jspx";

TO

LoginURL = string ' / adfAuthentication? "success_url = / faces/usage_details";

Timo

Tags: Java

Similar Questions

  • Why I can't boot from a USB?

    Hello

    Why I can't boot from a USB?   I'm looking to replace a failed hard drive in a Mac Mini 2010. I replaced the hard drive without difficulty.

    I have a USB flash drive from known good 10.10.5 with an Installer (tested) well known about it.   I press the power switch, as soon as the startup chime plays, I press the Option (Alt) key.

    One of the two following situations occurs. Sometimes, I have a small screen asking me to enter my password Wi - Fi. I get my password and nothing else happens. Sometimes, I get a flashing "?" on a file folder.  In my view, this indicates that the computer cannot find a bootable disc. I've tried resetting the PRAM, but I do not have the sound of the double ring that I was expecting.

    Once a Mac is longer than 4 years, his PRAM Battery should replace before resetting the PRAM actually works.

    Is this USB Flash drive "slipstreamed.  It works on any other older than 10.10.5 Mac?

    What is a copy from another Mac or Mac Mini itself 10.10.5 clone?

    Plug you directly into the USB port of the Mac Mini, or using a hub which is powered wall?

  • Adobe Muse: Why I can not get my page to scroll vertically to display the content of the page in the browser preview?

    Adobe Muse: Why I can not get my page to scroll vertically to display the content of the page in the browser preview?

    I am a novice and I do not talk about the web, so please excuse my ignorance!

    I content on my web pages in Muse design that descends below the visible window, but when I go to preview in browser, it only presents a preview which is visible in my window. Of course, I can press command + /, but I should be able to use my mouse wheel or my scroll bar to see the lowest content. I just can't understand how do! Is this something to do with the positions of Master Page header footer? They all look fine and normal and all the other sites I've done. In ADDITION, I checked non paged area (Mount table), and there is NO hidden content.

    I tried to move my content down (to 'wrong' it to enable vertical scrolling). I tried to move my foot higher than the content, but all useless page.

    Preview in browser = will just not scroll down.

    Hope it's a simple solution. Thanks in advance.

    See you soon,.

    I had the same problem and it took me almost 2 days to find a solution.

    See if that solves your problem (if all goes well it has been resolved since you posted).

    1. in the model Master, click on Page > Page Properties > metadata

    2. remove the small piece of code next to the body tag-{overflow-y: hidden}

    3. click on OK, then get an overview of your pages.

  • Why I can't change my script if I resize the application - ADOBE STORY - to fit all of the space on my screen, by clicking on the icon full screen? What did I miss? Thank you

    Why I can't change my script if I resize the application - ADOBE STORY - to fit all of the space on my screen, by clicking on the icon full screen? What did I miss? Thank you

    Sorry, but the web application from Adobe Story doesn't support editing mode full screen.

  • My verse ATT modem (non apple devices to use this modem} is connected to the ATT line, Time Capsule (iPhones, Macs Time Capsule use) via ethernet Uverse.) Non apple devices can collect data from iPhones or Mac using the time Capsule?

    My verse ATT modem ({use of devices not apple wifi of this modem} is connected to the ATT line, Time Capsule (iPhones, Macs use the wifi of the time Capsule) and connect to the Uverse modem via ethernet.)

    Both devices are set to the highest security and each uses separate passwords.

    Non apple devices can collect data from iPhones or Mac using the time Capsule?

    With a bit of work by someone who knows how to do such things, not Apple computers could read some files on the Mac if file sharing is configured on the network... devices non-Apple and... He knew the device passwords or administrator for Macs.

    Mac could also play the files on other Macs if file sharing has been implemented and the device password or admin was known.

    If you ask if a PC can read the files on the Time Capsule, the answer is Yes, without doubt, assuming that the PC knew the password of device for the time Capsule.

  • I forgot my apple ID and password, that's why I can't ativate my ativation icloud, but I the EMI and the serial number of my device and all documents in my camera. Please give me an advice. Thank you

    I forgot my apple ID and password, that's why I can't ativate my ativation icloud, but I the EMI and the serial number of my device and all documents in my camera. Please give me an advice. Thank you

    iforgot. Apple.com

  • Can connect to CC on two computers on the same IP address at the same time?

    Can connect to CC on two computers on the same IP address at the same time? Because I accidentally opened both and I was wondering if it will affect my membership or denying me access at the mercy of the CC.

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two subscriptions CAN be used at the same time https://forums.adobe.com/thread/1683787

  • I am looking to buy Acrobat XI.  I understand that you can run a single license on two computers, but can be a PC of Windows 8 and the other a Mac running Yosemite?

    Hello

    I am looking to buy Acrobat XI.  I understand that you can run a single license on two computers, but can be a PC of Windows 8 and the other a Mac running Yosemite?

    Concerning

    Arnold

    Hello Arnold,.

    This is possible if you have Acrobat subscription or a cross-platform serial key.

    Kind regards

    Anand

  • Why FireFox don't have a stick and go like the other browsers?

    Why FireFox don't have a stick and go like the other browsers?

    What is the one thing missing from other than firfox
    It's a great browser

    Firefox 4 will have to paste & go in the address bar using the context menu.

  • Why is-strike (shift-") on my keyboard (@) key? When the other my keyboard is (update 2). __

    Why is-strike (shift-") on my keyboard (@) key? When the other my keyboard is (update 2).

    Hi acesdie,

    Probably to do with the language of the keyboard. Shift + 2 is the American keyboard. Go to control panel and click the language and region. In the window of the region and language, click the keyboard and languages and then click on the button "change keyboards. What language is in the box 'default language'? If it's in the United Kingdom and you are not in the United Kingdom, then click the Add button and select English (United States). Click the plus (+) next to the English (United States) option and then click on the plus sign (+) next to the option "keyboard". Here you will see a list of the types of keyboards, i.e. the United States Dvorak, Dvorak to the United States for the left hand, etc. If you have a keyboard to type Dvorak, then select one of them; If this isn't the case, then I suggest to choose the United States (international) or simply WE. Then click on the arrow to the right of the box in the section "default input language" and select English (United States), and then click apply then OK.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Desktop Experience: Web:http://www.winuser.co.uk;  Web:http://xphelpandsupport.mvps.org;  Web:http://vistasupport.mvps.org;  Web:http://www.silversurfer-guide.com

  • I can connect to my home network, but all the other networks do not work...

    I can connect to my home network, but all the other networks do not work... Error window says:

    Windows could not connect to the (X)? network name?

    [Link] Solve problems

    [Link] Learn more about Internet connection problems

    I gave security, uninstalled reinstalled wireless - uninstall security firewall reinstall and not go...

    Windows 7

    Hello

     
    1. What network are you trying to connect to?
    2. You are not able to connect to the Internet?
    3. Are you able to connect to the other network with wired network?
     
    Try the methods provided and check.
     
    Method 1:
    Check out the link and follow the steps.
    What is network discovery?
    http://Windows.Microsoft.com/en-us/Windows7/what-is-network-discovery
     
    Method 2:
    Check out the link and run the troubleshooter.
    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows
     
    Method 3:
    Reset the TCP/IP and check. Check out the link and follow the steps.
    How to reset the Protocol Internet (TCP/IP)
    http://support.Microsoft.com/kb/299357
    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756/ ) how to back up and restore the registry in Windows
     
    Method 4:
    Check out the links and check out them.
  • How to move a virtual machine from one virtual switch to the other since the SDK / command line?

    How to move a virtual machine from one virtual switch to the other since the SDK / command line?

    Joshua Smith

    Are you referring to the evolution of the virtual machines network portgroup of one to the other and in your case potentially issue on to another vSwitch? If so, take a look at this script: updateVMPortgroup.pl everything you do really makes a call to ReconfigVM_Task() and passing in a specification change and put to day the network in which you want to change

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Why I can't install iTunes on my laptop with the Window 10 operating system

    Why I can't install iTunes on my labtop with Window 10 operating system

    Have you downloaded the latest iTunes from here and correct version

    https://www.Apple.com/iTunes/

    and then run the downloaded installer.

  • With Creative Cloud, can run us applications on two computers at the same time?

    Hello

    (First Question):

    I have two diffrant PC with the same OS (Windows 7),

    can I use any application on the two PCs at the same time with my plan full creative cloud for individuals - annual.

    ((Deuxième Question):

    If the answer to my question above is yes then my second question is that I use my laptop at home, except office hours so it is possible

    to install creative cloud on my third machine (Windows - computer laptop at home).

    Example: Can I use Creative cloud when I am connected at home and not in the desktop.

    First question: Yes

    See Q3 in respect of development underway in the FAQ

    http://www.Adobe.com/products/creativecloud/FAQ.html

    Second question: not easily.

    Your cloud membership entitles you to 2 simultaneous activations only max.

    To use it on the 3rd computer, you should disable first on the desktop computer. Then re-enable the next day.

  • Can access folder on a computer, but not the other

    I have a vista computer that has a folder that I want to join.  I have 2 computers newly built win7.  I can access the folder on the vista computer with win7 computers only.  I went through everything I can think of and all settings appear to be identical between the two platforms of win7.  I took a peek in the management of the computer sessions and my computer with win7 I can't access it from is listed as a guest, not my user name.  I have no idea why, all the comp have same login name, password and admin access.  I have disabled guest accounts.  It's the only thing I can find different between win7 computers which could explain why I can't access the folder in question.

    Anyone know how I can transfer my network setting win7 rig with access to the other without, or fix everything that's wrong with my access rights so that I can get the folder I want?  I can see the drives and folders that I shared.  I can not open them, I get one you don't have permission to access this folder message.  I have everything I can find associated with sharing turned on (except the password) and everything related to the firewall disabled is trying to access.

    Thanks for the pointers you can give me.

    Hi Dave68_31,

    This could be a problem with the permissions of files and folders.  The following procedure will help you change the owonership and permissions of files and folders.

    1. right click on the file or folder, click Properties, and then click the Security tab.

    2. click on Advancedand then click the owner tab.

    3. click on Editand then do one of the following:

    o to change the owner to a user or group that is not listed, click other users and groups , in area enter the object name to select (examples), type the name of the user or group, and then click OK.

    o to change the owner to a user or group that appears in the area of change of ownership to , click the new owner.

    4. If you want to take ownership of the contents of the folder, select the checkbox replace the owner of sub containers and objects .

    5. click OKand then click Yes when you receive the following message is displayed:

    You are not allowed to read the contents of directory folder name. Do you want to replace the the directory permissions with permissions granting you full control?

    All permissions will be replaced if you click Yes.

    Note folder_name is the name of the folder you want to take charge.

    6. click on OKand then reapply the permissions and security settings that you want for the folder and its contents.

    For your Information

    Ø an administrator can take ownership of any file on the computer.

    Ø assignment of ownership of a file or folder can require that raise you your permissions using user access control.

    Hope this has been helpful.

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

Maybe you are looking for

  • I would like an option that reads 'check at startup' on when windows 7 checks the automatic updates.

    I would like an option that reads 'check at startup' on when windows 7 checks the automatic updates. Some people still turn off their computers when you are not using it. And if they do not check to turn on, they will begin the navigation with an ope

  • How to change my motherboard without messing up my Windows XP install?

    I use windows xp professional, licensed version. My motherboard is now out of use. I want to change it without disturbing my version of windows update. How can I do? Should I I installed windows XP again and update again? Is there another way that my

  • Added languages of East Asia.

    Attempt to acivate/install files for East Asian languages using Control Panel.  Pop-up message asking home ed. SP3 CD to be inserted in the CD drive. Since the SP3 update has been downloaded with automatic updates, I have no CD. How to solve the prob

  • SD 10 BB blackBerry sync problem

    Hey all,.BB'er, displayed the first time in a long time. I'm usually good to find and solve my own problems, Ive gone to release air on some of my old phones. Even if for some reason any Im seriously stumped with this one.Ive got the z10 and im using

  • How can I get the recent update?

    Hi, I have the salary per month creative cloud.  I was informed recently of an update to Lightroom, but may not know how to download it.  Can anyone help? Judith