Faces Servlet no getting called when accessing JSF portlet

Hi,
I have a JSF web application and I am exposing the functionality of this JSF web application using native Weblogic Portal JSF portlets. I have configured this JSF web application as a simple producer and I am consuming these portlets in my portal using WSRP.
I have written a custom FacesServlet and configured it in the web.xml of the producer web application. When I access the pages in the producer web app like a normal web app, I see that my faces servlet is being called but when I consume these pages via the JSF portlet and view the portlets in the portal then the Faces servlet is not being called.
Is this normal behavior or is WSRP causing this problem or am I missing something. Your help is greatly appreciated.
Regards,
Hitesh

Hi Hitesh,
What I was asking you to give a try was, configure the standard faces servlet for example if you are using JSF RI
the configuration will look like
    <servlet>
        <servlet-name>FacesServlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>100</load-on-startup>
    </servlet>I am not very sure whether this can solve the problem.
Thanks
Sreeram
Edited by sreeram.jonnalagadda at 06/10/2008 4:46 AM

Similar Messages

  • The plugin is gets called when we open any pdf document in internet explorer

    Hello,
    I have written plug-in( .api) for our use. But it's get called when ever I open any pdf document in internet explorer.
    I am using Adobe Acrobat 10. What could be the problem. I don't want to call plug-in methods on internet explorer.
    The plug-in method should call when am launch Adobe acrobat separately.
    Please help me to solve this issue.
    Regards,
    Sow

    Thanks for the response.
    I have written some function in PluginInit. I don't want to call the method when acrobat launches in IE. It should call only when acrobat launches in Desktop.
    How can I call the method only when it launches on desktop.
    Please help me to solve the issue.
    Sow

  • How to make a functions that gets called when the plug in is loaded?

    I'm making an automate plugin, and I want to make a functiosn that gets called when Photoshop loads my plugin. It doen't matter if my plug is never called fro the File->Automate menu. Is there any way to do this? Thank you.
    Daniel

    Hi There,
    I don't believe there is a way to handle this currently within App-V...Other virtualization products do have the ability to exclude processes and force to run outside or the bubble or exclude them from terminating on shutdown.
    It would be a great feature request for a future release. You can easily request it here:
    http://appv.uservoice.com/forums/280448-microsoft-application-virtualization
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • I cant get call when i turn on my cellular data on iPhone5

    I cant get call when i turn on my cellular data on iphone5. My carrier provides only 2G data. Can someone please help me?

    Try resetting the iPod by holding the Menu and Center button for about 10 seconds. You should see the screen shut off and come back on with the Apple logo. If that doesn't work you'll want to try to restore the iPod through iTunes.

  • Exception when access JSF application deployed on apache tomcat

    Hi,
    hopefully u all will b fine.
    I am new in Java Web developement and working on JSF... I made my first hello application of JSF... but when i try to access that from browser, following exception is shown in the browser window... (I am using apache tomcat 5.5.17 and JSF 1.1)
    HTTP Status 500 �
    type Exception report
    message description: The server encountered an internal error () that prevented it from fulfilling this request.
    exception :
    org.apache.jasper.JasperException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause :
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause:
    java.lang.NullPointerException
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note: The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    I placed the jsp files in "apache-tomcat-5.5.17\webapps\MyProject\"
    and web.xml and faces-config file at "apache-tomcat-5.5.17\webapps\MyProject\WEB-INF\"
    library files of JSF ("jsf-api.jar", "jsf-impl.jar" and "jstl.jar") at "apache-tomcat-5.5.17\common\lib" also i tried by placing these at "apache-tomcat-5.5.17\webapps\MyProject\WEB-INF\lib"
    Please help me out here...
    Thanks
    Imran

    Maybe your web.xml is wrong. Doublecheck it.

  • Shutdown hook not getting called when running tomcat as a service

    I have a shutdown hook as part of a lifecycle <Listener> tomcat6 class, which gets created and registered in the class's constructor (class is referenced in the server.xml). The hook gets called during shutdown when tomcat has been started from a shell, but not when tomcat has been installed as a service. The -Xrs flag doesn't make a difference either way. I am running java 6u12 server VM (haven't tried client) and prior versions. Does anyone have any ideas? This has been tested by starting/stopping from the Control Panel, and also with 'tomcat6 //TS/ServiceName' (i.e. in test mode)
    One possibility is that tomcat internally calls Runtime.halt(), but the shutdown process appears to be normal and the same with either scenario. The other possibility is that the JVM has an issue. The tomcat user groups don't have anything to offer.
    Thoughts?
    tia

    sanokistoka wrote:
    jschell wrote:
    sanokistoka wrote:
    Let me ask the last question in a better way: Does anyone have any GOOD ideas?Get back to us when you have found your good solution.Stop wasting bandwidth. I didn't post here to be a smart ars like you and pretend that I have a solution to a rare problem... FYI - the workaround is to use the tomcat lifecycle events (AFTER_STOP_EVENT) to achieve the same - why do you think I mentioned it's a tomcat listener in the first place? Feel free to educate me.
    So you are claiming that Runtime.getRuntime().addShutdownHook() that you posted in the above is not part of the java API?
    Or perhaps that everything that is added via addShutdownHook() runs?
    Surely you are not claiming that it isn't calling addShutdownHook() in the first place?
    Get a life and a job.I have both but thanks for the concern.
    sanokistoka wrote:
    swamyv wrote:
    There are free tools available to debug windows. I think gdb is one of them. If you search you can find some good tools.
    If you find any good tools that you like share it with us.
    Yes I will try gdb (have cygwin) and see where this takes us - not sure if the JVM or tomcat6.exe have the symbols to get a meaningful stack trace. As luck would have it, [https://issues.apache.org/bugzilla/show_bug.cgi?id=10565|https://issues.apache.org/bugzilla/show_bug.cgi?id=10565] claims that "shutdown hooks are not supported in a container environment" although there is no such restriction in the servlet spec, which would make this a tomcat issue (it does sound like that tomcat6.exe wrapper is somehow involved). Unfortunately, tomcat does NOT issue the AFTER_STOP_EVENT if killed before it has completed its start-up (it appears its own shutdown hook, which sends the event, is not registered until it has fully come up); thus the need for a shutdown hook (at least, up until it's fully up). A shutdown hook is still required in my case for clean-up after tomcat is completely out of the picture. It sounds like the proper architecture here is to really embed tomcat in an application, and create a shutdown hook at the outer level.
    Educate me some more. The above description certainly seems like you are suggesting that both of the following are true.
    1. It is not a bug in the VM.
    2. The problem, for your implementation, is in how the wrapper terminates the windows service.
    Perhaps what is actually happening it that addShutdownHook() is never being called at all? Thus of course any processing of the thread associated with that would never, ever run.
    And that happens because you are banging on the stop service so fast that it doesn't actually have time to spin up?

  • CommandButton actions not getting called when "disabled" element present

    MyObjectForm.jsp contains commandButtons for "add", "update" and "delete" that are enabled/disabled according to the value of the bound id field.
    MyObjectForm.jsp
    <html>
    <body>
    <f:view>
    <h:form id="create">
    <h:inputHidden id="id" value="#{myObjectBean.id}" />
    <h:panelGrid columns="3" border="0">
    Name: <h:inputText id="name"
    requiredMessage="*"
    value="#{myObjectBean.name}"
    required="true"/>
    <h:message for="name"/>
    // other fields
    <h:commandButton id="add"
    value="Add" disabled="#{myObjectBean.id!=0}"
    action="#{myObjectBean.add}"/>
    <h:commandButton id="update"
    value="Update" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.update}"/>
    <h:commandButton id="delete"
    value="Delete" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.delete}"/>
    <h:commandButton id="delete2"
    value="Delete (no disabled element)"
    action="#{myObjectBean.delete}"/>
    </h:form>
    </f:view>
    </body>
    </html>In its managed bean, MyObjectBean, if an id parameter is found in the request, the record is read from the database and the form is populated accordingly in an annotated @PostConstruct method:-
    MyObjectBean.java
    public class MyObjectBean {
    private int id;
    /** other properties removed for brevity **/
    public MyObjectBean() {
    LOG.debug("creating object!");
    @PostConstruct
    public void init() {
    String paramId = FacesUtils.getRequestParameter("id");
    if(paramId!=null && !paramId.equals("")){
    getById(Integer.parseInt(paramId));
    LOG.debug("init id:"+id);
    }else{
    public String delete(){
    LOG.debug("delete:"+id);
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.removeMyObjectVO(myObjectVO);
    return "";
    public String add(){
    LOG.debug("add");
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.insertMyObjectVO(myObjectVO);
    return "";
    public String update(){
    LOG.debug("update:"+id);
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.updateMyObjectVO(myObjectVO);
    return "";
    public void getById(int id){
    MyObjectVO myObjectVO= myObjectService.findMyObjectById(id);
    ModelUtils.copyProperties(myObjectVO, this);
    /** property accessors removed for brevity **/
    }When no parameter is passed, id is zero, MyObjectForm.jsp fields are empty with the "add" button enabled and the "update" and "delete" buttons disabled.
    Completing the form and clicking the "add" button calls the add() method in MyObjectBean.java which inserts a record in the database. A navigation rule takes us to ViewAllMyObjects.jsp to view a list of all objects. Selecting an item from the ViewAllMyObjects.jsp list, adds the selected id to the request as a paramter and a navigation rule returns us to MyObjectForm.jsp, populated as expected. The "add" button is now disabled and the "update" and "delete" buttons are enabled (id is no longer equal to zero).
    Action methods not getting called
    This is the problem I come to the forum with: the action methods of commandButtons "update" and "delete" are not getting called.
    I added an extra commandButton "delete2" to the form with no "disabled" element set and onclick its action method is called as expected:-
    commandButton "delete2" (no disabled element) - works
    <h:commandButton id="delete2"
    value="Delete (no disabled element)"
    action="#{myObjectBean.delete}"/>Why would "delete2" work but "delete", not?
    commandButton "delete" (disabled when id is zero) - doesn't work
    <h:commandButton id="delete"
    value="Delete" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.delete}"/>The obvious difference is the "disabled" element present in one but not the other but neither render a disabled element in the generated html.
    Am I missing something in my understanding of the JSF lifecycle? I really want to understand why this doesn't work.
    Thanks in advance.
    Edited by: petecknight on Jan 2, 2009 1:18 AM

    Ah, I see (I think). Is the request-scoped MyObjectBean instantiated in the Update Models phase? If so then the id property will not be populated at the Apply Request Values phase which happens before this, making the commandButton's disabled attribute evaluate to true.
    Confusingly for me, during the Render Response phase, the id property is+ set, so the expression is false (not disabled) giving the impression that the "enabled" buttons would work.
    So, is this an flaw in my parameter passing and processing code or do you see a work around?

  • Manage bean for pop up getting called when parent screen is getting loaded

    Hi,
    I have designed two jspx . One having pop up code and other one (parent) from which the pop up will open. Problem is after I have put the pop up code in my Perent screen both the manage beans are getting invoked when parent screen is getting rendered which i dont want . Please help me out regarding how to avoid this?

    where did you register the managed Beans ?
    Which version of Jdev do you use ?
    Also how did you include your popup code in the jpsx - by jsp include or by using regions ?

  • Getting ClassCastException when accessing Blob object

    I am using weblogic 5.1 with service pack 10.
    I need to query pdf data stored in a blob field in Oracle
    8.1.6 server. The native code c:\weblogic\bin\oci816_8
    is part of the path. When I query the database with
    Oracle 8 client, I can get data.
    driver: weblogic.jdbc20.oci.Driver
    url: jdbc20:weblogic:oracle:mydb
    What I have done is to get the blob object with:
    Blob blob = rs.getBlob(5);
    long len = blob.length();
    But when I call the blob.length();
    I got the a ClassCastException. I really appreicate
    your comment.
    The exception message is:
    ====================================================
    java.lang.ClassCastException: java.lang.String
    at weblogic.jdbc20.oci.Blob.length(Blob.java:75)
    at com.agf.profile.ProfileServlet.doProcess(ProfileServlet.java:126)
    at com.agf.profile.ProfileServlet.doGet(ProfileServlet.java:37)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletSt
    pl.java:120)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
    textImpl.java:922)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
    textImpl.java:886)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Ser
    ContextManager.java:269)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP
    a:380)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    ====================================================
    Thanks,
    Jian

    hi jian,
    it seems you are trying to access a column as a blob type when the data in
    that column is not blob.
    Make sure that your column number 5 is defined as Blob in the database.
    I tried the following code and it worked fine for me.
    Blob b=rs.getBlob("data");
    long l=b.length();
    byte bt[]=b.getBytes(1,(int)b.length());
    File f=new
    File("d:\\bea\\wlserver6.1\\config\\jdbcdomain\\applications\\defaultwebapp\
    \blob_new.pdf");
    FileOutputStream fos=new FileOutputStream(f);
    fos.write(bt);
    fos.close();
    It was able to create the file blob_new.pdf
    But when I tried the following code it gave me the same exception as you are
    getting
    Blob bb=rs.getBlob("id");
    long ll=bb.length();
    Where id is a column in the database of varchar type
    I am using the following settings
    driver: weblogic.jdbc.oci.Driver
    url: jdbc:weblogic:oracle
    i am using wl 6.1 and oracle 8
    Hope this helps you.
    johnny
    "jian zhang" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am using weblogic 5.1 with service pack 10.
    I need to query pdf data stored in a blob field in Oracle
    8.1.6 server. The native code c:\weblogic\bin\oci816_8
    is part of the path. When I query the database with
    Oracle 8 client, I can get data.
    driver: weblogic.jdbc20.oci.Driver
    url: jdbc20:weblogic:oracle:mydb
    What I have done is to get the blob object with:
    Blob blob = rs.getBlob(5);
    long len = blob.length();
    But when I call the blob.length();
    I got the a ClassCastException. I really appreicate
    your comment.
    The exception message is:
    ====================================================
    java.lang.ClassCastException: java.lang.String
    at weblogic.jdbc20.oci.Blob.length(Blob.java:75)
    atcom.agf.profile.ProfileServlet.doProcess(ProfileServlet.java:126)
    at com.agf.profile.ProfileServlet.doGet(ProfileServlet.java:37)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletSt
    pl.java:120)
    atweblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
    textImpl.java:922)
    atweblogic.servlet.internal.ServletContextImpl.invokeServlet(Servle
    textImpl.java:886)
    atweblogic.servlet.internal.ServletContextManager.invokeServlet(Ser
    ContextManager.java:269)
    atweblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP
    a:380)
    atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:
    >
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    ====================================================
    Thanks,
    Jian

  • Action on hyperlink keeps getting called when doing other actions

    Hello.
    I have a jsf application created mostly with visual web pack, but with some custom code added. I have a table where one of the columns contains a hyperlink, which I created a custom action for. This action gets an HttpServletResponse and write urls to it with content type "audio/x-mpegurl".
    Once this action has been called, any attempt to click on another link which calls this action will call the action twice. A third link click will cause it to be called three times. Any attempt to use a search button on the screen, or a table reorder link, will cause the action to be called (the number of times it was called from the last link click).
    Is there some method I need to be called in order to clear something out?
    Thanks in advance, and here's the code.
    First the action
        public String recordingHyperlink_action() {
            try {
                String url;
                List<WarehouseQuestion> questions = null;
                Boolean isFullCase;
                isFullCase = getSessionBean1().isIsFullCall();
                log.debug("url is" + FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("url"));
                if (FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("url") == null) {
                    url = null;
                } else {
                    url = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("url");
                if (isFullCase && url != null) {
                    if (getSessionBean1().getKludgeKeyToDetail() != null) {
                        log.debug("In hyperlink action, getting key from url: " + url);
                        WarehouseDetail wd = getSessionBean1().getKludgeKeyToDetail().get(url);
                        if (wd != null) {
                            questions = wd.getQuestions();
                        } else {
                            log.error("warehouseDetail is null in hyperlink action but want full case is true");
                    } else {
                        log.error("keyToDetail is null, but want full case is true... should be no results");
                getApplicationBean1().returnRecording(questions,url,isFullCase);
            } catch (IOException ex) {
                log.error("Error in hyperlink action for playing recording", ex);
            return null;
        }Then the writing to the response.
        public void returnRecording(List<WarehouseQuestion> questions, String url, Boolean isFullCall) throws IOException {
            ExternalContext econtext = getExternalContext();
            HttpServletResponse response = (HttpServletResponse) econtext.getResponse();
            ServletOutputStream sos = null;
            FacesContext fcontext = FacesContext.getCurrentInstance();
            try {
                sos = response.getOutputStream();
                if (isFullCall == null || isFullCall == false) {
                    response.setContentType("audio/x-mpegurl");
                    try {
                        sos.println(url);
                    } catch (IOException ex) {
                        log.error("Error adding url to response: " + url, ex);
                } else {
                    response.setContentType("audio/x-mpegurl");
                    if (questions != null) {
                        for (WarehouseQuestion wq : questions) {
                            try {
                                sos.println(wq.getUrl());
                            } catch (IOException ex) {
                                log.error("Error adding url to playlist: " + wq.getUrl(), ex);
                    } else {
                        log.error("returning playlist, questions is NULL!");
                sos.close();
            } catch (IOException ex) {
                log.error("Error setting output stream to response: " + url, ex);
            fcontext.responseComplete();
        }Sorry for the messy code, and thanks in advance for any help, this is really driving me nuts!

    How odd.. this works as intended when called from a button with a static url, but now I can't access the param in the button, which I could in the hyperlink. Here's the jsp code for the two.
    <ui:tableColumn binding="#{resultsPage.tableColumn7}" headerText="Recording" id="tableColumn7" sort="questionName">
        <ui:hyperlink action="#{resultsPage.recordingHyperlink_action}" binding="#{resultsPage.recordingHyperlink}"
                      id="recordingHyperlink" immediate="true" text="#{currentRow.value['questionName']}">
            <!--<f:param name="studyNumber" value="#{currentRow.value['studyNumber']}"/>
            <f:param name="formName" value="#{currentRow.value['formName']}"/>
            <f:param name="caseNumber" value="#{currentRow.value['caseNumber']}"/>
            <f:param name="attempt" value="#{currentRow.value['attempt']}"/>
            <f:param name="date" value="#{currentRow.value['date']}"/>-->
            <f:param name="url" value="#{currentRow.value['url']}"/>
        </ui:hyperlink>
        <ui:button action="#{resultsPage.recordingHyperlink_action}" binding="#{resultsPage.playRecordingButton}" escape="false"
                   id="playRecordingButton" mini="true" text="Play">
            <f:param name="url" value="#{currentRow.value['url']}"/>
        </ui:button>   
    </ui:tableColumn>

  • Servlet Filters getting called twice

    Hi,
    I am debugging my way through a big project and I am noticing when a http requests comes in that some filters are being called twice.
    I checked the web.xml and nothing funny there and I have checked the respective doFilter() implementations and nothing unusual there.
    Any ideas?
    Thanks.

    Many reasons
    1. Filters are chained - the code in doFilter() upto the call to chain.doFilter() is executed before the request reaches the destined endpoint (servlet/jsp).
    Any code after the call to chain.doFilter() is executed after the endpoint (servlet/jsp) processes the request.
    2. When the response is a redirect, it would cause the browser to send a new request transparently to the end user. This new request would also hit the filter as would be expected.
    3. Filters can be used to intercept internal forwards and/or includes by indicating so in the web.xml. So when such an action happens a part of request processing, filters would be invoked.
    cheers,
    ram.

  • Get 403 when accessing apex/listenerStatus on the new install

    Have installes AL on Weblogic 10.3.5
    Have Apex 4.1 on 10.2.0.5 database
    After configuring the listener access to apex/listenerStatus result in athentication dialog, and after providing credentials (member of Admin role configured via the WLS console) get 403 error message.
    TIA

    See this support article: <br />http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
    Your old Profile is located here in Vista & Win7: <br />
    ''drive'':\Users\''Windows login user name''\AppData\Roaming\Mozilla\Firefox\Profiles\''profile_name''

  • Getting exception when accessing outlook through Redemption COM

    We are accessing outlook through redemption DLL in c#.net. We are using various services like: importing contacts, calendar integration etc.  Sometime we are getting exception from redemption COM like:
    The file abc.ost is in use and cannot be accessed.
    'MyApplication' exited without properly closing your Outlook data file
    Could somebody help us to identify the root cause of this issue?
    Exception details are mentioned below:
    Exception1:
    OutlookServices.OutlookService - System.Runtime.InteropServices.COMException (0x80040119): Error in IMAPISession.OpenEntry: MAPI_E_EXTENDED_ERROR
    Error: 'MyApplication' exited without properly closing your Outlook data file 'C:\Users\abc\AppData\Local\Microsoft\Outlook\[email protected]'. 'MyApplication' must be restarted. If this error message recurs, contact support for 'MyApplication' for assistance.
    at Interop.Redemption.IRDOSession.GetMessageFromID(String EntryIDMessage, Object EntryIDStore, Object Flags)
    Exception2:
    OutlookService - System.Runtime.InteropServices.COMException (0x8004011D): Error in IMAPISession::OpenMsgStore: MAPI_E_FAILONEPROVIDER
    Error: The file C:\Users\abc\AppData\Local\Microsoft\Outlook\[email protected] - abc.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.
     at Interop.Redemption.IRDOSession.GetDefaultFolder(rdoDefaultFolders FolderType)

    You're more likely to get help on this either directly from the Redemption people or in a .NET group, since you're not using Visual FoxPro.
    Tamar

  • How to Prevent CacheStore from Getting Called when Loading from DB

    Hi,
    I have a Cache with WriteBehind enabled. The issue is when I'm initializing the Cache from its Persistence Store (SQL Server 2005) I dont want it to call its CacheStore implementation. In the coherence book written by Alexander Seovic it recommends using another Cache to control writing to different Caches, sort of like a global flag, but that will just work in a WriteThrough scenario and not in a WriteBehind. One of my theories is to use a MapTrigger in which when i'm loading from the db I intercept the call and tell the object not write to the DB, maybe through writing directly to the Backing Map though i'm not sure if writing to the BackingMap prevents the Calling of the CacheStore. Please let me know. Tks.

    Hi user13402724,
    The documentation covers a scenario like this here: http://download.oracle.com/docs/cd/E14526_01/coh.350/e14509/appsampcachestore.htm#sthref512
    JK

  • Getting javascript error in jsf portlet

    Hi,
    I wrote a jsf page with command links calling an action in ManagedBean. Its works fine if run as jsf page. But when I associate the jsf page with a portlet and run the page, I am getting javascript error when clicked on the command links.
    Please help me to resolve this problem.
    The jsf page
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib uri="http://www.bea.com/servers/portal/groupspace/tags/activemenus" prefix="activemenus" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <html>
    <head></head>
         <body>
    <f:view>
         <netuix:namingContainer id="facesContent">
              <h:form>
    <f:verbatim>
         <table border="0" width="100%">
              <tr>
                   <td>
                        <h:outputLabel value="Notifications" for="heading"/>
                   </td>
                   <td>
                        (<h:outputText value="#{notificationsBean.notificationsSize}" escape="true"/>)
                   </td>
                   <td>
                             <h:commandLink action="#{notificationsBean.showInWorkList}" immediate="true">
                                  <h:outputText value="Show in Worklist"/>
                             </h:commandLink>
                   </td>
                   <td>
                        <h:outputText value="hai"/>
                   </td>
              </tr>
         </table>
    </f:verbatim>     
              <div style="overflow: auto; width: 100%; height: 200px">
              <h:dataTable value="#{notificationsBean.userNotifs.notificationsList}" var="notification">
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="caseNB"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="####"/>
                                  <h:outputText value="Case ID"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.caseNB}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}" immediate="true">
                                  <h:outputText value="From"/>
                                  <f:param name="column" value="senderNM"/>
                                  <f:param name="pattern" value=""/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.senderNM}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="priorityCD"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Priority"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.priorityCD}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="subjectTX"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Subject"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.subjectTX}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="createDT"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="dd-MM-yyyy"/>
                                  <h:outputText value="Created(ET)"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.createDT}"/>
                   </h:column>
              </h:dataTable>
              </div>
                   </h:form>
    </netuix:namingContainer>
    </f:view>
    </body>
    </html>
    The Managed Bean:
    public class NotificationsManagedBean {
         private UserNotifications userNotifs=new UserNotifications();
         private int notificationsSize;
         private String column;
         private String sortDirection = "asc";
         private String pattern;
         public UserNotifications getUserNotifs() {
              getUserNotificationsList();
              return userNotifs;
         public void setUserNotifs(UserNotifications userNotifs) {
              this.userNotifs = userNotifs;
         public int getNotificationsSize() {
              getUserNotificationsList();
              return notificationsSize;
         public void setNotificationsSize(int notificationsSize) {
              this.notificationsSize = notificationsSize;
         public String getColumn() {
              return column;
         public void setColumn(String column) {
              this.column = column;
         public String getSortDirection() {
              return sortDirection;
         public void setSortDirection(String sortDirection) {
              if(sortDirection != null && sortDirection.trim().length()!=0)
                   this.sortDirection = sortDirection;
         public String getPattern() {
              return pattern;
         public void setPattern(String pattern) {
              this.pattern = pattern;
         public String showInWorkList() {
              System.err.println("test");
              return "success1";
              //TODO Auto-generated method stub
         public String sort(){
              sort(column, sortDirection);
              return "success";
         @SuppressWarnings("unchecked")
         private void getUserNotificationsList()
              ArrayList<Notification> notificationsList = new ArrayList<Notification>();
              for(int i=0;i<20;i++)
                   Notification notif = new Notification();
                   notif.setCaseNB("122"+i);
                   notif.setCreateDT("12-12-2002");
                   notif.setSenderNM("testing1"+(i%3));
                   System.out.println(notif.getSenderNM());
                   notif.setSubjectTX("testing2"+(i%4));
                   System.out.println(notif.getSubjectTX());
                   notif.setPriorityCD("High");
                   notificationsList.add(notif);
    userNotifs.setNotificationsList(notificationsList);
              if(userNotifs.getNotificationsList()!=null)
                   this.setNotificationsSize(userNotifs.getNotificationsList().size());
    * <p>Return the <code>FacesContext</code> instance for the
    * current request.
    protected FacesContext context() {
    return (FacesContext.getCurrentInstance());
    protected void sort(final String column, final String direction) {
              java.util.Comparator comparator = new SortComparator(userNotifs.getNotificationsList(),column,direction,pattern);
              java.util.Collections.sort(userNotifs.getNotificationsList(), comparator);     
              if(direction.equalsIgnoreCase("asc"))
                   setSortDirection("desc");
              else
                   setSortDirection("asc");
    }

    Too less relevant information and too much irrelevant code.
    First of all, which JS error exactly are you getting? You as developer should know better that you shouldn't ignore errors. They contain helpful information about the cause of the problem and thus also how to solve it. Where exactly does the error come from? (view the generated HTML source). Which JSF implementation and version exactly are you using? Which webbrowser exactly are you using? Does it work in/with other/newer versions?

Maybe you are looking for

  • Query not using indexes

    select *           from hrm_career x           WHERE x.begin_date = ( SELECT MAX(begin_date)                          FROM hrm_career y                          WHERE y.employee_id = x.employee_id AND                               begin_date <= SYSDA

  • Canon MP600 driver missing

    After installing my canon mp600 print driver from the cd and down loading it from canon, I can't get it to show up. I can see all the other print drivers that installed with Leopard. Is there any known issue with the mp600 driver? I couldn't find any

  • Cs4 performance

    Just doing my first bit of serious phtoshopery in cs4. WELCOME BACK TO 1996! I have all the open GL stuff turned off. WHen I do a brish stroke and undo it takes a second or so to undo.  adding a gradient to a mask in a 21mb image takes several second

  • Text table in PO

    what is the ptable for PO header & item text? regards VS

  • When trying to install Elements 10 I get message saying failed to install: shared technologies.

    I make it almost all the way through installation and at the end I get a message saying installation could not be completed, failed to install shared technologies. What does this mean? How can I fix it?