How to solve login problem?
Hi all:
I hava configed the <security-constraint> in web.xml, e.g :
<web-resource-name>AllAdmin</web-resource-name>
<url-pattern>faces/pub/staff/admin/*</url-pattern>
and in this <security-constraint> does not hava the role-name :
<role-name>MIR Customer Service</role-name>
and this role-name in another <security-constraint>:
<web-resource-name>AllAdmin</web-resource-name>
<url-pattern>faces/pub/staff/admin/*</url-pattern>
, the problem is :
when i use this role login in this url faces/pub/staff/admin/*, it also can login in.
I don't know why.but when i do the same in last project ,i works well.
Thanks in advance.
Hi Frank:
my web.xml is as follows:
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>CpxFileName</param-name>
<param-value>com.viewsonic.vsamir.view.DataBindings</param-value>
</context-param>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>adfAuthentication</servlet-name>
<servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>adfAuthentication</servlet-name>
<url-pattern>/adfAuthentication/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<jsp-config/>
<security-constraint>
<web-resource-collection>
<web-resource-name>All</web-resource-name>
<url-pattern>faces/pub/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>System Admin</role-name>
<role-name>MIR Admin</role-name>
<role-name>MIR Offer Admin</role-name>
<role-name>MIR Offer Approver</role-name>
<role-name>MIR Customer Service</role-name>
<role-name>MIR Claim Admin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>AllStaff</web-resource-name>
<url-pattern>faces/pub/staff/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>System Admin</role-name>
<role-name>MIR Admin</role-name>
<role-name>MIR Offer Admin</role-name>
<role-name>MIR Offer Approver</role-name>
<role-name>MIR Customer Service</role-name>
<role-name>MIR Claim Admin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>AllAdmin</web-resource-name>
<url-pattern>faces/pub/staff/admin/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>System Admin</role-name>
<role-name>MIR Admin</role-name>
<role-name>MIR Offer Admin</role-name>
<role-name>MIR Offer Approver</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>AllProcessor</web-resource-name>
<url-pattern>faces/pub/staff/processor/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>System Admin</role-name>
<role-name>MIR Admin</role-name>
<role-name>MIR Customer Service</role-name>
<role-name>MIR Claim Admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login/MIRLogin.jspx</form-login-page>
<form-error-page>/login/MIRLogin.jspx</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>System Admin</role-name>
</security-role>
<security-role>
<role-name>MIR Admin</role-name>
</security-role>
<security-role>
<role-name>MIR Offer Admin</role-name>
</security-role>
<security-role>
<role-name>MIR Offer Approver</role-name>
</security-role>
<security-role>
<role-name>MIR Customer Service</role-name>
</security-role>
<security-role>
<role-name>MIR Claim Admin</role-name>
</security-role>
<ejb-local-ref>
<ejb-ref-name>ejb/local/SessionEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.viewsonic.vsamir.model.VsaMirFacadeLocal</local>
<ejb-link>SessionEJB</ejb-link>
</ejb-local-ref>
</web-app>
Thanks.
Similar Messages
-
Problem with an incoming message. For example, during my conversation the second line receives a call, I hear the sound in dynamics such as "piiiip piiiip," but when in this situation I recieve SMS and i hear established melody and I do't hear the person on all over SMS. How to solve this problem? Perhaps someone tell me? save in advance
Not Charge
- See:
iPod touch: Hardware troubleshooting
iPhone and iPod touch: Charging the battery
- Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
- Try another charging source
- Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
- Make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar -
Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with 6.0.1(10A523)version. Please help how to solve this problem. Thanks.
Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore. -
I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn’t work. How to solve this problem?
What version are you running?
What version was it made with? -
Hello guys..!! I have got my new iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!
Go to Settings/General/Reset - Erase all content and settings. the connecto to iTunes and restore as a New phone. Do not restore any backup. If the problem persists you have a hardware problem. Take it to Apple for exchange.
This assumes that the phone is not hacked or jailbroken. If it is you will have to go elsewhere on the internet for help. -
iphone 4 is hiting in ios 5.1.1. any one know how to solve this problem??
This sounds like a hardware problem and should be taken to Apple if the heating / "hiting" becomes disturbing to you. If you feel that your iPhone has a heating / "hiting" problem and needs to be repaired, please contact Apple Support and they can further assist you in having it inspected, repaired, or even replaced. In the past, the overheating of Apple products has been known to cause harmful problems to a few particular users. Please evaluate your situation and take further action if you feel necessary.
http://www.apple.com/support/contact/ -
Hello, I just got an iPhone 4S and it seems that the bluetooth function in it doesn't work. I tried few times to pair it to other non Apple phones but it never worked. Does anyone has an idea how to solve the problem? Tks.
This is not a feature of iPhone, iPad or iOS.
Bluetooth is supported for stereo headsets/speakers, handsfree telephone
devices/headsets, some keyboards, some peer-to-peer apps from the
app store and internet tethering where provided by the carrier.
Other than this it will not connect to a phone/computer/device. (thanks to ckuan for the wording) -
I'm using windows 8 on my pc, and i have just downloaded the latest version of itunes, after i upgraded the latest version of itunes, it can't detect my iphone, but my windows/my pc does. Anyone knows how to solve this problem?
Hi jstutsman,
If you are having issues with your iPod nano not being recognized in iTunes after a recent update, you may find the steps and links listed in the following article helpful:
iPod not appearing in iTunes - Apple Support
Regards,
- Brenden -
I have a problem in my iphone 4 with wi-fi after update to IOS6 please can help my how can solve this problem?
Nope
One needs to press the home and sleep / wake keys together for the phone to reset
The other thing I could recommend
Let the battery run out and the phone completely "die"
It may take a day or two with it not being used
Then plug it in to charge and see if there is any change in behavior
If you cannot get this to work - you may need to bring it to an Apple store -
When i go to new sms typing their is always show a text, how can solve this problem?
when i go to new sms typing their is always show a text, how can solve this problem?
Delete them and then download them from the desired Apple ID. This may require repurchasing paid applications.
(95675) -
Hi my iphone 4 is disabled how can solve this problem? help me please
hi my iphone 4 is disabled how can solve this problem? help me please
What do you mean by "disabled"? Disabled by entering the wrong passcode? If so, you'll have to force the phone into recovery mode & restore it to get it working again & remove the passcode:
Turn your phone off, then force it into recovery mode & restore it:
Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new. -
I have an imac osx 10.5.2 from about five years ago and recently my flash player stopped operating/responding. Does anyone know if I have to install a new flash player? I have attempted it several times and it won't let me. I would appreciate any suggestions on how to solve this problem. Do I need a new operating system?
Why have you not updated to 10.5.8?
You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
* Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here: http://kb2.adobe.com/cps/142/tn_14266.html and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here: http://kb2.adobe.com/cps/838/cpsid_83808.html
You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
http://kb2.adobe.com/cps/909/cpsid_90906.html
and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later: -
Hello
THIS IS RAZA
I GOT A MACBOOK PRO
I HAVE A PROBLEM. PROBLEM IS how to solve this problem i have uploaded in .... all the time few days later on i face this problem in safari..... anyone can help me please.....thanksThis is a scam. Do not phone these people, at best they will charge you for unnecessary 'cleaning' and at worst they will gain access to your Mac and steal your data. You've probably managed to install some 'adware' which is producing this fake warning. 'Adwaremedic' should remove it and is safe to use - please see
http://www.adwaremedic.com/index.php -
Why i can not open my itunes how to solve this problem
i have problem with my itunes version 10.3 but it said the file itunes library it could'nt be read it was created by new version of itunes where i can go to find the library of itunes or how to solve this problem..
Hello:
This article may help:
http://docs.info.apple.com/article.html?path=Mac/10.7/en/mh11399.html
Are you really running OS X 10.4 or is your profile out of date?
Barry -
My iPad Mini iOS7 is showing only Apple Logo which happened during software update. I tried to restore using iTunes but it asking me to response from iPad. But my ipad only shows apple logo. How can i response? How to solve this problem?
FORCE IPAD INTO RECOVERY MODE
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary.
Maybe you are looking for
-
Error 7 occurred at Volume info....
I get the following error "Error 7 occurred at Volume info in Win Install Copy Redistribution Files.vi->Win Install Create.vi->Dist Call Create Installer.vi->Build Application.vi" building TestStand LABVIEW RunTime Server application with "create ins
-
Problem in the header in the main window in russian language in script
Hello, We are using one custom script in Russian language for Contract form and print program is copy program of SAPFY06P. The issue is, when the contract form is having more number of pages in its output, then some times Russian header text is not p
-
Im using captivate 7 and when editing a slide element such as atext caption, image or anything really, I cannot copy and paste an item. It makes a sound when I try command C but does nothing. Right click shows options only for slide but nothing for c
-
All of these changes were within the last week.
-
Pen pressure not recognized on samsung tablet
i just got a new windows 8 tablet and thought I would try photoshop to see how the pen works vs. my wacom. i cannot get any pressure control in cs6. I checked with samsung and the driver is up to date and the pen works in one note and ms photo but no