How can I prevent filter from getting applies to .html page?

Hi,
I have a MyFaces filter that I don't want applied to pages ending in ".html". However, upon visiting the "/myapp/index.html" page of my application, I get an internal server error, and the stack trace indicates that the filter is being invoked. How can I prevent such a filter from being applied to ".html" pages? The stack trace and the web.xml file are below.
Thanks, - Dave
Error I get when visiting index.html page
####<Oct 30, 2008 8:46:44 AM MDT> <Error> <HTTP> <rhonti> <nps-supp-gui-ms-1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1225378004500> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@4f2189 - appName: 'nps_history_gui', name: 'nps_history_gui.war', context-path: '/nps_history_gui'] Servlet failed with Exception
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:389)
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:349)
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279)
at org.apache.myfaces.webapp.filter.TomahawkFacesContextWrapper.<init>(TomahawkFacesContextWrapper.java:115)
at org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory.getFacesContext(TomahawkFacesContextFactory.java:85)
at javax.faces.webapp.FacesServlet.prepareFacesContext(FacesServlet.java:307)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:141)
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:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
at com.myco.nps.im.plugin.NPSIMIntercepter.doFilter(NPSIMIntercepter.java:101)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.myco.nps_history.filters.NoCachingFilter.doFilter(NoCachingFilter.java:30)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229)
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:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
=================Begin web.xml=======================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" 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">
<display-name>
nps_history_gui</display-name>
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter>
<filter-name>No Caching Filter</filter-name>
<filter-class>com.myco.nps_history.filters.NoCachingFilter</filter-class>
</filter>
<filter>
<filter-name>SSOFilter</filter-name>
<filter-class>com.myco.nps.im.plugin.NPSIMIntercepter</filter-class>
<init-param>
<param-name>filter_conf_file</param-name>
<param-value>/export/third-party/etsbea/application_conf/wls_9.2.2/nps_history_gui_conf/nps_im_plugIn.properties</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>No Caching Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SSOFilter</filter-name>
<url-pattern>/*</url-pattern>
</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>
<description>Sets properties of History UI app</description>
<display-name>HistoryInitServlet</display-name>
<servlet-name>HistoryInitServlet</servlet-name>
<servlet-class>com.myco.nps_history.servlets.HistoryInitServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HistoryInitServlet</servlet-name>
<url-pattern>/HistoryInitServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HistoryInitServlet</servlet-name>
<url-pattern>/refresh</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
==================End web.xml=======================

I got that error when using the request URL /myapp/ or /myapp/index.html.
Regarding,
At any way, you should map the ExtensionsFilter on the FacesServlet rather than on any url-pattern. Could you elaborate on what you mean? Maybe with an example?
Thanks, - Dave

Similar Messages

  • How can I prevent Mail from Getting Messages Automatically?

    I want to stop Apple Mail from getting new messages until I click on the "Get Mail" button.
    This is proving hard to achieve.
    In Mail Preferences, I have set Check for New Messages to "Manually."
    This does nothing.
    Additionally, I went to each account, went into the Advanced tab and unchecked "Include when automatically checking for new messages."
    This also changed nothing.
    This should be fairly easy to achieve, and yet it is not. Any thoughts on how I can set this up? I have one iCloud account, one Google Apps via IMAP account and one generic IMAP account. They all seem to ignore the settings for message fetching.
    I am running OS X Yosemite 10.10.2. Apple Mail version 8.2 (2070.6).
    Mid-2011 iMac 21.5", 16GB Ram, 2.5 GHz Quad-Core i5.

    Same issue since Mavericks.

  • Its loading a page before even i type in the right URL. how can i prevent forefox from automatically loading the suggested page before i hit enter?

    when i type in address bar, its great that the url is automatically filled in based on the history of browsing. but i dont want the page to be loading at the same instant. for ex. if i want to type thehindu.com, once i type 't' its taking for granted that i am typing thermopedia.com and completes the url and loads the page at the same time. I appreciate the url suggestion but not the page loading at the same time. this wastes my data usage (Highly inefficient).
    To complicate the problem, when i type the second letter sometimes it gets appended to the already auto completed url and heads to search for the completely messy words in the default search engine.
    Basically the addressbar has become useless and so is firefox usage. I'm completely frustrated and spoiled over an hour fighting the issue. please provide options to control the loading of the page automatically even if the url is automatically filledin.

    Try some basic troubleshooting.
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • How can I prevent firefox from displaying an overall black page after I request a topic search in the google/firefox search box? Not able to see results

    I loaded Mozilla v31 on my PC laptop which uses Windows XP operating system with all current updates. When I click on my internet icon, it leads me to the Mozilla page with a Google search bar. Once I type a topic in and click for the search to begin, the Firefox page turns all black and I am not able to see any results or action being taken. I click on the back arrow and enter a new topic, and click on search button, it repeats the same behavior and the Firefox page turns black. Essentially Mozilla Firefox is not a usable browser unless I can fix it. Help!

    When this happens, has the address bar changed to a google.com address or is it still blank?
    Some graphical glitches are caused by an incompatibility between Firefox and your graphics card drivers. The standard workaround for bypassing this is to disable Firefox from using hardware acceleration. You can make that change here:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    That will take effect the next time you exit Firefox and start it up again.
    More generally:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • I have been trying to work on my homework all afternoon, via NAU's blackboard system. I am continuously getting booted out of the system, with an error stating "Data execution prevention". How can I prevent this from continuing?

    I have been trying to work on my homework all afternoon, via NAU's blackboard system. I am continuously getting booted out of the system, with an error stating "Data execution prevention". How can I prevent this from continuing?

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • How can I prevent Bridge from altering my photos?

    HELP!!!
    Within the past few days my Bridge CS4 program has been making my life miserable. I had been utilizing the program to batch photos from my extensive photo library, rename them, sort them (i.e., change sort/ordinal number), and the like without any difficulty and then suddenly, after executing such processes my thumbnails turned completely white and would not open in Bridge, Photoshop CS4 Extended - much less anything else. I tried reopening them as .jpg's, .psd's, .tiff's to no avail. I went into properties on each photo and checked the "open with" tab, and it noted that the photo was not recognized. I had some moderate success opening them with Quicktime Picture Viewer, but converting them back to a Bridge readable format (i.e., their original state) proved impossible. Having noticed that Quicktime had hijacked nearly my entire photo opening process, I uninstalled it in the hope that it would solve the problem. It didn't. I then went into Bridge and Photoshop CS4 preferences to try and modify how photos were opened, and couldn't seem to find anything applicable. I did, however, increase the memory and cache allocated to each program substantially.
    Last night I ran into more problems with Bridge. While scanning both photo negatives and prints into Bridge and saving them into various files, I encountered the same problem indicated in paragraph one. I tried scanning several of them a second time and succeeded; however, I had to save them to a different file and give them dissimilar names in .tiff format. In the process I found more than a dozen ways to spell "Mexico," "Tokyo," and "Ukraine"! They would not save as .jpg's or .psd's.
    I use Windows Vista Home Premium SP1, have a Pentium 4 Dual Core (2.8) processor, 4 GB Memory, Nvidia GE Force 7600 video card (yes, the drivers are up to date), and Hewlett Packard Photosmart C7180 and C7280 printers for scanning. All of the photos involved are stored on a Maxtor One Touch 1TB Turbo auxillary hard drive.
    Also, could anyone suggest how I can get the  SD/MMC card reader on my PC to work?
    Thanks to any and all for assisting me with my problem.
    Wolfgang Holst
    Big Bear Lake, CA

    Thank you curt y for your quick response. I have seen your recommendations on the adobe forums link in the past and many of your solutions
    seem to have helped other people with Bridge problems. I took your suggestion and gave it a whirl - all preferences were restored to defaults - and the problem continues. I get the feeling the problems lies with the program's interaction with Windows.
    Having tried a few more things, I've found that I can move the photo shell (the inscription underneath the thumbnail states, "Window Shell Common") to my desktop and open it there with Photoshop (i.e., going through the song and dance of "open with" and clicking on the CS4 icon, where it opens up in RAW). I must then move it over to Photoshop CS4 and save it as a .jpg or a .psd. Unfortunately, after all this it still won't open in Bridge. By all appearances, Bridge somehow has become corrupted and I'm probably going to have to do a complete Photoshop CS4 uninstall and reinstall.
    I've spent hundreds - if not thousands - of hours scanning into my system some 10,000 photographs of my travels (yes, they are backed up on discs), and Bridge should not be negatively impacting my ability to organize and manipulation them as is happening now. If the uninstall/reinstall does not resolve the problem, I'll be back on this forum for more suggestions.
    As for the card reader issue, I'm well aware of the 2GB/over 2GB issue. I typically use a 4GB or more card in my camera. I can download fine through my HP 7180 and 7280 card readers, but my HP 1518n card reader is a different story. I'll work a little more on it, too.
    Thanks again.
    Wolfgang Holst
    Big Bear Lake, CA    
    Date: Thu, 18 Jun 2009 08:49:46 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I prevent Bridge from altering my photos?
    Have you tried resetting your preferences by holding down the Ctrl key and starting Bridge?  You will get a reset window, choose all 3 options.
    The only thing I know about card readers is that there are 2 versions.  One for cards of 2 gigs or less, and one for HD cards over 2 gigs.  Make sure card and reader match.
    >

  • I receive numerous messages in "Bulk Mail". Where do they come from and how can I prevent them from being received? Thanks

    I receive numerous messages in "Bulk Mail". Where do they come from and how can I prevent them from being received? Thanks

    Once you're on a spammer's list, there's nothing you can do to stop the flood of e-mail messages. You can either control it, using spam filtering (which is what files those messages in the Junk Mail folder), or you can throw out your e-mail address and get a new one.
    It's sad, but spam is simply a fact of life at this point, and there's nothing to be done about it. Legislation has been tried, with zero success, since most spam either comes from countries with no legislation or from personal computers that have been infected with malware and are part of a "botnet."

  • My child accidentally rented a movie on Apple TV.  Is there a way to refund the rental if we don't watch it?  How can I prevent this from happening?  Is there a way to password protect future purchases?

    My child accidentally rented a movie on Apple TV.  Is there a way to refund the rental if we don't watch it? 
    How can I prevent this from happening?  Is there a way to password protect future purchases?

    Did you try Parental Controls?
    Apple TV: Understanding Restrictions (parental controls) - Apple Support
    See if that does the trick: I think there's a way for you to request a password for purchases, but still be logged in.

  • How can i prevent iphoto from opening when i plug in my iphone to the computer?

    Hi There,
    I have  a question, when I connect my iPhone to the computer the iPhoto automatically opens.
    how can i prevent this from happening? it always slows down my computer.
    any help will be appreciated.
    thanks

    Image Capture (in your Applications Folder) - In the preferences you can decide to 'Do Nothing' when a camera is connected.
    Some versions also have this option in the iPhoto Preferences.
    Regards
    TD

  • How can I prevent Firefox from cleaning my clipboard at exit (exit or closing firefox) ?

    How can I prevent Firefox from cleaning my clipboard at exit (exit or closing firefox) ?
    I am using FF 9.0.1 and the problem start from FF 5.0

    You can't prevent that.<br />
    If you've placed data on the clipboard in Firefox then you need to paste that data in the other program, if that is your intention, before closing Firefox.

  • How can I prevent Firefox from re-installing test pilot?

    I had removed the test pilot extension and its feedback button in Firefox 4.0b9. I let Firefox upgrade itself to 4.0b10 and didn't notice that silently re-installed it.
    I was typing in another application when suddenly that window was minimized and the focus shifted to a Firefox "new test pilot study" window that popped up. Even if I had given permission for that software to be installed, that is rude.
    I am not willing to trust that if I disable this logging software that it will stay disabled the next time I upgrade. I will remove test pilot again. '''How can I prevent Firefox from re-installing it?'''
    One way might be to set extensions.rdf read-only. However, I do not wish to lose the ability to install add-ons, I merely do not want anybody (including Mozilla) to install an add-on without my permission.
    https://bugzilla.mozilla.org/show_bug.cgi?id=519357 doesn't seem to address this problem as test pilot is a known component. Its not a plug-in so I can't modify the plugin scanning settings to prevent it from being loaded. Is there some way I can reliably supplement http://www.mozilla.com/en-US/blocklist/ with a local block list file? If so, would I have to update that whenever a new version of test Pilot is released?
    http://support.mozilla.com/en-US/kb/Add-ons%20blocklist

    I'm not sure what you mean by "re-directs e-mails." Are the recipient addresses changing between the time you address the message and the time it is sent?
    If you could provide more information I think that would help in tracking this down.
    When you use Firefox to work with your webmail site, whether Yahoo! or Gmail or another, the mechanics of sending the mail are handled by the site itself. So if there is a problem with how messages are addressed, then you may need to check your Yahoo! mail settings.

  • How can I prevent oracle from locking accounts after failed logins?

    how can I prevent oracle from locking accounts after failed logins?
    Thanks

    svarma wrote:
    So what is the difference between the profile settings ...FAILED_LOGIN_ATTEMPTS and the parameter settings SEC_MAX_FAILED_LOGIN_ATTEMPTS?
    Prior to 11g we only used profiles to control failed_login_attempts.. Then why we need thsi new parameter now?http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams221.htm#I1010274
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/changes.htm#UPGRD12504
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_6010.htm#SQLRF01310
    As documented ...
    FAILED_LOGIN_ATTEMPTS is a property of a profile, and will lock an account
    SEC_MAX_FAILED_LOGIN_ATTEMPTS is an initialization parameter and will drop a connection but says nothing about locking accounts.

  • I use to administrate my DSL modem via an ip-address. When I enter it into FF8 I am asked where to save the file. Why and how can I prevent FF8 from doing that?

    I use to administrate my DSL modem via an ip-address. When I enter it into FF8 I am asked where to save the file. Why and how can I prevent FF8 from doing that?
    And now anytime I am entering an ip-address I am asked if I want to download the file.

    It happens when the modem server doesn't send the file as text/html, but with another MIME type.<br />
    I tried the index.html addition in case the server might send that file as text/html.<br />
    If your DSL modem has a support website then you can try to ask there for advice about how to configure the modem server.

  • HT6006 I was charged automatically for an App I don't even use. How can I prevent that from happening again?

    I really like my iTunes account, however I was automatically charged for an app that I don't use. How can I prevent that from happening again?

    Sew Ida wrote:
    I was automatically charged for an app that I don't use.
    Please explain what happened.

  • HT203687 How can I remove apps from my iPhone 5 home page?

    How can I remove apps from my iPhone 5 home page?

    Tap and hold an app until they all start to wiggle, then tap the black "x" on the apps you want to delete from your phone, or drag them to the edge of the screen if you want to move them to another screen rather than deleting them.  Finish by tapping the home button.

Maybe you are looking for