Security in an jsp application using BIBeans

Hi all,
We are developing a system with BIB to access OLAP 9.2.0.5. We need to implement some access rules at database level, i.e. user 1 can read levels 1, 2 and 3 of a hierarchical dimension, but user 2 can only read level 3. We do not know how to pass this database rules to BI catalog user, or replace this BI user with database connection information, to have more than one different user connection accessing the system. Anyone can help me?
thanks in advance,
Alexandre Martins - Commit Consultores - Brazil

We are developing a jsp application with TAG libraries
Ex.:
<orabi:BIThinSession id="BIThinSession1" configuration="/Project1BIConfig1.xml" >
<orabi:Presentation id="untitled1_Presentation1" location="Presentation1" />
</orabi:BIThinSession>
<FORM name="BIForm">
<!-- Insert your Business Intelligence tags here -->
<orabi:Render targetId="untitled1_Presentation1" parentForm="BIForm" />
<%-- The InsertHiddenFields tag adds state fields to the parent form tag --%>
<orabi:InsertHiddenFields parentForm="BIForm" biThinSessionId="BIThinSession1" />
</FORM>
This application hás a login screen, where the user will pass his database username and password, which corresponds equally to a user of same name at the BI Beans catalog.
Here is the moment that we face the Problem: We can not change the user to switch to the database user. The catalog user is switched by BIUser().
Workarounds performed:
     1 – We created a ConnectionProvider class to establish the connection with the properties and another class - AuthenticationProvider - to pass parameters to the connection.
          Problem: Could not pass parameters to Application Authentication class. Tried to force application to connect to authentication or vice-versa to pass username that was informed at login screen but this does not work.
     Ex.: trying to set this classes at configuration file (.xml).
     User “ALEX” has database access (OLAP , MOLAP) and catalog access .
public class AuthenticationProvider implements oracle.dss.security.AuthenticationProvider {
public void authenticate(Hashtable properties) throws BISecurityException {
properties.put(“user_name”, “ALEX”);
properties.put(“password”, “ALEX_1”);
public class ConnectionProvider implements oracle.dss.security.ConnectionProvider {
public Object connect(Hashtable properties) throws BISecurityException {
Connection conn = null;
try {
DriverManager.registerDriver(new OracleDriver());
String sUSER = properties.get("user_name").toString();
String sPW = properties.get("password").toString();
String connStr = "";
if(properties.get("jdbctype").equals("thin")) {
connStr = "jdbc:oracle:thin:@" +
properties.get("hostname") + ":" +
properties.get("port") + ":" +
properties.get("sid");
conn = (Connection)DriverManager.getConnection(connStr, sUSER, sPW);
catch(Throwable t) { throw new BISecurityException("Erro na conexão!", t); }
return conn;
     2 – Tried to get configuration through session searching all the connections and changing user to desired connection (in this case “thin”, MM.MDM) and reconnecting or disconnecting and reconnecting again.
At this point, debugged the database connection and could see that username actually changed, but when the program reached the open presentation TAG received an error because TAG could not understand the connection.
     Ex.: This is in between session TAG
<orabi:BIThinSession id="BIThinSession1" configuration="/Project1BIConfig1.xml" >
<%
ManagerFactory mf = BIThinSession1.getManagerFactory();
MetadataManager mdm = null;
if (mf != null) {
mdm = (MetadataManager) mf.lookupManager(
ManagerFactory.METADATA_MANAGER, null, true);
if (mdm != null) {
try {
int iAttachStatus = mdm.getAttachStatus();
if ((iAttachStatus != MM.ATTACHED) &&
(iAttachStatus != MM.ATTACHING))
mdm.attach();
Connection[] connectionArray = mdm.getConnections();
if (connectionArray != null) {
int count = connectionArray.length;
for (int index = 0; index < count; index++) {
String driverType = connectionArray[index].getDriverType();
if ( (driverType != null) &&
(driverType.equals(MM.MDM)) &&
(connectionArray[index].isConnected()) ) {
if(driverType.equals(MM.MDM)) {
connectionArray[index].setUsername("ALEX");
connectionArray[index].setPassword("ALEX_1");
connectionArray[index].reconnect(connectionArray[index].getPropertyBag());
catch (Exception ex) {
ex.printStackTrace(); // just for demo purpose
%>
<orabi:Presentation id="untitled1_Presentation1" location="Presentation1" />
</orabi:BIThinSession>

Similar Messages

  • Portal Security with existing JSP Applications

    Hello,
    we have some existing JSP Applications an want to include them into out portal. They are currently running on iAS as standalone applications. But we also want to protect them using portal security.
    How is it possible to use Portal Security for those JSP Applications.
    Regards,
    Frank

    Hello,
    currently I don't need to include them as portlets.
    I included the first Page as jsp Report... because of that, this jsp is secured. But my application has more jsps.
    Probably I could set an sessionvariable in the first protected jsp and check it in all other jsps. If this sessionvar is not existing, the user is not allowed to see this application.
    Currently I have no other idea.
    Regards,
    Frank

  • How to use debug my jdevloper devloped jsp applications using tomcat 4.0?

    hello,
    how to use debug my jdevloper devloped jsp applications using tomcat 4.0?
    how to run with using tomcat path with browser?
    can any one help?
    thanks
    pullareddy

    Hi Pullareddy,
    Charles' answer will work for Servlets in Tomcat, but debugging JSPs is a bit more complicated than debugging Servlets.
    Here's what you need to do:
    (I don't have Tomcat, so I don't know the details of Tomcat configuration files and I can't guarentee that Tomcat provides the flexibility so that you can configure it for debugging JSPs. Each application server is configured a bit differently. Hopefully you can adjust the following instructions to Tomcat.)
    1. You need to replace Tomcat's JSP engine with OJSP and you need to setup debugging parameters for OJSP.
    This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
    Here are some tips:
    A. You'll probably need to specify the following jars in some Tomcat config file: ojsp.jar, ojsputil.jar, xmlparserv2.jar, ojc.jar, and jdev-rt.jar.
    B. The OJSP class name is oracle.jsp.runtimev2.JspServlet.
    C. The debug parameters are:
    debug_mode = true
    developer_mode = true
    encode_to_java = true
    emit_debuginfo = true
    jspjavacompiler = oracle.jdevimpl.jsp.JspOjcCompiler
    2. You need to make Tomcat start the Java command with debugging options. (This is what Charles was talking about. One of the debug options is -XXdebug). This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode". Please read that documentation help topic.
    3. You need to delete any old .java or .class files which were created in the past for your JSP. If you leave old .java or .class files around, then the debugger may not be able to stop at breakpoints in your JSPs. So, be sure to clean up old files.
    4. Set your project settings for remote debugging. This is on the Debugger - Remote panel in the Project Settings dialog box. You probably want either Attach to OJVM or Attach to JPDA. Which radio button you choose depends on what command line options you specified in step 2.
    -Liz

  • How to solve the error while  Deploy a BC4J JSP Application using tomcat,

    hello,
    how to avoid the following error?
    i am using jdevloper for devloping jsp applications.
    after that i am calling the jsp page using tomcat4.0 ,i followed the steps according docs by jdev team,
    i am getting the following error how to solve this,
    can one help?
    =============================
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.compiler.CompileException: /AccountView_Browse.jsp(4,0) Unable to load class oracle.jbo.html.jsp.datatags.ApplicationModuleTag
    at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)
    at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:829)
    at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:153)
    at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:1039)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
    at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    ====================
    thanks
    pullareddy

    I had very similar problems with adding the correct JDeveloper .jar files to Tomcat's lib folder, but did eventually resolve my issues.
    The problem I am having now, however, is the following error message:
    Error Message: oracle.jbo.html.RequestParameters.addParameter(Ljava/lang/String;Ljava/lang/String;)V
    Yes, I have deployed the bc4jhtml.jar file from JDeveloper to Tomcat\common\lib!
    My web-app is a very simple BC4J JSP application. I have one BC4J component in its own project and JAR file, and one JSP referencing that BC4J component - I deploy the BC4J JAR along with the WAR file from the JSP project. Needless to say, the JSP works fine within JDeveloper..!
    I'm using JDev 9.0.3 and Tomcat 4.1.12. Does anyone have any suggestions?
    Thanks,
    S.

  • What is the security context when deploying application using SCCM 2012?

    As far as i know when using Group Policy the software is always installed under SYSTEM security context. However i cannot find any information related to SCCM 2012 (and deploying applications) security context.
    Also is there a difference in doing "Install for User" or "Install for Device/System"?
    Thanks

    Thanks. Just to confirm that if you use Group Policy and you Publish the msi for user when the user install it from Add/Remove Programs it is still going to be executed in SYSTEM security context?
    And while we are on this topic - is the above (about the security context in SCCM 2012) written anywhere in some official MS web page?
    Not sure about the context for Intellimirror, but for ConfigMgr it's as Ronnie and Torsten stated. This may be documented somewhere, not sure. Not everything is documented though -- in fact, I'd say less than 25% (probably less than 10%) of everything
    to be known about ConfigMgr is officially documented. Note that this is the same for any product -- there simply are far too many permutations and possibilities to document them all. 
    Jason | http://blog.configmgrftw.com

  • How to deploy JSP application using inbuilt OC4J of Oracle BPEL??

    I have to combine JSP pages with BPEL and for that i have to deploy applications with the inbuilt OC4J i dont know from where to deploy the whole application and how to write build.xml for deploying using obant

    You can deploy your application to the Oracle Bpel Server by specifying a new Application Server connection that points to yout LocalBpelServer.
    You don't need to write a build.xml file, you can just use the Deployment Descriptor functionality of JDeveloper which is much more easier than using the obant.
    The process of automatically deploying your UI-application to the Oracle Bpel Server, without any manual steps or restaring the server, is fully documented on the following blog: http://iadvise.blogspot.com/

  • Accessing ApplicationModule in Struts/JSP application using JDev 11g TP3

    Hello All,
    I am using Oracle JDeveloper 11g Technical Preview 3
    I got one "AppModule" created under my (Struts/jsp) project "MODEL" structure.
    Now, how can I access that ApplicationModule in my Action Class
    BC4JContext bc4jContext = BC4JContext.getContext(request) is not working, returns null everytime,
    Can anyone please let me know, how can I achieve this?
    Thanks
    user625610

    Hi don't know your name,
    if you get null from BC4JContext.getContext(request) you should check you configuration. Check your web.xml file where you should see something like...  <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>mapping</param-name>
          <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
        </init-param>
        <init-param>
          <param-name>BC4JDefinition</param-name>
          <param-value>your_model_project_name</param-value>
        </init-param>
    ...The init parameter BC4JDefinition is used to set up the context in the BC4JRequestProcessor class. My guess is that you don't have this parameter in your web.xml (or are pointing to a wrong name). the value should be the name of the cpx file without the .cpx you have in your viewcontroller project.
    If you have migrated your project from JDev 10.1.2 you should check the 10.1.2 web.xml against the 11TP3 web.xml after the migration. The servlet part should be identical.
    Timo

  • Using MySQL with JDeveloper 3.2 in a BC4J JSP Application

    Hi!
    I'm trying to create a BC4J JSP application using MySQL.
    I'm using the mm.mysql-2.0.4-bin.jar which I've registered in
    IDE and ClassPath. I created a connection with the option Other
    JDBC.
    I tested successfully the connection in the Connection Manager.
    After, I created a new project with BC4J. Using the 'tester' I
    got an error: no suitable driver.
    While editing the created view object I got a SQLException when
    I clicked in Attribute Mapping.
    How to solve this problem? I realized that other people here had
    this kind of problem but nobody gave a definitive solution.
    Thanks.

    Ok, I'm doing exactly the same Jdevloper BC4J over mySQL.
    I got one step further.
    In order to solve your problem:
    1. Add AddJavaLibFile ../lib/mysql_comp.jar (or whereever
    is your mysql driver) in bin/jdev.conf.
    resart the application
    In that case your driver will be available for all tasks.
    It works for me.
    My problem:
    When I run the Tester for my generated module, I obtain:
    No attribute with the Primary key property was found...
    Can you emeil me the procedure if you find how to use
    BC4J over mysql

  • What components do I need to develop and run JSP applications?

    I am currently developing a JSP-based application using Apache, Tomcat, MySQL, and JDBC. I'm considering switching to Oracle since I know it better and it has better support for certain capabilities.
    But, it's very confusing trying to determine from the Oracle sites just what I need and which platforms are supported. What do I need to buy and what can I download?
    So, which Oracle components do I need to develop and test JSP applications using Application Server? I'll probably get into XML as well.
    Does any of it run on Win98, WinNT, Win2000, or SolarisIntel? I likely will not deploy on any of these platforms, but it would be convenient to develop on my Intel laptop, if possible.
    --Terry Westley, [email protected]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Oracle's IAS includes an Apache and Jserv with JSP runtime by default.
    You could simply migrate your Apache/Tomcat JSP to Apache/Jserv/Oracle JSP without problems, including win32 plattform.
    To run Servlet compliant with JSDK 2.2+ you has to use Apache mod_ose module with your servlets and jsp running inside the Oracle JVM, this combination is more scallable and secure for big projects, but it requires more hardware for your laptop.
    Best regards, Marcelo.

  • How can I port an existing Tomcat (JSP) application in SAP Netweaver 2004s

    Hi All,
    I want to port an existing JSP application (using Tomcat as Web server) in SAP Web AS 6.40.
    Please any one suggest me.
    Eagerly looking forward to your reply......
    Thanks and Regards
    Avijit Dhar

    Hi,
    The maximum number of work processes depends on several things like the below.
    1)  Majorly on Your primary Memory
    2)  Hardware capacity
    3)  Operating systems
    4)  SAP version as well...
    You need to calculate the work processes with your primary memory.
    Every work process should take 150 mb space on memory.. so you need to increase the work processes that should be campatible with your primary memory.
    And please read the OSS notes as suggested by our frnds then go ahead with your rquirement.
    -Srini

  • Hi, can any one know how to run .jsp application in weblogic 8.1

    hi,
    i am using weblogic 8.1 ,
    in weblogic 6.1 and 7.0 there is directory called default web apps under bea\user projects\application.we placed all .jsp file under here.
    now bea deleted this folder.
    now how to set of environment for run .jsp application using weblogic8.1
    can one may help thanks,
    jp reddy

    hi,
    i solve this one after check bea documnetaion.
    with regards
    jp

  • URGENT!!! can I borrow a valid jserv.properties file for a JSP application ?

    Hi there !
    I'm running Oracle enterprise edition on NT with oracle http server under apache.
    I created a JSP application using jdeveloper
    and deployed it to the web server.
    Now I'm still getting getting nullPointer exceptions after I have modified the jserv.properties file according to the documentation
    Can someone give me a file that is working for her/him under the above described circumstances ?
    Many Thanaks in advance
    Tony
    null

    laredotornado wrote:
    Hi,
    This might not be a JSF question, but I thought I'd start here as I'm building a JSF application. Upon startup of my Weblogic 9.2.2 server, I see these error messages
    log4j:WARN No appenders could be found for logger (org.apache.myfaces.webapp.StartupServletContextListener).
    log4j:WARN Please initialize the log4j system properly.
    One complication, my log4j.properties file is actually called "my.properties" (bizarre company reason). Is there somewhere in my faces-config.xml file or an equivalent where I can indicate what log4j properties file I'd like to use?Your company policy is to use non-standard names so that things must be configured manually? Interesting.
    In the past people created a servlet those sole purpose was to configure log4j in the initialization sequence and then do nothing.

  • Sending emails from the JSP application

    hi,
    I am trying to send emails from my jsp application using JavaMail API's.
    I am using my own mailserver.
    Iam able to send emails from my applications to the ids of my own mailserver but not the yahoo,gmail and rediff ids.
    Is it because of blocking of any firewall or somthing else to do within my application?
    Can anyone help me in this?
    Thanks a lot.

    Please read the JavaMail FAQ.
    It's probably due to the configuration of your mail server,
    which is refusing to relay your messages.

  • Navigation between records in a JSP application

    Hi,
    I would like to know how to provide navigation between records in a tabular form liked JSP application using JDeveloper 3.2
    without using the Oracle or Default template.
    I can do it with a singular record view but not in a tabular view. I like to know now I can mimic the navigation provided in Oracle template in which the current selected record is hightlighted. Can we navigate between records using Up and Down
    arrow key like in Oracle form instead of using Navigation Bar. Please provide details code.
    Thanks a bunch,
    Khanh Hoang

    You can refer to the source code in jbohtmlsrc.zip for deriving your own implementation.

  • Integrating a jsp application with oracle workflow

    Hi,
    I would like to integrate a jsp application with oracle workflow.
    My jsp application use BC4J, and if i want to use the java
    interface of workflow i need to have the java.Sql.Connection of
    my application.
    There are a way of getting this Connection in the BC4J?
    thanks
    rjc

    You can check the source code at:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/text.920/a96517/acase.htm#632511
    You can also use the JDeveloper wizards that can generate JSP code. You can download them from: http://otn.oracle.com/products/text/
    and then click on software (left frame).

Maybe you are looking for

  • [Oracle 8i] Query for N rows by column value?

    I was just wondering if what I want to do is possible within my query (rather than programmatically)... I want to return the N most recent records for each unique value in a particular column. Here's a sample table: CREATE TABLE     orders (     orde

  • Digital out not working (unibody)

    I have been using my digital out for some time and now i noticed its not working. When i go to the system panel it says headphones when i plug in the digital audio out connector rather then saying digital audio out. NOthing has changed otherwise. Sam

  • Verizon Media Manager and Aperture

    I just upgraded from iPhoto to Aperture.  Verizon Media Manager (VMM) sort of recognizes Aperture, but not completely.  It finds the Faces and Locations, but not the Projects.  I am using version 9.1.42 of VMM.  I saw in the pinned section that someo

  • RFC used to query customer credit limit and current usage

    Hi, I have been asked to provide information about a customers credit limit and usage. I can see this information is in table KNKK but I cant find any suitable RFC (needs to be remotely enabled) to access this data. Does anyone know where I can acces

  • Problem with Logic/external HardDisk - NEED HELP!

    Hi Everybody I've got a big problem with my Logic Projects. I am recording Songs with my band and it's all 24bit, 96 KHz. With more than about 20 Tracks playing simultaneously, Logic shows an error that the disk is too slow. For all the Audio stuff,