Cookies doesn't persist in JSF application

We have a Search Form , in which users can search on selected fields.
So there are multiple boolean checkboxes which users will select and we have a requeriment to store user selected checkboxes into Cookie. So that next time user visits the page he can search on selected fields
I am able to store checkbox selection into Cookie and it works for single browser instance in Mozilla Firefox 3.0 and ofcourse in tabbed browser instances of Firefox Mozilla 3.0. But it never works in IE 6.0
But if close the browser and open new instance the cookies are lost.
Here are the code snippets
//Action method invoked on click of Advance Search Link
public String onAdvanceSearch()
        logger.debug("In onAdvSearch");
                checkCookie();
        return null;
     * Check if cookie is there
    private void checkCookie()
        FacesContext context = FacesContext.getCurrentInstance();
        Cookie cookie[] = ((HttpServletRequest)context.getExternalContext().getRequest()).getCookies();
        if(cookie!=null && cookie.length>0 )
            for(int i=0;i<cookie.length;i++)
                if(cookie.getName().equals("bldg"))
//flagBldg is value binding component to h:selectBooleanCheckBox
this.flagBldg = true;
if(cookie[i].getName().equals("floor"))
this.flagFloor = true;
}else{
logger.debug("Cookie not found");
* Action method to Save choose fields.
* @return the string
public String saveChooseFields()
FacesContext context = FacesContext.getCurrentInstance();
if(flagBldg == true){
Cookie bldg = new Cookie("bldg","true");
((HttpServletResponse)context.getExternalContext().getResponse()).addCookie(bldg);
bldg.setMaxAge(SECONDS_PER_YEAR);
if(flagFloor == true){
Cookie floor = new Cookie("floor","true");
((HttpServletResponse)context.getExternalContext().getResponse()).addCookie(floor);
floor.setMaxAge(SECONDS_PER_YEAR);
return null;
Any pointers/suggestions will be greatly appreciated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Just in case someone else is looking at this for me the problem was not setting the path.
    private static final int SECONDS_IN_A_YEAR = 60 * 60 * 24 * 365;
   Cookie cookie = new Cookie(userName + SHOW_TOOLTIP_DEBUG_INFO, "false"); // default to false
   cookie.setPath("/"); // NB: Don't forget to set this or the Expires won't be set properly (tested in Fire Fox on Linux)
   cookie.setMaxAge(SECONDS_IN_A_YEAR);
   getCurrentResponse().addCookie(cookie);Cheers,
Philip
Edited by: JoeBlogs on 28-Apr-2010 14:11

Similar Messages

  • I am getting the below mentioned error in the weblogic console.  Jun 26, 2014 12:14:45 PM IST Error javax.enterprise.resource.webcontainer.jsf.application BEA-000000

    Hi,
    After migrating to Spring webflow 2.4.0 , I am getting the below mentioned error in the weblogic console.
    <Jun 26, 2014 12:14:45 PM IST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Unable to determine expected return type for java.util.List()>.
    It doesn't affect  the application but not able to find the cause for it.
    Regards,
    Sneha

    After many hard working days.i finally found the error cause,i needed to make weblogic datasource also ADF doesnt work on internet explorer browser,it works on safary.hope it helps somebody

  • How to include page fragment for JSF application deployed on WebSphere?

    Hi all,
    I have the following urgent JSF problem, I hope that you can support me in solving it;
    - I have JSF application need to be deployed on IBM WebSphere 6.0.1 Application Server.
    - I have the tag:
    <jsp:directive.include file="Actions.jspf"/>
    which includes a page fragment.
    - This is working file with Tomcat 5.5 & Sun Application Server 9, but it didn't work on WebSphere and each time the page fragment contents rendered as text, I mean that the JSF components in the fragment doesn't converted to html controls.
    Please help...
    Message was edited by:
    AHmadQ

    We use:
    <%@ include file="../WEB-INF/jspf/head.jspf" %>where the head.jspf is a jsp fragment like:
    <% response.addHeader("Cache-Control", "no-cache"); %>
    <% response.addHeader("Pragma", "no-cache"); %>
    <% response.addIntHeader("Expires", -1); %>
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
         <meta http-equiv="Pragma" content="no-cache" />
         <meta http-equiv="Expires" content="-1" />
         <title><%= pageTitle %></title>
         <link href="../style/style.css" rel="stylesheet" type="text/css" />
    </head>Cheers,
    Illu

  • TopLink JPA doesn't persist Clob field when useStringBinding

    I'm using Toplink JPA on a JSF application deploying on Tomcat.
    Everything works fine except the table with Clob field.
    When insert data with size larger than 4KB, the error will occur.
    I did some searching and I fixed this by using SessionCustomizer.
    In my persistence.xml I put this
    <property name="toplink.session.customizer" value="com.my.sessions.MySessionCustomizer"/>
    and MySessionCustomizer is like this
    public class MySessionCustomizer implements SessionCustomizer {
         public void customize(Session session) throws Exception {
              DatabaseLogin login = session.getLogin();
              login.useStringBinding();
              login.setShouldBindAllParameters(false);
              login.dontCacheAllStatements();
    Things seem to work fine now but I found that Toplink does not persist the field that useStringBinding in database (Oracle 9i)
    eg. when I update an object into a table which has 1 clob field and some other field like VARCHAR2, all the data in non-clob fields are stored perfectly in Oracle but the data in Clob field just gone blank. It just gone blank in the database but in my application, it's still there. I mean as long as my session is still alive, everything seems to work fine from the application side. But when I start a new session, the data in the Clob is lost because it's not in the database.
    Why is this happening? Do I need to do anything extra when useStringBinding?
    It seems to me that the field with StringBinding just don't get into the database.
    Could somebody help me with this?

    This is an issue with the Oracle thin JDBC driver in that it has a 4k limit for LOBS. The best workaround is to use the Oracle OCI JDBC driver, which does not have this limitation (I think this limitation was also improved in the Oracle 10.2 thin JDBC driver).
    If you are using TopLink 10.1.3 a workaround to the JDBC issue is provided by using the Oracle9Platform and configuring the mapping for the CLOB to have a field-classification of java.sql.Clob.class.
    If you are using TopLink Essentials unfortunately this support is not currently available. I believe there is already an issue logged for this in Glassfish. If you cannot use the OCI driver you may need to insert the CLOB data using direct JDBC code.

  • Including JSF application inside iframe

    Hi,
    I have an existing website (based on PHP and HTML), where I want to include a new part that is developed with JSF,
    and currently runs on another webserver.
    I included the JSF part with:
    <iframe name="NewPart" src="http://www.myotherwebsite.com/jsp/welcome.faces" width="600" height="400"
    scrolling="auto" frameborder="0">
    some text.
    </iframe>
    This page appears fine with any simple JSF example. But as soon as I start navigating inside the JSF application to page2 (see below), I get the following exception:
    javax.servlet.ServletException: viewId:/jsp/welcome.faces - View /jsp/welcome.faces could not be restored.
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
    root cause
    javax.faces.application.ViewExpiredException: viewId:/jsp/welcome.faces - View /jsp/welcome.faces could not be restored.
    com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    The navigation is defined as:
    <navigation-rule>
    <from-view-id>/jsp/welcome.jsp</from-view-id>
    <navigation-case><from-outcome>page2</from-outcome><to-view-id>/jsp/page2.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    What am I doing wrong (I'm fairly new to JSF..)?
    best regards, Paul.

    Thanks Raymond, I think you've put me on the right track.
    I forgot to stress that if I load the (JSF based) page directly inside the browser it works OK, only when it is loaded inside an <iframe>, the navigation fails. I suspect now that there may be a conflict between the cookie stored by the main page and the inner JSF frame.

  • Unable to connect SQL server 2005 databse with JSF applications !

    Hello guys!
    Help me out to connect SQL server 2005 Databse with JSF applications using JDBC-ODBC bridge. I'm working with Netbeans 6.1 IDE.
    I tried for the basic applications but instead got this error:
    "unable to deploy jdbc drivers to the <project>domain/lib"
    Please help me out with working sample codes that connects MS SQL server 2005 DB with JSF!!
    Thank you guys!

    1) don't use the bridge driver
    2) don't do database access from JSF
    3) learn how to use your application server
    4) learn how to use your IDE

  • Need a login strategy for JSF application

    I have inherited a JSF application (prototype) and need to modify this application to require a user login. Right now, the application requires a login only for a sub-portion of the application, well after JSF is up and running. That has to change to require the login before the JSF application is invoked.
    Basically, what I want to do is present a standard login form (user name, password, and "submit" button). This information will be sent to "j_security_check" where the servlet engine will validate the user against an LDAP server and then look up some user role information. I have no control over user authentication. Once the user has logged in, the application will be looking at user roles to determine what elements of the JSF application they are permitted to access.
    In addition, I need to be able to detect when the user's session has expired. When this occurs, I need to automatically reroute the user back to the login page. The prototype I inherited currently has all of the JSF backing beans check to see if the Session is still valid before executing any actions. This seems rather tedious and error-prone to me.
    I am not very familiar with security and user authentication issues (somebody else always wrote that part). I think the approach I need to take is: (1) create a login page. (2) create a login error page. (3) create a filter to check to see if the user's session has expired and, if so, re-route the request to the login page.
    My questions:
    1. Is this the best approach? If not , what is a better approach?
    2. Can I use JSF elements for the various login pages, or do I need to use JSP or HTML elements only?
    3. Can you point me to an example or tutorial that explains what I need to do?
    I've looked at a couple of servlet books, a JSF book, and Sun's online Java tutorials, but I don't see anything that looks quite like what I think I need to do here.
    Once I get passed security handling, the rest of the application is all JSF and will be easy to build.
    Thanks for your thoughts, comments, and assistance.

    I have three macs and use one of them as the TM backup destination (that mac has 4 large external disks, I devote one disk at a TM backup for each of the macs) - that mac is also the file server. (I do also use an externally attached HD on one of the other macs as redundancy.) The system works very well and when set up requires no administration, it's automatic! Since the backups are made hourly, I have fresher data than my old system of doing nightly backups using a traditional backup app.
    I even had to do a full restore last week on one of the macs and found the process worked flawlessly, had the mac up and running after the 2 hour restore finished.
    For critical data (business or professional) I also recommend doing occasional boot disk backups using another backup app. I do that with one of my macs. Note: although I have wireless capability with each mac, I use wired Ethernet connections for speed and reliability.

  • Portal Search doesn't work in Portal Applications forum.

    Portal Search doesn't work in Portal Applications forum.

    Hi,
    Can you mention what exactly is not working?
    Thanks,
    Vanathi

  • How can I test a JSF application?

    Hi all,
    I'm beginner in JSF applications.
    I'd like to know how could I to do a little project using JSF.
    Does anyone send me a link with that steps?
    So, for example, I tried this: http://myfaces.apache.org/risamples.html
    But it does not run!
    I got this error: "HTTP Status 503 - Servlet Faces Servlet is currently unavailable"
    I'd like to config an application with:
    - myfaces-tobago
    - or tomahawk
    But I don't know where I must to place each jar files in order to the application can work fine. That is the big issue:
    Where MUST I to place EACH jar file in order to application does not complain!
    is there any template with a bit project pre-configured?
    I will be very pleased with any help!
    Regards!
    PS:
    I'm using:
    - Eclipse with Exadel plugin
    - Tomcat Tomcat 5.5
    - Windows

    Hi!
    I solved that problems!
    Related the JSF, It was about the correct <managed-property> .
    Now would be only about the following:
    - myfaces-tobago
    - or tomahawk
    thanks anyway

  • Facing error while trying to execute stored procedure from JSF Application

    Hi, I am facing the below error when I try to execute a stored Procedure from JSF application which is deployed on WAS 7.0
    =2013-03-04 19:06:58,550 INFO [com.lloydstsb.iw.util.DBUtils] - DBUtils : executeFileNetStoredProc method started..
    =2013-03-04 19:11:58,271 ERROR [com.lloydstsb.iw.dao.FileNetCustomDBSynchDAOImpl] - Data Access Exception
    com.lloydstsb.iw.common.exceptions.DataAccessException: Data Access Exception Occured : Integration Stored Proc- java.sql.SQLException: java.lang.ClassCastException: oracle.jdbc.driver.LogicalConnection incompatible with oracle.jdbc.OracleConnection
         at com.lloydstsb.iw.util.DBUtils.executeFileNetStoredProc(DBUtils.java:959)
         at com.lloydstsb.iw.util.DAOUtil.executeFileNetStoredProc(DAOUtil.java:117)
         at com.lloydstsb.iw.dao.FileNetCustomDBSynchDAOImpl.updateFileNetDetailsCustomDB(FileNetCustomDBSynchDAOImpl.java:36)
         at com.lloydstsb.iw.servlet.IndexServlet.service(IndexServlet.java:127)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
         at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
         at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
    The oracle version we are using is 11g.
    Previously it worked fine when the application was used in 10g.
    Can someone please help me in resolving this issue?
    Kiran
    Edited by: 991640 on Mar 4, 2013 8:25 PM

    java.lang.ClassCastException: oracle.jdbc.driver.LogicalConnection incompatible with oracle.jdbc.OracleConnection
    Are the the JDBC JARs packaged with the application? If so, remove the applicaiton packaged JDBC JARs as the JARs are also in WebSphere application server.

  • Error While Deploying ADF BC JSF Application on Oracle WebLogic Server 10.3

    Hi All,
    I am Deploying ADF BC JSF Application on Oracle WebLogic Server 10.3
    My JDeveloper Version is - JDeveloper10.1.3.0.4
    I followed Following Links for Deployment
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/wls/wls.html
    http://blog.fekw.de/2008/08/23/howto-install-adf-10-runtime-and-deploy-adf-bc-app-to-oracle-weblogic-103-running-on-linux/
    I am Getting Following Error
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.<clinit>(ADFPhaseListener.java:463)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:400)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
    [ServerConnectionImpl.close():334] : Closing DM connection
    [ServerConnectionImpl.close():354] : Unregistered all listeners
    Thanks
    Vijay Chavan

    My bc4j.conf file is like bellow and my datasource name is expertDS
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="DeptAMLocal">
    <AppModuleJndiName>model.ent.DeptAM</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>expert</JDBCName>
    <ApplicationName>model.ent.DeptAM</ApplicationName>
    <jbo.project>Model</jbo.project>
    </AppModuleConfig>
    <AppModuleConfig name="DeptAMEmbeddedAS">
    <jbo.internal.embedded>true</jbo.internal.embedded>
    <JDBCDataSource>jdbc/expertDS</JDBCDataSource>
    <ApplicationPath>current-workspace-app</ApplicationPath>
    <ConnectionPort>23891</ConnectionPort>
    <AppModuleJndiName>DeptAMBean</AppModuleJndiName>
    <HostName>localhost</HostName>
    <java.naming.security.authentication>simple</java.naming.security.authentication>
    <java.naming.security.credentials>
    <![CDATA[{904}05DDD90D64C79A7BC508C94B403DD81551]]>
    </java.naming.security.credentials>
    <java.naming.security.principal>oc4jadmin</java.naming.security.principal>
    <DeployPlatform>EjbIas</DeployPlatform>
    <jbo.server.internal_connection>jdbc/expertCoreDS</jbo.server.internal_connection>
    <ApplicationName>model.ent.DeptAM</ApplicationName>
    </AppModuleConfig>
    <AppModuleConfig name="DeptAMAS">
    <jbo.ampool.maxinactiveage>300000</jbo.ampool.maxinactiveage>
    <AppServerConnectionName>weblogic</AppServerConnectionName>
    <AppModuleJndiName>DeptAMBean</AppModuleJndiName>
    <DeployPlatform>EjbIas</DeployPlatform>
    <jbo.ejb.txntimeout>86400</jbo.ejb.txntimeout>
    <DtMiddleTierDeploymentProfile>../ModelMiddleTier1.deploy</DtMiddleTierDeploymentProfile>
    <jbo.security.enforce>Test</jbo.security.enforce>
    <jbo.ampool.maxpoolsize>600</jbo.ampool.maxpoolsize>
    <ApplicationName>model.ent.DeptAM</ApplicationName>
    <DtDeploymentProfile>../ModelEJB1.deploy</DtDeploymentProfile>
    <jbo.ampool.doampooling>false</jbo.ampool.doampooling>
    <java.naming.security.authentication>simple</java.naming.security.authentication>
    <DtCommonDeploymentProfile>../ModelCommon1.deploy</DtCommonDeploymentProfile>
    <JDBCDataSource>jdbc/expertDS</JDBCDataSource>
    <jbo.server.internal_connection>jdbc/expertCoreDS</jbo.server.internal_connection>
    <jbo.ampool.minavailablesize>0</jbo.ampool.minavailablesize>
    <ApplicationPath>BackBoneEJB</ApplicationPath>
    <jbo.ampool.monitorsleepinterval>10000</jbo.ampool.monitorsleepinterval>
    </AppModuleConfig>
    </AppModuleConfigBag>

  • TS1702 I use iphone5, I see an app update on the app store. but when App store and click on the update tab, it doesn't show me which application to update.. just give me a blank page.!!!! what is the solution for this.!!!!

    I use iphone5, I see an app update on the app store. but when App store and click on the update tab, it doesn't show me which application to update.. just gives me a blank page.!!!! I wouldn't able to know what app has to be updated, untill and unless i get check for each every app on the app store installed on my iphone... what is the solution for this.!!!! can any1 one help me out.!!!!

    Cc2528 wrote:
    The iTunes Store on my iPad is set up with all my music already. And at the very bottom it shows my apple Id username. The only place it shows the previous owners id is in the App Store...
    You can probably change the ID in the "iTunes and App stores" settings on the iPad....click on the wrong account ID , select sign out, then log in with your own ID, I have not done this but I think it works.....
    but I would be more inclined to to the factory reset and start afresh.

  • JSF Application on WAS 6.1 when migrated from tomcat5.5 not loading

    I'm migration a list of applications from Tomcat to WAS 6.1
    I have a JSF application running on Tomcat 5.5.
    The same application when hosting on websphere application server 6.1(latest service pack applied in 6.1.0.17 ) is not loading properly.
    The application has a login screen that comes when loads. This comes fine in the tomcat server. But in the WAS this not loading. It's not giving any error messages also. What happens in WAS is in the login screen The header section will comes but the login fields ie the user Id and password section won't come.
    I tried deploying the same war file from the Tomcat to the WAS server. Still there is no change.
    Initially my WAS server version was 6.1.0.2, and then I had an issue with JSF servlet and context mappings.
    After applying the fix pack 6.1.0.17 it was fine.
    The application uses the a security filter- form based login in the web.xml
    Is there any difference between the form base authentication between tomcat and websphere ?
    Here is the section of web.xml for form based authentication
    <!--Security filter - form based login -->
    <filter>
    <filter-name>Security Filter</filter-name>
    <filter-class>org.securityfilter.filter.SecurityFilter</filter-class>
    <init-param>
    <description>Configuration file location (this is the default value)</description>
    <param-name>config</param-name>
    <param-value>/WEB-INF/securityfilter-config.xml</param-value>
    </init-param>
    <init-param>
    <description>Validate config file if set to true</description>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <description>change security binding</description>
    <param-name>loginSubmitPattern</param-name>
    <param-value>login.html</param-value>
    </init-param>
    </filter>
    this is urgent, please help.
    Edited by: JSF_exception on Nov 10, 2008 8:31 PM

    yes i checked the server logs. it didn't give any messages.
    there is no information in the file 'native_stderr.log','SystemOut.log','SystemErr.log','native_stdout.log' files.
    In the production server, i noticed an error message in the SystemOut.log file, it gives the following message.
    +1/11/08 13:39:33:851 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:33:870 EST] 00000026 WebApp E [Servlet Error]-[Filter [Security Filter]: filter is unavailable.]: java.lang.NullPointerException+
    +     at java.lang.Throwable.<init>(Throwable.java:181)+
    +     at java.lang.Exception.<init>(Exception.java:29)+
    +     at java.lang.RuntimeException.<init>(RuntimeException.java:32)+
    +     at java.lang.NullPointerException.<init>(NullPointerException.java:36)+
    +     at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:151)+
    +     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:173)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:106)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:75)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:720)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:686)+
    +     at com.ibm.ws.wswebcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:70)+
    +     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:788)+
    +     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:241)+
    +     at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:105)+
    +     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3287)+
    +     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:246)+
    +     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:615)+
    +     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1418)+
    +     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:110)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:398)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:298)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:254)+
    +     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:179)+
    +     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:532)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:583)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:973)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1063)+
    +     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)+
    +[11/11/08 13:39:34:037 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:34:103 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:34:183 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    The same application is working on tomcat. So when we move it from tomcat to WAS should we change any settings.
    if we are deploying the war file it should work in all the servers right?
    Following is my login page..
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <t:htmlTag value="P" >
    <h:outputText value="<FORM action='login.html' id='base_form' method='POST'>" escape="false" />
    <t:panelGrid columns="2" align="center" footerClass="loginFooter" headerClass="loginHeader" columnClasses="loginColumn1, loginColumn2" styleClass="loginFormPanel">
    <f:facet name="header">
    <t:outputText value="Please login with your I5DEV system name and password " styleClass="loginDescriptionA" />
    </f:facet>
    <t:outputText value="Username:" />
    <t:inputText value="" id="j_username" forceId="true" />
    <t:outputText value="Password:" />
    <t:inputSecret value="" id="j_password" forceId="true" />
    <f:facet name="footer">
    <t:panelGroup>
    <t:panelGrid style="width: 100%" rowClasses=",,loginSubmitRow">
    <t:outputText value="" />
    <t:outputText value="" />
    <f:verbatim>
    <INPUT value="Login" class="loginSubmit" type="submit" />
    </f:verbatim>
    </t:panelGrid>
    </t:panelGroup>
    </f:facet>
    </t:panelGrid>
    <t:panelGrid align="center">
    <t:outputText value="#{requestScope.error}" styleClass="errorMessage" style="display: inline;" rendered="#{!empty requestScope.error}"/>
    <h:message for="general_login" id="general_login" errorClass="errorMessage" style="display: inline;"/>
    </t:panelGrid>
    <h:outputText value="</FORM>" escape="false" />
    </t:htmlTag>
    <t:panelGrid align="center" columnClasses="warnMessage">
    <t:outputText value="NOTE: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled." styleClass="warningMessage" />
    </t:panelGrid>
    <f:verbatim>
    <SCRIPT language="javascript" type="text/javascript">
    window.onload = function() {
    document.getElementById("j_username").focus();
    </SCRIPT>
    </f:verbatim>
    Edited by: JSF_exception on Nov 11, 2008 11:17 AM
    Edited by: JSF_exception on Nov 11, 2008 11:22 AM

  • URGENT: How to debug non-reproducable problem(s) in ADF JSF application?

    This is one of the most anoying things in programing.... We have JSF application developed by JDev 10.1.3 and deployed on AS. It works fine but almost once or twice per day users complain that, say on a certain page (could be any page) they click on a button or a link and nothing happens. Sometimes it looks like the browser is trying to open a page but never does and sometimes the link or a button is dead. I looked into log file under opmn/logs and could not find anything?
    This is very urgent, so please, please if you have any hint on how to approach this problem, let me know. At this time I cannot file the Service Request with Oracle since they would ask me to create sample code and reproduce the problem which is just not possible.
    please help.

    Hi,
    if you are on JDeveloper 10.1.3.0 then chances are that these are concurrency issues. If a user starts a long running query then others may be blocked by this. This is fixed in JSF RI that is contained in JDeveloper 10.1.3.1
    Its just a guess. To prove my assumption, make sure you run the app with a single seat and see if the issue reproduces or exclude queries from the tests.
    Frank

  • Error Opening Reports (Cannot find Dimension Scenario, Error executing query: the member null doesn't exist in this application)

    Hello,
    two of our users get the following error message, when opening two specific reports:
    First Report: Cannot find Dimension Scenario.
    Second Report: Error executing query: the member null doesn't exist in this application.
    Other users can access these reports, and the same users where the problem occurs can access other reports in the same folder.
    I set the same rights for me, but i can access the reports without problems.
    Somebody encountered the same problem before?

    Hi there,
    I had the same issue a few weeks ago... not sure how it happened but it was related only with my username.
    In order to fix it:
    1. I created a report which does not require to select the scenario in advance. Try to use the default data-grid that you get when you first create a report for example.
    2. When the user runs the report, try to see if he can see the dimension. Do not use the missing dimension on rows or columns. If he can see the dimension, ask him to select one scenario. This will solve the issue.
    3. If he cannot see the dimension, try to change the layout of the report.
    Regards,
    Thanos

Maybe you are looking for

  • Showing error while creating IT0000 ee record

    Hi, I am new to HR functional. Please do need full. When i am creating record in infotype 0000, it is showing error like No entry in table T503 for     779. I am giving value 7 fro employee group and 79 for employee subgroup. Is there any where that

  • PDF in Pages convert to ePub

    Hi all I have a problem with Pages (version 4.0.5) and uploading my ebook to Apple's iBookstore. Apple says that PDF can be used with Pages 4.0.5 and used as an ePub. Doesn't give any example of this. I have written a 112 page book using the DTP mode

  • Make macbook and iphone dont receive same messages

    How can I set up my macbook and/or iphone so that if "message" on my macbook is open, then iphone would stop receiving messages, i.e. I will not need to look at the same messages on iphone that I've already looked at on my macbook.

  • Number Range increment in SRM

    Dear Experts, We are implementing Classic scenario with SRM 7.03 and ERP 6.05 and have set up the system such that follow-on document to Shopping Cart should be Purchase Order or Purchase Requisition depending on whether Source of Supply is available

  • Permissions Not Preserved When Saving/Copying to OS X 10.4 Server

    The Setup: One G4 Running Mac OS X 10.4 Server 6 Clients Running OS X 10.4 2 Clients Running OS X 10.5 The Problem: When saving or copying documents from one of the 10.5 clients to the 10.4 server, group write permissions are not preserved. What I've