Steve Muenchs "Dynamic JDBC" on WLS 11g (10.3.1)?

Hi,
I try to run Steves Example "11g Dynamic JDBC Credentials for Model 1, Struts, Trinidad, and ADF Faces Rich Client" on Standalone WLS 11g (10.3.1) but it doesn't works... on integrated WLS it runs without problems. The WLS-Log shows:
Modul:     oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack
Message:     Failed to create config mbean.
details: java.lang.Exception: oracle.mds.core.MetadataNotFoundException: MDS-00013: No Metadate for Metaobject "/META-INF/adf-config.xml" found.
Does somebody have the example to run brought? Or if new settings are necessary for the example on WLS 11g?
Kind regards
Martin

Hi,
since Steve's solution has nothing to do with the adf-config, I suggest you create a simple testcase that reproduces the problem. It appears as if the ADF binding is not set up properly
Frank

Similar Messages

  • For those who used the solution by Steve Muench,Dynamic JDBC Credentials

    hi every body
    is there any body used the solution by Steve Muench, Dynamic JDBC Credentials .
    thanks
    Yaser
    Edited by: 842127 on Mar 13, 2011 9:24 AM

    Hi,
    in the login page i have a button to make login which work perfect
    How can you say ?
    Whenever i click any control in the login page i see this message invalid username/passowrd . i do not why i face this problem ?I have tried changing the username,password and database using http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html which works perfect.
    refer my thread
    Changing the database for a particular user session
    Regards,
    Santosh
    Edited by: Santosh Vaza on Mar 17, 2011 11:29 AM

  • Dynamic JDBC Credentials and using ADF Region ERROR

    Hi,
    I used solution by Steve Muench, Dynamic JDBC Credentials (for ADF Faces Rich Client)
    (129.     11g Dynamic JDBC Credentials for Model 1, Struts, Trinidad, and ADF Faces Rich Client 11.1.1.0.0 06-AUG-2008), but it works not correct in case of using ADF Dynamic Region (or simply ADF Region).
    I have added in ViewControllerJSFRichFaces a page (main.jspx) including ADF Dynamic Region consisting of 2 simple tasks flows. Action of the Login button, if login and password are correct, redirect to main.jspx
    There are to cases.
    1) Login and password are correct:
    In this case all work fine.
    2) Login and password are not correct:
    It does not work. redirect to login.jspx does not occur as it is expected, but the following page (main.jspx) is loaded, herewith thrown exception: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    I would be very grateful you for help.

    Hi,
    hard to say from your description if this is a bug or an implementation problem. Note that errors that occur in regions are not handled by the exception handler of the the parent page and require special handling within the region. In other words, if the problem is in the region then it needs to be handled in here. I think the right strategy here is to not show the region until a valid connection exist. Is the login performed from the parent page ?
    Frank

  • Dynamic JDBC credentials example application from Steve Muench

    Apologies for this newbie question...but I'm trying to understand the Dynamic JDBC credentials example application from Steve Muench:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14
    I think I understand most of it but the one bit I dont understand is why it customizes the ADF Page Lifecycle (DynamicJDBCADFPhaseListener, DynamicJDBCPageLifecycle, DynamicJDBCPageLifecycleContext).
    Can anyone explain to an ex-forms developer why this code is there?
    I'm also trying to work out a way for the session to be invalidated when the user logins again
    e.g. a user logins, he doesnt use the logout function but uses the back button to go back to the login page. when he logs in with another set of credentials, would a new session start or as i supsect, it would use the original login credentials?
    Thanks

    You can ignore those three classes in the example. They are not related to the dynamic credential solution, and must have been left over from some other example I evolved into what you see. Sorry to have cluttered up the implementation with stuff that isn't really contributing to the actual solution. DOH!

  • Dynamic JDBC Credentials: Example 14 from  Steve Muench

    Hi,
    Im trying example from Steve Muench, it's working fine.
    But I have some questions about it.
    If I want to connect to the db with a wrong username/password I see that it tries 5 times to connect to the database, Where Can I change this number of retries?
    Before the password should be used, it must be encrypted. I have two encryption methods, wich one should be used varies.
    If the first encryption gives a wrong result(no login) the second encryption should be used.
    What is a good place to encrypt the password?
    I was thinking of DynamicJDBCSessionCookieFactory because that is called more than 1 time if login fails.

    I placed my code to encrypt now in the DynamicJDBCBindingFilter.
    This how I try to connect twice
    catch (Exception e) {
                        if (isFailedLoginException(e)) {
                            System.out.println("Poging="+poging);
                            attemt+=1;
                            if (attemt<3){
                                FacesContext    fctx = FacesContext.getCurrentInstance();
                                ExternalContext ectx = fctx.getExternalContext();
                                HttpSession session2 = (HttpSession)ectx.getSession(false);
                                if (session2 != null) {
                                  session2.invalidate();
                                this.doFilter(request,response,chain);
                            }else{
                                signalFailedLoginAttempt(svrRequest);
                                redirectToLoginPageOnLogonError(request, response);
                        }As you can see I invalidate the session and then I call doFilter again.
    This is almost working, but when I'm forwarded to main.jsp with the table I see access denied istead of the table, I also get this error on the Jdev console:
    08/03/25 15:09:14 java.lang.IllegalStateException: Session was invalidated
    08/03/25 15:09:14      at com.evermind.server.http.EvermindHttpSession.setAttribute(EvermindHttpSession.java:151)
    08/03/25 15:09:14      at test.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:84)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/03/25 15:09:14      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/03/25 15:09:14      at java.lang.Thread.run(Thread.java:595)
    The session is invalidated, but If I don't to that it looks like that the new login credentials are not used. Because then I go back to the login page and see the message that the login\password was not correct.
    Someone who knows what I do wrong? I realy need to know this!!
    Message was edited by:
    KdeGraaf

  • ADF 11g: Dynamic JDBC Credentials, how to postback paramters

    I am currently trying out dynamic jdbc example from Steve. An additional implementation I am trying to accomplish is to retain the username in the input field upon a failed login without having it displayed on the url (the example passes parameters back by putting it on the url followed by redirect). Typically this can be done by setting a new request attribute and using a forward instead of redirect, but the example has some interesting code which explicitly avoids a request forward (See below).
        private void forwardToLoginPage(ServletRequest request, ServletResponse response) throws ServletException,
                                                                                                 IOException {
            HttpServletResponse responseHttp = (HttpServletResponse)response;
            responseHttp.sendRedirect(loginPageRedirectName());
    ...Can anyone shed some light on why this is?
    -Wes

    I am currently trying out dynamic jdbc example from Steve. An additional implementation I am trying to accomplish is to retain the username in the input field upon a failed login without having it displayed on the url (the example passes parameters back by putting it on the url followed by redirect). Typically this can be done by setting a new request attribute and using a forward instead of redirect, but the example has some interesting code which explicitly avoids a request forward (See below).
        private void forwardToLoginPage(ServletRequest request, ServletResponse response) throws ServletException,
                                                                                                 IOException {
            HttpServletResponse responseHttp = (HttpServletResponse)response;
            responseHttp.sendRedirect(loginPageRedirectName());
    ...Can anyone shed some light on why this is?
    -Wes

  • Dynamic JDBC

    I am new in adf.
    i am trying to Customize my Project using (*11g Dynamic JDBC Credentials for ADF Faces Rich Client - 11.1.1.0.0*) created by Steve Muench.
    I am face the following exception.
    java.lang.NullPointerException
         at model.test.DynamicJDBCPagePhaseListener.getADFBCDataControlsList(DynamicJDBCPagePhaseListener.java:72)
         at model.test.DynamicJDBCPagePhaseListener.beforePhase(DynamicJDBCPagePhaseListener.java:62)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:551)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:187)
         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:398)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         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:300)
         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:205)
         at Syncreon.Aosc.model.test.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:79)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         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.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         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.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Please guide me about this exception. Its urgent

    Hi,
    its a NPE in
    at model.test.DynamicJDBCPagePhaseListener.getADFBCDataControlsList(DynamicJDBCPagePhaseListener.java:72)
    at model.test.DynamicJDBCPagePhaseListener.beforePhase(DynamicJDBCPagePhaseListener.java:62)
    So what is the object that returns NULL ?
    Frank

  • Questions about example "Dynamic JDBC Credentials for Model 1 and Model 2"

    Hello,
    i am trying to set up dynamic JDBC authentication in my ADF BC application - i want that it'll work like in Forms - a dababase user with the proper priveleges can log into my ADF BC application using his database login and password, and work with application.
    I've read the paper "How To Support Dynamic JDBC Credentials" at
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
    and test the very useful example, created by Steve Muench, which i've got from
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14
    The example works, but when i'm transfer its realisation in my application - it doesnt work the right way. The problems is the following:
    1. I can connect and work successfully only under the owner of the schema - the username and password of which i've wrote in the "jbo.server.internal_connection" string of the AM configuration.
    2. When i'm connecting under other users, which have all the rights to work with the db objects, used by application, i got the main page with the "Access Denied" message - as i have no priveleges to the tables.
    3. The big surprise is that if i am entering the fake username and password - the random letter combination - then i am getting the same behavior as in p.2 - the main page with the "Access Denied" message!
    And the last question is:
    4. Is it possible to set up the dynamic jdbc authentication using the build-in JDeveloper functions - i mean not to use that additional code, not override the ADF Binding Filter, and so on, but set up the similar behaviour (users log in using their db names and passwords) in several minutes following the standart documentation?
    Thanks in advance!

    One more question:
    I have 2 independent Application Modules in my application - to make the 2 transactions independent one form another, when working with different parts of project - and while using dinamic JDBC authentification, the user connects only in the first AM under the username he's entered, but the 2nd AM works under the predefined earlier (during development) connection for that AM.
    How can i make the 2nd AM to be connected under the logging in user (same as the 1rst AM)?

  • Problems in Sending Data through JMS Bridge - WLS 10.3 to WLS 11g

    I have a scenario where I need to send data from a queue configured on WLS 10.3 to WLS 11g. I am using OSB on WLS 10.3.
    What I have done is
    1. Created a JMS Based BS in OSB which sends data to jms://localhost:7001/ConnFactoryJNDI/QueueJNDI
    2. Created a JMS Bridge on WLS 10.3
    3. Source Destination has been configured as the one mentioned above.
    4. Target Destination has been configured to a queue on WLS 11g.
    When i execute the JMS Based BS in OSB, data is being written to the Source Queue directly. I am not sure of the JMS Bridge functionality but I assume that once data is written to the Source Destination, that data will be automatically pushed on the target destination.
    I have configured a JDBC store for the target queue but I no table is created with the data sent from the source.
    M i missing something here?

    I think this question belongs to weblogic server, but as far as I know bridge should be created always at higher version. means, you should create bridge at 11g and try to pull/drop data from 10g. To check any errors in bridge, check the server log and make sure status of bridge is "forwarding messages"
    Regards,
    Anuj

  • How to deploy ADF 11.1.1.3 Security policy to WLS 11g?

    Dear all,
    I've deployed my ADF BC 11.1.1.3 application to WLS 11g. However, I could not deploy the ADF Security part successfully.
    I followed following doc, but I could not find 'oracle.jps_11.1.1' folder under 'MIDDLEWARE_HOME/jdeveloper/modules'. I've tried both Windows and Linux version JDEV, but the result is the same.
    http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html#prereqs
    So if this doc could be used for ADF 11.1.1.3 version? If not, where can I get the correct method?
    Thank you.
    Regards,
    Tony

    Tony,
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/deployment_topics.htm#CHDFJJDD
    John

  • Error while running a sample XSQL from XML bible book from Steve Muench

    I am running the sample XSQL code from Chapter 03, which deals with exporting XML and transform into SQL statements. I'm using JDeveloper and I believe I've setup libraries and HTML root directory etc. I'm getting the following error:
    XSQL-011 Error processing XSLT stylesheet.
    XSL-1009 Attribute xsl:version not found in xsl:stylesheet.
    Can I get some help in fixing this error?
    Thanks a lot,
    Murali
    null

    Hi,
    This is the example I took from Steve Muench's book.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    </xsl:template1>
    </xsl:stylesheet>
    As you can see, I do have the version=1.0 attribute. Why is it complaining still?

  • Dynamic JDBC URls at Runtime

    Hi Experts,
    I did my application in jdev 11.1.1.6 and deployed using Jdbc Url connections and it worked successfully (Actually I m working with 2 diff Database connectiosn in my application)
    But the thing is my company need me to do something like I should be able to dynamically use Jdbc url connections at runtime so that they want to have QA db and PROD db inside the application
    and dynamically change them itseems. (i.e I will have 4 Db in which 2 for QA and 2 for PROD)
    Is there a way where I can achieve them. If so help me out.
    Thanks,
    933601

    Hi,
    You could store the database URLs in a properties file in the app server filesystem, then look them up in the dynamic JDBC code before setting the session attributes. So your QA app server has a properties file containing the URLs for the 2 QA databases and the PROD app server has a properties file containing the URLs for the 2 PROD databases.
    If you want a single app server to talk to multiple sets of databases you could pass a parameter to the login screen. Based on this you decide which database(s) to connect to.
    Kevin

  • Error while running the tutorial posted by Steve Muench

    Hi Guys,
    I have been trying to run the tutorial published by Steve Muench on October 9 2006. I've followed all the steps as specified in the tutorial.
    Chapter 3.4:Run the Application, should supposed to compile and run my application using stand-alone embedded OC4J. It was compiled witout any error. But gave me the following error while running the application.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\oracledevday\jdeveloper\jdev\system\oracle.j2ee.10.1.3.39.14\embedded-oc4j\config>
    C:\oracledevday\jdeveloper\jdk\bin\javaw.exe -client -classpath C:\oracledevday\jdeveloper\j2ee\home\oc4j.jar;C:\oracledevday\jdeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\oracledevday\jdeveloper\jdev\system\oracle.j2ee.10.1.3.39.14\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    2006-10-12 22:47:17.250 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    2006-10-12 22:47:17.265 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    2006-10-12 22:47:22.609 ERROR J2EE HTTP-00004 Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: datatags does not exist. Error creating Web application: webapp
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 14015 ms.
    Target URL -- http://10.10.10.10:8988/MyDemo/faces/pages/EmployeesTable.jspx
    06/10/12 22:47:22 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    22:47:26 WARN (Digester) -[ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/EmployeesTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/DepartmentsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/LocationsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/CountriesTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/RegionsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/JobsTable.jspx)
    2006-10-12 22:47:29.546 TRACE Setting JAZN Config property ...
    2006-10-12 22:47:29.625 NOTIFICATION ---- JAZNSecurityContext.getUserPrincipal(): NULL
    2006-10-12 22:47:32.015 NOTIFICATION ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    22:47:32 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/EmployeesTable.jspx, pagedef=EmployeesPageDef
    22:47:32 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    22:47:32 DEBUG (BreadcrumbStack) -Adding breadcrumb to stack: "Employees" (/pages/EmployeesTable.jspx)
    22:47:32 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/pages/EmployeesTable.jspx, pagedef=EmployeesPageDef
    22:47:32 DEBUG (BreadcrumbStack) -Breadcrumb already on stack; rolling back the stack
    22:47:32 DEBUG (BreadcrumbStack) -Adding breadcrumb to stack: "Employees" (/pages/EmployeesTable.jspx)
    2006-10-12 22:47:34.468 ERROR
    Please advise and let me know if you need any other information from me.
    Thanks,
    Magesh.

    Thanks Steven.
    That makes sense. Is there anything I can do to make this demo work without de-installing 10.1.3.1 Preview? Or If I also install 10.1.3.0.4 with SU5 on another folder, does that affect my 10.1.3.1 Preview version?
    I'm using 10.1.3.1 Preview version to learn Oracle's SOA suite.
    Thanks again,
    Magesh.

  • Servlet problem: (Shay Shmeltzer / Steve Muench / Frank Nimphius)

    Dear sirs... (Shay Shmeltzer / Steve Muench / Frank Nimphius)
    I hope you can give me an answer.
    I created an ADF UIX application using JDeveloper 10.1.2. I have created a servlet to download files. my problem is that it works just fine using jdeveloper, while when deployed into oracle application server it causes errors.i am calling this servlet by storing filename and data in the session, then sending redirect request to the browser.
    the servlet code is:
    package view;
    import java.io.OutputStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class FileDownload extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    try
    String DownloadFileName=(String) request.getSession().getAttribute("downloadfilename");
    byte data[]=(byte []) request.getSession().getAttribute("downloadfiledata");
    if (DownloadFileName==null)
    return;
    request.getSession().removeAttribute("downloadfilename");
    request.getSession().removeAttribute("downloadfiledata");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename="+DownloadFileName);
    response.setContentLength(data.length);
    OutputStream OS=response.getOutputStream();
    OS.write(data);
    catch (Exception e)
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    try
    String DownloadFileName=(String) request.getSession().getAttribute("downloadfilename");
    byte data[]=(byte []) request.getSession().getAttribute("downloadfiledata");
    if (DownloadFileName==null)
    return;
    request.getSession().removeAttribute("downloadfilename");
    request.getSession().removeAttribute("downloadfiledata");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename="+DownloadFileName);
    response.setContentLength(data.length);
    OutputStream OS=response.getOutputStream();
    OS.write(data);
    catch (Exception e)
    and the error is :
    java.lang.IllegalStateException: Response has already been committed
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1902)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:213)
    this error is stored in the log file. if i am running this code from JDeveloper I can download the files using either FireFox or Internet Explorer without any error.
    but if i am running this code using Oracle Application Server 10g Realse 2, i can not download the files using either FireFox or IE.
    so i created another solution, instead of redirecting from a datapage into the servlet, i put the following code in a data page as follows:
    public void onDownload(DataActionContext ctx)
    String DownloadFileName=getfilename();
    byte data[]=getdata();
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename="+DownloadFileName);
    response.setContentLength(data.length);
    OutputStream OS=response.getOutputStream();
    OS.write(data);
    OS.flash();
    this time the application works fine when deployed into Oracle Application Server if you use FireFox, but if you use IE, it causes problem, i can not save the file or view it.
    what is the problem?
    how can i fix this?
    i am certin that the second method is not correct and it should not be used.
    thanks for everyone in advance
    best regards

    Dear Sir...
    Thanks alot for your replay
    regarding the reset method. Itried it and it does not give any good.
    I discovered the following problem:
    If you are redirecting from with struts dataaction page to the servlet, you get the error
    Otherwise if you called the servlet from directly or redirected to a servlet from within a servlet, you get no problem.
    can any one help me please??
    Is it possible that the problem is in IE itself? The file is downloaded perfectly fine with firefox(but the error log still appear)?
    best regards

  • REDIRECT JDBC URL WHEN USING DYNAMIC JDBC CREDENTIALS SO NOT HARDCODED

    I have taken over an application that uses row-level security and ADF (using
    dynamic JDBC Credentials). I have been able to set the internal_connection to
    a JDBCDatasource, but cannot set the Connection Type in the Oracle Business
    Component Configuration to a JDBCDatasource. When I do, I receive errors that
    tables are not found. When I set the value back to a JDBC URL, everything
    works fine again.
    I am looking for a solution where the userid and password are not hardcoded in
    the BC4J.xcfg or a way to redirect this information, as we change our system
    passwords every nighty days. Otherwise, I will have to redeploy the
    application every nighty days.
    I did not create this application, but I am sure that you could simply follow
    the "How to Support Dynamic JDBC Credentials" article. From that point, you
    will probably be where I am, where I have the internal_connection set to a
    JDBCDataSource and working properly, but cannot set the Connection Type to
    anything where the userid and password will not be hardcoded or cause failure.
    I wanted to let you know that I have
    found the updated How to Support Dynamic JDBC Credentials
    (http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.h
    tml) and was going to run through the "Advanced: Supporting Dynamic JDBC URLs",
    but once I was done keying in
    env.remove(ConnectionStrategy.DB_CONNECT_STRING_PROPERTY); I received a
    depreciation message on the DB_CONNECT_STRING_PROPERTY. (Note: I am coding in
    JDeveloper 10.1.3, so this may be depreciated as of then, but the ADF Libraries
    for JDeveloper 10.1.3 are on our Oracle 10gAS 10.1.2 server.)
    I thought maybe this would resolve my issue, but I can't be sure as the
    deprecation message leads me to believe that this solution may not be viable in
    the future.
    UPDATE
    =======
    The article you are referencing is definitely an older version.
    There is a newer article for 10g at:
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
    Please see if that helps.
    I have already reviewed this article.
    In fact, I have reviewed many versions of this document. I have not seen one
    created yet for 10.1.3 though (especially without JSF as our 10.1.2 AS server
    will not support it). I need to find an example or documentation that shows
    how we can keep from having the JDBC URL stored in the BC4J.xcfg or a way to
    use dynamic JDBC credentials with a JDBCDataSource. We do not want to store
    the userid and password in the application, rather, we would like to setup
    something that can be configurable from the application server.
    I think we need to use the dynamic JDBC credentials because we are using the
    row-level security, where we setup a database context for the user and only
    allow certain records of a database table to be returned to the browser based
    on that context.
    Might there be a way to still use the JDBCDataSource?

    I understand that the user provides the userid and password and that these values are setup using the Configuration class.
    However, when I am to deploy the ADF Business Module with my application, I have to specify either a JDBC URL or a JDBC DataSource in the Oracle Business Component Configuration.
    When I use JDBC DataSource, the code does not work properly, almost like the user's credentials are not used for the connection (I get errors like table or view does not exist).
    When I use the JDBC URL, the bc4j.xcfg stores a reference in the JDBCName attribute to a ConnectionDefinition in the same file. It is in this tag of the bc4j.xcfg where the userid, sid, and password (encrypted) is stored and used when retrieving the initial context of the ADF business components.
    It is these values that I want to have stored else where so that the application does not have to be redeployed in order for the password (or sid, or other connection information) to be change.

Maybe you are looking for

  • Exchange mail cannot work after upgrade to ios 8.3

    just upgraded the ios to 8.3 yesterday, and the exchange mail could not work since then. no luck even after deleting and re-add the account. anyone facing the same problem? i will never trust Apple next time to upgrade the new OS at the first day. iP

  • Lumia 710 Activation code

    Hi. I have a never ending issue with my nokia lumia 710 i need a activation code, ive contacted the support centre in South Africa (where i am situated) with a result of them telling me they will contact me with the code but as expected im not gettin

  • Has anyone tried a *real* role-link ? - (bea support pls respond)

    Hi Has anyone tried using different role-name and role-link in the security-role-ref section of web.xml. isUserInRole method fails with this. given a section in web.xml as: <security-role-ref> <role-name>xyz</role-name> <role-link>abc</role-link> </s

  • Basic Requirements to develop Queries

    Hi, We are going to develop Queries. Please let me know Which type of information we need to get from the user to develop queries. Regards, Chetana...

  • My Mac Mini (2009 version) does not let me boot from another device

    I can see the other devices fine, it is just when I select any one the system keeps trying to boot and I get nothing. I can stop the retry process and choose my Mac hard drive ok. Of special note is I have recently discovered that my DVD drive does n