[JSF 1.2] - Role Based Web Application: Whats the correct way of doing it?

Hello,
i have a web application that in some pages is role based. I have two database tables, Role and Permissions. Role can have 1..N Permissions and vice versa.
In one page i need to render some forms depending on user role.
What is the best approach to this?
1. I have a sessionBean and on login load all the permissions (it's less secure but faster) based on user role;
2. Everytime i use rendered="#{sessionBean.checkPermissions['can-create']}" i query the database. This checkPermissions gets the user role and retrieve all permissions of that user on demand;
The first option is faster but while the user is logged if permissions changes we might have problems.
The second, if i user 3 rendered attributes i do 3 queries to the database.
Is rendered attribute the correct implementation?
Regards.

Yes, the rendered attribute is the correct way to accomplish this.
As to the question of caching the result or querying the database each time, that is something that needs to be answered on an application by application basis.

Similar Messages

  • I have a macbook air late 2010 and keep getting a warning that my hard drive is full and to delete things so I purchased a external hard drive (1TB) but I'm just not sure what the correct way to transfer and store files to the external drive is. First MAC

    I purchased a macbook air about 5 months ago and lately i keep recieving a warning that the hard drive or disk is full and that I will need to move items to trash in order to free up space on it. I purchased a external hard drive 1 TB but I'm very new to mac and ios and unsure as to how I'm suppose to transfer my files (video, pics, music etc.) from my mac over to the external hard drive in the correct way so I won't end up deleting them permenately or screwing anything up with my mac as far as the applications and programs being able to run. Am I supposed to just copy to the external hard drive and then move to and empty the trash? That's pretty much all I could come up with, but then what if i need or want to access that file again at a later time. Also, I have an i Phone and i pad so with i cloud it automatically syncs all my purcheses and if i delete something from itunes on my mac it deletes from my ipad.
    I'd appreciate any kind of input i think im just a little lost here. I have to say i love my Mac and wouldn't trade it for anything (except maybe a macbook pro w/more memory)... Is there something I'm missing???

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

  • XFI Drivers - Whats the correct way

    Considering that after I installed my XFI Extreme music card into my PC and installed the drivers from the CD played games, rebooted and it asks me to reinstall the drivers for the multimedia device.
    What is the correct way to install drivers for these cards so that you can reboot your computer without it freaking out?
    The only way i've been able to successfully keep the XFI installed is by doing these things in order.
    Uninstalling the software
    Uninstall the drivers via the CD uninstall tool
    Cleaning the registry with aggressi've options (JV 6 power tools)
    Using Driver Cleaner Pro and removing all creative audio and Creative audio lite files.
    turning the machine off and moving the Sound blaster card to another PCI slot.
    Turning back on and using the drivers off the CD.
    If i use any other drivers, the Web update 2 or Beta 3, the card will not install.
    this is on this system:
    AMD Barton CPU 2500+
    ASUS A7n8X-x motherboard 00 bios rev
    WD800 80 GB hard dri've
    Nvidia Geforce 6600 GT vid-card
    GB IBM ram

    Well this is a strange problem... So what you are essentially saying, is that Windows doen't keep the the records of your newly installed hardware... Or the hardware may be assigned to new resources after restart, which might cause the Installation to commence.
    The 2nd can happen pretty often on an ACPI System, or if you change the "Plug and Play OS" section in your BIOS Setup. But even if this happens, Windows should have still kept the Installation Information in its registry, so it wouldn't bother you searching for the drivers.
    So I believe it has to lie with your Windows installation...
    What exactly do you mean with "the card will not install" with the newer drivers? Are you getting an error message?
    Have you tried the?infamous manual installation? (Extract your downloaded drivers, then go to the \Drivers subfolder and execute Setup from there. Select the "...Creative shared files" option.)

  • Re: Whats the correct way to layout a JFrame

    Hi,
    I am fairly new to Java and have just started to put together my first big application. Its a simple application written in Swing where the user is first shown a login screen, when he presses the login button and is taken to another screen where he/she is asked 10 questions and then when they finish this they are taken to a results screen and then exit.
    To do this I have a JFrame and three different JPanels (one for each screen - login, question and result) and when a user presses a certain button on each screen it triggers an actionEvent and the next JPanel is loaded onto the JFrame.
    This is fairly standard stuff, but my query is this. As my program gets bigger and I have more and more JPanel screens linked in with each other. Putting them all in one class seems very messy, but if I put each of the JPanels in a different class (for example) - how does my main class with the main JFrame in know when an actionEvent has been triggered inside one of the JPanels.
    My question is really this... what is the best way to lay out a bigger program like this?
    Many Thanks
    David Wraith

    How do I call a method in my mainClass, when that is where I loaded the JPanel class from?
    I understand how to call a method from my mainClass in the JPanel class.. but not go the other way?!?
    many thanks
    David Wraith

  • What is the correct way of doing conditional output?

    This
    <h:outputText value="#{payee.discriminatorValue=='P' ? payee.firstName:' '}"/>works , and yet this
    <h:outputText value="#{payee.discriminatorValue=='P' ? ' ':payee.orgRegistrationNumber}"/>fails with the following parse error :
    SEVERE: Error Rendering View[claimantresult.xhtml]
    com.sun.facelets.tag.TagAttributeException: /claimantresult.xhtml @158,103 value="#{payee.discriminatorValue=='P' ? ' ' :payee.orgRegistrationNumber}" Error Parsing: #{payee.discriminatorValue=='P' ? ' ' :payee.orgRegistrationNumber}
         at com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:259)
    Caused by: javax.el.ELException: Error Parsing: #{payee.discriminatorValue=='P' ? ' ' :payee.orgRegistrationNumber}
         at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:160)
         at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:177)
         at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:221)
         at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:81)
         at org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:107)
         at com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
         ... 61 more
    Caused by: com.sun.el.parser.ParseException: Encountered ":payee" at line 1, column 39.
    Was expecting one of:
    ">" ..

    Which JSF version?
    Try gently using spaces after the colon:<h:outputText value="#{payee.discriminatorValue == 'P' ? ' ' : payee.orgRegistrationNumber}"/>And if this doesn't help, what about:<h:outputText value="#{payee.discriminatorValue != 'P' ? payee.orgRegistrationNumber : ' '}"/>Or just<h:outputText value="#{payee.orgRegistrationNumber}" rendered="#{payee.discriminatorValue != 'P'}" />

  • I can't seem to wrap my head around resizing/resampling and what is the correct way of doing it (CS5)

    i know this is probably fairly basic but it's escaping my grasp at the moment.  for whatever reason my teacher never really went over this other than to say 300dpi was what you want for the best quality prints, so i've always just sort of worked with that in mind and never gave much consideration to "re-sampling" or what it was necessarily, the box was just always checked.  im not sure how much, or if, i've been screwing myself all this time, and i know this isn't THAT difficult so any advice would be appreciated.  and i apologize if this has been gone over to death, but i wanted to use an example to help (hopefully) understand this better.
    oh, and most of my work i display on the internet with the idea that it will in the future be printed, or with the notion that it can at least be printed.  i've heard for web all you need is 72dpi, but since i expect it to be printed i just do 300dpi and save it normally.  is this a bad move on my part and am i missing something by not saving it "for web and devices"?
    example:
    so i have an image i downloaded from the internet.  as you can see it's at 72DPI and around 12.7x17.7in.
    let's say i want to enlarge it to an even 13in and increase the resolution to 300DPI.
    i'm confused as to when i want to uncheck resample.  since it locks the pixels, if i increase the resolution the image gets smaller, and vice versa.  i'm not sure i grasp when it's beneficial to have resample unchecked.
    i feel really stupid, because i know all of this is pretty noobish but we hardly touched on this and the option of saving for web & devices (not at all) in my design class.  thanks for any help.

    just to clarify the point of the example i'm using...
    let's say i'm going to use part of the knight as a composite on a larger canvas.  i'm basically wanting the image to be as "optimal" as it can be, and large enough so that it can be further resized larger (if need be) without seriously compromising the quality.  i know that it's easier make a larger image bigger than it is a smaller image.
    i guess this way of working helps me keep the number of variables down.  like if i take the helmet and put it on the image of a woman in bikini.  even if the images are different sizes i should be able to scale them until they are proportional, and then if there are any issues i know that it probably has something to do with the original source and not me.
    does any of that make sense?
    honestly, i'm not sure if my way of thinking is ill thought or not.  i'm assuming if i have an image made up of several other images, all at varying resolutions, the final product will be a mess.

  • Integrating a Java web application into the SAP NetWeaver Portal

    Hello experts,
    We have a requirement to integrate a Java based web application into the SAP NetWeaver Portal using iView/iFrame technology. The Java based web application is completely independent from the SAP environment but should be displayed as part of the SAP Portal environment. The other requirement is the main navigation menu for the Java based web application should be configured and provided in the SAP Portal.
    Any pointers on how exactly this can be done would be of great help.
    Also how can the SSO (Single-Sign-On) to the Java application be implemented so that the user can logon to the java application through the portal without providing the user credentials again.
    Thanks in advance.

    Hi,
    I think you can use URL iviews to integrate your java web application with EP. you have the option of doing SSO with the application as well.
    Have a look at the sap help material
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CreateURLiviewintotheSAPEP+portal
    Regards,
    Ganesh N

  • I want to connect a Mac mini to a Samsung 40", Whats the best way to do this?

    I want to connect a Mac mini to a Samsung 40" LED tv to use as the monitor, whats the best way of doing this?

    Understand that there is one HDMI port on your TV that is specifically designated for PC connectivity. The order that the TV or Mini are powered on may determine your results. For your specific TV model, check buyer reviews on Amazon or elsewhere that can include optimum TV/Computer settings adjustment for improved viewing results.

  • SSO from portal to Java based web application not happening

    Hi,
    We are trying to configure SSO from SAP Enterprise portal with Java based
    web application(Solaris on SPARC 64 bit).
    Then we downloaded library files for "Solaris on SPARC 64 bit" from
    service market place from the path "Support Packages and Patches"
    Additional Components" SAPSSOEXT".
    We are successful in sending the portal side cookie to the application.
    But while loading the library files we get the following error
    INFO | jvm 1 | 2009/04/13 04:47:00 | java.lang.UnsatisfiedLinkError:
    /usr/local/blackboard/apps/tomcat/lib/libsapssoext.so: ld.so.1: java:
    fatal: /usr/local/blackboard/apps/tomcat/lib/libsapssoext.so: wrong ELF
    class: ELFCLASS64 (Possible cause: endianness mismatch)
    Can you please suggest us what went wrong in this whole process.
    But when i tried with the 32 bit library files i was able to load libsapssoext.so file but when I
    tried to initialize libsapsecu.so i got the below message
    java.lang.Exception: MySapInitialize failed: rc= 14
    Also do we require to take"SAPSECULIB" from Support Packages and Patches" ...>Additional Components" ...>SAPSECULIB" ...>SAPSECULIB 5.4  for this SSO activity.
    Please get back on this ASAP as we are nearing the golive date.
    regards
    Bharath

    hi,
    am facing similar issue... i.e.
    java.lang.Exception: MySapInitialize failed: rc= 14
            at com.mysap.sso.SSO2Ticket.init(Native Method)
            at com.mysap.sso.SSO2Ticket.<clinit>(SSO2Ticket.java:27)
            at org.apache.jsp.index_jsp._jspService(index_jsp.java:92)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    static beendet.
    java.lang.Exception: MySapEvalLogonTicketEx failed: standard error= 9, ssf error= 0
    CustomeSSO: Object is null.
    pls. help me in resolving it.
    rgds,
    santosh malavade

  • BC E-commerce integrated with Subscription Based Web Application

    I am considering using BC for my company's corporate website as well as the online store.  We sell a subscription based web application which will have 3 or more flavors (products) and will need to bill customers on a recurring monthly or annual basis.
    For the monthly subscriptions, we want to bill the customer based on the "highwater" mark with regards to user quantity for that given month.  This gives the users the flexibility to add/remove users freely without the fuss of having to contact a sales representative to adjust their account/recurring order. 
    I would imagine this would happen one of two ways:
    The user signs up creating their account both in our web application and the ecommerce site and is billed for the first time.  In the ensuing months, either: the e-commerce site communicates with our web application to get the high water mark quantity for that billing cycle or
    Our web application sends a new order each month to the e-commerce site, including the highwater mark quantity, giving the illusion to the user that it is indeed a recurring order but behind the scenes they are actually individual orders.
    Annual subscription customers are a bit more challenging.  We still want the users to have the flexibility to add/remove users with minimal effort. However, since they are being billed on an annual basis, prorating additional users will be necessary.  So if customer who previously purchased 5 licenses, adds 5 more licenses during month 6 of their annual subscription term, we would need the e-commerce solution to bill them once immediately for the 50% prorated 5 licenses, then bill them 6 month's later for the total 10 license subscription renewal.
    At a bit of higher level, we would prefer the customer to manage all their billing/account info within our web application rather than going to an external store to do so.
    One other caveat, we would prefer not to store credit card info on our site.  Preferably that would be stored in our payment gateway (Auth.net).  This may or may not affect the workflows described above.
    My Questions:
    Can the BC e-commerce solution support the workflows above?If so, is there any documentation/resources available to research this further?
    Are there any BC customers that currently do something similar?  If so, who and how similar?

    Hi Greg,
    From what you have described it seems to me that you need some complex server side logic which BC doesn't allow. In any case you'd have to develop an app that communicates between BC and that other application through our API, which will control the orders as per your requirement. In particular, there's no easy way for end user to control their recurring monthly or annual subscription, there's no way to apply immediate discounts according to earlier purchases that will satisfy this requirement "if customer who previously purchased 5 licenses, adds 5 more licenses during month 6 of their annual subscription term, we would need the e-commerce solution to bill them once immediately for the 50% prorated 5 licenses, then bill them 6 month's later for the total 10 license subscription renewal", you can't build in this functionality into BC " the e-commerce site communicates with our web application to get the high water mark quantity for that billing cycle" and there are few more things there which suggest to me that you need something custom.
    Cheers,
    -mario

  • ISA apps in CRM 2007 still JSP Struct based Web application OR BSP Web UI

    Hi, SDN Experts.
    Is the ISA (Internet Sales) appications in CRM 2007 stil runs in JSP Struct based Web application framework OR now it has switch to the BSP Web UI based web applications?
    I know that the previous PCUI based applications have been switched to BSP Web UI based applications, but I am not sure about the ISA.
    Can anyone also point me to some resources/materials to identify what changes CRM 2007 compare to CRM 2005  /6.0 in details?
    Thanks for advise,
    KC

    KC,
    ISA in CRM 2007 is in JSP still..
    www.help.sap.com would be the best option to start
    Regards,
    Vinay

  • What is the correct way to set a web application to use HTTP or HTTPS?

    In the past I've always created an HTTP web application as the default zone. Then extended the web app, creating a new IIS website on port 443 and enabled SSL. This seems to have worked fine, but I recently read an article stating that it is not good to
    extend a web app unless absolutely necessary. So can someone tell me what the proper way is to configure a single web application to work with HTTP and HTTPS?

    Extending the web application to support both HTTP and HTTPS is a perfectly good method and in fact is the only way to have a web application support both so what you've done is fine.
    If the web application will only use HTTPS, you can set this up when you first create the web application. Specify port 443 and the SSL option (and ensure the URL has an https://) when creating the web application. You'll need to install the certificate
    in IIS once the web application has been created.
    Jason Warren
    Infrastructure Architect
    Habanero Consulting Group
    habaneroconsulting.com/blog

  • Browser based InfoPath form deployed on a Claims based Web Application calling a Secure Web Service via Data Connection

    hi,
    We have a Browser based InfoPath Form deployed on a Claims based Web Application. We are tyring to call WCF Services that are secure using Certificates via the Data Connections on Infopath Form.
    Earlier we used to get the Data in BCS External List via the WCF Services and the Data Connections used to get the Data from the BCS External List. Due to Performance Issues, we want to remove the BCS External List and straightaway call the secure WCF Services
    via the Data Connections.
    Have anyone implemented this scenario.
    Thanks
    Ram
    Thanks Ram

    Hi Ram,
    As these are browser based InfoPath forms, you have two options 
    1) Deploy as sandboxed forms
    In this case you have to create a secure store application id and then set the credentials for that account.
    You then have to export the data connection to Data connections library and modify the .udcx file to utilize the newly created secure store application id.
    This may sometime give issues related to sandboxed code service. You have to give permissions on the secure store for the user account which the sandboxed code service is running.
    2) Deploy as administrator approved forms
    This would be ideal way of doing things as you have full control over the web request if you write code behind InfoPath forms.
    3) Deploy as a Hybrid solution
    a) Write a full trust proxy solutions (extend SPProxyOperation class and override execute method) and make the web request call inside this and return the response
    b) Invoke above operation from the sandboxed InfoPath form's code behind by SPUtility.RegisteredProxyOperation(four part assembly name, operation args)
    Hope this helps.
    Thanks,
    Srikanth

  • How to use Crystal report viewer in a portlet based web application

    I am using JRC to view crystal reports in porlet based web application. Following is the code in JSP
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    With this code , report gets displayed in the portlet but none of the actions on thre report like next page click , search button , opening subreport , clicking on drill-downs are working . The error in the explorer console is as shown below
    Error: CrystalViewerCrystalEvent is not defined
    javascript:CrystalViewerCrystalEvent('CrystalViewer',%20'tb=next')
    PageSource of the web page shows the CrystalViewerCrystalEvent javascript function defined but for somereason its not recognized by the portlet. Has anyone worked on displaying crystalreports in a portlet ?

    Code attached
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <portlet:defineObjects />
    <%
         // This sample code calls methods from the CRJavaHelper class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the CRJavaHelper class.
         try {
              String reportName = "ProactiveEventsSummaryData.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   //clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                                  clientDoc.setReportAppServer("inproc:jrc");
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Edited by: teethoma on Nov 30, 2009 10:06 AM

  • There is an inconsistency between the authentication mode of target web application and the source web application after migrating to claims

    I've had my farm upgraded from SP2010 to SP2013 for over 6 months now and all is well, however, I was refreshing my staging environment from production and I noticed that one of the databases still shows these errors when I run test-spcontentdatabase:
    Category             : Configuration
    Error             : False
    UpgradeBlocking : False
    Message           : The [SharePoint Web App] web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against
    a windows classic authentication mode.
    Remedy              : There is an inconsistency between the authentication mode of target web application and the source web application. Ensure that the authentication mode setting in upgraded web application is the
    same as what you had in previous SharePoint 2010 web application. Refer to the link "http://go.microsoft.com/fwlink/?LinkId=236865" for more information.
    This doesn't make sense considering I converted the production web application to claims during the upgrade and then verified all sites were working with claims logins. I also verified that existing AD user identities were converted to claims by checking out
    the database tables. Yet test-spcontentdatabase still thinks there is a mismatch here.
    My farm is SP1 and no further CUs. The point of this particular refresh is so I can update to the November CUs in my test farm. Anyone else see this? Seems like it's a bug/safe to ignore because my stuff is working.
    Thanks,
    Aaron

    See:
    http://thesharepointfarm.com/2014/11/test-spcontentdatabase-classic-to-claims-conversion/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for

  • Problem: Deploying application in OC4J

    HELP ME!!! I'm deploy j2ee application which is a simple SessionBean, to my OC4J container (for example, OC4J_my) Then I try to start this application via JDeveloper903. Application fails with next error: javax.naming.NamingException: Lookup error: j

  • Extract XML output to a file from a Query

    Hi Gurus, I want to know how can I achieve this. Please post some sample code. i want to extract output of following query into xml select customer_name,address,phone,email from tn_customers where rownum <1001 here i wil get 1000 records. Is there an

  • Process Order Partial confirmation (PNCF) and Final Confirmation

    Hi expert, I'm already running t-code COHVPI to mass processing process order so it status change from TECO to CLOSED. But there is an error message "process order partially confirmed". Is that true if process order must be final confirmed before it

  • Clicking Lync meeting URL in Chrome does not open Lync

    We have some staff that use Chrome as their default browser. In OWA, if they click on a URL to join a Lync meeting, and the Lync 2013 App is installed on their computer, the App does not open.  Instead a Lync Web App opens. Is this happening because

  • Adobe form printing on letter head as background

    Hi, I have developed BANK letter in HR  using adobe forms. Now user want to get PDF  on letter head . How to get background as letter head. I want to select differnt letter head PDF depends on company code (BUKRS). Where to write condition checking f