Reg: Table size adjustments in adf 11g application.

Hi All,
We have developed an application in ADF 11g. In this we fetching the tables from the database. When viewed, the size is not appropriate. We need to adjust the width and height of the tables as default.
Can anyone help us regarding this.
Thanks,
Shanmukh

Hi Shanmukh,
If you wrap your table in a component that stretches its children, your table will be adjusted to fill aviable space.
Try to surround the table with an <af:panelcollection/> or an <af:panelsplitter/> or an <panelStretchLayout/>.
This should work.
Good Luck,
Luc Bors

Similar Messages

  • Maintaining different sessions in browser tabs in ADF 11g application

    I have a simple ADF 11g application which uses ADF BC 11g.
    I want to maintain different sessions between the tabs in the same browser.
    Currently it is messing up with session variables. Please reply to me ASAP.
    Thanks,
    Bobby
    Edited by: 866444 on Jun 16, 2011 11:35 AM

    Assuming you are having problems because of the usage of JSF Session scope beans, then the answer is to use pageFlowScope for that set of data - then it is not shared between tabs.

  • How to deploy a secured ADF 11g application to WebLogic 10.3 server?

    Hi,
    I have just enabled security in our ADF 11g application, as descripbed in [chapter 29|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adding_security.htm#insertedID0] of the Fusion Developer's Guide. It works fine in the embedded WebLogic server of JDeveloper.
    Now I'm trying to deploy to our WebLogic 10.3 server, which runs in production mode. I'm running into all sorts of problems. The WebLogic console seems to have hundreds of security related pages, I don't know which one I should use, let alone how to use it. The Fusion Developer's Guide doesn't cover deployment to a production server:
    >
    When the target server is configured for production mode, you typically handle the migration task outside of JDeveloper using tools like Oracle Enterprise Manager. For details about using tools outside of JDeveloper to migrate the policy store to the domain-level in a production environment, see the [Oracle Fusion Middleware Security Guide|http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/toc.htm].
    >
    However, this guide is of very little help to me. I found [chapter 7|http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/addlsecfea.htm#insertedID0], which says "The recommended tool is Fusion Middleware Control." I have no idea what "Fusion Middleware Control" is, where to get it and how to use it.
    Long story short: I'm totally lost. I'm looking for a step by step guide on how to deploy a secured ADF 11g application to a WegLogic 10.3 server that is running in production mode. Any help is highly appreciated.

    Ok, I found a [very helpful blog post |http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html] by [Andrejus Baranovski|http://www.blogger.com/profile/04468230464412457426]. I wish Oracle's documentation was as clear as this...
    The blog post refers to an article by Steve Muench, called [Simplified ADF 11g Application Credential and Policy Migration to Standalone WebLogic Servers|http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html]. This article presents an Ant script that migrates policies from JDeveloper to WebLogic, using some PFM. (See the last definition here.)
    The problem is that Steve Muench's script assumes that JDeveloper and the standalone WebLogic are on the same machine. However, in a typical environment, such as the one I'm working in currently, this is not the case. In our case the developer stations are Windows machines, while our WebLogic server runs on a HP-UX machine. So the question is: how to perform this migration between two machines with different operating systems?
    Regards,
    Bart Kummel

  • How to enable SSO for ADF 11g application

    Hi All,
    I am new to ADF 11g. I need to enable SSO authentication for a ADF 11g application.
    Please let me know if we have any document to follow to perform the configuration.
    Thanks
    Sai

    Check this out
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15478/opssadf.htm
    -Arun

  • Reg: Exporting the data into excel in ADF 11g application.

    Hi All,
    We have developed an application in ADF 11g which retrieves the data from database in the form of table. Now we have a requirement to export that data into an excel sheet.
    Can anyone please help us regarding this.
    Thanks,
    Harsha

    Hi Harsha,
    you can use <af:exportCollectionActionListener /> component to do that. Set the exportedId property to point to of the table. You have options to export all rows or only selected rows.
    <af:commandToolbarButton text="Export All Rows to Excel" immediate="true"
                                                   id="exportAll">
    <af:exportCollectionActionListener type="excelHTML" exportedId="table"
                                                     filename="export.xls"
                                                     title="ADF Faces Export - All" exportedRows="all"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton text="Export Selected Rows to Excel" immediate="true"
                                            id="exportSelected">
    <af:exportCollectionActionListener type="excelHTML" exportedId="table"
                                                     filename="export.xls"
                                                     title="ADF Faces Export - Selected Rows"
                                                      exportedRows="selected"/>
    </af:commandToolbarButton>Good Luck,
    Luc Bors

  • ORA-01460 error only in production enviorment in ADF 11g application

    Hi ,
    We are using ADF 11g rel 1 11.1.1.4.0
    And database is
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE 11.2.0.1.0 Production"
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    All our enviornments are running the same database
    But when we are deploying the application in Production we get the Error
    JBO-27122: SQL-fejl under forberedelse af sætning. Sætning:
    select DB_TST_API.test_proc(Id1, id2) from table;
    ## Detail 0 ##
    java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested
    While executing the query which has a call tp API and input variable
    select DB_TST_API.test_proc(Id1, id2) from table;
    The DB function is defined as
    the FUNCTION test_proc(p_value IN VARCHAR2, p_list IN VARCHAR2) RETURN number;
    The input parameter is only 10 digit integer in ADF application, there is a logical difference that the DB function takes a string and ADF is supplying with Integer, but the code has worked before and has suddenly started giving this error
    The code also works fine on all other test eviornments
    Also the sql query when run from sql devleoper on production DB does not give any error
    Its becoming difficult to find out what could be causing this only on production enviornment

    In ANY case, I'd be using explicit conversions here, not implicit ones, so my recommendation would be one of these:
    a). Use TO_CHAR on the input
    b). Use Java to convert the integer to a string
    c). Change the functionto take a NUMBER as the parameter (if it really is a number)
    d). Write a wrapper for the function. The wrapper should take a number and convert it using TO_CHAR and call the real function
    John

  • Error executing ViewObject in ADF 11g application

    Hi,
    I've just deployed my ADF 11g (11.1.1.2.0) application to a standalone WebLogic 10.3 server. The app contains a single page with a dvt graph and it is configured to use a JDBC data source. I've created the data source via the WebLogic console and chosen the standard Oracle XA Thin driver.
    Most of the time the app works perfectly well, however very occasionally the graph fails to load and an error dialog is given instead showing a NullPointerException. The full stack trace is as follows:
    Caused By: java.lang.NullPointerException
            at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:11145)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:815)
            at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName(Unknown Source)
            at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4649)
            at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3613)
            at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:19076)
            at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1060)
            at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:842)
            at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:6163)
            at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1130)
            at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1299)
            at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1217)
            at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1211)
            at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6097)
            at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingWithParams(DCJboDataControl.java:2911)
            at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1531)
            at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
            at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
            at oracle.adf.model.binding.DCInvokeAction.refreshInternal(DCInvokeAction.java:64)
            at oracle.adf.model.binding.DCInvokeAction.refresh(DCInvokeAction.java:36)
            at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3153)
            at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
            at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
            at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
            at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
            at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
            at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
            at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
            at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
            at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
            at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
            at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)After receiving the error, we simply restart the browser and try again (this time the page loads successfully).
    I've tried some basic Googling for possible solutions but can't find any other instances of this NullPointerException from the driver. Since I don't have the driver source, I can't debug this. Can anyone within Oracle shed some light on why the driver is throwing this error?

    Bumping a 2-year-old thread isn't likely to get you any solution. Best course for you is to post a new thread with all of your details (which will be different, unless you are using the very old 11.1.1.2 version - in which case you will be told to try a later release).
    John

  • ADF 11g application performance

    Hi,
    We are developing using ADF 11.1.1.3.0.
    The application basically contains pages having master-Detail tables.
    On few pages we are displaying 20 tables, these pages performance is very bad. They take 5 mins to load the complete page with all empty tables. A simple search operation on these pages takes around 7 mins.
    We have done View object tuning for all the VOs getting used on these pages, but still they are slow.
    Please advice us on how to improve the performance...
    Thanks,
    Manasa.

    Hello Shay,
    We are using task flows to bind different pages. When we click on show detail item, containing the task flow as a region, it takes 5 mins to display the jsff. Intially we just show empty tables and search criteria present in the jsff. Only the jsff having more master-detail tables are slow.
    In database, the queries are not taking much time to execute, they all are tuned.
    We are not using any middle tier, the application is just based on ADF BC components. The following are the settings we followed in tuning VOs:
    Each table in the page shows a maximum of 7 records at a time.
    Vo tuning:
    All Rows: in Batches of 11
    Query Optimizer: FIRST_ROWS(10)
    Range Size: 11
    RangeSize in Page Def="10"
    Thanks,
    Manasa.

  • Session time out in ADF 11g application.

    Hi,
    I am working for the ST BPO Project. We have one ADF application that is migrated from 10g to 11g.And our application is deployed on the weblogic server.
    we are facing some session time out issues in the application which is intermittent and whenever we leave the web page for some times, the session get timed out and page gets errored out.
    We have set the session time out parameter in web.xml as well as for AM.
    Session Management:
    Following are the parameters which we have set already.
    1.     Web.xml
    We have put the following session time out in web.xml:
    <session-config>
    <session-timeout>180</session-timeout>
    </session-config>
    2.     bc4j.xcfg
    We have set the timetolive property of AM as:
    <AM-Pooling jbo.ampool.timetolive="10000000" jbo.pooltimetolive="10000000"/>
    3.     Also for the DB we have set the session time out to 180 mins.
    But if we leave the page for say some times around 5-10 min, the session of the page expires and it throws error.
    Also, as per our investigation : After some times the view id of the page gets expired and hence the issue comes. Also the behaviour is only on the weblogic server and we don't face any issues in the local set up.
    Kindly help us in solving this problem. Also let me know if any further details is required.
    Thanks
    Namit.

    Hi,
    suggest you also contact customer support on this issue. The version of your JDeveloper 11g release may matter as well
    Frank

  • Exception while running ADF 11g application on Weblogic 10.3.2

    Hi All,
    I have Created a ADF Application using ADF faces 11g. I have Created a Webservice Datacontrol and calling Synchronous BPEL flow from an ADF page. I have deployed the ADF application on Weblogic 10.3.2 but while running the page using the URL http://10.142.214.163:9001/AdfApp/faces/GetBalance.jspx I am getting the following exception,
    java.lang.NullPointerException
    at oracle.adf.model.binding.DCIteratorBinding.getSortCriteria(DCIteratorBinding.java:3710)
    at oracle.adf.model.binding.DCInvokeMethod.setAssociatedIteratorBinding(DCInvokeMethod.java:865)
    at oracle.adf.model.binding.DCIteratorBinding.cacheRefOnOperation(DCIteratorBinding.java:5127)
    at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.getActionBinding(JUMethodIteratorDef.java:283)
    at oracle.jbo.uicli.binding.JUMethodIteratorDef.isRefreshable(JUMethodIteratorDef.java:59)
    at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:274)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2921)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    But the same application is working properly in Integrated Weblogic Server in Jdeveloper 11g.
    Thanks in advance.
    Please help on this...
    Best Regards
    Majid Hussain

    Hi,
    Did you configure your application module to use a JDBC data source? To do this, right-click the app module in the navigator, select Configurations and in the dialog that comes up change the connection type to JDBC Data Source and enter your data source name - which should be the same as the data source you created on the weblogic server.
    Also, I do suggest you create an EAR file - this is what we've tested and certified with. You can find more details in the deployment chapter of the fusion developer's guide: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDJJDDG.
    Hope this helps
    Blaise

  • ADF 11g application on Weblogic 10.3 + JDBC connection to Oracle XE

    Hello! i'm using Jdev 11g (not tp4) and i have Adf applicarion which uses BC4J, thereofre in jdev exists connection to DB.
    When i start my application in Jdev, it starts Weblogic and deploys my application. And all works fine!
    When i want to execute my Weblogic as standalone server, using Weblogic domain Administration console, i deploy my application as WAR archive
    before deploy, i've been created JDBC DataSource in Weblogic server, using Weblogic webinterface (connection test was OK)
    and now, when i start my application, entering application Url in internet explorer, i see that exception has ariced, her is the stack trace
    {color:#0000ff}&lt;17-Oct-2008 18:30:49 o'clock EEST&gt; &lt;Error&gt; &lt;HTTP&gt; &lt;xc002600109&gt; &lt;AdminServer&gt; &lt;ACTIVE ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;1224257449182&gt; &lt;BEA-101017&gt; &lt;[weblogic.servlet.internal.WebAppServletContext@1410e0d - appName: 'nano', name: 'nano.war', context-path: '/nano', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@8f5e03[
    GET /nano/faces/untitled3.jsp?_adf.ctrl-state=1797442774_7 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Cookie: oracle.uix=0^^GMT+3:00; JSESSIONID=wShvL4vT9h40V7TSNH9D84p3v4h48S992vJyWK6p0hnWflfZVpc2!652912999; ADMINCONSOLESESSION=r440L4XpGDJhhX3G1slmFdSzV3xSH51xGzhy912nTnpP2Zv1yVrQ!652912999
    Pragma: no-cache
    Cache-Control: no-cache
    ]] Root cause of ServletException.
    java.lang.NullPointerException
    at oracle.adf.model.bc4j.DCJboDataControl.findVariable(DCJboDataControl.java:2934)
    at oracle.adf.model.binding.DCVariableImpl.resolveSourceVariable(DCVariableImpl.java:69)
    at oracle.adf.model.binding.DCVariableImpl.getVariableKind(DCVariableImpl.java:162)
    at oracle.jbo.common.VariableManagerImpl.doGetVariables(VariableManagerImpl.java:125)
    at oracle.jbo.common.VariableManagerImpl.getVariablesOfKind(VariableManagerImpl.java:259)
    at oracle.jbo.common.VariableManagerImpl.getVariables(VariableManagerImpl.java:253)
    at oracle.jbo.common.VariableValueManagerImpl.doPassivateVariables(VariableValueManagerImpl.java:499)
    at oracle.jbo.common.VariableValueManagerImpl.getPassivatableVariables(VariableValueManagerImpl.java:439)
    at oracle.adf.model.binding.DCBindingContainer.buildFormToken(DCBindingContainer.java:4523)
    at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:56)
    at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:590)
    at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:4293)
    at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:54)
    at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:529)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:118)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:166)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:122)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:68)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:51)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    {color:#000000}i have learned about deployment descriptors and i have made additional files and changed web.xml file:
    {color:#ff0000}web.xml:
    {color:#000000}....{color}
    {color} &lt;resource-ref&gt;
    &lt;description&gt;Nano Datasource&lt;/description&gt;
    &lt;res-ref-name&gt;Nano_DB_connection&lt;/res-ref-name&gt;
    &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
    &lt;res-auth&gt;Container&lt;/res-auth&gt;
    &lt;/resource-ref&gt;
    {color:#ff0000}weblogic.xml:{color}
    &lt;?xml version = '1.0' encoding = 'windows-1252'?&gt;
    &lt;weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"&gt;
    &lt;resource-description&gt;
    &lt;res-ref-name&gt;Nano_DB_connection&lt;/res-ref-name&gt;
    &lt;jndi-name&gt;Nano_DB_connection&lt;/jndi-name&gt;
    &lt;/resource-description&gt;
    &lt;/weblogic-web-app&gt;
    {color:#ff0000}weblogic-jdbc.xml:{color}
    &lt;?xml version = '1.0' encoding = 'windows-1252'?&gt;
    &lt;jdbc-data-source xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-jdbc.xsd" xmlns="http://www.bea.com/ns/weblogic/jdbc-data-source"&gt;
    &lt;name&gt;Nano_DB_connection&lt;/name&gt;
    &lt;jdbc-driver-params&gt;
    &lt;url&gt;10.5.25.169&lt;/url&gt;
    &lt;driver-name&gt;oracle.jdbc.OracleDriver&lt;/driver-name&gt;
    &lt;properties&gt;
    &lt;property&gt;
    &lt;name&gt;user&lt;/name&gt;
    &lt;value&gt;chaosdb&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
    &lt;name&gt;servername&lt;/name&gt;
    &lt;value&gt;10.5.25.169&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
    &lt;name&gt;portnumber&lt;/name&gt;
    &lt;value&gt;1521&lt;/value&gt;
    &lt;/property&gt;
    &lt;property&gt;
    &lt;name&gt;sid&lt;/name&gt;
    &lt;value&gt;XE&lt;/value&gt;
    &lt;/property&gt;
    &lt;/properties&gt;
    &lt;/jdbc-driver-params&gt;
    &lt;jdbc-data-source-params&gt;
    &lt;jndi-name&gt;Nano_DB_connection&lt;/jndi-name&gt;
    &lt;scope&gt;Application&lt;/scope&gt;
    &lt;/jdbc-data-source-params&gt;
    &lt;/jdbc-data-source&gt;
    in BC4J project Model.jpx tells that bc4j uses connection named Nano_DB_connection.
    in Weblogic datasource name is the same
    Question: how to bind my application in weblogic to existed connection/datasource in weblogic?
    how Jdev deploys and configures Weblogic server, that it works fine, but when i start THE SAME server manually, deploy application using JDEV the application execution failed (see above exception)
    maybe i should use EAR profile instead of WAR, to deploy all connections and other stuff to weblogic?
    {color:#ff0000}please help!!!{color}
    {color}{color}

    Hi,
    Did you configure your application module to use a JDBC data source? To do this, right-click the app module in the navigator, select Configurations and in the dialog that comes up change the connection type to JDBC Data Source and enter your data source name - which should be the same as the data source you created on the weblogic server.
    Also, I do suggest you create an EAR file - this is what we've tested and certified with. You can find more details in the deployment chapter of the fusion developer's guide: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDJJDDG.
    Hope this helps
    Blaise

  • Problem with CSS in ADF 11g application

    Hi,
    I have added a CSS code for my login page(login.html), The issue i am facing is When ever i am opening the page the complete CSS is not coming for each time one CSS component is coming that's means if there are 4 CSS components as shown below i need to login and logout the page 4times. 5th time i am getting the complete page.
    .ESPS_login_body{
    background-color:#eef1f8;
    margin:0px;
    padding:0px;
    }.ESPS_login_body *{
    margin:0px;
    padding:0px;
    font-family: Tahoma, Verdana, sans-serif;
    .ESPS_login_top_bar{
    background-image: url(../skin_images/login_top_bar.png);
    background-repeat: repeat-x;
    background-position: left top;
    height:30px;
    I am running the application on firefox3.5.3 version.
    Please suggest me
    Thanks,

    Hi,
    Thanks for your quick reply.
    MY CSS File:
    .ESPS_login_body{
    background-color:#eef1f8;
    margin:0px;
    padding:0px;
    }.ESPS_login_body *{
    margin:0px;
    padding:0px;
    font-family: Tahoma, Verdana, sans-serif;
    .ESPS_login_top_bar{
    background-image: url(../skin_images/login_top_bar.png);
    background-repeat: repeat-x;
    background-position: left top;
    height:30px;
    .ESPS_login_bottom_bar{
    background-image: url(../skin_images/login_bottom_bar.png);
    background-repeat: repeat-x;
    background-position: left top;
    height:46px;
    color:#eeeeee;
    text-align:center;
    padding-top:9px;
    font-size:small;
    .ESPS_login_bg{
    background-image: url(../skin_images/login_bg_gradient.png);
    background-repeat: repeat-x;
    background-position: left top;
    background-color:#6882cc;
    height:594px;
    overflow:hidden;
    .ESPS_login_content{
    -moz-background-clip:border;
    -moz-background-inline-policy:continuous;
    -moz-background-origin:padding;
    background:transparent url(../skin_images/login_bg_main.png) no-repeat scroll center top;
    color:#4269b6;
    height:594px;
    overflow:hidden;
    .ESPS_login_content_left{
    height:594px;
    .ESPS_login_content_main{
    height:594px;
    width:650px;
    margin:0px auto;
    padding:20px;
    .ESPS_login_content_main h1{
    margin-top:230px;
    margin-left:125px;
    color:#4269b6;
    .ESPS_login_content_main > h1{
    margin-top:210px;
    div.ESPS_login_from{
    margin-top:20px;
    margin-left:245px;
    .ESPS_login_input{
    background:transparent url( '../skin_images/login_input.png' ) no-repeat scroll center top;
    border:none;
    margin:0px;
    padding-top:4px;
    padding-left:7px;
    width: 193px;
    height: 25px;
    .ESPS_login_submit{
    display:-moz-inline-box;
    display:inline-block;
    cursor:pointer;
    border:none;
    font-size:0;
    line-height:0;
    text-decoration:none;
    font-style:normal;
    vertical-align:middle;
    background: transparent url("../skin_images/login_go_button_i.png") no-repeat top left;
    border: none;
    width: 48px;
    height: 25px;
    margin:0px;
    margin-bottom:17px;
    div > a.ESPS_login_submit{
    margin-bottom:0px;
    .ESPS_login_submit:hover{
    background: transparent url("../skin_images/login_go_button_highlighted_i.png") no-repeat top left;
    .ESPS_login_submit:active{
    background: transparent url("../skin_images/login_go_button_pressed_i.png") no-repeat top left;
    label.ESPS_label{
    display:-moz-inline-box;
    display:inline-block;
    font-weight:bold;
    padding-bottom:8px;
    width:110px;
    margin-bottom:2px;
    div > label.ESPS_label{
    padding-bottom:3px;
    margin-bottom:2px;
    Login Page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>ESPS Login</title>
    <link href="/skins/css/mySkin.css" rel="stylesheet" type="text/css"></link>
    </head>
    <body class="ESPS_login_body">
    <div class="ESPS_login_top_bar">
    </div>
    <div class="ESPS_login_bg">
    <div class="ESPS_login_content">
    <div class="ESPS_login_content_main">
    <h1>External </h1>
    <form name="ESPS_login_form" method="POST" action="j_security_check">
    <div class="ESPS_login_from">
    <label class="ESPS_label">User Name:</label><input type="text" name="j_username" class="ESPS_login_input" onclick="this.value='';"/>
    <label class="ESPS_label">Password: </label><input type="password" name="j_password" class="ESPS_login_input" onclick="this.value='';"/>
    <a id="submit" href="#" class="ESPS_login_submit" onclick="document.ESPS_login_form.submit(); return false;">
    <span> </span></a>
    </div>
    </form>
    </div>
    </div>
    </div>
    <div class="ESPS_login_bottom_bar">&copy;Copyright 2009, DISH Network L.L.C., all rights reserved.
    </div>
    </body>
    </html>
    Please help me

  • Table in form with adf 11g

    how can i create table inside a form with two column like the login screen and bind the username and password column
    Edited by: user603350 on 2011/12/31 3:53 PM

    Duplicate of {thread:id=2327701}
    Please don't post your questions multiple times.
    Timo

  • Stress test tool and guidelines for tuning ADF 11g

    Hi all,
    I am working our ADF 11g application on load & stress testing. The load test works fine with some millions of full dummy rows (this generated data tool is easily written by ourself). The tunning only was done with only indexing. But with stress I'm concerning with RAM and other tunning parameters such IO and share pool from OS to DB and to WL servers and how to tune it for around 200-300 concurrent connections. I'm studying Jmeter for this purpose but still not get the answer. I have tested with Oracle Openscript but it worked very heavily slow :(.
    The question here is that do you have any experiences on tuning parameters for such requirements and what is the best automatic test tool for testing multi-connections, please advise me.
    Thank you very much.

    Oracle Application Testing Suite has specific support for ADF testing:
    http://www.oracle.com/technetwork/oem/app-test/index.html
    http://www.testingreflections.com/node/view/8538
    Some info on JMeter: http://www.connotea.org/user/jdeveloper/tag/jmeter
    Another option: http://www.yenlo.nl/harryvanoosten/2010/03/10/load-testing-an-adf-11g-application/
    Some entries about tuning: http://www.connotea.org/user/jdeveloper/tag/tuning

  • IE8 and ADF 11g

    Hi,
    has anyone tried to run an ADF 11g Application on IE8? Is it working?
    Kind Regards,
    Friedrich

    Hi,
    IE will be certified for Oracle JDeveloper 11g in a patch that is planned for JDeveloper 11 R1. The patch should be out in the second half of this year. Note that for a production system its not important what is working but what is supported.
    Frank

Maybe you are looking for